Commit
·
34be5f2
1
Parent(s):
7d70690
release: build ff807ffa5163d8d2f031c66b85b267690f03799b
Browse files- assets/Collapsable.vue_vue_type_script_setup_true_lang-BAn-FpqP.js +1 -0
- assets/HeaderLink.vue_vue_type_script_setup_true_lang-DetAtGCq.js +1 -0
- assets/MobileInteractiveArea-BA62G2rz.css +1 -0
- assets/{route-block-Dyzmoxo6.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C4nXpcOG.js} +0 -0
- assets/Stage-BtyfZEJn.css +1 -0
- assets/Stage-CtldNuCu.css +0 -1
- assets/{Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js → Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js} +0 -0
- assets/_...all_-Byt-Dpcd.js +1 -0
- assets/_...all_-CfQ9YWFG.js +0 -1
- assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
- assets/{audio-jmwE_vmT.js → audio-qIlIXqnz.js} +1 -1
- assets/consciousness-CuueMjqK.js +1 -0
- assets/default-C4Jo0M28.js +1 -0
- assets/default-DIOpF1v5.js +0 -1
- assets/default-node-CtWic_bH.js +0 -2
- assets/default-node-Cy1ku7V-.js +2 -0
- assets/delays-Pjh8Z-_n.js +0 -1
- assets/delays-i_JIYB-x.js +1 -0
- assets/emotions-B0c4cWLu.js +0 -1
- assets/emotions-DklqG3pM.js +1 -0
- assets/emotions-sIG6j-cd.js +1 -0
- assets/factorio-P3v2tIeq.png +3 -0
- assets/{filter-message-dX7oUgPr.js → filter-message-CVkoCPbu.js} +1 -1
- assets/image-BGobVwYP.js +0 -2
- assets/image-D9a9b5Cf.js +2 -0
- assets/index-Blexdd71.js +0 -1
- assets/index-C2WA6Lb4.js +1 -0
- assets/index-CIQQshez.js +1 -0
- assets/index-CM0xiqf1.js +1 -0
- assets/{index-DSsTE9Un.js → index-D-tfxwlq.js} +1 -1
- assets/index-DNAD4LwH.css +0 -0
- assets/{index-CNzZZkJC.js → index-DZ5lGleA.js} +0 -0
- assets/index-Dl9xD-MO.js +1 -0
- assets/index-OlSna3rY.js +1 -0
- assets/index-fsj6M-Hz.js +1 -0
- assets/index-oxYDtIE-.css +0 -0
- assets/messages-C8V3xXAE.js +1 -0
- assets/messages-DZlu7Cca.js +0 -1
- assets/openrouter-BBeUx_1d.js +1 -0
- assets/providers-CNgYktmt.js +1 -0
- assets/{queue-BVxfxn-s.js → queue-ZFpHmuhF.js} +1 -1
- assets/{queue-Dg46AAvh.js → queue-g1N1d7OX.js} +1 -1
- assets/queues-CN_SgnPR.js +2 -0
- assets/route-block-B_A1xBdJ.js +1 -0
- assets/route-block-C2Qj5N7z.css +0 -1
- assets/stage-BNXQcg1K.js +1 -0
- assets/v2-B3PKMbLG.js +1 -0
- assets/v2-PzbfBEqP.js +0 -1
- index.html +3 -3
assets/Collapsable.vue_vue_type_script_setup_true_lang-BAn-FpqP.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as v,m as C,o as T,T as k,p as B,f,ce as E,cf as W,av as V,c as _,b as x,c8 as m,c9 as L,k as M,bP as $,a as h,I as N,t as b}from"./index-DZ5lGleA.js";const n="0px",P=v({__name:"TransitionVertical",props:{duration:{default:250},easingEnter:{default:"ease-in-out"},easingLeave:{default:"ease-in-out"},opacityClosed:{default:0},opacityOpened:{default:1}},setup(u){const i=u;function s(t){return{height:t.style.height,width:t.style.width,position:t.style.position,visibility:t.style.visibility,overflow:t.style.overflow,paddingTop:t.style.paddingTop,paddingBottom:t.style.paddingBottom,borderTopWidth:t.style.borderTopWidth,borderBottomWidth:t.style.borderBottomWidth,marginTop:t.style.marginTop,marginBottom:t.style.marginBottom}}function c(t,o){const{width:e}=getComputedStyle(t);t.style.width=e,t.style.position="absolute",t.style.visibility="hidden",t.style.height="";const{height:a}=getComputedStyle(t);return t.style.width=o.width,t.style.position=o.position,t.style.visibility=o.visibility,t.style.height=n,t.style.overflow="hidden",o.height&&o.height!==n?o.height:a}function r(t,o,e,a,l){const p=t.animate(a,l);t.style.height=o.height,p.onfinish=()=>{t.style.overflow=o.overflow,e()}}function d(t,o){return[{height:n,opacity:i.opacityClosed,paddingTop:n,paddingBottom:n,borderTopWidth:n,borderBottomWidth:n,marginTop:n,marginBottom:n},{height:t,opacity:i.opacityOpened,paddingTop:o.paddingTop,paddingBottom:o.paddingBottom,borderTopWidth:o.borderTopWidth,borderBottomWidth:o.borderBottomWidth,marginTop:o.marginTop,marginBottom:o.marginBottom}]}function y(t,o){const e=t,a=s(e),l=c(e,a),p=d(l,a),g={duration:i.duration,easing:i.easingEnter};r(e,a,o,p,g)}function w(t,o){const e=t,a=s(e),{height:l}=getComputedStyle(e);e.style.height=l,e.style.overflow="hidden";const p=d(l,a).reverse(),g={duration:i.duration,easing:i.easingLeave};r(e,a,o,p,g)}return(t,o)=>(T(),C(k,{css:!1,onEnter:y,onLeave:w},{default:B(()=>[f(t.$slots,"default")]),_:3}))}}),z={op50:""},O=v({__name:"Collapsable",props:E({default:{type:Boolean},label:null},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(u){const i=u,s=W(u,"modelValue");V(()=>{i.default!=null&&(s.value=!!i.default)});function c(r){return s.value=r,r}return(r,d)=>(T(),_("div",null,[f(r.$slots,"trigger",m(L({visible:s.value,setVisible:c})),()=>[h("button",{sticky:"","top-0":"","z-10":"",flex:"","items-center":"","justify-between":"",px2:"",py1:"","text-sm":"","backdrop-blur-xl":"",onClick:d[0]||(d[0]=y=>s.value=!s.value)},[h("span",null,b(i.label??"Collapsable"),1),d[1]||(d[1]=N()),h("span",z,b(s.value?"▲":"▼"),1)])]),x(P,null,{default:B(()=>[s.value?f(r.$slots,"default",m($({key:0},{visible:s.value,setVisible:c}))):M("",!0)]),_:3})]))}});export{O as _,P as a};
|
assets/HeaderLink.vue_vue_type_script_setup_true_lang-DetAtGCq.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as r,l,m as c,u as e,G as u,o as s,p as i,c as o,a as n}from"./index-DZ5lGleA.js";const k="/assets/logo-dark-CO0kwKsz.svg",p="/assets/logo-D6zeZTFl.svg",_=["src"],d=["src"],x=r({__name:"HeaderLink",setup(m){const a=l();return(g,t)=>(s(),c(e(u),{to:"/",flex:"~ 1","w-full":"","items-center":"","gap-2":"","px-2":"","text-nowrap":"","text-2xl":"","outline-none":""},{default:i(()=>[e(a)?(s(),o("img",{key:0,src:e(k),"h-8":"","w-8":""},null,8,_)):(s(),o("img",{key:1,src:e(p),"h-8":"","w-8":""},null,8,d)),t[0]||(t[0]=n("div",{"font-cute":""},[n("span",null,"アイリ")],-1))]),_:1}))}});export{x as _};
|
assets/MobileInteractiveArea-BA62G2rz.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.animate-stripe[data-v-0d5311ad]{background-image:repeating-linear-gradient(-45deg,#a16207,#a16207 25px,#eab308 25px,#eab308 50px);background-size:175% 100%}.animate-stripe[data-v-0d5311ad]:hover{animation:progress-0d5311ad 2s linear infinite}@-webkit-keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-70px 0px}}.slide-forward-enter-active[data-v-2a32d08f],.slide-forward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-forward-enter-from[data-v-2a32d08f]{transform:translate(100%)}.slide-forward-leave-to[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-forward-enter-to[data-v-2a32d08f],.slide-forward-leave-from[data-v-2a32d08f]{transform:translate(0)}.slide-backward-enter-active[data-v-2a32d08f],.slide-backward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-backward-enter-from[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-backward-leave-to[data-v-2a32d08f]{transform:translate(100%)}.slide-backward-enter-to[data-v-2a32d08f],.slide-backward-leave-from[data-v-2a32d08f]{transform:translate(0)}
|
assets/{route-block-Dyzmoxo6.js → MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C4nXpcOG.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/Stage-BtyfZEJn.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.animate-stripe[data-v-cb0f3d8a]{background-image:repeating-linear-gradient(-45deg,#f472b6,#f472b6 25px,#f9a8d4 25px,#f9a8d4 50px);animation:progress-cb0f3d8a 2s linear infinite;background-size:150% 100%}@-webkit-keyframes progress-cb0f3d8a{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-cb0f3d8a{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-cb0f3d8a{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-cb0f3d8a{0%{background-position:0 0}to{background-position:-70px 0px}}
|
assets/Stage-CtldNuCu.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.animate-stripe[data-v-9ee4a4e3]{background-image:repeating-linear-gradient(-45deg,#f472b6,#f472b6 25px,#f9a8d4 25px,#f9a8d4 50px);animation:progress-9ee4a4e3 2s linear infinite;background-size:150% 100%}@-webkit-keyframes progress-9ee4a4e3{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-9ee4a4e3{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-9ee4a4e3{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-9ee4a4e3{0%{background-position:0 0}to{background-position:-70px 0px}}
|
|
|
|
assets/{Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js → Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/_...all_-Byt-Dpcd.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as e,c as _,o as c}from"./index-DZ5lGleA.js";const n={};function o(t,r){return c(),_("div",null," 404 - Page not found ")}const s=e(n,[["render",o]]);export{s as default};
|
assets/_...all_-CfQ9YWFG.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as o,o as _}from"./index-CNzZZkJC.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/_plugin-vue_export-helper-DlAUqK2U.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};
|
|
|
|
assets/{audio-jmwE_vmT.js → audio-qIlIXqnz.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as s,
|
|
|
1 |
+
import{d as s,g as f,c as d,o as p,a as t}from"./index-DZ5lGleA.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)=>(p(),d("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/consciousness-CuueMjqK.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as o,C as s,c as r,o as a,a as t,u as i,F as u}from"./index-DZ5lGleA.js";import{b as n}from"./route-block-B_A1xBdJ.js";const d={flex:"~ row","items-center":"","gap-2":""},p=o({__name:"consciousness",setup(f){const l=s();return(v,e)=>(a(),r(u,null,[t("div",d,[t("button",{onClick:e[0]||(e[0]=m=>i(l).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-800"},"Modules")]),t("div",{"text-3xl":"","font-semibold":""}," Consciousness ")],-1))]),e[3]||(e[3]=t("div",null,[t("div",null,[t("span",null,"Provider"),t("div",null,[t("div",null,[t("span",null,"OpenAI")])])])],-1)),e[4]||(e[4]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:ghost":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(p);export{p as default};
|
assets/default-C4Jo0M28.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as a,c as t,a as e,b as o,u as s,R as _,o as c}from"./index-DZ5lGleA.js";import{_ as n}from"./HeaderLink.vue_vue_type_script_setup_true_lang-DetAtGCq.js";const r={"p-2":""},p={"mb-1":"","w-full":"","gap-2":"","p-2":""},d={"p-5":"",flex:"~ col gap-4"},h=a({__name:"default",setup(i){return(f,m)=>(c(),t("div",r,[e("div",p,[o(n)]),e("div",d,[o(s(_))])]))}});export{h as default};
|
assets/default-DIOpF1v5.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{d as p,u as s,c,a as d,r as i,n as l,b as e,o as m}from"./index-CNzZZkJC.js";const x=p({__name:"default",setup(u){const{top:t,right:o,bottom:a,left:n}=s();return(f,_)=>{const r=i("RouterView");return m(),c("main",{text:"gray-700 dark:gray-200","h-full":"","font-cuteen":"",style:l({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{x as default};
|
|
|
|
assets/default-node-CtWic_bH.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js","assets/index-CNzZZkJC.js","assets/index-DNAD4LwH.css","assets/queue-BVxfxn-s.js","assets/Stage-CtldNuCu.css"])))=>i.map(i=>d[i]);
|
2 |
-
import{ci as a}from"./index-CNzZZkJC.js";async function u(){const{createRequire:n}=await a(async()=>{const{createRequire:t}=await import("./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js").then(o=>o.y);return{createRequire:t}},__vite__mapDeps([0,1,2,3,4])),{dirname:d,resolve:e}=await a(async()=>{const{dirname:t,resolve:o}=await import("./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js").then(c=>c.y);return{dirname:t,resolve:o}},__vite__mapDeps([0,1,2,3,4])),i=n(import.meta.url),r=d(i.resolve("@duckdb/duckdb-wasm"));return{mvp:{mainModule:e(r,"./duckdb-mvp.wasm"),mainWorker:e(r,"./duckdb-node-mvp.worker.cjs")},eh:{mainModule:e(r,"./duckdb-eh.wasm"),mainWorker:e(r,"./duckdb-node-eh.worker.cjs")}}}export{u as getBundles};
|
|
|
|
|
|
assets/default-node-Cy1ku7V-.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js","assets/index-DZ5lGleA.js","assets/index-oxYDtIE-.css","assets/Stage-BtyfZEJn.css"])))=>i.map(i=>d[i]);
|
2 |
+
import{cq as a}from"./index-DZ5lGleA.js";async function u(){const{createRequire:n}=await a(async()=>{const{createRequire:t}=await import("./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js").then(o=>o._);return{createRequire:t}},__vite__mapDeps([0,1,2,3])),{dirname:d,resolve:e}=await a(async()=>{const{dirname:t,resolve:o}=await import("./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js").then(i=>i._);return{dirname:t,resolve:o}},__vite__mapDeps([0,1,2,3])),c=n(import.meta.url),r=d(c.resolve("@duckdb/duckdb-wasm"));return{mvp:{mainModule:e(r,"./duckdb-mvp.wasm"),mainWorker:e(r,"./duckdb-node-mvp.worker.cjs")},eh:{mainModule:e(r,"./duckdb-eh.wasm"),mainWorker:e(r,"./duckdb-node-eh.worker.cjs")}}}export{u as getBundles};
|
assets/delays-Pjh8Z-_n.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{u as g,_,l as k}from"./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js";import"./index-DSsTE9Un.js";import{d as b,f as d,c as s,o as l,j as e,a as y,b as x,t as i,F as f,s as p}from"./index-CNzZZkJC.js";import"./queue-BVxfxn-s.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},M={"w-full":"",flex:"","flex-row":"","gap-4":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},F=b({__name:"delays",setup(S){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)=>(l(),s("div",z,[e("div",w,[y(x(_),{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",M,[e("div",V,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(l(!0),s(f,null,p(m.value,o=>(l(),s("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",E,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(l(!0),s(f,null,p(c.value,o=>(l(),s("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{F as default};
|
|
|
|
assets/delays-i_JIYB-x.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{u as v,_,l as k}from"./queues-CN_SgnPR.js";import"./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js";import"./emotions-DklqG3pM.js";import"./index-D-tfxwlq.js";import{d as b,g as d,c as s,o as l,a as e,b as y,u as x,t as i,F as p,E as f}from"./index-DZ5lGleA.js";import"./queue-ZFpHmuhF.js";const z={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},E={"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":""},N=b({__name:"delays",setup(S){const t=d(""),m=d([]),c=d([]),u=d(!1),r=v();r.onHandlerEvent("delay",a=>{c.value.push(a)});function g(){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)=>(l(),s("div",z,[e("div",w,[y(x(_),{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:g},null,8,["modelValue"]),e("button",h,i(u.value?"Processing...":"Send"),1)]),e("div",E,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(l(!0),s(p,null,f(m.value,o=>(l(),s("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(l(!0),s(p,null,f(c.value,o=>(l(),s("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{N as default};
|
assets/emotions-B0c4cWLu.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{a as _,_ as k,l as b}from"./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js";import{u as x}from"./queue-BVxfxn-s.js";import{d as z,f as u,c as s,o as t,j as e,a as h,b as w,t as i,F as f,s as m}from"./index-CNzZZkJC.js";const M={flex:"","flex-col":"","gap-2":"","p-2":""},V={flex:"","flex-row":"","gap-2":""},y={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},E={"w-full":"",flex:"","flex-row":"","gap-4":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},S={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=z({__name:"emotions",setup(B){const l=u(""),p=u([]),r=u([]),d=u(!1),g=x({handlers:[async a=>{r.value.push(a.data)}]}),c=_(g);function v(){d.value=!0;const a=l.value.split("");for(const o of a)c.add(o);c.add(b),l.value="",d.value=!1}return(a,o)=>(t(),s("div",M,[e("div",V,[h(w(k),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=n=>l.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",y,i(d.value?"Processing...":"Send"),1)]),e("div",E,[e("div",Q,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),s(f,null,m(p.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",S,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),s(f,null,m(r.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))])])]))}});export{I as default};
|
|
|
|
assets/emotions-DklqG3pM.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
var o=(E=>(E.Idle="<|EMOTE_NEUTRAL|>",E.Happy="<|EMOTE_HAPPY|>",E.Sad="<|EMOTE_SAD|>",E.Angry="<|EMOTE_ANGRY|>",E.Think="<|EMOTE_THINK|>",E.Surprise="<|EMOTE_SURPRISE|>",E.Awkward="<|EMOTE_AWKWARD|>",E.Question="<|EMOTE_QUESTION|>",E))(o||{});const e=Object.values(o),T="Happy",M="Sad",a="Angry",n="Awkward",O="Think",s="Surprise",t="Question",_="Idle",i={"<|EMOTE_HAPPY|>":T,"<|EMOTE_SAD|>":M,"<|EMOTE_ANGRY|>":a,"<|EMOTE_THINK|>":O,"<|EMOTE_SURPRISE|>":s,"<|EMOTE_AWKWARD|>":n,"<|EMOTE_QUESTION|>":t,"<|EMOTE_NEUTRAL|>":_},N={"<|EMOTE_HAPPY|>":"happy","<|EMOTE_SAD|>":"sad","<|EMOTE_ANGRY|>":"angry","<|EMOTE_THINK|>":void 0,"<|EMOTE_SURPRISE|>":"surprised","<|EMOTE_AWKWARD|>":void 0,"<|EMOTE_QUESTION|>":void 0,"<|EMOTE_NEUTRAL|>":void 0};export{e as E,O as a,a as b,T as c,N as d,i as e,_ as f,o as g};
|
assets/emotions-sIG6j-cd.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{a as _,_ as k,l as b}from"./queues-CN_SgnPR.js";import"./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js";import"./emotions-DklqG3pM.js";import{u as x}from"./queue-ZFpHmuhF.js";import{d as z,g as u,c as s,o as t,a as e,b as h,u as w,t as i,F as f,E as m}from"./index-DZ5lGleA.js";const E={flex:"","flex-col":"","gap-2":"","p-2":""},M={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},S={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},D=z({__name:"emotions",setup(B){const l=u(""),p=u([]),r=u([]),d=u(!1),g=x({handlers:[async a=>{r.value.push(a.data)}]}),c=_(g);function v(){d.value=!0;const a=l.value.split("");for(const o of a)c.add(o);c.add(b),l.value="",d.value=!1}return(a,o)=>(t(),s("div",E,[e("div",M,[h(w(k),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=n=>l.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",V,i(d.value?"Processing...":"Send"),1)]),e("div",y,[e("div",Q,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),s(f,null,m(p.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))]),e("div",S,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),s(f,null,m(r.value,n=>(t(),s("div",{key:n},[e("div",null,i(n),1)]))),128))])])]))}});export{D as default};
|
assets/factorio-P3v2tIeq.png
ADDED
![]() |
Git LFS Details
|
assets/{filter-message-dX7oUgPr.js → filter-message-CVkoCPbu.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as g,
|
|
|
1 |
+
import{d as g,g as u,r as m,c as v,o as _,a as s,b as x,t as d}from"./index-DZ5lGleA.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},k={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V=g({__name:"filter-message",setup(z){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;(a=>{a.Literal="literal",a.Special="special"})(e||(e={}));let l="literal",t="";for(const a of r){await f(50);let n=l;a==="<"?n="special":a===">"&&(n="literal"),l==="literal"&&n==="special"&&(i.value.content+=t,t=""),l==="special"&&n==="literal"&&(t=""),l==="literal"&&n==="literal"&&(i.value.content+=a,t=""),l=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const l=m("BasicTextarea");return _(),v("div",b,[s("div",S,[x(l,{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",k,d(c.value?"Processing...":"Send"),1)]),s("div",w,[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-BGobVwYP.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
import{d as _,f as c,q as y,c as d,o as u,j as a,k as x,t as v,b}from"./index-CNzZZkJC.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],k={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},R=_({__name:"image",setup(D){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)=>(u(),d("div",null,[a("label",h,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),o.value?(u(),d("div",C,[a("img",{src:o.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",k," "+v(o.value)+`
|
2 |
-
`,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>b(m)())}," Copy Data URL ")])):x("",!0)]))}}),I=w(R,[["__scopeId","data-v-7edd53e6"]]);export{I as default};
|
|
|
|
|
|
assets/image-D9a9b5Cf.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
import{d as _,g as c,q as y,c as d,o as u,a,k as x,t as v,u as w,_ as b}from"./index-DZ5lGleA.js";const h={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],k={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},R=_({__name:"image",setup(D){const p=c(),n=c(""),{copy:g}=y({source:n});async function m(r){return new Promise((e,o)=>{const t=new FileReader;t.onload=s=>{var l,i;e(((i=(l=s.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=s=>{o(s)},t.readAsDataURL(r)})}async function f(r){var t;const o=(t=r.target.files)==null?void 0:t[0];if(o){p.value=o;const s=await m(o);n.value=s}}return(r,e)=>(u(),d("div",null,[a("label",h,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),n.value?(u(),d("div",C,[a("img",{src:n.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",k," "+v(n.value)+`
|
2 |
+
`,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>w(g)())}," Copy Data URL ")])):x("",!0)]))}}),B=b(R,[["__scopeId","data-v-7edd53e6"]]);export{B as default};
|
assets/index-Blexdd71.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js";import{c as m,o as v,e as P,d as z,f as a,w as E,g as H,h as Z,i as q,j as p,k as L,n as B,l as D,m as R,p as O,a as d,b as A}from"./index-CNzZZkJC.js";import{_ as U,M as X,W as Y,I as G,a as J,b as I}from"./route-block-Dyzmoxo6.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./queue-BVxfxn-s.js";import"./index-DSsTE9Un.js";const Q={},T={class:"cross-background-container"};function ee(_,e){return v(),m("div",T,[P(_.$slots,"default",{},void 0,!0)])}const ae=K(Q,[["render",ee],["__scopeId","data-v-ff7347db"]]),te={class:"relative"},le=["width","height","viewBox"],ne=["d","fill"],se=z({__name:"AnimatedBackground",props:{verticalOffset:{default:20},height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:"#f8e8f2"},direction:{default:"down"},animationSpeed:{default:.5}},setup(_){const e=_,i=a(null),u=a(null),r=a(0),l=a(e.height),M=a(e.amplitude),t=a(e.waveLength),y=a(""),w=a(e.fillColor),g=a(e.direction);function F(c,n,f,s,b){const o=[],k=Math.ceil(c/s)*s,V=1,W=b==="up"?n-f:f;o.push(`M 0 ${W}`);for(let h=0;h<=k;h+=V){const j=b==="up"?W-f*Math.sin(2*Math.PI*h/s):W+f*Math.sin(2*Math.PI*h/s);o.push(`L ${h} ${j}`)}return b==="up"?(o.push(`L ${k} ${n}`),o.push(`L 0 ${n} Z`)):(o.push(`L ${k} 0`),o.push("L 0 0 Z")),o.join(" ")}function $(){var c;if(i.value){const n=i.value.clientWidth;r.value=n;const s=Math.ceil(n*2/t.value)*t.value;y.value=F(s,l.value,M.value,t.value,g.value),(c=u.value)==null||c.setAttribute("width",s.toString())}}let C;const N=a(e.animationSpeed),x=a(0);function S(){x.value-=N.value,Math.abs(x.value)>=t.value&&(x.value+=t.value),u.value&&(u.value.style.transform=`translateX(${x.value}px)`),C=requestAnimationFrame(S)}return E(()=>[e.height,e.amplitude,e.waveLength,e.fillColor,e.direction],()=>{l.value=e.height,M.value=e.amplitude,t.value=e.waveLength,w.value=e.fillColor,g.value=e.direction,$()},{immediate:!0}),H("resize",$),Z(()=>{$(),S()}),q(()=>{cancelAnimationFrame(C)}),(c,n)=>(v(),m("div",te,[P(c.$slots,"default"),p("div",{ref_key:"container",ref:i,absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},[g.value==="down"?(v(),m("div",{key:0,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0),(v(),m("svg",{ref_key:"svg",ref:u,width:t.value*Math.ceil(r.value*2/t.value),height:l.value,viewBox:`0 0 ${t.value*Math.ceil(r.value*2/t.value)} ${l.value}`,xmlns:"http://www.w3.org/2000/svg",h:"[100%]",w:"[200%]",style:{willChange:"transform"}},[p("path",{d:y.value,fill:w.value},null,8,ne)],8,le)),g.value==="up"?(v(),m("div",{key:1,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0)],512)]))}}),oe={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},ie={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},ue=z({__name:"index",setup(_){const e=D(),i=a(!1);function u(r){i.value=r}return(r,l)=>(v(),R(ae,null,{default:O(()=>[d(se,{"fill-color":A(e)?"#563544":"#f8e8f2"},{default:O(()=>[p("div",oe,[p("div",null,[d(U,{class:"flex <md:hidden",p2:""}),d(X,{class:"hidden <md:block"})]),p("div",ie,[d(A(Y),{"flex-1":"","min-w":"1/2",paused:i.value},null,8,["paused"]),d(G,{class:"flex <md:hidden","flex-1":"","max-w":"500px","min-w":"30%"}),d(J,{class:"hidden <md:block",mx2:"",mb2:"",onSettingsOpen:u})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof I=="function"&&I(ue);export{ue as default};
|
|
|
|
assets/index-C2WA6Lb4.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js";import{_ as E,c as m,o as v,f as P,d as z,g as t,w as H,h as Z,i as q,j as D,a as p,k as L,n as B,l as R,m as U,p as O,b as d,u as A}from"./index-DZ5lGleA.js";import"./emotions-DklqG3pM.js";import{_ as X,M as Y,W as G,I as J,a as K}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C4nXpcOG.js";import{b as I}from"./route-block-B_A1xBdJ.js";import"./queue-ZFpHmuhF.js";import"./queues-CN_SgnPR.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-BAn-FpqP.js";import"./HeaderLink.vue_vue_type_script_setup_true_lang-DetAtGCq.js";import"./index-D-tfxwlq.js";import"./providers-CNgYktmt.js";const Q={},T={class:"cross-background-container"};function ee(_,e){return v(),m("div",T,[P(_.$slots,"default",{},void 0,!0)])}const te=E(Q,[["render",ee],["__scopeId","data-v-ff7347db"]]),ae={class:"relative"},le=["width","height","viewBox"],ne=["d","fill"],oe=z({__name:"AnimatedBackground",props:{verticalOffset:{default:20},height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:"#f8e8f2"},direction:{default:"down"},animationSpeed:{default:.5}},setup(_){const e=_,i=t(null),u=t(null),r=t(0),l=t(e.height),M=t(e.amplitude),a=t(e.waveLength),y=t(""),w=t(e.fillColor),g=t(e.direction);function F(c,n,f,o,b){const s=[],k=Math.ceil(c/o)*o,V=1,W=b==="up"?n-f:f;s.push(`M 0 ${W}`);for(let h=0;h<=k;h+=V){const j=b==="up"?W-f*Math.sin(2*Math.PI*h/o):W+f*Math.sin(2*Math.PI*h/o);s.push(`L ${h} ${j}`)}return b==="up"?(s.push(`L ${k} ${n}`),s.push(`L 0 ${n} Z`)):(s.push(`L ${k} 0`),s.push("L 0 0 Z")),s.join(" ")}function $(){var c;if(i.value){const n=i.value.clientWidth;r.value=n;const o=Math.ceil(n*2/a.value)*a.value;y.value=F(o,l.value,M.value,a.value,g.value),(c=u.value)==null||c.setAttribute("width",o.toString())}}let C;const N=t(e.animationSpeed),x=t(0);function S(){x.value-=N.value,Math.abs(x.value)>=a.value&&(x.value+=a.value),u.value&&(u.value.style.transform=`translateX(${x.value}px)`),C=requestAnimationFrame(S)}return H(()=>[e.height,e.amplitude,e.waveLength,e.fillColor,e.direction],()=>{l.value=e.height,M.value=e.amplitude,a.value=e.waveLength,w.value=e.fillColor,g.value=e.direction,$()},{immediate:!0}),Z("resize",$),q(()=>{$(),S()}),D(()=>{cancelAnimationFrame(C)}),(c,n)=>(v(),m("div",ae,[P(c.$slots,"default"),p("div",{ref_key:"container",ref:i,absolute:"","left-0":"","right-0":"","top-0":"","w-full":"","overflow-hidden":""},[g.value==="down"?(v(),m("div",{key:0,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0),(v(),m("svg",{ref_key:"svg",ref:u,width:a.value*Math.ceil(r.value*2/a.value),height:l.value,viewBox:`0 0 ${a.value*Math.ceil(r.value*2/a.value)} ${l.value}`,xmlns:"http://www.w3.org/2000/svg",h:"[100%]",w:"[200%]",style:{willChange:"transform"}},[p("path",{d:y.value,fill:w.value},null,8,ne)],8,le)),g.value==="up"?(v(),m("div",{key:1,style:B({backgroundColor:w.value,height:`${l.value}px`}),"w-full":""},null,4)):L("",!0)],512)]))}}),se={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},ie={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},ue=z({__name:"index",setup(_){const e=R(),i=t(!1);function u(r){i.value=r}return(r,l)=>(v(),U(te,null,{default:O(()=>[d(oe,{"fill-color":A(e)?"#563544":"#f8e8f2"},{default:O(()=>[p("div",se,[p("div",null,[d(X,{class:"flex <md:hidden",p2:""}),d(Y,{class:"hidden <md:block"})]),p("div",ie,[d(A(G),{"flex-1":"","min-w":"1/2",paused:i.value},null,8,["paused"]),d(J,{class:"flex <md:hidden","flex-1":"","max-w":"500px","min-w":"30%"}),d(K,{class:"hidden <md:block",mx2:"",mb2:"",onSettingsOpen:u})])])]),_:1},8,["fill-color"])]),_:1}))}});typeof I=="function"&&I(ue);export{ue as default};
|
assets/index-CIQQshez.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as r,C as a,c as l,o as s,a as t,u as i,F as d}from"./index-DZ5lGleA.js";import{b as n}from"./route-block-B_A1xBdJ.js";const u={flex:"~ row","items-center":"","gap-2":""},f=r({__name:"index",setup(p){const o=a();return(x,e)=>(s(),l(d,null,[t("div",u,[t("button",{onClick:e[0]||(e[0]=m=>i(o).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-800"},"Settings")]),t("div",{"text-3xl":"","font-semibold":""}," Models ")],-1))]),e[3]||(e[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:person-standing":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(f);export{f as default};
|
assets/index-CM0xiqf1.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d,C as u,D as g,r as f,c as t,o as n,a as e,u as m,F as s,E as p,b as y,p as v,s as h,t as k}from"./index-DZ5lGleA.js";import{b as r}from"./route-block-B_A1xBdJ.js";const x="/assets/factorio-P3v2tIeq.png",_={flex:"~ row","items-center":"","gap-2":""},b={grid:"~ cols-1 gap-2"},w={flex:"~ col 1","gap-1.5":""},C=["src"],z={"p-2":""},L={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},M={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},S=d({__name:"index",setup(F){const a=u(),c=g(()=>[{id:"consciousness",name:"Consciousness",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:ghost",to:"/settings/modules/consciousness",configured:!1},{id:"hearing",name:"Hearing",description:"Hearing, speech recognition, etc.",icon:"i-lucide:ear",to:"",configured:!1},{id:"messaging-discord",name:"Discord",description:"Messaging, notifications, etc.",icon:"i-simple-icons:discord",to:"",configured:!1},{id:"speech",name:"Speech",description:"Speech synthesis, etc.",icon:"i-lucide:mic",to:"",configured:!1},{id:"memory-short-term",name:"Short-Term Memory",description:"Short-term memory, etc.",icon:"i-lucide:book",to:"",configured:!1},{id:"memory-long-term",name:"Long-Term Memory",description:"Long-term memory, etc.",icon:"i-lucide:book-copy",to:"",configured:!1},{id:"vision",name:"Vision",description:"Vision, etc.",icon:"i-lucide:eye",to:"",configured:!1},{id:"game-minecraft",name:"Minecraft",description:"Playing Minecraft with you, etc.",icon:"i-vscode-icons:file-type-minecraft",to:"",configured:!1},{id:"game-factorio",name:"Factorio",description:"Playing Factorio with you, etc.",icon:{imagePath:x},to:"",configured:!1}]);return(P,i)=>{const l=f("RouterLink");return n(),t(s,null,[e("div",_,[e("button",{onClick:i[0]||(i[0]=o=>m(a).back())},i[1]||(i[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),i[2]||(i[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-800"},"Settings")]),e("div",{"text-3xl":"","font-semibold":""}," Modules ")],-1))]),e("div",b,[(n(!0),t(s,null,p(c.value,o=>(n(),t("div",{key:o.id,bg:"neutral-300/50 dark:neutral-600","w-full":"","of-hidden":"","rounded-xl":"",flex:"~ col 1"},[y(l,{to:o.to,bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","h-full":"","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-5":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0"},{default:v(()=>[e("div",w,[typeof o.icon=="string"?(n(),t("div",{key:0,class:h([o.icon,"provider-icon size-10"]),transition:"filter duration-250 ease-in-out"},null,2)):(n(),t("img",{key:1,src:o.icon.imagePath,class:"settings-section-icon op-30 grayscale-100 filter hover:grayscale-0",transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-24":"","translate-y-4":""},null,8,C)),e("div",null,k(o.name),1)])]),_:2},1032,["to"]),e("div",z,[o.configured?(n(),t("div",L)):(n(),t("div",M))])]))),128))]),i[3]||(i[3]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:blocks":"","translate-x-10":"","translate-y-10":""})],-1))],64)}}});typeof r=="function"&&r(S);export{S as default};
|
assets/{index-DSsTE9Un.js → index-D-tfxwlq.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import{c9 as getAugmentedNamespace}from"./index-CNzZZkJC.js";var dist={},ortWeb_min={exports:{}};const backends={},backendsSortedByPriority=[],registerBackend=(D,u,b)=>{if(u&&typeof u.init=="function"&&typeof u.createSessionHandler=="function"){const g=backends[D];if(g===void 0)backends[D]={backend:u,priority:b};else{if(g.priority>b)return;if(g.priority===b&&g.backend!==u)throw new Error(`cannot register backend "${D}" using priority ${b}`)}if(b>=0){const p=backendsSortedByPriority.indexOf(D);p!==-1&&backendsSortedByPriority.splice(p,1);for(let h=0;h<backendsSortedByPriority.length;h++)if(backends[backendsSortedByPriority[h]].priority<=b){backendsSortedByPriority.splice(h,0,D);return}backendsSortedByPriority.push(D)}return}throw new TypeError("not a valid backend")},resolveBackend=async D=>{const u=D.length===0?backendsSortedByPriority:D,b=[];for(const g of u){const p=backends[g];if(p){if(p.initialized)return p.backend;if(p.aborted)continue;const h=!!p.initPromise;try{return h||(p.initPromise=p.backend.init()),await p.initPromise,p.initialized=!0,p.backend}catch(o){h||b.push({name:g,err:o}),p.aborted=!0}finally{delete p.initPromise}}}throw new Error(`no available backend found. ERR: ${b.map(g=>`[${g.name}] ${g.err}`).join(", ")}`)};class EnvImpl{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(u){if(u!==void 0){if(typeof u!="string"||["verbose","info","warning","error","fatal"].indexOf(u)===-1)throw new Error(`Unsupported logging level: ${u}`);this.logLevelInternal=u}}get logLevel(){return this.logLevelInternal}}const env=new EnvImpl,isBigInt64ArrayAvailable=typeof BigInt64Array<"u"&&typeof BigInt64Array.from=="function",isBigUint64ArrayAvailable=typeof BigUint64Array<"u"&&typeof BigUint64Array.from=="function",NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("int64",BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,"int64"));isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("uint64",BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,"uint64"));const calculateSize=D=>{let u=1;for(let b=0;b<D.length;b++){const g=D[b];if(typeof g!="number"||!Number.isSafeInteger(g))throw new TypeError(`dims[${b}] must be an integer, got: ${g}`);if(g<0)throw new RangeError(`dims[${b}] must be a non-negative integer, got: ${g}`);u*=g}return u};let Tensor$1=class at{constructor(u,b,g){let p,h,o;if(typeof u=="string")if(p=u,o=g,u==="string"){if(!Array.isArray(b))throw new TypeError("A string tensor's data must be a string array.");h=b}else{const f=NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.get(u);if(f===void 0)throw new TypeError(`Unsupported tensor type: ${u}.`);if(Array.isArray(b))h=f.from(b);else if(b instanceof f)h=b;else throw new TypeError(`A ${p} tensor's data must be type of ${f}`)}else if(o=b,Array.isArray(u)){if(u.length===0)throw new TypeError("Tensor type cannot be inferred from an empty array.");const f=typeof u[0];if(f==="string")p="string",h=u;else if(f==="boolean")p="bool",h=Uint8Array.from(u);else throw new TypeError(`Invalid element type of data array: ${f}.`)}else{const f=NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.get(u.constructor);if(f===void 0)throw new TypeError(`Unsupported type for tensor data: ${u.constructor}.`);p=f,h=u}if(o===void 0)o=[h.length];else if(!Array.isArray(o))throw new TypeError("A tensor's dims must be a number array");const c=calculateSize(o);if(c!==h.length)throw new Error(`Tensor's size(${c}) does not match data length(${h.length}).`);this.dims=o,this.type=p,this.data=h,this.size=c}static bufferToTensor(u,b){if(u===void 0)throw new Error("Image buffer must be defined");if(b.height===void 0||b.width===void 0)throw new Error("Image height and width must be defined");const{height:g,width:p}=b,h=b.norm;let o,c;h===void 0||h.mean===void 0?o=255:o=h.mean,h===void 0||h.bias===void 0?c=0:c=h.bias;const f=b.bitmapFormat!==void 0?b.bitmapFormat:"RGBA",s=b.tensorFormat!==void 0&&b.tensorFormat!==void 0?b.tensorFormat:"RGB",i=g*p,t=s==="RGBA"?new Float32Array(i*4):new Float32Array(i*3);let e=4,n=0,r=1,a=2,l=3,d=0,m=i,y=i*2,v=-1;f==="RGB"&&(e=3,n=0,r=1,a=2,l=-1),s==="RGBA"?v=i*3:s==="RBG"?(d=0,y=i,m=i*2):s==="BGR"&&(y=0,m=i,d=i*2);for(let T=0;T<i;T++,n+=e,a+=e,r+=e,l+=e)t[d++]=(u[n]+c)/o,t[m++]=(u[r]+c)/o,t[y++]=(u[a]+c)/o,v!==-1&&l!==-1&&(t[v++]=(u[l]+c)/o);return s==="RGBA"?new at("float32",t,[1,4,g,p]):new at("float32",t,[1,3,g,p])}static async fromImage(u,b){const g=typeof HTMLImageElement<"u"&&u instanceof HTMLImageElement,p=typeof ImageData<"u"&&u instanceof ImageData,h=typeof ImageBitmap<"u"&&u instanceof ImageBitmap,o=typeof String<"u"&&(u instanceof String||typeof u=="string");let c,f={};if(g){const s=document.createElement("canvas"),i=s.getContext("2d");if(i!=null){let t=u.naturalHeight,e=u.naturalWidth;if(b!==void 0&&b.resizedHeight!==void 0&&b.resizedWidth!==void 0&&(t=b.resizedHeight,e=b.resizedWidth),b!==void 0){if(f=b,b.tensorFormat!==void 0)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(f.tensorFormat="RGBA",b.height!==void 0&&b.height!==t)throw new Error("Image input config height doesn't match HTMLImageElement height");if(f.height=t,b.width!==void 0&&b.width!==e)throw new Error("Image input config width doesn't match HTMLImageElement width");f.width=e}else f.tensorFormat="RGBA",f.height=t,f.width=e;s.width=e,s.height=t,i.drawImage(u,0,0,e,t),c=i.getImageData(0,0,e,t).data}else throw new Error("Can not access image data")}else if(p){const s="RGBA";let i,t;if(b!==void 0&&b.resizedWidth!==void 0&&b.resizedHeight!==void 0?(i=b.resizedHeight,t=b.resizedWidth):(i=u.height,t=u.width),b!==void 0){if(f=b,b.bitmapFormat!==void 0&&b.bitmapFormat!==s)throw new Error("Image input config format must be RGBA for ImageData");f.bitmapFormat="RGBA"}else f.bitmapFormat="RGBA";if(f.height=i,f.width=t,b!==void 0){const e=document.createElement("canvas");e.width=t,e.height=i;const n=e.getContext("2d");if(n!=null)n.putImageData(u,0,0),c=n.getImageData(0,0,t,i).data;else throw new Error("Can not access image data")}else c=u.data}else if(h){if(b===void 0)throw new Error("Please provide image config with format for Imagebitmap");if(b.bitmapFormat!==void 0)throw new Error("Image input config format must be defined for ImageBitmap");const s=document.createElement("canvas").getContext("2d");if(s!=null){const i=u.height,t=u.width;if(s.drawImage(u,0,0,t,i),c=s.getImageData(0,0,t,i).data,b!==void 0){if(b.height!==void 0&&b.height!==i)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=i,b.width!==void 0&&b.width!==t)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t}else f.height=i,f.width=t;return at.bufferToTensor(c,f)}else throw new Error("Can not access image data")}else{if(o)return new Promise((s,i)=>{const t=document.createElement("canvas"),e=t.getContext("2d");if(!u||!e)return i();const n=new Image;n.crossOrigin="Anonymous",n.src=u,n.onload=()=>{t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height);const r=e.getImageData(0,0,t.width,t.height);if(b!==void 0){if(b.height!==void 0&&b.height!==t.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=t.height,b.width!==void 0&&b.width!==t.width)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t.width}else f.height=t.height,f.width=t.width;s(at.bufferToTensor(r.data,f))}});throw new Error("Input data provided is not supported - aborted tensor creation")}if(c!==void 0)return at.bufferToTensor(c,f);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(u){var b,g;const p=document.createElement("canvas").getContext("2d");let h;if(p!=null){const o=this.dims[3],c=this.dims[2],f=this.dims[1],s=u!==void 0&&u.format!==void 0?u.format:"RGB",i=u!==void 0&&((b=u.norm)===null||b===void 0?void 0:b.mean)!==void 0?u.norm.mean:255,t=u!==void 0&&((g=u.norm)===null||g===void 0?void 0:g.bias)!==void 0?u.norm.bias:0,e=c*o;if(u!==void 0){if(u.height!==void 0&&u.height!==c)throw new Error("Image output config height doesn't match tensor height");if(u.width!==void 0&&u.width!==o)throw new Error("Image output config width doesn't match tensor width");if(u.format!==void 0&&f===4&&u.format!=="RGBA"||f===3&&u.format!=="RGB"&&u.format!=="BGR")throw new Error("Tensor format doesn't match input tensor dims")}const n=4;let r=0,a=1,l=2,d=3,m=0,y=e,v=e*2,_=-1;s==="RGBA"?(m=0,y=e,v=e*2,_=e*3):s==="RGB"?(m=0,y=e,v=e*2):s==="RBG"&&(m=0,v=e,y=e*2),h=p.createImageData(o,c);for(let T=0;T<c*o;r+=n,a+=n,l+=n,d+=n,T++)h.data[r]=(this.data[m++]-t)*i,h.data[a]=(this.data[y++]-t)*i,h.data[l]=(this.data[v++]-t)*i,h.data[d]=_===-1?255:(this.data[_++]-t)*i}else throw new Error("Can not access image data");return h}reshape(u){return new at(this.type,this.data,u)}};const Tensor=Tensor$1;let InferenceSession$1=class cn{constructor(u){this.handler=u}async run(u,b,g){const p={};let h={};if(typeof u!="object"||u===null||u instanceof Tensor||Array.isArray(u))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let o=!0;if(typeof b=="object"){if(b===null)throw new TypeError("Unexpected argument[1]: cannot be null.");if(b instanceof Tensor)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(b)){if(b.length===0)throw new TypeError("'fetches' cannot be an empty array.");o=!1;for(const s of b){if(typeof s!="string")throw new TypeError("'fetches' must be a string array or an object.");if(this.outputNames.indexOf(s)===-1)throw new RangeError(`'fetches' contains invalid output name: ${s}.`);p[s]=null}if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else{let s=!1;const i=Object.getOwnPropertyNames(b);for(const t of this.outputNames)if(i.indexOf(t)!==-1){const e=b[t];(e===null||e instanceof Tensor)&&(s=!0,o=!1,p[t]=e)}if(s){if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else h=b}}else if(typeof b<"u")throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const s of this.inputNames)if(typeof u[s]>"u")throw new Error(`input '${s}' is missing in 'feeds'.`);if(o)for(const s of this.outputNames)p[s]=null;const c=await this.handler.run(u,p,h),f={};for(const s in c)Object.hasOwnProperty.call(c,s)&&(f[s]=new Tensor(c[s].type,c[s].data,c[s].dims));return f}static async create(u,b,g,p){let h,o={};if(typeof u=="string"){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof Uint8Array){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer){const t=u;let e=0,n=u.byteLength;if(typeof b=="object"&&b!==null)o=b;else if(typeof b=="number"){if(e=b,!Number.isSafeInteger(e))throw new RangeError("'byteOffset' must be an integer.");if(e<0||e>=t.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${t.byteLength}).`);if(n=u.byteLength-e,typeof g=="number"){if(n=g,!Number.isSafeInteger(n))throw new RangeError("'byteLength' must be an integer.");if(n<=0||e+n>t.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${t.byteLength-e}].`);if(typeof p=="object"&&p!==null)o=p;else if(typeof p<"u")throw new TypeError("'options' must be an object.")}else if(typeof g<"u")throw new TypeError("'byteLength' must be a number.")}else if(typeof b<"u")throw new TypeError("'options' must be an object.");h=new Uint8Array(t,e,n)}else throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");const f=(o.executionProviders||[]).map(t=>typeof t=="string"?t:t.name),i=await(await resolveBackend(f)).createSessionHandler(h,o);return new cn(i)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}};const InferenceSession=InferenceSession$1,lib=Object.freeze(Object.defineProperty({__proto__:null,InferenceSession,Tensor,env,registerBackend},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(lib);/*!
|
2 |
* ONNX Runtime Web v1.14.0
|
3 |
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4 |
* Licensed under the MIT License.
|
|
|
1 |
+
import{ch as getAugmentedNamespace}from"./index-DZ5lGleA.js";var dist={},ortWeb_min={exports:{}};const backends={},backendsSortedByPriority=[],registerBackend=(D,u,b)=>{if(u&&typeof u.init=="function"&&typeof u.createSessionHandler=="function"){const g=backends[D];if(g===void 0)backends[D]={backend:u,priority:b};else{if(g.priority>b)return;if(g.priority===b&&g.backend!==u)throw new Error(`cannot register backend "${D}" using priority ${b}`)}if(b>=0){const p=backendsSortedByPriority.indexOf(D);p!==-1&&backendsSortedByPriority.splice(p,1);for(let h=0;h<backendsSortedByPriority.length;h++)if(backends[backendsSortedByPriority[h]].priority<=b){backendsSortedByPriority.splice(h,0,D);return}backendsSortedByPriority.push(D)}return}throw new TypeError("not a valid backend")},resolveBackend=async D=>{const u=D.length===0?backendsSortedByPriority:D,b=[];for(const g of u){const p=backends[g];if(p){if(p.initialized)return p.backend;if(p.aborted)continue;const h=!!p.initPromise;try{return h||(p.initPromise=p.backend.init()),await p.initPromise,p.initialized=!0,p.backend}catch(o){h||b.push({name:g,err:o}),p.aborted=!0}finally{delete p.initPromise}}}throw new Error(`no available backend found. ERR: ${b.map(g=>`[${g.name}] ${g.err}`).join(", ")}`)};class EnvImpl{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(u){if(u!==void 0){if(typeof u!="string"||["verbose","info","warning","error","fatal"].indexOf(u)===-1)throw new Error(`Unsupported logging level: ${u}`);this.logLevelInternal=u}}get logLevel(){return this.logLevelInternal}}const env=new EnvImpl,isBigInt64ArrayAvailable=typeof BigInt64Array<"u"&&typeof BigInt64Array.from=="function",isBigUint64ArrayAvailable=typeof BigUint64Array<"u"&&typeof BigUint64Array.from=="function",NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("int64",BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,"int64"));isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set("uint64",BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,"uint64"));const calculateSize=D=>{let u=1;for(let b=0;b<D.length;b++){const g=D[b];if(typeof g!="number"||!Number.isSafeInteger(g))throw new TypeError(`dims[${b}] must be an integer, got: ${g}`);if(g<0)throw new RangeError(`dims[${b}] must be a non-negative integer, got: ${g}`);u*=g}return u};let Tensor$1=class at{constructor(u,b,g){let p,h,o;if(typeof u=="string")if(p=u,o=g,u==="string"){if(!Array.isArray(b))throw new TypeError("A string tensor's data must be a string array.");h=b}else{const f=NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.get(u);if(f===void 0)throw new TypeError(`Unsupported tensor type: ${u}.`);if(Array.isArray(b))h=f.from(b);else if(b instanceof f)h=b;else throw new TypeError(`A ${p} tensor's data must be type of ${f}`)}else if(o=b,Array.isArray(u)){if(u.length===0)throw new TypeError("Tensor type cannot be inferred from an empty array.");const f=typeof u[0];if(f==="string")p="string",h=u;else if(f==="boolean")p="bool",h=Uint8Array.from(u);else throw new TypeError(`Invalid element type of data array: ${f}.`)}else{const f=NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.get(u.constructor);if(f===void 0)throw new TypeError(`Unsupported type for tensor data: ${u.constructor}.`);p=f,h=u}if(o===void 0)o=[h.length];else if(!Array.isArray(o))throw new TypeError("A tensor's dims must be a number array");const c=calculateSize(o);if(c!==h.length)throw new Error(`Tensor's size(${c}) does not match data length(${h.length}).`);this.dims=o,this.type=p,this.data=h,this.size=c}static bufferToTensor(u,b){if(u===void 0)throw new Error("Image buffer must be defined");if(b.height===void 0||b.width===void 0)throw new Error("Image height and width must be defined");const{height:g,width:p}=b,h=b.norm;let o,c;h===void 0||h.mean===void 0?o=255:o=h.mean,h===void 0||h.bias===void 0?c=0:c=h.bias;const f=b.bitmapFormat!==void 0?b.bitmapFormat:"RGBA",s=b.tensorFormat!==void 0&&b.tensorFormat!==void 0?b.tensorFormat:"RGB",i=g*p,t=s==="RGBA"?new Float32Array(i*4):new Float32Array(i*3);let e=4,n=0,r=1,a=2,l=3,d=0,m=i,y=i*2,v=-1;f==="RGB"&&(e=3,n=0,r=1,a=2,l=-1),s==="RGBA"?v=i*3:s==="RBG"?(d=0,y=i,m=i*2):s==="BGR"&&(y=0,m=i,d=i*2);for(let T=0;T<i;T++,n+=e,a+=e,r+=e,l+=e)t[d++]=(u[n]+c)/o,t[m++]=(u[r]+c)/o,t[y++]=(u[a]+c)/o,v!==-1&&l!==-1&&(t[v++]=(u[l]+c)/o);return s==="RGBA"?new at("float32",t,[1,4,g,p]):new at("float32",t,[1,3,g,p])}static async fromImage(u,b){const g=typeof HTMLImageElement<"u"&&u instanceof HTMLImageElement,p=typeof ImageData<"u"&&u instanceof ImageData,h=typeof ImageBitmap<"u"&&u instanceof ImageBitmap,o=typeof String<"u"&&(u instanceof String||typeof u=="string");let c,f={};if(g){const s=document.createElement("canvas"),i=s.getContext("2d");if(i!=null){let t=u.naturalHeight,e=u.naturalWidth;if(b!==void 0&&b.resizedHeight!==void 0&&b.resizedWidth!==void 0&&(t=b.resizedHeight,e=b.resizedWidth),b!==void 0){if(f=b,b.tensorFormat!==void 0)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(f.tensorFormat="RGBA",b.height!==void 0&&b.height!==t)throw new Error("Image input config height doesn't match HTMLImageElement height");if(f.height=t,b.width!==void 0&&b.width!==e)throw new Error("Image input config width doesn't match HTMLImageElement width");f.width=e}else f.tensorFormat="RGBA",f.height=t,f.width=e;s.width=e,s.height=t,i.drawImage(u,0,0,e,t),c=i.getImageData(0,0,e,t).data}else throw new Error("Can not access image data")}else if(p){const s="RGBA";let i,t;if(b!==void 0&&b.resizedWidth!==void 0&&b.resizedHeight!==void 0?(i=b.resizedHeight,t=b.resizedWidth):(i=u.height,t=u.width),b!==void 0){if(f=b,b.bitmapFormat!==void 0&&b.bitmapFormat!==s)throw new Error("Image input config format must be RGBA for ImageData");f.bitmapFormat="RGBA"}else f.bitmapFormat="RGBA";if(f.height=i,f.width=t,b!==void 0){const e=document.createElement("canvas");e.width=t,e.height=i;const n=e.getContext("2d");if(n!=null)n.putImageData(u,0,0),c=n.getImageData(0,0,t,i).data;else throw new Error("Can not access image data")}else c=u.data}else if(h){if(b===void 0)throw new Error("Please provide image config with format for Imagebitmap");if(b.bitmapFormat!==void 0)throw new Error("Image input config format must be defined for ImageBitmap");const s=document.createElement("canvas").getContext("2d");if(s!=null){const i=u.height,t=u.width;if(s.drawImage(u,0,0,t,i),c=s.getImageData(0,0,t,i).data,b!==void 0){if(b.height!==void 0&&b.height!==i)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=i,b.width!==void 0&&b.width!==t)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t}else f.height=i,f.width=t;return at.bufferToTensor(c,f)}else throw new Error("Can not access image data")}else{if(o)return new Promise((s,i)=>{const t=document.createElement("canvas"),e=t.getContext("2d");if(!u||!e)return i();const n=new Image;n.crossOrigin="Anonymous",n.src=u,n.onload=()=>{t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height);const r=e.getImageData(0,0,t.width,t.height);if(b!==void 0){if(b.height!==void 0&&b.height!==t.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(f.height=t.height,b.width!==void 0&&b.width!==t.width)throw new Error("Image input config width doesn't match ImageBitmap width");f.width=t.width}else f.height=t.height,f.width=t.width;s(at.bufferToTensor(r.data,f))}});throw new Error("Input data provided is not supported - aborted tensor creation")}if(c!==void 0)return at.bufferToTensor(c,f);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(u){var b,g;const p=document.createElement("canvas").getContext("2d");let h;if(p!=null){const o=this.dims[3],c=this.dims[2],f=this.dims[1],s=u!==void 0&&u.format!==void 0?u.format:"RGB",i=u!==void 0&&((b=u.norm)===null||b===void 0?void 0:b.mean)!==void 0?u.norm.mean:255,t=u!==void 0&&((g=u.norm)===null||g===void 0?void 0:g.bias)!==void 0?u.norm.bias:0,e=c*o;if(u!==void 0){if(u.height!==void 0&&u.height!==c)throw new Error("Image output config height doesn't match tensor height");if(u.width!==void 0&&u.width!==o)throw new Error("Image output config width doesn't match tensor width");if(u.format!==void 0&&f===4&&u.format!=="RGBA"||f===3&&u.format!=="RGB"&&u.format!=="BGR")throw new Error("Tensor format doesn't match input tensor dims")}const n=4;let r=0,a=1,l=2,d=3,m=0,y=e,v=e*2,_=-1;s==="RGBA"?(m=0,y=e,v=e*2,_=e*3):s==="RGB"?(m=0,y=e,v=e*2):s==="RBG"&&(m=0,v=e,y=e*2),h=p.createImageData(o,c);for(let T=0;T<c*o;r+=n,a+=n,l+=n,d+=n,T++)h.data[r]=(this.data[m++]-t)*i,h.data[a]=(this.data[y++]-t)*i,h.data[l]=(this.data[v++]-t)*i,h.data[d]=_===-1?255:(this.data[_++]-t)*i}else throw new Error("Can not access image data");return h}reshape(u){return new at(this.type,this.data,u)}};const Tensor=Tensor$1;let InferenceSession$1=class cn{constructor(u){this.handler=u}async run(u,b,g){const p={};let h={};if(typeof u!="object"||u===null||u instanceof Tensor||Array.isArray(u))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let o=!0;if(typeof b=="object"){if(b===null)throw new TypeError("Unexpected argument[1]: cannot be null.");if(b instanceof Tensor)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(b)){if(b.length===0)throw new TypeError("'fetches' cannot be an empty array.");o=!1;for(const s of b){if(typeof s!="string")throw new TypeError("'fetches' must be a string array or an object.");if(this.outputNames.indexOf(s)===-1)throw new RangeError(`'fetches' contains invalid output name: ${s}.`);p[s]=null}if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else{let s=!1;const i=Object.getOwnPropertyNames(b);for(const t of this.outputNames)if(i.indexOf(t)!==-1){const e=b[t];(e===null||e instanceof Tensor)&&(s=!0,o=!1,p[t]=e)}if(s){if(typeof g=="object"&&g!==null)h=g;else if(typeof g<"u")throw new TypeError("'options' must be an object.")}else h=b}}else if(typeof b<"u")throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const s of this.inputNames)if(typeof u[s]>"u")throw new Error(`input '${s}' is missing in 'feeds'.`);if(o)for(const s of this.outputNames)p[s]=null;const c=await this.handler.run(u,p,h),f={};for(const s in c)Object.hasOwnProperty.call(c,s)&&(f[s]=new Tensor(c[s].type,c[s].data,c[s].dims));return f}static async create(u,b,g,p){let h,o={};if(typeof u=="string"){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof Uint8Array){if(h=u,typeof b=="object"&&b!==null)o=b;else if(typeof b<"u")throw new TypeError("'options' must be an object.")}else if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer){const t=u;let e=0,n=u.byteLength;if(typeof b=="object"&&b!==null)o=b;else if(typeof b=="number"){if(e=b,!Number.isSafeInteger(e))throw new RangeError("'byteOffset' must be an integer.");if(e<0||e>=t.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${t.byteLength}).`);if(n=u.byteLength-e,typeof g=="number"){if(n=g,!Number.isSafeInteger(n))throw new RangeError("'byteLength' must be an integer.");if(n<=0||e+n>t.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${t.byteLength-e}].`);if(typeof p=="object"&&p!==null)o=p;else if(typeof p<"u")throw new TypeError("'options' must be an object.")}else if(typeof g<"u")throw new TypeError("'byteLength' must be a number.")}else if(typeof b<"u")throw new TypeError("'options' must be an object.");h=new Uint8Array(t,e,n)}else throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");const f=(o.executionProviders||[]).map(t=>typeof t=="string"?t:t.name),i=await(await resolveBackend(f)).createSessionHandler(h,o);return new cn(i)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}};const InferenceSession=InferenceSession$1,lib=Object.freeze(Object.defineProperty({__proto__:null,InferenceSession,Tensor,env,registerBackend},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(lib);/*!
|
2 |
* ONNX Runtime Web v1.14.0
|
3 |
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4 |
* Licensed under the MIT License.
|
assets/index-DNAD4LwH.css
DELETED
The diff for this file is too large to render.
See raw diff
|
|
assets/{index-CNzZZkJC.js → index-DZ5lGleA.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
assets/index-Dl9xD-MO.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as r,C as a,c as l,o as s,a as t,u as i,F as u}from"./index-DZ5lGleA.js";import{b as n}from"./route-block-B_A1xBdJ.js";const d={flex:"~ row","items-center":"","gap-2":""},f=r({__name:"index",setup(m){const o=a();return(p,e)=>(s(),l(u,null,[t("div",d,[t("button",{onClick:e[0]||(e[0]=x=>i(o).back())},e[1]||(e[1]=[t("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),e[2]||(e[2]=t("h1",{relative:""},[t("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[t("span",{text:"neutral-300 dark:neutral-800"},"Settings")]),t("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),e[3]||(e[3]=t("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:paintbrush":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof n=="function"&&n(f);export{f as default};
|
assets/index-OlSna3rY.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as f,C as g,x as p,D as v,c as t,o as n,a as e,u as r,F as s,E as m,b,p as k,s as x,t as _,G as h}from"./index-DZ5lGleA.js";import"./emotions-DklqG3pM.js";import{u as w}from"./providers-CNgYktmt.js";import{b as a}from"./route-block-B_A1xBdJ.js";const y={flex:"~ row","items-center":"","gap-2":""},C={grid:"~ cols-3 gap-2"},L={flex:"~ col 1","gap-1.5":""},z={"p-2":""},R={key:0,"size-3":"",bg:"green-500 dark:green-600","rounded-full":""},S={key:1,"size-3":"",bg:"neutral-400 dark:neutral-500","rounded-full":""},A=f({__name:"index",setup(F){const l=g(),d=w(),{configuredForOpenRouter:u}=p(d),c=v(()=>[{id:"openrouter-ai",name:"OpenRouter",icon:"i-lobe-icons:openrouter",to:"/settings/providers/openrouter",configured:u.value},{id:"openai",name:"OpenAI",icon:"i-lobe-icons:openai",to:"/settings/providers/openai",configured:!1},{id:"ollama-ai",name:"Ollama",icon:"i-lobe-icons:ollama",to:"/settings/providers/ollama",configured:!1},{id:"vllm",name:"vLLM",icon:"i-lobe-icons:vllm-color",to:"/settings/providers/vllm",configured:!1},{id:"elevenlabs",name:"ElevenLabs",icon:"i-simple-icons:elevenlabs",to:"/settings/providers/elevenlabs",configured:!1},{id:"xai",name:"xAI",icon:"i-lobe-icons:xai",to:"/settings/providers/xai",configured:!1},{id:"deepseek",name:"DeepSeek",icon:"i-lobe-icons:deepseek-color",to:"/settings/providers/deepseek",configured:!1},{id:"together-ai",name:"Together.ai",icon:"i-lobe-icons:together-color",to:"/settings/providers/together",configured:!1},{id:"novita-ai",name:"Novita",icon:"i-lobe-icons:novita-color",to:"/settings/providers/novita",configured:!1},{id:"fireworks-ai",name:"Fireworks.ai",icon:"i-lobe-icons:fireworks",to:"/settings/providers/fireworks",configured:!1},{id:"cloudflare-workers-ai",name:"Cloudflare Workers AI",icon:"i-lobe-icons:cloudflare-color",to:"/settings/providers/cloudflare",configured:!1},{id:"mistral-ai",name:"Mistral",icon:"i-lobe-icons:mistral-color",to:"/settings/providers/mistral",configured:!1},{id:"moonshot-ai",name:"Moonshot AI",icon:"i-lobe-icons:moonshot",to:"/settings/providers/moonshot",configured:!1}]);return(I,o)=>(n(),t(s,null,[e("div",y,[e("button",{onClick:o[0]||(o[0]=i=>r(l).back())},o[1]||(o[1]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),o[2]||(o[2]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-800"},"Settings")]),e("div",{"text-3xl":"","font-semibold":""}," Providers ")],-1))]),e("div",C,[(n(!0),t(s,null,m(c.value,i=>(n(),t("div",{key:i.id,bg:"neutral-300/50 dark:neutral-600","w-full":"","of-hidden":"","rounded-xl":"",flex:"~ col 1"},[b(r(h),{to:i.to,bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","h-full":"","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-5":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0"},{default:k(()=>[e("div",L,[e("div",{class:x([i.icon,"provider-icon size-10"]),transition:"filter duration-250 ease-in-out"},null,2),e("div",null,_(i.name),1)])]),_:2},1032,["to"]),e("div",z,[i.configured?(n(),t("div",R)):(n(),t("div",S))])]))),128))]),o[3]||(o[3]=e("div",{fixed:"","bottom-0":"","right-0":"","z--1":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lucide:brain":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});typeof a=="function"&&a(A);export{A as default};
|
assets/index-fsj6M-Hz.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as v,r as m,m as f,o as r,p as _,a as t,c as u,k as p,f as b,t as a,s as y,v as w,x as C,y as T,l as z,b as l,u as i,z as B,A as L,B as M,T as R,F as S}from"./index-DZ5lGleA.js";import"./emotions-DklqG3pM.js";import{b as h}from"./route-block-B_A1xBdJ.js";const V={"z-1":"","flex-1":""},$={"text-lg":"","font-bold":"",class:"settings-section-title",transition:"all ease-in-out duration-200"},D={text:"sm neutral-500 dark:neutral-400",class:"settings-section-description",transition:"all ease-in-out duration-200"},d=v({__name:"IconItem",props:{title:null,description:null,icon:null,iconTemplate:{type:Boolean},to:null},setup(o){return(s,c)=>{const n=m("RouterLink");return r(),f(n,{flex:"~ row",bg:"white dark:neutral-800",border:"neutral-100 dark:neutral-700 hover:pink-300 dark:hover:pink-200/40 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:"[&_.settings-section-icon]:hover:scale-120 [&_.settings-section-description]:hover:text-pink-400/80 [&_.settings-section-icon]:hover:text-pink-200 [&_.settings-section-title]:hover:text-pink-500 dark:[&_.settings-section-icon]:hover:text-pink-200/40 dark:[&_.settings-section-title]:hover:text-pink-400",transition:"all ease-in-out duration-200",relative:"","w-full":"","items-center":"","overflow-hidden":"","rounded-lg":"","p-5":"","text-left":"",to:o.to},{default:_(()=>[t("div",V,[t("div",$,a(o.title),1),t("div",D,[t("span",null,a(o.description),1)])]),typeof o.icon=="string"?(r(),u("div",{key:0,class:y(["settings-section-icon",[o.icon]]),transition:"all ease-in-out duration-500",absolute:"","right-0":"","size-24":"","translate-y-4":"",text:"neutral-400/50 dark:neutral-600/50"},null,2)):p("",!0),o.iconTemplate?b(s.$slots,"icon",{key:1}):p("",!0)]),_:3},8,["to"])}}}),N={flex:"~ col gap-4"},I={flex:"~ col gap-4"},F={flex:"~ col gap-4"},U={grid:"~ cols-[150px_1fr]",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":""},j={text:"sm"},A={flex:"~ row","w-full":"","justify-end":""},E={value:"en-US"},G={value:"zh-CN"},P={bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","cursor-pointer":"","rounded-lg":"","px-4":"","py-3":""},q=["checked","aria-checked"],H={flex:"~ row","w-full":"","items-center":"","gap-1.5":""},J={text:"sm","w-full":"","flex-1":""},K={"select-none":""},O={key:0,"i-solar:moon-stars-bold-duotone":"",transition:"all ease-in-out duration-250"},Q={key:1,"i-solar:sun-fog-bold-duotone":"",transition:"all ease-in-out duration-250"},W=v({__name:"index",setup(o){const{t:s}=w(),c=C(T()),n=z();function x(g){const e=g.target;c.language.value=e.value}return(g,e)=>(r(),u(S,null,[e[3]||(e[3]=t("div",null,[t("h1",{"text-3xl":""}," Settings ")],-1)),t("div",N,[t("div",I,[l(d,{title:"Modules",description:"Thinking, vision, speech synthesis, gaming, etc.",icon:"i-lucide:blocks",to:"/settings/modules"}),l(d,{title:"Models",description:"Live2D, VRM, etc.",icon:"i-lucide:person-standing",to:"/settings/models"}),l(d,{title:"Providers",description:"LLMs, speech providers, etc.",icon:"i-lucide:brain",to:"/settings/providers"}),l(d,{title:"Themes",description:"Customize your stage!",icon:"i-lucide:paintbrush",to:"/settings/themes"})]),e[1]||(e[1]=t("div",null,[t("h2",{"text-2xl":""}," General ")],-1)),t("div",F,[t("div",U,[t("div",j,[t("span",null,a(i(s)("settings.language.title")),1)]),t("div",A,[t("select",{class:"w-32",bg:"transparent",text:"sm right neutral-800 dark:neutral-100",transition:"all ease-in-out duration-250",outline:"none",onChange:x},[t("option",E,a(i(s)("settings.language.english")),1),t("option",G,a(i(s)("settings.language.chinese")),1)],32)])]),t("label",P,[B(t("input",{"onUpdate:modelValue":e[0]||(e[0]=k=>M(n)?n.value=k:null),text:"neutral-800 dark:neutral-100",checked:i(n),"aria-checked":i(n),type:"checkbox",hidden:"","appearance-none":"","outline-none":""},null,8,q),[[L,i(n)]]),t("div",H,[t("div",J,[t("span",null,a(i(s)("settings.theme")),1)]),t("div",K,[l(R,{name:"slide-away",mode:"out-in"},{default:_(()=>[i(n)?(r(),u("div",O)):(r(),u("div",Q))]),_:1})])])])]),e[2]||(e[2]=t("div",{fixed:"","bottom-0":"","right-0":"",text:"neutral-100/50 dark:neutral-500/20"},[t("div",{text:"40","i-lucide:cog":"","translate-x-10":"","translate-y-10":""})],-1))])],64))}});typeof h=="function"&&h(W);export{W as default};
|
assets/index-oxYDtIE-.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
assets/messages-C8V3xXAE.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{b as m,_ as g,l as _}from"./queues-CN_SgnPR.js";import"./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js";import"./emotions-DklqG3pM.js";import{u as v}from"./queue-ZFpHmuhF.js";import{d as b,g as t,c as l,o as u,a as e,b as x,u as k,t as c,F as h,E as z}from"./index-DZ5lGleA.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"messages",setup(Q){const s=t(""),d=t([]),a=t(!1),p=v({handlers:[async i=>{d.value.push(i.data)}]}),r=m(p);async function f(){a.value=!0,r.add(s.value),r.add(_),s.value="",a.value=!1}return(i,n)=>(u(),l("div",w,[e("div",S,[x(k(g),{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:f},null,8,["modelValue"]),e("button",V,c(a.value?"Processing...":"Send"),1)]),e("div",y,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(u(!0),l(h,null,z(d.value,o=>(u(),l("div",{key:o},[e("div",null,c(o),1)]))),128))])])]))}});export{I as default};
|
assets/messages-DZlu7Cca.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{b as m,_ as g,l as _}from"./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js";import{u as v}from"./queue-BVxfxn-s.js";import{d as b,f as t,c as l,o as u,j as e,a as x,b as k,t as c,F as h,s as z}from"./index-CNzZZkJC.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},S={flex:"","flex-row":"","gap-2":""},V={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},y={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E=b({__name:"messages",setup(Q){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)=>(u(),l("div",w,[e("div",S,[x(k(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",V,c(o.value?"Processing...":"Send"),1)]),e("div",y,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(u(!0),l(h,null,z(d.value,a=>(u(),l("div",{key:a},[e("div",null,c(a),1)]))),128))])])]))}});export{E as default};
|
|
|
|
assets/openrouter-BBeUx_1d.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as b,C as g,x as w,g as i,H as k,i as z,w as y,c as C,o as U,a as e,u as s,b as V,z as d,I as K,J as p,p as v,s as R,K as B,F as A}from"./index-DZ5lGleA.js";import{_ as T}from"./Collapsable.vue_vue_type_script_setup_true_lang-BAn-FpqP.js";import"./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js";import"./emotions-DklqG3pM.js";import{u as I}from"./providers-CNgYktmt.js";const M={flex:"~ row","items-center":"","gap-2":""},N={grid:"~ cols-2 gap-4"},S=["onClick"],F={"mt-4":""},L={grid:"~ cols-2 gap-4"},J=b({__name:"openrouter",setup(O){var l,u;const x=g(),f=I(),{providers:n}=w(f),r=i(((l=n.value["openrouter-ai"])==null?void 0:l.apiKey)||""),a=i(((u=n.value["openrouter-ai"])==null?void 0:u.baseUrl)||""),m=i(!1),c=k(m);return z(()=>{n.value["openrouter-ai"]||(n.value["openrouter-ai"]={baseUrl:"https://openrouter.ai/api/v1/"})}),y([r,a],()=>{n.value["openrouter-ai"]={apiKey:r.value,baseUrl:a.value||"https://openrouter.ai/api/v1/"}}),(P,t)=>(U(),C(A,null,[e("div",M,[e("button",{onClick:t[0]||(t[0]=o=>s(x).back())},t[3]||(t[3]=[e("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),t[4]||(t[4]=e("h1",{relative:""},[e("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[e("span",{text:"neutral-300 dark:neutral-800"},"Provider")]),e("div",{"text-3xl":"","font-semibold":""}," OpenRouter ")],-1))]),e("form",{flex:"~ col gap-4",onSubmit:B(()=>{},["prevent"])},[t[9]||(t[9]=e("div",null,[e("h2",{"text-2xl":""},[e("span",null,"Basic")])],-1)),e("div",null,[e("label",N,[t[5]||(t[5]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"},[K(" API Key "),e("span",{class:"text-red-500"},"*")]),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400","text-nowrap":""}," API Key for OpenRouter ")],-1)),d(e("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>r.value=o),type:"password",border:"zinc-300 dark:zinc-800 solid 1 focus:zinc-400 dark:focus:zinc-600",transition:"border duration-250 ease-in-out","w-full":"",rounded:"","px-2":"","py-1":"","text-nowrap":"","text-sm":"","outline-none":"",placeholder:"sk-or-..."},null,512),[[p,r.value]])])]),V(s(T),{"w-full":""},{trigger:v(o=>[e("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:()=>o.setVisible(!o.visible)&&s(c)()},[t[7]||(t[7]=e("h2",{"text-2xl":""},[e("span",null,"Advanced")],-1)),e("div",{transform:"",transition:"transform duration-250",class:R({"rotate-180":o.visible})},t[6]||(t[6]=[e("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,S)]),default:v(()=>[e("div",F,[e("label",L,[t[8]||(t[8]=e("div",null,[e("div",{class:"flex items-center gap-1 text-sm font-medium"}," Base URL "),e("div",{class:"text-xs text-zinc-500 dark:text-zinc-400"}," Custom base URL (optional) ")],-1)),d(e("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>a.value=o),type:"text",border:"zinc-300 dark:zinc-800 solid 1 focus:zinc-400 dark:focus:zinc-600",transition:"border duration-250 ease-in-out","w-full":"",rounded:"","px-2":"","py-1":"","text-nowrap":"","text-sm":"","outline-none":"",placeholder:"https://openrouter.ai/api/v1/"},null,512),[[p,a.value]])])])]),_:1})],32),t[10]||(t[10]=e("div",{fixed:"","bottom-0":"","right-0":"",text:"neutral-100/80 dark:neutral-500/20"},[e("div",{text:"40","i-lobe-icons:openrouter":"","translate-x-10":"","translate-y-10":""})],-1))],64))}});export{J as default};
|
assets/providers-CNgYktmt.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{L as a,cg as r,D as u}from"./index-DZ5lGleA.js";const d=a("providers",()=>{const e=r("settings/credentials/providers",{}),t=r("settings/credentials/coreControllerProvider","openai"),s=r("settings/credentials/audioSynthesisProvider","elevenlabs"),o=u(()=>!!e.value["openrouter-ai"].baseUrl&&!!e.value["openrouter-ai"].apiKey);function n(i){switch(i){case"openrouter-ai":return o.value;default:return!1}}return{providers:e,coreControllerProvider:t,audioSynthesisProvider:s,configuredForOpenRouter:o,configuredFor:n}});export{d as u};
|
assets/{queue-BVxfxn-s.js → queue-ZFpHmuhF.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{
|
|
|
1 |
+
import{g as l}from"./index-DZ5lGleA.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 g(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=g();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-Dg46AAvh.js → queue-g1N1d7OX.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{u as o}from"./queue-
|
|
|
1 |
+
import{u as o}from"./queue-ZFpHmuhF.js";import{d as v,g as h,i as g,c as k,o as w,a as I}from"./index-DZ5lGleA.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 g(()=>{m()}),(e,a)=>(w(),k("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
|
assets/queues-CN_SgnPR.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
import{d as g,ce as h,cf as y,g as d,i as k,z as E,J as M,o as x,c as w,n as b,bK as T}from"./index-DZ5lGleA.js";import{E as m}from"./emotions-DklqG3pM.js";import{u as c}from"./queue-ZFpHmuhF.js";const H=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:h(["submit"],["update:modelValue"]),setup(r,{emit:n}){const t=n,a=y(r,"modelValue"),e=d(),s=d({height:"auto",overflowY:"hidden"});function u(o){o.target instanceof HTMLTextAreaElement&&(o.target.style.height="auto",o.target.style.height=`${o.target.scrollHeight}px`)}function v(o){var i,l;if(o.target instanceof HTMLTextAreaElement)if(o.code==="Enter"&&o.shiftKey){o.preventDefault();const f=(i=o.target)==null?void 0:i.selectionStart,p=(l=o.target)==null?void 0:l.selectionEnd;a.value=`${a.value.substring(0,f)}
|
2 |
+
${a.value.substring(p)}`,s.value.height="0",T().then(()=>{e.value&&(e.value.selectionStart=e.value.selectionEnd=f+1,s.value.height=`${e.value.scrollHeight}px`)})}else o.code==="Enter"&&(o.preventDefault(),t("submit",a.value))}return k(()=>{e.value&&(s.value.height=`${e.value.scrollHeight}px`)}),(o,i)=>E((x(),w("textarea",{ref_key:"textareaRef",ref:e,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),style:b(s.value),onInput:u,onKeydown:v},null,36)),[[M,a.value]])}}),_="<|llm_inference_end|>";function L(r){function n(t){for(const a of m)if(t.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return c({handlers:[async t=>{if(m.includes(t.data)){t.emit("emotion",t.data),await r.add(t.data);return}{const{ok:a,emotion:e}=n(t.data);a&&(t.emit("emotion",e),await r.add(e))}}]})}function N(){function r(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 s=Number.parseFloat(e);return s<=0||Number.isNaN(s)?{ok:!0,delay:0}:{ok:!0,delay:s}}function n(t){return new Promise(a=>setTimeout(a,t))}return c({handlers:[async t=>{const{ok:a,delay:e}=r(t.data);a&&(t.emit("delay",e),await n(e*1e3))}]})}function V(r){const n=d("");return c({handlers:[async t=>{if(t.data===_){const e=n.value.trim();e&&await r.add(e),n.value="";return}const a=/[.?!]/;for(n.value+=t.data;n.value;){const e=a.exec(n.value);if(!e||typeof e.index>"u")break;const s=n.value.slice(0,e.index+1),u=n.value.slice(e.index+1);await r.add(s),n.value=u}}]})}export{H as _,L as a,V as b,_ as l,N as u};
|
assets/route-block-B_A1xBdJ.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const o={};export{o as b};
|
assets/route-block-C2Qj5N7z.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.slide-forward-enter-active[data-v-2a32d08f],.slide-forward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-forward-enter-from[data-v-2a32d08f]{transform:translate(100%)}.slide-forward-leave-to[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-forward-enter-to[data-v-2a32d08f],.slide-forward-leave-from[data-v-2a32d08f]{transform:translate(0)}.slide-backward-enter-active[data-v-2a32d08f],.slide-backward-leave-active[data-v-2a32d08f]{transition:all .2s ease;position:absolute;width:100%}.slide-backward-enter-from[data-v-2a32d08f]{transform:translate(-30%);opacity:0}.slide-backward-leave-to[data-v-2a32d08f]{transform:translate(100%)}.slide-backward-enter-to[data-v-2a32d08f],.slide-backward-leave-from[data-v-2a32d08f]{transform:translate(0)}.animate-stripe[data-v-0d5311ad]{background-image:repeating-linear-gradient(-45deg,#a16207,#a16207 25px,#eab308 25px,#eab308 50px);background-size:175% 100%}.animate-stripe[data-v-0d5311ad]:hover{animation:progress-0d5311ad 2s linear infinite}@-webkit-keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-75px 0px}}@-moz-keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-75px 0px}}@-ms-keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-75px 0px}}@keyframes progress-0d5311ad{0%{background-position:0 0}to{background-position:-70px 0px}}
|
|
|
|
assets/stage-BNXQcg1K.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{d as p,e as s,c,b as d,r as i,n as m,u as e,o as l}from"./index-DZ5lGleA.js";const x=p({__name:"stage",setup(u){const{top:t,right:o,bottom:a,left:n}=s();return(f,_)=>{const r=i("RouterView");return l(),c("main",{text:"gray-700 dark:gray-200","h-full":"","font-cuteen":"",style:m({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{x as default};
|
assets/v2-B3PKMbLG.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import"./Stage.vue_vue_type_style_index_0_scoped_cb0f3d8a_lang-BVyOe5jO.js";import"./emotions-DklqG3pM.js";import{_ as t,M as i,W as s,I as r,a as m}from"./MobileInteractiveArea.vue_vue_type_script_setup_true_lang-C4nXpcOG.js";import{d,c,o as l,a as o,b as e,u as n}from"./index-DZ5lGleA.js";import{b as a}from"./route-block-B_A1xBdJ.js";import"./queue-ZFpHmuhF.js";import"./queues-CN_SgnPR.js";import"./Collapsable.vue_vue_type_script_setup_true_lang-BAn-FpqP.js";import"./HeaderLink.vue_vue_type_script_setup_true_lang-DetAtGCq.js";import"./index-D-tfxwlq.js";import"./providers-CNgYktmt.js";const p={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},f={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},_=d({__name:"v2",setup(x){return(h,v)=>(l(),c("div",null,[o("div",p,[o("div",null,[e(t,{class:"flex <md:hidden",p2:""}),e(i,{class:"hidden <md:block"})]),o("div",f,[e(n(s),{"flex-1":"","min-w":"1/2"}),e(r,{class:"flex <md:hidden","flex-1":"","max-w":"30%"}),e(m,{class:"hidden <md:block",mx2:"",mb2:""})])])]))}});typeof a=="function"&&a(_);export{_ as default};
|
assets/v2-PzbfBEqP.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import"./Stage.vue_vue_type_style_index_0_scoped_9ee4a4e3_lang-DIA00uAz.js";import{_ as s,M as t,W as i,I as d,a as c,b as o}from"./route-block-Dyzmoxo6.js";import{d as l,c as n,o as r,j as a,a as e,b as m}from"./index-CNzZZkJC.js";import"./queue-BVxfxn-s.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-DSsTE9Un.js";const f={relative:"",flex:"~ col","z-2":"","h-100vh":"","w-100vw":"","of-hidden":""},_={relative:"",flex:"~ 1 row gap-y-0 gap-x-2 <md:col"},p=l({__name:"v2",setup(x){return(h,v)=>(r(),n("div",null,[a("div",f,[a("div",null,[e(s,{class:"flex <md:hidden",p2:""}),e(t,{class:"hidden <md:block"})]),a("div",_,[e(m(i),{"flex-1":"","min-w":"1/2"}),e(d,{class:"flex <md:hidden","flex-1":"","max-w":"30%"}),e(c,{class:"hidden <md:block",mx2:"",mb2:""})])])]))}});typeof o=="function"&&o(p);export{p as default};
|
|
|
|
index.html
CHANGED
@@ -18,13 +18,13 @@
|
|
18 |
</script>
|
19 |
<script
|
20 |
defer
|
21 |
-
data-domain="airi.
|
22 |
data-api="/api/v1/page-external-data/submit"
|
23 |
src="/remote-assets/page-external-data/js/script.js"
|
24 |
></script>
|
25 |
<script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
|
26 |
-
<script type="module" crossorigin src="/assets/index-
|
27 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
28 |
</head>
|
29 |
<body class="font-sans">
|
30 |
<div id="app"></div>
|
|
|
18 |
</script>
|
19 |
<script
|
20 |
defer
|
21 |
+
data-domain="airi.moeru.ai"
|
22 |
data-api="/api/v1/page-external-data/submit"
|
23 |
src="/remote-assets/page-external-data/js/script.js"
|
24 |
></script>
|
25 |
<script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
|
26 |
+
<script type="module" crossorigin src="/assets/index-DZ5lGleA.js"></script>
|
27 |
+
<link rel="stylesheet" crossorigin href="/assets/index-oxYDtIE-.css">
|
28 |
</head>
|
29 |
<body class="font-sans">
|
30 |
<div id="app"></div>
|