nekomeowww
commited on
Commit
·
da98bae
1
Parent(s):
d559ad2
release: build e0bae0bbf4457505cac9b57f6c1d8a8801cff4a7
Browse files- assets/{_...all_-B1EyfvTX.js → _...all_-DuM_OW4Y.js} +1 -1
- assets/{audio-BLslcr96.js → audio-CVDZZgqI.js} +1 -1
- assets/{default-Bfh1deQY.js → default-B-rPJ_1n.js} +1 -1
- assets/{delays-rlswmRCO.js → delays-DJ7dXd8O.js} +1 -1
- assets/{emotions-BcAqwDB1.js → emotions-DSQfawhM.js} +1 -1
- assets/{filter-message-_oboN7tU.js → filter-message-NIByHKNp.js} +1 -1
- assets/{image-CaSo5_Gm.js → image-D6d6zCjp.js} +1 -1
- assets/{index-CXgvnQjh.css → index-3ndQV4V4.css} +1 -1
- assets/{index-CVCWG6Qt.js → index-B2wn0_c0.js} +0 -0
- assets/{index-DXRKN6Zo.js → index-D3OciMUq.js} +1 -1
- assets/{index-0KofmgRN.js → index-DFlevWxx.js} +3 -3
- assets/{messages-BPjeJFph.js → messages-BAGUKUov.js} +1 -1
- assets/{queue-CJv-vPuJ.js → queue-3TmkSyew.js} +1 -1
- assets/{queue-CcwEu7p3.js → queue-o1jzgfMT.js} +1 -1
- assets/{queues-oLE3rsxt.js → queues-CDqve01H.js} +1 -1
- index.html +1 -1
assets/{_...all_-B1EyfvTX.js → _...all_-DuM_OW4Y.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as _}from"./index-
|
|
|
1 |
+
import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as _}from"./index-DFlevWxx.js";const c={};function n(r,t){return o(),_("div",null," 404 - Page not found ")}const f=e(c,[["render",n]]);export{f as default};
|
assets/{audio-BLslcr96.js → audio-CVDZZgqI.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as s,h as f,o as d,c as p,z as t}from"./index-
|
|
|
1 |
+
import{d as s,h as f,o as d,c as p,z as t}from"./index-DFlevWxx.js";const R=s({__name:"audio",setup(_){const a=f(),l=f();function u(o){var r,c,i;if(!o)return;const n=(c=(r=l.value)==null?void 0:r.files)==null?void 0:c[0];if(!n)return;const e=document.createElement("audio");(i=a.value)==null||i.appendChild(e),e.src=URL.createObjectURL(n),e.controls=!0,e.load(),e.play()}return(o,n)=>(d(),p("div",null,[t("div",null,[t("div",{ref_key:"containerRef",ref:a},null,512),t("input",{ref_key:"fileInputRef",ref:l,type:"file",onChange:u},null,544)])]))}});export{R as default};
|
assets/{default-Bfh1deQY.js → default-B-rPJ_1n.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as p,u as s,c,a as d,n as i,b as e,r as l,o as m}from"./index-
|
|
|
1 |
+
import{d as p,u as s,c,a as d,n as i,b as e,r as l,o as m}from"./index-DFlevWxx.js";const x=p({__name:"default",setup(u){const{top:t,right:o,bottom:a,left:n}=s();return(f,_)=>{const r=l("RouterView");return m(),c("main",{text:"gray-700 dark:gray-200","font-cuteen":"","h-full":"",style:i({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{x as default};
|
assets/{delays-rlswmRCO.js → delays-DJ7dXd8O.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{i as g,_,l as k}from"./queues-
|
|
|
1 |
+
import{i as g,_,l as k}from"./queues-CDqve01H.js";import"./index-D3OciMUq.js";import{d as b,h as d,o as s,c as l,z as e,a as y,aR as i,bC as f,bD as p}from"./index-DFlevWxx.js";import"./queue-3TmkSyew.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},x={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},P=b({__name:"delays",setup(D){const t=d(""),m=d([]),c=d([]),u=d(!1),r=g();r.onHandlerEvent("delay",a=>{c.value.push(a)});function v(){u.value=!0;const a=t.value.split("");for(const n of a)r.add(n);r.add(k),t.value="",u.value=!1}return(a,n)=>(s(),l("div",z,[e("div",x,[y(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=o=>t.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",h,i(u.value?"Processing...":"Send"),1)]),e("div",w,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(s(!0),l(f,null,p(m.value,o=>(s(),l("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(s(!0),l(f,null,p(c.value,o=>(s(),l("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{P as default};
|
assets/{emotions-BcAqwDB1.js → emotions-DSQfawhM.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{h as k,_ as b,l as h}from"./queues-
|
|
|
1 |
+
import{h as k,_ as b,l as h}from"./queues-CDqve01H.js";import{u as m}from"./queue-3TmkSyew.js";import{d as z,h as u,o as t,c as l,z as e,a as x,aR as i,bC as p,bD as g}from"./index-DFlevWxx.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},y={flex:"","flex-row":"","gap-2":""},M={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},E={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},D=z({__name:"emotions",setup(S){const a=u(""),r=u([]),c=u([]),d=u(!1);m({handlers:[async s=>{r.value.push(s.data)}]});const v=m({handlers:[async s=>{c.value.push(s.data)}]}),f=k(v);function _(){d.value=!0;const s=a.value.split("");for(const o of s)f.add(o);f.add(h),a.value="",d.value=!1}return(s,o)=>(t(),l("div",w,[e("div",y,[x(b,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=n=>a.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:_},null,8,["modelValue"]),e("button",M,i(d.value?"Processing...":"Send"),1)]),e("div",V,[e("div",E,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),l(p,null,g(r.value,n=>(t(),l("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",Q,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),l(p,null,g(c.value,n=>(t(),l("div",{key:n},[e("div",null,i(n),1)]))),128))])])]))}});export{D as default};
|
assets/{filter-message-_oboN7tU.js → filter-message-NIByHKNp.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as g,h as u,r as m,o as v,c as _,z as s,a as x,aR as d}from"./index-
|
|
|
1 |
+
import{d as g,h as u,r as m,o as v,c as _,z as s,a as x,aR as d}from"./index-DFlevWxx.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},z={flex:"","flex-row":"","gap-2":""},S={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},k={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V=g({__name:"filter-message",setup(w){const o=u(""),c=u(!1),i=u({content:""});async function f(r){return new Promise(e=>setTimeout(e,r))}async function p(){c.value=!0;const r=o.value.split("");let e;(l=>{l.Literal="literal",l.Special="special"})(e||(e={}));let a="literal",t="";for(const l of r){await f(50);let n=a;l==="<"?n="special":l===">"&&(n="literal"),a==="literal"&&n==="special"&&(i.value.content+=t,t=""),a==="special"&&n==="literal"&&(t=""),a==="literal"&&n==="literal"&&(i.value.content+=l,t=""),a=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const a=m("BasicTextarea");return v(),_("div",b,[s("div",z,[x(a,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),s("button",S,d(c.value?"Processing...":"Send"),1)]),s("div",k,[e[1]||(e[1]=s("h3",{"font-semibold":""}," Streaming Message ",-1)),s("div",null,d(i.value.content),1)])])}}});export{V as default};
|
assets/{image-CaSo5_Gm.js → image-D6d6zCjp.js}
RENAMED
@@ -1,2 +1,2 @@
|
|
1 |
-
import{d as _,h as c,c2 as y,o as d,c as u,z as a,aR as x,b as v,D as b}from"./index-
|
2 |
`,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>v(m)())}," Copy Data URL ")])):b("",!0)]))}}),I=h(D,[["__scopeId","data-v-7edd53e6"]]);export{I as default};
|
|
|
1 |
+
import{d as _,h as c,c2 as y,o as d,c as u,z as a,aR as x,b as v,D as b}from"./index-DFlevWxx.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";const w={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},R=["src"],U={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},D=_({__name:"image",setup(k){const p=c(),o=c(""),{copy:m}=y({source:o});async function g(s){return new Promise((e,n)=>{const t=new FileReader;t.onload=r=>{var l,i;e(((i=(l=r.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=r=>{n(r)},t.readAsDataURL(s)})}async function f(s){var t;const n=(t=s.target.files)==null?void 0:t[0];if(n){p.value=n;const r=await g(n);o.value=r}}return(s,e)=>(d(),u("div",null,[a("label",w,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),o.value?(d(),u("div",C,[a("img",{src:o.value,alt:"Uploaded Image","w-100":""},null,8,R),a("pre",U," "+x(o.value)+`
|
2 |
`,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>v(m)())}," Copy Data URL ")])):b("",!0)]))}}),I=h(D,[["__scopeId","data-v-7edd53e6"]]);export{I as default};
|
assets/{index-CXgvnQjh.css → index-3ndQV4V4.css}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
.animate-stripe[data-v-
|
|
|
1 |
+
.animate-stripe[data-v-d7607d9e]{background-image:repeating-linear-gradient(-45deg,#f472b6,#f472b6 25px,#f9a8d4 25px,#f9a8d4 50px);animation:progress-d7607d9e 2s linear infinite;background-size:150% 100%}@-webkit-keyframes progress-d7607d9e{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-d7607d9e{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-d7607d9e{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-d7607d9e{0%{background-position:0 0}to{background-position:-70px 0px}}.cross-background-container[data-v-ff7347db]{background-color:#fff;background:radial-gradient(circle,transparent 20%,#ffffff 20%,#ffffff 80%,transparent 80%,transparent),radial-gradient(circle,transparent 20%,#ffffff 20%,#ffffff 80%,transparent 80%,transparent) 25px 25px,linear-gradient(#f4ebf1 2px,transparent 2px) 0 -1px,linear-gradient(90deg,#f4ebf1 2px,#fff 2px) -1px 0;background-size:50px 50px,50px 50px,25px 25px,25px 25px}.dark .cross-background-container[data-v-ff7347db]{background-color:#121212;background:radial-gradient(circle,transparent 20%,#121212 20%,#121212 80%,transparent 80%,transparent),radial-gradient(circle,transparent 20%,#121212 20%,#121212 80%,transparent 80%,transparent) 25px 25px,linear-gradient(#312129 2px,transparent 2px) 0 -1px,linear-gradient(90deg,#312129 2px,#121212 2px) -1px 0;background-size:50px 50px,50px 50px,25px 25px,25px 25px}.animate-stripe[data-v-b137ad14]{background-image:repeating-linear-gradient(-45deg,#a16207,#a16207 25px,#eab308 25px,#eab308 50px);background-size:175% 100%}.animate-stripe[data-v-b137ad14]:hover{animation:progress-b137ad14 2s linear infinite}@-webkit-keyframes progress-b137ad14{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-b137ad14{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-b137ad14{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-b137ad14{0%{background-position:0 0}to{background-position:-70px 0px}}
|
assets/{index-CVCWG6Qt.js → index-B2wn0_c0.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/{index-DXRKN6Zo.js → index-D3OciMUq.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import{G as Color,a4 as Vector2,V as Vector3,J as Euler,b4 as Object3D,bi as AnimationClip,bo as QuaternionKeyframeTrack,bn as NumberKeyframeTrack,al as Quaternion,M as MathUtils,Q as Matrix4,c3 as Matrix3,bh as Skeleton,E as BufferGeometry,ay as BufferAttribute,bg as Group,aa as MeshBasicMaterial,a1 as DoubleSide,a9 as Mesh,b9 as LineBasicMaterial,bc as LineSegments,c4 as ImageLoader,b8 as Material,H as BackSide,c5 as AxesHelper,S as ShaderMaterial,c6 as TangentSpaceNormalMap,U as UniformsUtils,a3 as UniformsLib,c7 as DynamicDrawUsage,bd as Line,bb as SkinnedMesh,c8 as GLBufferAttribute,ag as REVISION,f as getAugmentedNamespace}from"./index-
|
2 |
* @pixiv/three-vrm-animation v3.3.2
|
3 |
* The implementation of VRM Animation
|
4 |
*
|
|
|
1 |
+
import{G as Color,a4 as Vector2,V as Vector3,J as Euler,b4 as Object3D,bi as AnimationClip,bo as QuaternionKeyframeTrack,bn as NumberKeyframeTrack,al as Quaternion,M as MathUtils,Q as Matrix4,c3 as Matrix3,bh as Skeleton,E as BufferGeometry,ay as BufferAttribute,bg as Group,aa as MeshBasicMaterial,a1 as DoubleSide,a9 as Mesh,b9 as LineBasicMaterial,bc as LineSegments,c4 as ImageLoader,b8 as Material,H as BackSide,c5 as AxesHelper,S as ShaderMaterial,c6 as TangentSpaceNormalMap,U as UniformsUtils,a3 as UniformsLib,c7 as DynamicDrawUsage,bd as Line,bb as SkinnedMesh,c8 as GLBufferAttribute,ag as REVISION,f as getAugmentedNamespace}from"./index-DFlevWxx.js";/*!
|
2 |
* @pixiv/three-vrm-animation v3.3.2
|
3 |
* The implementation of VRM Animation
|
4 |
*
|
assets/{index-0KofmgRN.js → index-DFlevWxx.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
2 |
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const XT="modulepreload",$T=function(n){return"/"+n},M_={},Pi=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(l=>{if(l=$T(l),l in M_)return;M_[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":XT,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};/**
|
3 |
* @vue/shared v3.5.13
|
4 |
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
@@ -3846,11 +3846,11 @@ void main() {
|
|
3846 |
* pinia v2.3.0
|
3847 |
* (c) 2024 Eduardo San Martin Morote
|
3848 |
* @license MIT
|
3849 |
-
*/let rT;const Xh=n=>rT=n,sT=Symbol();function dm(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var ol;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(ol||(ol={}));function nk(){const n=Om(!0),e=n.run(()=>Pe({}));let t=[],i=[];const r=Hm({install(s){Xh(r),r._a=s,s.provide(sT,r),s.config.globalProperties.$pinia=r,i.forEach(o=>t.push(o)),i=[]},use(s){return!this._a&&!i3?i.push(s):t.push(s),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return r}const oT=()=>{};function by(n,e,t,i=oT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&jf()&&Nm(r),r}function Lo(n,...e){n.slice().forEach(t=>{t(...e)})}const ik=n=>n(),Sy=Symbol(),hp=Symbol();function pm(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t],r=n[t];dm(r)&&dm(i)&&n.hasOwnProperty(t)&&!Et(i)&&!pr(i)?n[t]=pm(r,i):n[t]=i}return n}const rk=Symbol();function sk(n){return!dm(n)||!n.hasOwnProperty(rk)}const{assign:Ur}=Object;function ok(n){return!!(Et(n)&&n.effect)}function ak(n,e,t,i){const{state:r,actions:s,getters:o}=e,a=t.state.value[n];let l;function c(){a||(t.state.value[n]=r?r():{});const u=Wx(t.state.value[n]);return Ur(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Hm(ke(()=>{Xh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=aT(n,c,e,t,i,!0),l}function aT(n,e,t={},i,r,s){let o;const a=Ur({actions:{}},t),l={deep:!0};let c,u,f=[],h=[],d;const p=i.state.value[n];!s&&!p&&(i.state.value[n]={}),Pe({});let _;function g(P){let b;c=u=!1,typeof P=="function"?(P(i.state.value[n]),b={type:ol.patchFunction,storeId:n,events:d}):(pm(i.state.value[n],P),b={type:ol.patchObject,payload:P,storeId:n,events:d});const S=_=Symbol();ro().then(()=>{_===S&&(c=!0)}),u=!0,Lo(f,b,i.state.value[n])}const m=s?function(){const{state:b}=t,S=b?b():{};this.$patch(N=>{Ur(N,S)})}:oT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Sy in P)return P[hp]=b,P;const S=function(){Xh(i);const N=Array.from(arguments),B=[],H=[];function $(te){B.push(te)}function ee(te){H.push(te)}Lo(h,{args:N,name:S[hp],store:E,after:$,onError:ee});let Z;try{Z=P.apply(this&&this.$id===n?this:E,N)}catch(te){throw Lo(H,te),te}return Z instanceof Promise?Z.then(te=>(Lo(B,te),te)).catch(te=>(Lo(H,te),Promise.reject(te))):(Lo(B,Z),Z)};return S[Sy]=!0,S[hp]=b,S},v={_p:i,$id:n,$onAction:by.bind(null,h),$patch:g,$reset:m,$subscribe(P,b={}){const S=by(f,P,b.detached,()=>N()),N=o.run(()=>it(()=>i.state.value[n],B=>{(b.flush==="sync"?u:c)&&P({storeId:n,type:ol.direct,events:d},B)},Ur({},l,b)));return S},$dispose:y},E=oi(v);i._s.set(n,E);const M=(i._a&&i._a.runWithContext||ik)(()=>i._e.run(()=>(o=Om()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Et(b)&&!ok(b)||pr(b))s||(p&&sk(b)&&(Et(b)?b.value=p[P]:pm(b,p[P])),i.state.value[n][P]=b);else if(typeof b=="function"){const S=x(b,P);M[P]=S,a.actions[P]=b}}return Ur(E,M),Ur(rt(E),M),Object.defineProperty(E,"$state",{get:()=>i.state.value[n],set:P=>{g(b=>{Ur(b,P)})}}),i._p.forEach(P=>{Ur(E,o.run(()=>P({store:E,app:i._a,pinia:i,options:a})))}),p&&s&&t.hydrate&&t.hydrate(E.$state,p),c=!0,u=!0,E}/*! #__NO_SIDE_EFFECTS__ */function lk(n,e,t){let i,r;const s=typeof e=="function";typeof n=="string"?(i=n,r=s?t:e):(r=n,i=n.id);function o(a,l){const c=$m();return a=a||(c?Bn(sT,null):null),a&&Xh(a),a=rT,a._s.has(i)||(s?aT(i,e,r,a):ak(i,r,a)),a._s.get(i)}return o.$id=i,o}function n4(n){{const e=rt(n),t={};for(const i in e){const r=e[i];r.effect?t[i]=ke({get:()=>n[i],set(s){n[i]=s}}):(Et(r)||pr(r))&&(t[i]=Xx(n,i))}return t}}const ck=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Pi(()=>import("./default-
|
3850 |
* vue-router v4.5.0
|
3851 |
* (c) 2024 Eduardo San Martin Morote
|
3852 |
* @license MIT
|
3853 |
-
*/const No=typeof document<"u";function lT(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function uk(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&lT(n.default)}const gt=Object.assign;function dp(n,e){const t={};for(const i in e){const r=e[i];t[i]=Si(r)?r.map(n):n(r)}return t}const al=()=>{},Si=Array.isArray,cT=/#/g,fk=/&/g,hk=/\//g,dk=/=/g,pk=/\?/g,uT=/\+/g,mk=/%5B/g,gk=/%5D/g,fT=/%5E/g,_k=/%60/g,hT=/%7B/g,vk=/%7C/g,dT=/%7D/g,yk=/%20/g;function o_(n){return encodeURI(""+n).replace(vk,"|").replace(mk,"[").replace(gk,"]")}function xk(n){return o_(n).replace(hT,"{").replace(dT,"}").replace(fT,"^")}function mm(n){return o_(n).replace(uT,"%2B").replace(yk,"+").replace(cT,"%23").replace(fk,"%26").replace(_k,"`").replace(hT,"{").replace(dT,"}").replace(fT,"^")}function bk(n){return mm(n).replace(dk,"%3D")}function Sk(n){return o_(n).replace(cT,"%23").replace(pk,"%3F")}function Mk(n){return n==null?"":Sk(n).replace(hk,"%2F")}function Vl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Ek=/\/$/,Tk=n=>n.replace(Ek,"");function pp(n,e,t="/"){let i,r={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),r=n(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=Rk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:Vl(o)}}function wk(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function My(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function Ak(n,e,t){const i=e.matched.length-1,r=t.matched.length-1;return i>-1&&i===r&&sa(e.matched[i],t.matched[r])&&pT(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function sa(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function pT(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!Ck(n[t],e[t]))return!1;return!0}function Ck(n,e){return Si(n)?Ey(n,e):Si(e)?Ey(e,n):n===e}function Ey(n,e){return Si(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function Rk(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Or={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var zl;(function(n){n.pop="pop",n.push="push"})(zl||(zl={}));var ll;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ll||(ll={}));function Pk(n){if(!n)if(No){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Tk(n)}const Ik=/^[^#]+#/;function Lk(n,e){return n.replace(Ik,"#")+e}function Dk(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const $h=()=>({left:window.scrollX,top:window.scrollY});function Ok(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=Dk(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Ty(n,e){return(history.state?history.state.position-e:-1)+n}const gm=new Map;function Nk(n,e){gm.set(n,e)}function Uk(n){const e=gm.get(n);return gm.delete(n),e}let Fk=()=>location.protocol+"//"+location.host;function mT(n,e){const{pathname:t,search:i,hash:r}=e,s=n.indexOf("#");if(s>-1){let a=r.includes(n.slice(s))?n.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),My(l,"")}return My(t,n)+i+r}function Bk(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=mT(n,location),p=t.value,_=e.value;let g=0;if(h){if(t.value=d,e.value=h,o&&o===p){o=null;return}g=_?h.position-_.position:0}else i(d);r.forEach(m=>{m(t.value,p,{delta:g,type:zl.pop,direction:g?g>0?ll.forward:ll.back:ll.unknown})})};function l(){o=t.value}function c(h){r.push(h);const d=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(gt({},h.state,{scroll:$h()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function wy(n,e,t,i=!1,r=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:r?$h():null}}function kk(n){const{history:e,location:t}=window,i={value:mT(n,t)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=n.indexOf("#"),h=f>-1?(t.host&&document.querySelector("base")?n:n.slice(f))+l:Fk()+n+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),t[u?"replace":"assign"](h)}}function o(l,c){const u=gt({},e.state,wy(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});s(l,u,!0),i.value=l}function a(l,c){const u=gt({},r.value,e.state,{forward:l,scroll:$h()});s(u.current,u,!0);const f=gt({},wy(i.value,l,null),{position:u.position+1},c);s(l,f,!1),i.value=l}return{location:i,state:r,push:a,replace:o}}function Vk(n){n=Pk(n);const e=kk(n),t=Bk(n,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const r=gt({location:"",base:n,go:i,createHref:Lk.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function zk(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),Vk(n)}function Hk(n){return typeof n=="string"||n&&typeof n=="object"}function gT(n){return typeof n=="string"||typeof n=="symbol"}const _T=Symbol("");var Ay;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Ay||(Ay={}));function oa(n,e){return gt(new Error,{type:n,[_T]:!0},e)}function nr(n,e){return n instanceof Error&&_T in n&&(e==null||!!(n.type&e))}const Cy="[^/]+?",Gk={sensitive:!1,strict:!1,start:!0,end:!0},Wk=/[.+*?^${}()[\]/\\]/g;function Xk(n,e){const t=gt({},Gk,e),i=[];let r=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(t.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(Wk,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:_,optional:g,regexp:m}=h;s.push({name:p,repeatable:_,optional:g});const y=m||Cy;if(y!==Cy){d+=10;try{new RegExp(`(${y})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+v.message)}}let x=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(x=g&&c.length<2?`(?:/${x})`:"/"+x),g&&(x+="?"),r+=x,d+=20,g&&(d+=-8),_&&(d+=-20),y===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(t.strict&&t.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,t.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=s[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of n){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:_,optional:g}=d,m=p in c?c[p]:"";if(Si(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Si(m)?m.join("/"):m;if(!y)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:i,keys:s,parse:a,stringify:l}}function $k(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function vT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=$k(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(Ry(i))return 1;if(Ry(r))return-1}return r.length-i.length}function Ry(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const qk={type:0,value:""},Yk=/[a-zA-Z0-9_]/;function jk(n){if(!n)return[[]];if(n==="/")return[[qk]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(d){throw new Error(`ERR (${t})/"${c}": ${d}`)}let t=0,i=t;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),t=1):h();break;case 4:h(),t=i;break;case 1:l==="("?t=2:Yk.test(l)?h():(f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function Kk(n,e,t){const i=Xk(jk(n.path),t),r=gt(i,{record:n,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function Zk(n,e){const t=[],i=new Map;e=Dy({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=Iy(f);_.aliasOf=d&&d.record;const g=Dy(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of v)m.push(Iy(gt({},_,{components:d?d.record.components:_.components,path:E,aliasOf:d?d.record:_})))}let y,x;for(const v of m){const{path:E}=v;if(h&&E[0]!=="/"){const T=h.record.path,M=T[T.length-1]==="/"?"":"/";v.path=h.record.path+(E&&M+E)}if(y=Kk(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!Ly(y)&&o(f.name)),yT(y)&&l(y),_.children){const T=_.children;for(let M=0;M<T.length;M++)s(T[M],y,d&&d.children[M])}d=d||y}return x?()=>{o(x)}:al}function o(f){if(gT(f)){const h=i.get(f);h&&(i.delete(f),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(f);h>-1&&(t.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return t}function l(f){const h=eV(f,t);t.splice(h,0,f),f.record.name&&!Ly(f)&&i.set(f.record.name,f)}function c(f,h){let d,p={},_,g;if("name"in f&&f.name){if(d=i.get(f.name),!d)throw oa(1,{location:f});g=d.record.name,p=gt(Py(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&Py(f.params,d.keys.map(x=>x.name))),_=d.stringify(p)}else if(f.path!=null)_=f.path,d=t.find(x=>x.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=h.name?i.get(h.name):t.find(x=>x.re.test(h.path)),!d)throw oa(1,{location:f,currentLocation:h});g=d.record.name,p=gt({},h.params,f.params),_=d.stringify(p)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:_,params:p,matched:m,meta:Qk(m)}}n.forEach(f=>s(f));function u(){t.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function Py(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Iy(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:Jk(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Jk(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function Ly(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function Qk(n){return n.reduce((e,t)=>gt(e,t.meta),{})}function Dy(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function eV(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;vT(n,e[s])<0?i=s:t=s+1}const r=tV(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function tV(n){let e=n;for(;e=e.parent;)if(yT(e)&&vT(n,e)===0)return e}function yT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function nV(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(uT," "),o=s.indexOf("="),a=Vl(o<0?s:s.slice(0,o)),l=o<0?null:Vl(s.slice(o+1));if(a in e){let c=e[a];Si(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function Oy(n){let e="";for(let t in n){const i=n[t];if(t=bk(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Si(i)?i.map(s=>s&&mm(s)):[i&&mm(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function iV(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Si(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const rV=Symbol(""),Ny=Symbol(""),a_=Symbol(""),xT=Symbol(""),_m=Symbol("");function Da(){let n=[];function e(i){return n.push(i),()=>{const r=n.indexOf(i);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function zr(n,e,t,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(oa(4,{from:t,to:e})):h instanceof Error?l(h):Hk(h)?l(oa(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>n.call(i&&i.instances[r],e,t,c));let f=Promise.resolve(u);n.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function mp(n,e,t,i,r=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(lT(l)){const u=(l.__vccOpts||l)[e];u&&s.push(zr(u,t,i,o,a,r))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=uk(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&zr(d,t,i,o,a,r)()}))}}return s}function Uy(n){const e=Bn(a_),t=Bn(xT),i=ke(()=>{const l=Bt(n.to);return e.resolve(l)}),r=ke(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],f=t.matched;if(!u||!f.length)return-1;const h=f.findIndex(sa.bind(null,u));if(h>-1)return h;const d=Fy(l[c-2]);return c>1&&Fy(u)===d&&f[f.length-1].path!==d?f.findIndex(sa.bind(null,l[c-2])):h}),s=ke(()=>r.value>-1&&cV(t.params,i.value.params)),o=ke(()=>r.value>-1&&r.value===t.matched.length-1&&pT(t.params,i.value.params));function a(l={}){if(lV(l)){const c=e[Bt(n.replace)?"replace":"push"](Bt(n.to)).catch(al);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:ke(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function sV(n){return n.length===1?n[0]:n}const oV=Vi({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"}},useLink:Uy,setup(n,{slots:e}){const t=oi(Uy(n)),{options:i}=Bn(a_),r=ke(()=>({[By(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[By(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&sV(e.default(t));return n.custom?s:vr("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),aV=oV;function lV(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function cV(n,e){for(const t in e){const i=e[t],r=n[t];if(typeof i=="string"){if(i!==r)return!1}else if(!Si(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Fy(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const By=(n,e,t)=>n??e??t,uV=Vi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=Bn(_m),r=ke(()=>n.route||i.value),s=Bn(Ny,0),o=ke(()=>{let c=Bt(s);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=ke(()=>r.value.matched[o.value]);Xr(Ny,ke(()=>o.value+1)),Xr(rV,a),Xr(_m,r);const l=Pe();return it(()=>[l.value,a.value,n.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!sa(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=n.name,f=a.value,h=f&&f.components[u];if(!h)return ky(t.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,g=vr(h,gt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return ky(t.default,{Component:g,route:c})||g}}});function ky(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const bT=uV;function fV(n){const e=Zk(n.routes,n),t=n.parseQuery||nV,i=n.stringifyQuery||Oy,r=n.history,s=Da(),o=Da(),a=Da(),l=wn(Or);let c=Or;No&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=dp.bind(null,W=>""+W),f=dp.bind(null,Mk),h=dp.bind(null,Vl);function d(W,ae){let le,ue;return gT(W)?(le=e.getRecordMatcher(W),ue=ae):ue=W,e.addRoute(ue,le)}function p(W){const ae=e.getRecordMatcher(W);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function m(W,ae){if(ae=gt({},ae||l.value),typeof W=="string"){const w=pp(t,W,ae.path),j=e.resolve({path:w.path},ae),G=r.createHref(w.fullPath);return gt(w,j,{params:h(j.params),hash:Vl(w.hash),redirectedFrom:void 0,href:G})}let le;if(W.path!=null)le=gt({},W,{path:pp(t,W.path,ae.path).path});else{const w=gt({},W.params);for(const j in w)w[j]==null&&delete w[j];le=gt({},W,{params:f(w)}),ae.params=f(ae.params)}const ue=e.resolve(le,ae),Ie=W.hash||"";ue.params=u(h(ue.params));const I=wk(i,gt({},W,{hash:xk(Ie),path:ue.path})),D=r.createHref(I);return gt({fullPath:I,hash:Ie,query:i===Oy?iV(W.query):W.query||{}},ue,{redirectedFrom:void 0,href:D})}function y(W){return typeof W=="string"?pp(t,W,l.value.path):gt({},W)}function x(W,ae){if(c!==W)return oa(8,{from:ae,to:W})}function v(W){return M(W)}function E(W){return v(gt(y(W),{replace:!0}))}function T(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let ue=typeof le=="function"?le(W):le;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=y(ue):{path:ue},ue.params={}),gt({query:W.query,hash:W.hash,params:ue.path!=null?{}:W.params},ue)}}function M(W,ae){const le=c=m(W),ue=l.value,Ie=W.state,I=W.force,D=W.replace===!0,w=T(le);if(w)return M(gt(y(w),{state:typeof w=="object"?gt({},Ie,w.state):Ie,force:I,replace:D}),ae||le);const j=le;j.redirectedFrom=ae;let G;return!I&&Ak(i,ue,le)&&(G=oa(16,{to:j,from:ue}),re(ue,ue,!0,!1)),(G?Promise.resolve(G):S(j,ue)).catch(q=>nr(q)?nr(q,2)?q:ve(q):Q(q,j,ue)).then(q=>{if(q){if(nr(q,2))return M(gt({replace:D},y(q.to),{state:typeof q.to=="object"?gt({},Ie,q.to.state):Ie,force:I}),ae||j)}else q=B(j,ue,!0,D,Ie);return N(j,ue,q),q})}function P(W,ae){const le=x(W,ae);return le?Promise.reject(le):Promise.resolve()}function b(W){const ae=se.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function S(W,ae){let le;const[ue,Ie,I]=hV(W,ae);le=mp(ue.reverse(),"beforeRouteLeave",W,ae);for(const w of ue)w.leaveGuards.forEach(j=>{le.push(zr(j,W,ae))});const D=P.bind(null,W,ae);return le.push(D),be(le).then(()=>{le=[];for(const w of s.list())le.push(zr(w,W,ae));return le.push(D),be(le)}).then(()=>{le=mp(Ie,"beforeRouteUpdate",W,ae);for(const w of Ie)w.updateGuards.forEach(j=>{le.push(zr(j,W,ae))});return le.push(D),be(le)}).then(()=>{le=[];for(const w of I)if(w.beforeEnter)if(Si(w.beforeEnter))for(const j of w.beforeEnter)le.push(zr(j,W,ae));else le.push(zr(w.beforeEnter,W,ae));return le.push(D),be(le)}).then(()=>(W.matched.forEach(w=>w.enterCallbacks={}),le=mp(I,"beforeRouteEnter",W,ae,b),le.push(D),be(le))).then(()=>{le=[];for(const w of o.list())le.push(zr(w,W,ae));return le.push(D),be(le)}).catch(w=>nr(w,8)?w:Promise.reject(w))}function N(W,ae,le){a.list().forEach(ue=>b(()=>ue(W,ae,le)))}function B(W,ae,le,ue,Ie){const I=x(W,ae);if(I)return I;const D=ae===Or,w=No?history.state:{};le&&(ue||D?r.replace(W.fullPath,gt({scroll:D&&w&&w.scroll},Ie)):r.push(W.fullPath,Ie)),l.value=W,re(W,ae,le,D),ve()}let H;function $(){H||(H=r.listen((W,ae,le)=>{if(!ge.listening)return;const ue=m(W),Ie=T(ue);if(Ie){M(gt(Ie,{replace:!0,force:!0}),ue).catch(al);return}c=ue;const I=l.value;No&&Nk(Ty(I.fullPath,le.delta),$h()),S(ue,I).catch(D=>nr(D,12)?D:nr(D,2)?(M(gt(y(D.to),{force:!0}),ue).then(w=>{nr(w,20)&&!le.delta&&le.type===zl.pop&&r.go(-1,!1)}).catch(al),Promise.reject()):(le.delta&&r.go(-le.delta,!1),Q(D,ue,I))).then(D=>{D=D||B(ue,I,!1),D&&(le.delta&&!nr(D,8)?r.go(-le.delta,!1):le.type===zl.pop&&nr(D,20)&&r.go(-1,!1)),N(ue,I,D)}).catch(al)}))}let ee=Da(),Z=Da(),te;function Q(W,ae,le){ve(W);const ue=Z.list();return ue.length?ue.forEach(Ie=>Ie(W,ae,le)):console.error(W),Promise.reject(W)}function pe(){return te&&l.value!==Or?Promise.resolve():new Promise((W,ae)=>{ee.add([W,ae])})}function ve(W){return te||(te=!W,$(),ee.list().forEach(([ae,le])=>W?le(W):ae()),ee.reset()),W}function re(W,ae,le,ue){const{scrollBehavior:Ie}=n;if(!No||!Ie)return Promise.resolve();const I=!le&&Uk(Ty(W.fullPath,0))||(ue||!le)&&history.state&&history.state.scroll||null;return ro().then(()=>Ie(W,ae,I)).then(D=>D&&Ok(D)).catch(D=>Q(D,W,ae))}const xe=W=>r.go(W);let ze;const se=new Set,ge={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:_,resolve:m,options:n,push:v,replace:E,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:pe,install(W){const ae=this;W.component("RouterLink",aV),W.component("RouterView",bT),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Bt(l)}),No&&!ze&&l.value===Or&&(ze=!0,v(r.location).catch(Ie=>{}));const le={};for(const Ie in Or)Object.defineProperty(le,Ie,{get:()=>l.value[Ie],enumerable:!0});W.provide(a_,ae),W.provide(xT,zx(le)),W.provide(_m,l);const ue=W.unmount;se.add(W),W.unmount=function(){se.delete(W),se.size<1&&(c=Or,H&&H(),H=null,l.value=Or,ze=!1,te=!1),ue()}}};function be(W){return W.reduce((ae,le)=>ae.then(()=>b(le)),Promise.resolve())}return ge}function hV(n,e){const t=[],i=[],r=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(n.matched.find(c=>sa(c,a))?i.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(c=>sa(c,l))||r.push(l))}return[t,i,r]}const dV=[{path:"/",name:"/",component:()=>Pi(()=>import("./index-CVCWG6Qt.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{layout:"default"}},{path:"/:all(.*)",name:"/[...all]",component:()=>Pi(()=>import("./_...all_-B1EyfvTX.js"),__vite__mapDeps([6,4]))},{path:"/audio",name:"/audio",component:()=>Pi(()=>import("./audio-BLslcr96.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Pi(()=>import("./image-CaSo5_Gm.js"),__vite__mapDeps([7,4,8]))}]},{path:"/queue",name:"/queue",component:()=>Pi(()=>import("./queue-CcwEu7p3.js"),__vite__mapDeps([9,2]))},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>Pi(()=>import("./filter-message-_oboN7tU.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Pi(()=>import("./delays-rlswmRCO.js"),__vite__mapDeps([10,1,2,3]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Pi(()=>import("./emotions-BcAqwDB1.js"),__vite__mapDeps([11,1,2]))},{path:"messages",name:"/test/queues/messages",component:()=>Pi(()=>import("./messages-BPjeJFph.js"),__vite__mapDeps([12,1,2]))}]}]}];var vm=(n=>(n.Myriam="Myriam",n.Beatrice="Beatrice",n.Camilla_KM="Camilla_KM",n.SallySunshine="Sally Sunshine",n.Annie="Annie",n.KawaiiAerisita="Kawaii Aerisita",n.Morioki="Morioki",n))(vm||{});const i4={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},Vy=["Myriam","Beatrice","Camilla_KM","Sally Sunshine","Annie","Kawaii Aerisita"],zy=["Morioki"],r4={en:Vy,"en-US":Vy,ja:zy,"ja-JP":zy},pV=lk("settings",()=>{const n=Pe(),e=tr("settings/language","en-US"),t=tr("settings/stage/view/model-renderer","2d"),i=tr("settings/credentials/openai-api-key",""),r=tr("settings/credentials/openai-api-base-url",""),s=tr("settings/credentials/elevenlabs-api-key",""),o=tr("settings/llm/openai/model",{id:"openai/gpt-3.5-turbo",name:"OpenAI GPT3.5 Turbo"}),a=tr("settings/audio/input","true"),l=ke(()=>{var h;return(h=n.value)==null?void 0:h.deviceId}),{audioInputs:c}=bU({constraints:{audio:!0},requestPermissions:!0}),u=tr("settings/llm/elevenlabs/voice/en",vm.Myriam),f=tr("settings/llm/elevenlabs/voice/ja",vm.Morioki);return it(a,h=>{h==="false"&&(n.value=void 0),h==="true"&&(n.value=c.value[0])}),ts(()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),it(c,()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),{openAiApiKey:i,openAiApiBaseURL:r,openAiModel:o,elevenLabsApiKey:s,language:e,stageView:t,isAudioInputOn:a,selectedAudioDevice:n,selectedAudioDeviceId:l,elevenlabsVoiceEnglish:u,elevenlabsVoiceJapanese:f}});/*!
|
3854 |
* shared v11.0.1
|
3855 |
* (c) 2024 kazuya kawaguchi
|
3856 |
* Released under the MIT License.
|
|
|
1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B2wn0_c0.js","assets/queues-CDqve01H.js","assets/queue-3TmkSyew.js","assets/index-D3OciMUq.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/index-3ndQV4V4.css","assets/_...all_-DuM_OW4Y.js","assets/image-D6d6zCjp.js","assets/image-BhuwcwI9.css","assets/queue-o1jzgfMT.js","assets/delays-DJ7dXd8O.js","assets/emotions-DSQfawhM.js","assets/messages-BAGUKUov.js"])))=>i.map(i=>d[i]);
|
2 |
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const XT="modulepreload",$T=function(n){return"/"+n},M_={},Pi=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(l=>{if(l=$T(l),l in M_)return;M_[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":XT,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};/**
|
3 |
* @vue/shared v3.5.13
|
4 |
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
3846 |
* pinia v2.3.0
|
3847 |
* (c) 2024 Eduardo San Martin Morote
|
3848 |
* @license MIT
|
3849 |
+
*/let rT;const Xh=n=>rT=n,sT=Symbol();function dm(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var ol;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(ol||(ol={}));function nk(){const n=Om(!0),e=n.run(()=>Pe({}));let t=[],i=[];const r=Hm({install(s){Xh(r),r._a=s,s.provide(sT,r),s.config.globalProperties.$pinia=r,i.forEach(o=>t.push(o)),i=[]},use(s){return!this._a&&!i3?i.push(s):t.push(s),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return r}const oT=()=>{};function by(n,e,t,i=oT){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&jf()&&Nm(r),r}function Lo(n,...e){n.slice().forEach(t=>{t(...e)})}const ik=n=>n(),Sy=Symbol(),hp=Symbol();function pm(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t],r=n[t];dm(r)&&dm(i)&&n.hasOwnProperty(t)&&!Et(i)&&!pr(i)?n[t]=pm(r,i):n[t]=i}return n}const rk=Symbol();function sk(n){return!dm(n)||!n.hasOwnProperty(rk)}const{assign:Ur}=Object;function ok(n){return!!(Et(n)&&n.effect)}function ak(n,e,t,i){const{state:r,actions:s,getters:o}=e,a=t.state.value[n];let l;function c(){a||(t.state.value[n]=r?r():{});const u=Wx(t.state.value[n]);return Ur(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Hm(ke(()=>{Xh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=aT(n,c,e,t,i,!0),l}function aT(n,e,t={},i,r,s){let o;const a=Ur({actions:{}},t),l={deep:!0};let c,u,f=[],h=[],d;const p=i.state.value[n];!s&&!p&&(i.state.value[n]={}),Pe({});let _;function g(P){let b;c=u=!1,typeof P=="function"?(P(i.state.value[n]),b={type:ol.patchFunction,storeId:n,events:d}):(pm(i.state.value[n],P),b={type:ol.patchObject,payload:P,storeId:n,events:d});const S=_=Symbol();ro().then(()=>{_===S&&(c=!0)}),u=!0,Lo(f,b,i.state.value[n])}const m=s?function(){const{state:b}=t,S=b?b():{};this.$patch(N=>{Ur(N,S)})}:oT;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(P,b="")=>{if(Sy in P)return P[hp]=b,P;const S=function(){Xh(i);const N=Array.from(arguments),B=[],H=[];function $(te){B.push(te)}function ee(te){H.push(te)}Lo(h,{args:N,name:S[hp],store:E,after:$,onError:ee});let Z;try{Z=P.apply(this&&this.$id===n?this:E,N)}catch(te){throw Lo(H,te),te}return Z instanceof Promise?Z.then(te=>(Lo(B,te),te)).catch(te=>(Lo(H,te),Promise.reject(te))):(Lo(B,Z),Z)};return S[Sy]=!0,S[hp]=b,S},v={_p:i,$id:n,$onAction:by.bind(null,h),$patch:g,$reset:m,$subscribe(P,b={}){const S=by(f,P,b.detached,()=>N()),N=o.run(()=>it(()=>i.state.value[n],B=>{(b.flush==="sync"?u:c)&&P({storeId:n,type:ol.direct,events:d},B)},Ur({},l,b)));return S},$dispose:y},E=oi(v);i._s.set(n,E);const M=(i._a&&i._a.runWithContext||ik)(()=>i._e.run(()=>(o=Om()).run(()=>e({action:x}))));for(const P in M){const b=M[P];if(Et(b)&&!ok(b)||pr(b))s||(p&&sk(b)&&(Et(b)?b.value=p[P]:pm(b,p[P])),i.state.value[n][P]=b);else if(typeof b=="function"){const S=x(b,P);M[P]=S,a.actions[P]=b}}return Ur(E,M),Ur(rt(E),M),Object.defineProperty(E,"$state",{get:()=>i.state.value[n],set:P=>{g(b=>{Ur(b,P)})}}),i._p.forEach(P=>{Ur(E,o.run(()=>P({store:E,app:i._a,pinia:i,options:a})))}),p&&s&&t.hydrate&&t.hydrate(E.$state,p),c=!0,u=!0,E}/*! #__NO_SIDE_EFFECTS__ */function lk(n,e,t){let i,r;const s=typeof e=="function";typeof n=="string"?(i=n,r=s?t:e):(r=n,i=n.id);function o(a,l){const c=$m();return a=a||(c?Bn(sT,null):null),a&&Xh(a),a=rT,a._s.has(i)||(s?aT(i,e,r,a):ak(i,r,a)),a._s.get(i)}return o.$id=i,o}function n4(n){{const e=rt(n),t={};for(const i in e){const r=e[i];r.effect?t[i]=ke({get:()=>n[i],set(s){n[i]=s}}):(Et(r)||pr(r))&&(t[i]=Xx(n,i))}return t}}const ck=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Pi(()=>import("./default-B-rPJ_1n.js"),[])})).forEach(([r,s])=>{let o=r.replace("/src/layouts/","").replace(".vue","");e[o]=s});function i(r,s=!0){return r.map(o=>{var a,l,c,u,f,h;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=i(o.children,!1)),s){if(!o.component&&((l=o.children)==null?void 0:l.find(p=>{var _;return(p.path===""||p.path==="/")&&((_=p.meta)==null?void 0:_.isLayout)})))return o;if(((c=o.meta)==null?void 0:c.layout)!==!1)return{path:o.path,component:e[((u=o.meta)==null?void 0:u.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:e[(h=o.meta)==null?void 0:h.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return i(n)};/*!
|
3850 |
* vue-router v4.5.0
|
3851 |
* (c) 2024 Eduardo San Martin Morote
|
3852 |
* @license MIT
|
3853 |
+
*/const No=typeof document<"u";function lT(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function uk(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&lT(n.default)}const gt=Object.assign;function dp(n,e){const t={};for(const i in e){const r=e[i];t[i]=Si(r)?r.map(n):n(r)}return t}const al=()=>{},Si=Array.isArray,cT=/#/g,fk=/&/g,hk=/\//g,dk=/=/g,pk=/\?/g,uT=/\+/g,mk=/%5B/g,gk=/%5D/g,fT=/%5E/g,_k=/%60/g,hT=/%7B/g,vk=/%7C/g,dT=/%7D/g,yk=/%20/g;function o_(n){return encodeURI(""+n).replace(vk,"|").replace(mk,"[").replace(gk,"]")}function xk(n){return o_(n).replace(hT,"{").replace(dT,"}").replace(fT,"^")}function mm(n){return o_(n).replace(uT,"%2B").replace(yk,"+").replace(cT,"%23").replace(fk,"%26").replace(_k,"`").replace(hT,"{").replace(dT,"}").replace(fT,"^")}function bk(n){return mm(n).replace(dk,"%3D")}function Sk(n){return o_(n).replace(cT,"%23").replace(pk,"%3F")}function Mk(n){return n==null?"":Sk(n).replace(hk,"%2F")}function Vl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const Ek=/\/$/,Tk=n=>n.replace(Ek,"");function pp(n,e,t="/"){let i,r={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),r=n(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=Rk(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:Vl(o)}}function wk(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function My(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function Ak(n,e,t){const i=e.matched.length-1,r=t.matched.length-1;return i>-1&&i===r&&sa(e.matched[i],t.matched[r])&&pT(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function sa(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function pT(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!Ck(n[t],e[t]))return!1;return!0}function Ck(n,e){return Si(n)?Ey(n,e):Si(e)?Ey(e,n):n===e}function Ey(n,e){return Si(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function Rk(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Or={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var zl;(function(n){n.pop="pop",n.push="push"})(zl||(zl={}));var ll;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ll||(ll={}));function Pk(n){if(!n)if(No){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Tk(n)}const Ik=/^[^#]+#/;function Lk(n,e){return n.replace(Ik,"#")+e}function Dk(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const $h=()=>({left:window.scrollX,top:window.scrollY});function Ok(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=Dk(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Ty(n,e){return(history.state?history.state.position-e:-1)+n}const gm=new Map;function Nk(n,e){gm.set(n,e)}function Uk(n){const e=gm.get(n);return gm.delete(n),e}let Fk=()=>location.protocol+"//"+location.host;function mT(n,e){const{pathname:t,search:i,hash:r}=e,s=n.indexOf("#");if(s>-1){let a=r.includes(n.slice(s))?n.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),My(l,"")}return My(t,n)+i+r}function Bk(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=mT(n,location),p=t.value,_=e.value;let g=0;if(h){if(t.value=d,e.value=h,o&&o===p){o=null;return}g=_?h.position-_.position:0}else i(d);r.forEach(m=>{m(t.value,p,{delta:g,type:zl.pop,direction:g?g>0?ll.forward:ll.back:ll.unknown})})};function l(){o=t.value}function c(h){r.push(h);const d=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(gt({},h.state,{scroll:$h()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function wy(n,e,t,i=!1,r=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:r?$h():null}}function kk(n){const{history:e,location:t}=window,i={value:mT(n,t)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=n.indexOf("#"),h=f>-1?(t.host&&document.querySelector("base")?n:n.slice(f))+l:Fk()+n+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),t[u?"replace":"assign"](h)}}function o(l,c){const u=gt({},e.state,wy(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});s(l,u,!0),i.value=l}function a(l,c){const u=gt({},r.value,e.state,{forward:l,scroll:$h()});s(u.current,u,!0);const f=gt({},wy(i.value,l,null),{position:u.position+1},c);s(l,f,!1),i.value=l}return{location:i,state:r,push:a,replace:o}}function Vk(n){n=Pk(n);const e=kk(n),t=Bk(n,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const r=gt({location:"",base:n,go:i,createHref:Lk.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function zk(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),Vk(n)}function Hk(n){return typeof n=="string"||n&&typeof n=="object"}function gT(n){return typeof n=="string"||typeof n=="symbol"}const _T=Symbol("");var Ay;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Ay||(Ay={}));function oa(n,e){return gt(new Error,{type:n,[_T]:!0},e)}function nr(n,e){return n instanceof Error&&_T in n&&(e==null||!!(n.type&e))}const Cy="[^/]+?",Gk={sensitive:!1,strict:!1,start:!0,end:!0},Wk=/[.+*?^${}()[\]/\\]/g;function Xk(n,e){const t=gt({},Gk,e),i=[];let r=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(t.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(Wk,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:_,optional:g,regexp:m}=h;s.push({name:p,repeatable:_,optional:g});const y=m||Cy;if(y!==Cy){d+=10;try{new RegExp(`(${y})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+v.message)}}let x=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(x=g&&c.length<2?`(?:/${x})`:"/"+x),g&&(x+="?"),r+=x,d+=20,g&&(d+=-8),_&&(d+=-20),y===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(t.strict&&t.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,t.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=s[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of n){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:_,optional:g}=d,m=p in c?c[p]:"";if(Si(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Si(m)?m.join("/"):m;if(!y)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:i,keys:s,parse:a,stringify:l}}function $k(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function vT(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=$k(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(Ry(i))return 1;if(Ry(r))return-1}return r.length-i.length}function Ry(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const qk={type:0,value:""},Yk=/[a-zA-Z0-9_]/;function jk(n){if(!n)return[[]];if(n==="/")return[[qk]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(d){throw new Error(`ERR (${t})/"${c}": ${d}`)}let t=0,i=t;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),t=1):h();break;case 4:h(),t=i;break;case 1:l==="("?t=2:Yk.test(l)?h():(f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function Kk(n,e,t){const i=Xk(jk(n.path),t),r=gt(i,{record:n,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function Zk(n,e){const t=[],i=new Map;e=Dy({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=Iy(f);_.aliasOf=d&&d.record;const g=Dy(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of v)m.push(Iy(gt({},_,{components:d?d.record.components:_.components,path:E,aliasOf:d?d.record:_})))}let y,x;for(const v of m){const{path:E}=v;if(h&&E[0]!=="/"){const T=h.record.path,M=T[T.length-1]==="/"?"":"/";v.path=h.record.path+(E&&M+E)}if(y=Kk(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!Ly(y)&&o(f.name)),yT(y)&&l(y),_.children){const T=_.children;for(let M=0;M<T.length;M++)s(T[M],y,d&&d.children[M])}d=d||y}return x?()=>{o(x)}:al}function o(f){if(gT(f)){const h=i.get(f);h&&(i.delete(f),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(f);h>-1&&(t.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return t}function l(f){const h=eV(f,t);t.splice(h,0,f),f.record.name&&!Ly(f)&&i.set(f.record.name,f)}function c(f,h){let d,p={},_,g;if("name"in f&&f.name){if(d=i.get(f.name),!d)throw oa(1,{location:f});g=d.record.name,p=gt(Py(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&Py(f.params,d.keys.map(x=>x.name))),_=d.stringify(p)}else if(f.path!=null)_=f.path,d=t.find(x=>x.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=h.name?i.get(h.name):t.find(x=>x.re.test(h.path)),!d)throw oa(1,{location:f,currentLocation:h});g=d.record.name,p=gt({},h.params,f.params),_=d.stringify(p)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:_,params:p,matched:m,meta:Qk(m)}}n.forEach(f=>s(f));function u(){t.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function Py(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function Iy(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:Jk(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Jk(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function Ly(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function Qk(n){return n.reduce((e,t)=>gt(e,t.meta),{})}function Dy(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function eV(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;vT(n,e[s])<0?i=s:t=s+1}const r=tV(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function tV(n){let e=n;for(;e=e.parent;)if(yT(e)&&vT(n,e)===0)return e}function yT({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function nV(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(uT," "),o=s.indexOf("="),a=Vl(o<0?s:s.slice(0,o)),l=o<0?null:Vl(s.slice(o+1));if(a in e){let c=e[a];Si(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function Oy(n){let e="";for(let t in n){const i=n[t];if(t=bk(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Si(i)?i.map(s=>s&&mm(s)):[i&&mm(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function iV(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Si(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const rV=Symbol(""),Ny=Symbol(""),a_=Symbol(""),xT=Symbol(""),_m=Symbol("");function Da(){let n=[];function e(i){return n.push(i),()=>{const r=n.indexOf(i);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function zr(n,e,t,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(oa(4,{from:t,to:e})):h instanceof Error?l(h):Hk(h)?l(oa(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>n.call(i&&i.instances[r],e,t,c));let f=Promise.resolve(u);n.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function mp(n,e,t,i,r=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(lT(l)){const u=(l.__vccOpts||l)[e];u&&s.push(zr(u,t,i,o,a,r))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=uk(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&zr(d,t,i,o,a,r)()}))}}return s}function Uy(n){const e=Bn(a_),t=Bn(xT),i=ke(()=>{const l=Bt(n.to);return e.resolve(l)}),r=ke(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],f=t.matched;if(!u||!f.length)return-1;const h=f.findIndex(sa.bind(null,u));if(h>-1)return h;const d=Fy(l[c-2]);return c>1&&Fy(u)===d&&f[f.length-1].path!==d?f.findIndex(sa.bind(null,l[c-2])):h}),s=ke(()=>r.value>-1&&cV(t.params,i.value.params)),o=ke(()=>r.value>-1&&r.value===t.matched.length-1&&pT(t.params,i.value.params));function a(l={}){if(lV(l)){const c=e[Bt(n.replace)?"replace":"push"](Bt(n.to)).catch(al);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:ke(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function sV(n){return n.length===1?n[0]:n}const oV=Vi({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"}},useLink:Uy,setup(n,{slots:e}){const t=oi(Uy(n)),{options:i}=Bn(a_),r=ke(()=>({[By(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[By(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&sV(e.default(t));return n.custom?s:vr("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),aV=oV;function lV(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function cV(n,e){for(const t in e){const i=e[t],r=n[t];if(typeof i=="string"){if(i!==r)return!1}else if(!Si(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function Fy(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const By=(n,e,t)=>n??e??t,uV=Vi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=Bn(_m),r=ke(()=>n.route||i.value),s=Bn(Ny,0),o=ke(()=>{let c=Bt(s);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=ke(()=>r.value.matched[o.value]);Xr(Ny,ke(()=>o.value+1)),Xr(rV,a),Xr(_m,r);const l=Pe();return it(()=>[l.value,a.value,n.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!sa(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=n.name,f=a.value,h=f&&f.components[u];if(!h)return ky(t.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,g=vr(h,gt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return ky(t.default,{Component:g,route:c})||g}}});function ky(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const bT=uV;function fV(n){const e=Zk(n.routes,n),t=n.parseQuery||nV,i=n.stringifyQuery||Oy,r=n.history,s=Da(),o=Da(),a=Da(),l=wn(Or);let c=Or;No&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=dp.bind(null,W=>""+W),f=dp.bind(null,Mk),h=dp.bind(null,Vl);function d(W,ae){let le,ue;return gT(W)?(le=e.getRecordMatcher(W),ue=ae):ue=W,e.addRoute(ue,le)}function p(W){const ae=e.getRecordMatcher(W);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function m(W,ae){if(ae=gt({},ae||l.value),typeof W=="string"){const w=pp(t,W,ae.path),j=e.resolve({path:w.path},ae),G=r.createHref(w.fullPath);return gt(w,j,{params:h(j.params),hash:Vl(w.hash),redirectedFrom:void 0,href:G})}let le;if(W.path!=null)le=gt({},W,{path:pp(t,W.path,ae.path).path});else{const w=gt({},W.params);for(const j in w)w[j]==null&&delete w[j];le=gt({},W,{params:f(w)}),ae.params=f(ae.params)}const ue=e.resolve(le,ae),Ie=W.hash||"";ue.params=u(h(ue.params));const I=wk(i,gt({},W,{hash:xk(Ie),path:ue.path})),D=r.createHref(I);return gt({fullPath:I,hash:Ie,query:i===Oy?iV(W.query):W.query||{}},ue,{redirectedFrom:void 0,href:D})}function y(W){return typeof W=="string"?pp(t,W,l.value.path):gt({},W)}function x(W,ae){if(c!==W)return oa(8,{from:ae,to:W})}function v(W){return M(W)}function E(W){return v(gt(y(W),{replace:!0}))}function T(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let ue=typeof le=="function"?le(W):le;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=y(ue):{path:ue},ue.params={}),gt({query:W.query,hash:W.hash,params:ue.path!=null?{}:W.params},ue)}}function M(W,ae){const le=c=m(W),ue=l.value,Ie=W.state,I=W.force,D=W.replace===!0,w=T(le);if(w)return M(gt(y(w),{state:typeof w=="object"?gt({},Ie,w.state):Ie,force:I,replace:D}),ae||le);const j=le;j.redirectedFrom=ae;let G;return!I&&Ak(i,ue,le)&&(G=oa(16,{to:j,from:ue}),re(ue,ue,!0,!1)),(G?Promise.resolve(G):S(j,ue)).catch(q=>nr(q)?nr(q,2)?q:ve(q):Q(q,j,ue)).then(q=>{if(q){if(nr(q,2))return M(gt({replace:D},y(q.to),{state:typeof q.to=="object"?gt({},Ie,q.to.state):Ie,force:I}),ae||j)}else q=B(j,ue,!0,D,Ie);return N(j,ue,q),q})}function P(W,ae){const le=x(W,ae);return le?Promise.reject(le):Promise.resolve()}function b(W){const ae=se.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function S(W,ae){let le;const[ue,Ie,I]=hV(W,ae);le=mp(ue.reverse(),"beforeRouteLeave",W,ae);for(const w of ue)w.leaveGuards.forEach(j=>{le.push(zr(j,W,ae))});const D=P.bind(null,W,ae);return le.push(D),be(le).then(()=>{le=[];for(const w of s.list())le.push(zr(w,W,ae));return le.push(D),be(le)}).then(()=>{le=mp(Ie,"beforeRouteUpdate",W,ae);for(const w of Ie)w.updateGuards.forEach(j=>{le.push(zr(j,W,ae))});return le.push(D),be(le)}).then(()=>{le=[];for(const w of I)if(w.beforeEnter)if(Si(w.beforeEnter))for(const j of w.beforeEnter)le.push(zr(j,W,ae));else le.push(zr(w.beforeEnter,W,ae));return le.push(D),be(le)}).then(()=>(W.matched.forEach(w=>w.enterCallbacks={}),le=mp(I,"beforeRouteEnter",W,ae,b),le.push(D),be(le))).then(()=>{le=[];for(const w of o.list())le.push(zr(w,W,ae));return le.push(D),be(le)}).catch(w=>nr(w,8)?w:Promise.reject(w))}function N(W,ae,le){a.list().forEach(ue=>b(()=>ue(W,ae,le)))}function B(W,ae,le,ue,Ie){const I=x(W,ae);if(I)return I;const D=ae===Or,w=No?history.state:{};le&&(ue||D?r.replace(W.fullPath,gt({scroll:D&&w&&w.scroll},Ie)):r.push(W.fullPath,Ie)),l.value=W,re(W,ae,le,D),ve()}let H;function $(){H||(H=r.listen((W,ae,le)=>{if(!ge.listening)return;const ue=m(W),Ie=T(ue);if(Ie){M(gt(Ie,{replace:!0,force:!0}),ue).catch(al);return}c=ue;const I=l.value;No&&Nk(Ty(I.fullPath,le.delta),$h()),S(ue,I).catch(D=>nr(D,12)?D:nr(D,2)?(M(gt(y(D.to),{force:!0}),ue).then(w=>{nr(w,20)&&!le.delta&&le.type===zl.pop&&r.go(-1,!1)}).catch(al),Promise.reject()):(le.delta&&r.go(-le.delta,!1),Q(D,ue,I))).then(D=>{D=D||B(ue,I,!1),D&&(le.delta&&!nr(D,8)?r.go(-le.delta,!1):le.type===zl.pop&&nr(D,20)&&r.go(-1,!1)),N(ue,I,D)}).catch(al)}))}let ee=Da(),Z=Da(),te;function Q(W,ae,le){ve(W);const ue=Z.list();return ue.length?ue.forEach(Ie=>Ie(W,ae,le)):console.error(W),Promise.reject(W)}function pe(){return te&&l.value!==Or?Promise.resolve():new Promise((W,ae)=>{ee.add([W,ae])})}function ve(W){return te||(te=!W,$(),ee.list().forEach(([ae,le])=>W?le(W):ae()),ee.reset()),W}function re(W,ae,le,ue){const{scrollBehavior:Ie}=n;if(!No||!Ie)return Promise.resolve();const I=!le&&Uk(Ty(W.fullPath,0))||(ue||!le)&&history.state&&history.state.scroll||null;return ro().then(()=>Ie(W,ae,I)).then(D=>D&&Ok(D)).catch(D=>Q(D,W,ae))}const xe=W=>r.go(W);let ze;const se=new Set,ge={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:_,resolve:m,options:n,push:v,replace:E,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:pe,install(W){const ae=this;W.component("RouterLink",aV),W.component("RouterView",bT),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Bt(l)}),No&&!ze&&l.value===Or&&(ze=!0,v(r.location).catch(Ie=>{}));const le={};for(const Ie in Or)Object.defineProperty(le,Ie,{get:()=>l.value[Ie],enumerable:!0});W.provide(a_,ae),W.provide(xT,zx(le)),W.provide(_m,l);const ue=W.unmount;se.add(W),W.unmount=function(){se.delete(W),se.size<1&&(c=Or,H&&H(),H=null,l.value=Or,ze=!1,te=!1),ue()}}};function be(W){return W.reduce((ae,le)=>ae.then(()=>b(le)),Promise.resolve())}return ge}function hV(n,e){const t=[],i=[],r=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(n.matched.find(c=>sa(c,a))?i.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(c=>sa(c,l))||r.push(l))}return[t,i,r]}const dV=[{path:"/",name:"/",component:()=>Pi(()=>import("./index-B2wn0_c0.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{layout:"default"}},{path:"/:all(.*)",name:"/[...all]",component:()=>Pi(()=>import("./_...all_-DuM_OW4Y.js"),__vite__mapDeps([6,4]))},{path:"/audio",name:"/audio",component:()=>Pi(()=>import("./audio-CVDZZgqI.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Pi(()=>import("./image-D6d6zCjp.js"),__vite__mapDeps([7,4,8]))}]},{path:"/queue",name:"/queue",component:()=>Pi(()=>import("./queue-o1jzgfMT.js"),__vite__mapDeps([9,2]))},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>Pi(()=>import("./filter-message-NIByHKNp.js"),[])},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Pi(()=>import("./delays-DJ7dXd8O.js"),__vite__mapDeps([10,1,2,3]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Pi(()=>import("./emotions-DSQfawhM.js"),__vite__mapDeps([11,1,2]))},{path:"messages",name:"/test/queues/messages",component:()=>Pi(()=>import("./messages-BAGUKUov.js"),__vite__mapDeps([12,1,2]))}]}]}];var vm=(n=>(n.Myriam="Myriam",n.Beatrice="Beatrice",n.Camilla_KM="Camilla_KM",n.SallySunshine="Sally Sunshine",n.Annie="Annie",n.KawaiiAerisita="Kawaii Aerisita",n.Morioki="Morioki",n))(vm||{});const i4={Myriam:"lNxY9WuCBCZCISASyJ55",Beatrice:"KAsXoQDshjF6ehsWa1mF",Camilla_KM:"dLhSyo03JRp5WkGpUlz1","Sally Sunshine":"qswttdunP3b44zVZKMRB",Annie:"AfA1PA0ldViH0DA6pbml","Kawaii Aerisita":"vGQNBgLaiM3EdZtxIiuY",Morioki:"8EkOjt4xTPGMclNlh1pk"},Vy=["Myriam","Beatrice","Camilla_KM","Sally Sunshine","Annie","Kawaii Aerisita"],zy=["Morioki"],r4={en:Vy,"en-US":Vy,ja:zy,"ja-JP":zy},pV=lk("settings",()=>{const n=Pe(),e=tr("settings/language","en-US"),t=tr("settings/stage/view/model-renderer","2d"),i=tr("settings/credentials/openai-api-key",""),r=tr("settings/credentials/openai-api-base-url",""),s=tr("settings/credentials/elevenlabs-api-key",""),o=tr("settings/llm/openai/model",{id:"openai/gpt-3.5-turbo",name:"OpenAI GPT3.5 Turbo"}),a=tr("settings/audio/input","true"),l=ke(()=>{var h;return(h=n.value)==null?void 0:h.deviceId}),{audioInputs:c}=bU({constraints:{audio:!0},requestPermissions:!0}),u=tr("settings/llm/elevenlabs/voice/en",vm.Myriam),f=tr("settings/llm/elevenlabs/voice/ja",vm.Morioki);return it(a,h=>{h==="false"&&(n.value=void 0),h==="true"&&(n.value=c.value[0])}),ts(()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),it(c,()=>{a.value==="true"&&!n.value&&(n.value=c.value[0])}),{openAiApiKey:i,openAiApiBaseURL:r,openAiModel:o,elevenLabsApiKey:s,language:e,stageView:t,isAudioInputOn:a,selectedAudioDevice:n,selectedAudioDeviceId:l,elevenlabsVoiceEnglish:u,elevenlabsVoiceJapanese:f}});/*!
|
3854 |
* shared v11.0.1
|
3855 |
* (c) 2024 kazuya kawaguchi
|
3856 |
* Released under the MIT License.
|
assets/{messages-BPjeJFph.js → messages-BAGUKUov.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as m,_ as g,l as _}from"./queues-
|
|
|
1 |
+
import{u as m,_ as g,l as _}from"./queues-CDqve01H.js";import{u as v}from"./queue-3TmkSyew.js";import{d as b,h as t,o as l,c as u,z as e,a as x,aR as c,bC as h,bD as k}from"./index-DFlevWxx.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},S={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},y={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},T=b({__name:"messages",setup(C){const s=t(""),d=t([]),o=t(!1),f=v({handlers:[async i=>{d.value.push(i.data)}]}),r=m(f);async function p(){o.value=!0,r.add(s.value),r.add(_),s.value="",o.value=!1}return(i,n)=>(l(),u("div",z,[e("div",w,[x(g,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=a=>s.value=a),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),e("button",S,c(o.value?"Processing...":"Send"),1)]),e("div",V,[e("div",y,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(l(!0),u(h,null,k(d.value,a=>(l(),u("div",{key:a},[e("div",null,c(a),1)]))),128))])])]))}});export{T as default};
|
assets/{queue-CJv-vPuJ.js → queue-3TmkSyew.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{h as l}from"./index-
|
|
|
1 |
+
import{h as l}from"./index-DFlevWxx.js";function m(f){const t=l([]),a=l(!1),d={add:[],pick:[],processing:[],error:[],processed:[],done:[]},s={};function c(n,e){d[n].push(e)}function r(n,...e){d[n].forEach(i=>{i(...e)})}function h(n,e){s[n]=s[n]||[],s[n].push(e)}function p(n,...e){(s[n]||[]).forEach(i=>{i(...e)})}async function v(n){t.value.push(n),r("add",n)}function E(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=E();if(n){a.value=!0;for(const e of f.handlers){r("processing",n,e);try{const o=await e({data:n,itemsToBeProcessed:()=>t.value.length,emit:p});r("processed",n,o,e)}catch(o){r("error",n,o,e);continue}}a.value=!1,r("done",n),t.value.length>0&&u()}}return c("add",u),c("done",u),{add:v,on:c,onHandlerEvent:h,queue:t}}export{m as u};
|
assets/{queue-CcwEu7p3.js → queue-o1jzgfMT.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as o}from"./queue-
|
|
|
1 |
+
import{u as o}from"./queue-3TmkSyew.js";import{d as v,h,p as k,o as w,c as g,z as I}from"./index-DFlevWxx.js";const Q=v({__name:"queue",setup(P){function i(e){return new Promise(a=>setTimeout(a,e))}const n=h(""),d=o({handlers:[async e=>{console.log("ready to play speech audio for",e)}]}),u=o({handlers:[async e=>{console.log("ready to stream speech audio for",e),d.add(e.data)}]}),c=o({handlers:[async e=>{const a=[".","?","!"];let s=!1;for(const t of a){if(!e.data.includes(t))continue;const r=e.data.indexOf(t),p=e.data.slice(0,r+1),y=e.data.slice(r+1);n.value+=p,u.add(n.value.trim()),n.value=y,s=!0}s||(n.value+=e.data)}]}),l=["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","?"];async function f(){for(const e of l)await i(100),c.add(e)}async function m(){f()}return k(()=>{m()}),(e,a)=>(w(),g("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
|
assets/{queues-oLE3rsxt.js → queues-CDqve01H.js}
RENAMED
@@ -1,2 +1,2 @@
|
|
1 |
-
import{d as v,aO as p,aP as _,h as d,p as O,B as y,bA as h,o as g,c as k,n as A,bL as N}from"./index-
|
2 |
${a.value.substring(T)}`,i.value.height="0",N().then(()=>{e.value&&(e.value.selectionStart=e.value.selectionEnd=E+1,i.value.height=`${e.value.scrollHeight}px`)})}else s.code==="Enter"&&(s.preventDefault(),t("submit",a.value))}return O(()=>{e.value&&(i.value.height=`${e.value.scrollHeight}px`)}),(s,r)=>y((g(),k("textarea",{ref_key:"textareaRef",ref:e,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),style:A(i.value),onInput:u,onKeydown:M},null,36)),[[h,a.value]])}});var m=(n=>(n.Happy="<|EMOTE_HAPPY|>",n.Sad="<|EMOTE_SAD|>",n.Angry="<|EMOTE_ANGRY|>",n.Think="<|EMOTE_THINK|>",n.Surprise="<|EMOTE_SURPRISE|>",n.Awkward="<|EMOTE_AWKWARD|>",n.Question="<|EMOTE_QUESTION|>",n))(m||{});const f=Object.values(m),S="Tap",w="EmotionSad",D="Tap@Body",R="FlickDown",I="Flick",x="Flick",H="Flick@Body",U={"<|EMOTE_HAPPY|>":S,"<|EMOTE_SAD|>":w,"<|EMOTE_ANGRY|>":D,"<|EMOTE_THINK|>":I,"<|EMOTE_SURPRISE|>":x,"<|EMOTE_AWKWARD|>":R,"<|EMOTE_QUESTION|>":H},Q={"<|EMOTE_HAPPY|>":"happy","<|EMOTE_SAD|>":"sad","<|EMOTE_ANGRY|>":"angry","<|EMOTE_THINK|>":void 0,"<|EMOTE_SURPRISE|>":"surprised","<|EMOTE_AWKWARD|>":void 0,"<|EMOTE_QUESTION|>":void 0},b="<|llm_inference_end|>";function B(n){function o(t){for(const a of f)if(t.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return c({handlers:[async t=>{if(f.includes(t.data)){t.emit("emotion",t.data),await n.add(t.data);return}{const{ok:a,emotion:e}=o(t.data);a&&(t.emit("emotion",e),await n.add(e))}}]})}function L(){function n(t){if(!/<\|DELAY:\d+\|>/i.test(t))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(t),e=a==null?void 0:a[1];if(!e)return{ok:!1,delay:0};const i=Number.parseFloat(e);return i<=0||Number.isNaN(i)?{ok:!0,delay:0}:{ok:!0,delay:i}}function o(t){return new Promise(a=>setTimeout(a,t))}return c({handlers:[async t=>{const{ok:a,delay:e}=n(t.data);a&&(t.emit("delay",e),await o(e*1e3))}]})}function V(n){const o=d("");return c({handlers:[async t=>{if(t.data===b){const e=o.value.trim();e&&await n.add(e),o.value="";return}const a=/[.?!]/;for(o.value+=t.data;o.value;){const e=a.exec(o.value);if(!e||typeof e.index>"u")break;const i=o.value.slice(0,e.index+1),u=o.value.slice(e.index+1);await n.add(i),o.value=u}}]})}export{x as E,Y as _,w as a,D as b,S as c,R as d,H as e,I as f,f as g,B as h,L as i,Q as j,U as k,b as l,V as u};
|
|
|
1 |
+
import{d as v,aO as p,aP as _,h as d,p as O,B as y,bA as h,o as g,c as k,n as A,bL as N}from"./index-DFlevWxx.js";import{u as c}from"./queue-3TmkSyew.js";const Y=v({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:p(["submit"],["update:modelValue"]),setup(n,{emit:o}){const t=o,a=_(n,"modelValue"),e=d(),i=d({height:"auto",overflowY:"hidden"});function u(s){s.target instanceof HTMLTextAreaElement&&(s.target.style.height="auto",s.target.style.height=`${s.target.scrollHeight}px`)}function M(s){var r,l;if(s.target instanceof HTMLTextAreaElement)if(s.code==="Enter"&&s.shiftKey){s.preventDefault();const E=(r=s.target)==null?void 0:r.selectionStart,T=(l=s.target)==null?void 0:l.selectionEnd;a.value=`${a.value.substring(0,E)}
|
2 |
${a.value.substring(T)}`,i.value.height="0",N().then(()=>{e.value&&(e.value.selectionStart=e.value.selectionEnd=E+1,i.value.height=`${e.value.scrollHeight}px`)})}else s.code==="Enter"&&(s.preventDefault(),t("submit",a.value))}return O(()=>{e.value&&(i.value.height=`${e.value.scrollHeight}px`)}),(s,r)=>y((g(),k("textarea",{ref_key:"textareaRef",ref:e,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),style:A(i.value),onInput:u,onKeydown:M},null,36)),[[h,a.value]])}});var m=(n=>(n.Happy="<|EMOTE_HAPPY|>",n.Sad="<|EMOTE_SAD|>",n.Angry="<|EMOTE_ANGRY|>",n.Think="<|EMOTE_THINK|>",n.Surprise="<|EMOTE_SURPRISE|>",n.Awkward="<|EMOTE_AWKWARD|>",n.Question="<|EMOTE_QUESTION|>",n))(m||{});const f=Object.values(m),S="Tap",w="EmotionSad",D="Tap@Body",R="FlickDown",I="Flick",x="Flick",H="Flick@Body",U={"<|EMOTE_HAPPY|>":S,"<|EMOTE_SAD|>":w,"<|EMOTE_ANGRY|>":D,"<|EMOTE_THINK|>":I,"<|EMOTE_SURPRISE|>":x,"<|EMOTE_AWKWARD|>":R,"<|EMOTE_QUESTION|>":H},Q={"<|EMOTE_HAPPY|>":"happy","<|EMOTE_SAD|>":"sad","<|EMOTE_ANGRY|>":"angry","<|EMOTE_THINK|>":void 0,"<|EMOTE_SURPRISE|>":"surprised","<|EMOTE_AWKWARD|>":void 0,"<|EMOTE_QUESTION|>":void 0},b="<|llm_inference_end|>";function B(n){function o(t){for(const a of f)if(t.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return c({handlers:[async t=>{if(f.includes(t.data)){t.emit("emotion",t.data),await n.add(t.data);return}{const{ok:a,emotion:e}=o(t.data);a&&(t.emit("emotion",e),await n.add(e))}}]})}function L(){function n(t){if(!/<\|DELAY:\d+\|>/i.test(t))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(t),e=a==null?void 0:a[1];if(!e)return{ok:!1,delay:0};const i=Number.parseFloat(e);return i<=0||Number.isNaN(i)?{ok:!0,delay:0}:{ok:!0,delay:i}}function o(t){return new Promise(a=>setTimeout(a,t))}return c({handlers:[async t=>{const{ok:a,delay:e}=n(t.data);a&&(t.emit("delay",e),await o(e*1e3))}]})}function V(n){const o=d("");return c({handlers:[async t=>{if(t.data===b){const e=o.value.trim();e&&await n.add(e),o.value="";return}const a=/[.?!]/;for(o.value+=t.data;o.value;){const e=a.exec(o.value);if(!e||typeof e.index>"u")break;const i=o.value.slice(0,e.index+1),u=o.value.slice(e.index+1);await n.add(i),o.value=u}}]})}export{x as E,Y as _,w as a,D as b,S as c,R as d,H as e,I as f,f as g,B as h,L as i,Q as j,U as k,b as l,V as u};
|
index.html
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
})()
|
19 |
</script>
|
20 |
<script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
|
21 |
-
<script type="module" crossorigin src="/assets/index-
|
22 |
<link rel="stylesheet" crossorigin href="/assets/index-CZB12GLp.css">
|
23 |
</head>
|
24 |
<body class="font-sans">
|
|
|
18 |
})()
|
19 |
</script>
|
20 |
<script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
|
21 |
+
<script type="module" crossorigin src="/assets/index-DFlevWxx.js"></script>
|
22 |
<link rel="stylesheet" crossorigin href="/assets/index-CZB12GLp.css">
|
23 |
</head>
|
24 |
<body class="font-sans">
|