@liip/liipgpt 3.1.7 → 3.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/chat/liipgpt-chat.iife.js +1 -1
  2. package/configurator/_app/env.js +1 -1
  3. package/configurator/_app/immutable/chunks/2ugYyY2X.js +1 -0
  4. package/configurator/_app/immutable/chunks/{CKY99Gic.js → 4cQXnQ3V.js} +1 -1
  5. package/configurator/_app/immutable/chunks/{hjssItmR.js → Cx74185N.js} +1 -1
  6. package/configurator/_app/immutable/chunks/D4lwqaWa.js +3 -0
  7. package/configurator/_app/immutable/chunks/{CA9QnFog.js → DHUEE9MT.js} +1 -1
  8. package/configurator/_app/immutable/chunks/{CI7DFtLc.js → DXipytF0.js} +1 -1
  9. package/configurator/_app/immutable/chunks/{B124_Z4-.js → DdRBmKzm.js} +1 -1
  10. package/configurator/_app/immutable/chunks/{pxFTKbVE.js → Dj93PFYu.js} +2 -2
  11. package/configurator/_app/immutable/chunks/{CBDGXapX.js → Dxho-9wN.js} +1 -1
  12. package/configurator/_app/immutable/entry/{app.CsTU4Z7r.js → app.vpbo6kpx.js} +2 -2
  13. package/configurator/_app/immutable/entry/start.DTHjtGzf.js +1 -0
  14. package/configurator/_app/immutable/nodes/{0.2cxdkdcK.js → 0.EPN_HuU5.js} +1 -1
  15. package/configurator/_app/immutable/nodes/{1.Pui-K7bP.js → 1.BZhfFTHA.js} +1 -1
  16. package/configurator/_app/immutable/nodes/{2.Cwl2Ol5Y.js → 2.C0G2N3Zk.js} +3 -3
  17. package/configurator/_app/immutable/nodes/{3.Cn8Eednf.js → 3.BqWmbgRI.js} +1 -1
  18. package/configurator/_app/version.json +1 -1
  19. package/configurator/index.html +6 -6
  20. package/configurator/sidebar.html +6 -6
  21. package/package.json +1 -1
  22. package/configurator/_app/immutable/chunks/B1VQlL-o.js +0 -3
  23. package/configurator/_app/immutable/chunks/BbjS28fo.js +0 -1
  24. package/configurator/_app/immutable/entry/start.B49AGbh4.js +0 -1
@@ -1 +1 @@
1
- import"./NZTpNUN0.js";import{p as B,F as L,G as h,H as S,d as T,v as r,c as A}from"./Cx_YT9bD.js";import{p as o,s as R}from"./DePuinxN.js";import{C as U}from"./CKY99Gic.js";import{E as _}from"./CI7DFtLc.js";function E(b,t){B(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),n=o(t,"speechRecognitionApiKey",7),u=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),d=o(t,"inlineLayout",7),m=S(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:n(),lang:u(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p(),inlineLayout:d()}));{const e=(K,k=L)=>{U(K,R({host:t.$$host,get onError(){return k()}},()=>h(m)))};let C=S(()=>h(m).flyout??!1);_(b,{get silent(){return h(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return n()},set speechRecognitionApiKey(e){n(e),r()},get lang(){return u()},set lang(e){u(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()},get inlineLayout(){return d()},set inlineLayout(e){d(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"},inlineLayout:{attribute:"inline-layout",type:"Boolean"}},[],[],!0));export{E as LiipGPTChat};
1
+ import"./NZTpNUN0.js";import{p as B,F as L,G as h,H as S,d as T,v as r,c as A}from"./Cx_YT9bD.js";import{p as o,s as R}from"./DePuinxN.js";import{C as U}from"./4cQXnQ3V.js";import{E as _}from"./DXipytF0.js";function E(b,t){B(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),n=o(t,"speechRecognitionApiKey",7),u=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),d=o(t,"inlineLayout",7),m=S(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:n(),lang:u(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p(),inlineLayout:d()}));{const e=(K,k=L)=>{U(K,R({host:t.$$host,get onError(){return k()}},()=>h(m)))};let C=S(()=>h(m).flyout??!1);_(b,{get silent(){return h(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return n()},set speechRecognitionApiKey(e){n(e),r()},get lang(){return u()},set lang(e){u(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()},get inlineLayout(){return d()},set inlineLayout(e){d(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"},inlineLayout:{attribute:"inline-layout",type:"Boolean"}},[],[],!0));export{E as LiipGPTChat};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.2cxdkdcK.js","../chunks/B124_Z4-.js","../chunks/NZTpNUN0.js","../chunks/Cx_YT9bD.js","../chunks/DePuinxN.js","../nodes/1.Pui-K7bP.js","../chunks/BbjS28fo.js","../chunks/B1VQlL-o.js","../chunks/D54U55sL.js","../chunks/CDW8Ir6T.js","../nodes/2.Cwl2Ol5Y.js","../chunks/B0YFyw9m.js","../chunks/pxFTKbVE.js","../nodes/3.Cn8Eednf.js","../chunks/CKY99Gic.js","../chunks/hjssItmR.js"])))=>i.map(i=>d[i]);
2
- import{i as x,c as O,b as D,_ as E}from"../chunks/B0YFyw9m.js";import{c as K,p as Q,I as U,u as W,G as i,P as I,T as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,N as T,H as w,e as $,r as tt,a8 as et,t as rt,g as at,a9 as st}from"../chunks/Cx_YT9bD.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/D54U55sL.js";import{p as u}from"../chunks/DePuinxN.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),_=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(_())),W(()=>{m(),_(),o(),r(),d(),f(),b(),m().page.notify()});let y=I(!1),A=I(!1),L=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(A,!0),X().then(()=>{R(L,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=w(()=>o()[1]);var V=it(),k=P(V);{var M=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params},children:(h,mt)=>{var j=T(),z=P(j);O(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return d()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},N=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};x(k,t=>{o()[1]?t(M):t(N,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(L))),p(n,l)};x(v,n=>{i(A)&&n(g)})}tt(a),p(t,a)};x(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return _()},set page(t){_(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}K(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.2cxdkdcK.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.Pui-K7bP.js"),__vite__mapDeps([5,2,6,3,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.Cwl2Ol5Y.js"),__vite__mapDeps([10,11,3,2,12,4,8,1,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.Cn8Eednf.js"),__vite__mapDeps([13,2,4,3,12,11,8,1,7,14,6,9,15]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.EPN_HuU5.js","../chunks/DdRBmKzm.js","../chunks/NZTpNUN0.js","../chunks/Cx_YT9bD.js","../chunks/DePuinxN.js","../nodes/1.BZhfFTHA.js","../chunks/2ugYyY2X.js","../chunks/D4lwqaWa.js","../chunks/D54U55sL.js","../chunks/CDW8Ir6T.js","../nodes/2.C0G2N3Zk.js","../chunks/B0YFyw9m.js","../chunks/Dj93PFYu.js","../nodes/3.BqWmbgRI.js","../chunks/4cQXnQ3V.js","../chunks/Cx74185N.js"])))=>i.map(i=>d[i]);
2
+ import{i as x,c as O,b as D,_ as E}from"../chunks/B0YFyw9m.js";import{c as K,p as Q,I as U,u as W,G as i,P as I,T as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,N as T,H as w,e as $,r as tt,a8 as et,t as rt,g as at,a9 as st}from"../chunks/Cx_YT9bD.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/D54U55sL.js";import{p as u}from"../chunks/DePuinxN.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),_=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(_())),W(()=>{m(),_(),o(),r(),d(),f(),b(),m().page.notify()});let y=I(!1),A=I(!1),L=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(A,!0),X().then(()=>{R(L,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=w(()=>o()[1]);var V=it(),k=P(V);{var M=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params},children:(h,mt)=>{var j=T(),z=P(j);O(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return d()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},N=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};x(k,t=>{o()[1]?t(M):t(N,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(L))),p(n,l)};x(v,n=>{i(A)&&n(g)})}tt(a),p(t,a)};x(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return _()},set page(t){_(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}K(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.EPN_HuU5.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.BZhfFTHA.js"),__vite__mapDeps([5,2,6,3,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.C0G2N3Zk.js"),__vite__mapDeps([10,11,3,2,12,4,8,1,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.BqWmbgRI.js"),__vite__mapDeps([13,2,4,3,12,11,8,1,7,14,6,9,15]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/D4lwqaWa.js";export{o as load_css,r as start};
@@ -1,4 +1,4 @@
1
- import{P as a}from"../chunks/B124_Z4-.js";import"../chunks/NZTpNUN0.js";import{c as r,p as l,N as c,a as u,Q as p,b as d,d as h,v as f}from"../chunks/Cx_YT9bD.js";import{p as g}from"../chunks/DePuinxN.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),m=["baselcitygpt"],y=async()=>{const n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.map(e=>m.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(i)},b=`/**
1
+ import{P as a}from"../chunks/DdRBmKzm.js";import"../chunks/NZTpNUN0.js";import{c as r,p as l,N as c,a as u,Q as p,b as d,d as h,v as f}from"../chunks/Cx_YT9bD.js";import{p as g}from"../chunks/DePuinxN.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),m=["baselcitygpt"],y=async()=>{const n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.map(e=>m.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(i)},b=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -1 +1 @@
1
- import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/BbjS28fo.js";import{c,p as h,f as l,a as u,t as _,b as v,d as g,e as s,r as o,s as d,g as p}from"../chunks/Cx_YT9bD.js";import{i as x}from"../chunks/CDW8Ir6T.js";var b=l("<h1> </h1> <p> </p>",1);function E(m,i){h(i,!1),x();var r=b(),t=u(r),f=s(t,!0);o(t);var a=d(t,2),n=s(a,!0);o(a),_(()=>{p(f,e.status),p(n,e.error?.message)}),v(m,r),g()}c(E,{},[],[],!0);export{E as component};
1
+ import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/2ugYyY2X.js";import{c,p as h,f as l,a as u,t as _,b as v,d as g,e as s,r as o,s as d,g as p}from"../chunks/Cx_YT9bD.js";import{i as x}from"../chunks/CDW8Ir6T.js";var b=l("<h1> </h1> <p> </p>",1);function E(m,i){h(i,!1),x();var r=b(),t=u(r),f=s(t,!0);o(t);var a=d(t,2),n=s(a,!0);o(a),_(()=>{p(f,e.status),p(n,e.error?.message)}),v(m,r),g()}c(E,{},[],[],!0);export{E as component};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/CBDGXapX.js","../chunks/NZTpNUN0.js","../chunks/Cx_YT9bD.js","../chunks/DePuinxN.js","../chunks/CKY99Gic.js","../chunks/D54U55sL.js","../chunks/B0YFyw9m.js","../chunks/pxFTKbVE.js","../chunks/B124_Z4-.js","../chunks/B1VQlL-o.js","../chunks/BbjS28fo.js","../chunks/CDW8Ir6T.js","../chunks/hjssItmR.js","../chunks/CI7DFtLc.js","../chunks/CA9QnFog.js"])))=>i.map(i=>d[i]);
2
- import{i as I,_ as Ct,b as Bt}from"../chunks/B0YFyw9m.js";import"../chunks/NZTpNUN0.js";import{c as X,p as Ee,f as _,s as e,e as a,t as K,b as l,d as De,v as ie,r as t,g as je,S as z,u as Y,o as da,aC as Mt,N as F,a as L,G as n,H as D,aD as ca,aE as Te,P as jt,aF as Pt,O as ua,T as Et}from"../chunks/Cx_YT9bD.js";import{a as se,s as R,l as At,m as va,j as v,n as pa,A as ma,e as W,i as V,I as ae,o as ha,C as Dt,t as ga,p as ba,S as r,q as wa,P as Le,R as Ce,r as Be,N as _a,u as fa,v as ya,w as xa,c as qa,x as ka,M as Sa,h as Pe,y as za,z as Ft,D as Ia}from"../chunks/pxFTKbVE.js";import{p as ne,s as Ta,r as La}from"../chunks/DePuinxN.js";import{g as Ca}from"../chunks/B1VQlL-o.js";import{p as Ba}from"../chunks/BbjS28fo.js";var ja=_('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const Pa={hash:"svelte-18q4g20",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-18q4g20 {opacity:1;}}.swatch__color.svelte-18q4g20 {aspect-ratio:1;width:100%;}.swatch__label.svelte-18q4g20 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/Dxho-9wN.js","../chunks/NZTpNUN0.js","../chunks/Cx_YT9bD.js","../chunks/DePuinxN.js","../chunks/4cQXnQ3V.js","../chunks/D54U55sL.js","../chunks/B0YFyw9m.js","../chunks/Dj93PFYu.js","../chunks/DdRBmKzm.js","../chunks/D4lwqaWa.js","../chunks/2ugYyY2X.js","../chunks/CDW8Ir6T.js","../chunks/Cx74185N.js","../chunks/DXipytF0.js","../chunks/DHUEE9MT.js"])))=>i.map(i=>d[i]);
2
+ import{i as I,_ as Ct,b as Bt}from"../chunks/B0YFyw9m.js";import"../chunks/NZTpNUN0.js";import{c as X,p as Ee,f as _,s as e,e as a,t as K,b as l,d as De,v as ie,r as t,g as je,S as z,u as Y,o as da,aC as Mt,N as F,a as L,G as n,H as D,aD as ca,aE as Te,P as jt,aF as Pt,O as ua,T as Et}from"../chunks/Cx_YT9bD.js";import{a as se,s as R,l as At,m as va,j as v,n as pa,A as ma,e as W,i as V,I as ae,o as ha,C as Dt,t as ga,p as ba,S as r,q as wa,P as Le,R as Ce,r as Be,N as _a,u as fa,v as ya,w as xa,c as qa,x as ka,M as Sa,h as Pe,y as za,z as Ft,D as Ia}from"../chunks/Dj93PFYu.js";import{p as ne,s as Ta,r as La}from"../chunks/DePuinxN.js";import{g as Ca}from"../chunks/D4lwqaWa.js";import{p as Ba}from"../chunks/2ugYyY2X.js";var ja=_('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const Pa={hash:"svelte-18q4g20",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-18q4g20 {opacity:1;}}.swatch__color.svelte-18q4g20 {aspect-ratio:1;width:100%;}.swatch__label.svelte-18q4g20 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
3
3
 
4
4
  @media (min-width: 768px) {display:block;
5
5
  }}`};function re(b,c){Ee(c,!1),se(b,Pa);let y=ne(c,"name",12),o=ne(c,"key",12),j=ne(c,"value",12);var x=ja(),M=a(x),A=e(M,2),U=a(A,!0);return t(A),t(x),K(()=>{R(x,"title",`Color ${o()}: ${j()}`),At(M,`background-color: var(--color-${y()??""}-${o()??""});`),je(U,o())}),l(b,x),De({get name(){return y()},set name(p){y(p),ie()},get key(){return o()},set key(p){o(p),ie()},get value(){return j()},set value(p){j(p),ie()}})}X(re,{name:{},key:{},value:{}},[],[],!0);var Ea=_('<ol><li class="toast" data-type="error"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Error notification</div></div></li> <li class="toast" data-type="warning"><div data-icon=""><svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg></div> <div data-content=""><div data-title="">Warning notification</div></div></li> <li class="toast" data-type="success"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon="" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Success notification</div></div></li> <li class="toast" data-type="info"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Info notification</div></div></li></ol>');function Ht(b){var c=Ea();l(b,c)}X(Ht,{},[],[],!0);var Da=_(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <p class="text-sm svelte-128qu17">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
@@ -27,4 +27,4 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
27
27
  dolore magna aliqua. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span> <span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate">www.very-very-longer-url-to-test.ch</span></span> <span class="reference__breadcrumb transition-colors">Organisation</span> <span class="reference__breadcrumb transition-colors">Über uns</span></span></a></div> <h2>Menu</h2> <div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><div class="chat-app__header-content"><!> <!> <!> <!></div></div> <h3>Menu example</h3> <div class="context-box__content svelte-12rj1z4"><div class="context-box__menu"><div class="context-box__menu-item transition-colors"><!> <span>Menü Beispiel</span></div></div> <div class="context-box__separator"></div> <div><div class="context-box__title">Sprache auswählen</div> <div class="context-box__menu"><div class="context-box__menu-item transition-colors active"><!> <span>Deutsch</span></div> <div class="context-box__menu-item transition-colors"><!> <span>English</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Français</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Italiano</span></div></div></div> <div class="context-box__separator" id="bits-c15" role="group" data-dropdown-menu-separator=""></div> <div id="bits-c16" data-dropdown-menu-radio-group="" role="group"><div class="context-box__color-scheme-selector"><div class="context-box__color-scheme-selector-button transition-colors context-box__color-scheme-selector-button--active"><!> <span>Hell</span></div> <hr class="context-box__color-scheme-selector-separator"/> <div class="context-box__color-scheme-selector-button transition-colors"><!> <span>Dunkel</span></div></div></div></div> <h2>Feedback Form</h2> <div class="dialog-content svelte-12rj1z4"><div class="dialog-header"><div class="dialog-title"><h3 class="h4">Feedback geben, um unseren Chatbot zu verbessern</h3></div> <button class="dialog-close"><span class="sr-only">Close</span> <div aria-hidden="true" class="svg svg--dismiss"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"></path><path d="m18.257 5.742-12.514 12.514"></path></g></svg></div></button></div> <div class="dialog-description" id="bits-92" data-dialog-description="" data-state="open"><form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div></form></div></div> <h2>Tooltip</h2> <div class="tooltip-container" style="height: 100px"><div class="tooltip tooltip-top" style="">I'm a tooltip</div></div></div> <div class="container text-container"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages svelte-12rj1z4"></div> <div class="text-container container"><hr/> <h2>Typography</h2> <!> <hr/> <h2>Icons</h2> <div style="color: currentColor; display: flex; flex-wrap: wrap; gap: 1rem;"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div> <!>`,3),Ua=_('<main class="chat-app svelte-12rj1z4"><!> <div class="chat-app__container svelte-12rj1z4"><div class="chat-app__main svelte-12rj1z4"><div class="chat-app__portals"></div> <!></div></div> <div></div></main>');const Na={hash:"svelte-12rj1z4",code:`.color-swatches.svelte-12rj1z4 {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-12rj1z4,
28
28
  .chat-app__container.svelte-12rj1z4 {width:100%;height:100%;background:var(--body-background);}.chat-page__messages.svelte-12rj1z4 {min-height:auto;padding-bottom:200px;}.context-menu.svelte-12rj1z4 {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-12rj1z4 {overflow-y:auto;}.chat-app__main.svelte-12rj1z4 {overflow-x:hidden;overscroll-behavior-x:none;background:transparent;touch-action:pan-y;}.card.svelte-12rj1z4 {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.dialog-content.svelte-12rj1z4 {position:relative;top:0;left:0;transform:none;}.references__container.svelte-12rj1z4 {background-color:var(--aside-background);}.context-box__content.svelte-12rj1z4 {position:relative;}`};function Ot(b,c){Ee(c,!0),se(b,Na);let y=ne(c,"data",7),o=D(()=>v.t);Y(()=>{const i={lang:y().options.lang.value,forceTheme:y().options?.["force-theme"]?.value,apiUrl:y().options["api-url"].value,features:""};da(()=>va.init(i).catch(s=>{console.error("Failed to init chat logic",s)}))});const j=Ma;var x=Ua();Mt(i=>{var s=F(),m=L(s);{var q=k=>{var h=Ha(),u=L(h);W(u,17,()=>v.themeBase.fontURLs??[],V,($,Q)=>{var J=Aa();K(()=>R(J,"href",n(Q))),l($,J)});var S=e(u,2);ae(S,{id:"font-css",get css(){return v.themeBase.fontCSS}});var w=e(S,2);{let $=D(()=>qa(v.theme));ae(w,{id:"theme-css",get css(){return n($)}})}var f=e(w,2);ae(f,{id:"app-css",get css(){return ha}});var G=e(f,2);ae(G,{id:"custom-css",get css(){return v.themeBase.customCSS}}),l(k,h)};I(m,k=>{v.initialized&&k(q)})}l(i,s)});let M;var A=a(x);{var U=i=>{var s=Ga(),m=a(s);Dt(m,{}),t(s),l(i,s)};I(A,i=>{v.initialized&&i(U)})}var p=e(A,2),H=a(p),N=a(H);pa(N,(i,s)=>ka?.(i,s),()=>"portals");var Z=e(N,2);{var ee=i=>{var s=Oa();ga(2,s,()=>ba,()=>({duration:200,delay:300})),l(i,s)},oe=i=>{var s=Ja(),m=L(s),q=e(a(m),8),k=a(q);{var h=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.brand),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"brand",get key(){return E()},get value(){return O()}})}),l(d,g)};I(k,d=>{v.theme.colors?.brand&&d(h)})}t(q);var u=e(q,4),S=a(u);{var w=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.highlight),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"highlight",get key(){return E()},get value(){return O()}})}),l(d,g)};I(S,d=>{v.theme?.colors?.highlight&&d(w)})}t(u);var f=e(u,4),G=a(f);{var $=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.grey),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"grey",get key(){return E()},get value(){return O()}})}),l(d,g)};I(G,d=>{v.theme?.colors?.grey&&d($)})}t(f),t(m);var Q=e(m,4),J=e(a(Q),8),Fe=a(J);r(Fe,{name:"avatar",class:"introduction__avatar"});var Rt=e(Fe,2);r(Rt,{name:"avatar",class:"message__bot-avatar"}),t(J);var Me=e(J,4);wa(Me,{onSubmit:()=>{}});var de=e(Me,2),Ae=a(de);Le(Ae,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var He=e(Ae,2);Le(He,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var Jt=e(He,2);Le(Jt,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),t(de);var ce=e(de,4),Ge=a(ce),Oe=a(Ge);Ce(Oe,{reference:{url:"https://www.liip.ch/en/blog/liip-revolutioniert-das-lohnsystem",score:.8279685974121094,metadata:{kwLang:"de",titleAi:"Revolutionizing Salary Systems with the Liip Deal",keywords:["salary system","self-organization","transparency","diversity","inclusion","Swiss HR Award"],documentIdSalt:"en"},considered:!0,display:{card:{title:"Liip revolutioniert das Lohnsystem",description:"A digital agency has developed an innovative, transparent, and self-organized salary system called the 'Liip Deal', which emphasizes equality, self-evaluation, and agility, earning it the Swiss HR Award in the category of diversity and inclusion.",badge:"www.liip.ch"},listItem:{title:"Liip revolutioniert das Lohnsystem",badge:"www.very-very-longer-url-to-test.ch",breadcrumbs:["Organisation","Über uns","Philosophie"]}},referenceIndex:{all:11,used:4}}});var Re=e(Oe,2);Ce(Re,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!",description:"The article celebrates 15 years of a Swiss digital agency known for its innovative, sustainable, and client-focused approach, highlighting its history of growth, organizational evolution, and long-standing client relationships, while emphasizing its commitment to Swiss quality and environmental responsibility.",badge:"www.liip.ch"},listItem:{title:"15 years of Liip, and what a journey it's been!",badge:"www.liip.ch",breadcrumbs:["Organisation","Team"]}},referenceIndex:{all:12,used:2}}});var Ut=e(Re,2);Ce(Ut,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!"},listItem:{title:"15 years of Liip, and what a journey it's been!"}},referenceIndex:{all:12,used:10}}}),t(Ge),t(ce);var ue=e(ce,2),Je=a(ue),ve=e(a(Je));Be(ve,"data-source",JSON.stringify({url:"https://www.liip.ch",considered:!0,referencesIndex:{all:3,used:1},display:{card:{title:"Reference tooltip example",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",breadcrumbs:["Organisation","Über uns","Philosophie"],badge:"www.liip.ch"}}})),Be(ve,"data-used-index","1"),Be(ve,"data-all-index","3"),z(),t(Je),t(ue);var pe=e(ue,2),Ue=a(pe),Ne=a(Ue),Nt=e(a(Ne),2);r(Nt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Ne),z(4),t(Ue),t(pe);var me=e(pe,4),Ze=a(me),$e=a(Ze);_a($e,{});var Qe=e($e,2);Dt(Qe,{});var We=e(Qe,2);{let d=D(()=>n(o).aboutThisChat||"");fa(We,{get content(){return n(d)}})}var Zt=e(We,2);ya(Zt,{onclick:()=>{}}),t(Ze),t(me);var he=e(me,4),ge=a(he),Ve=a(ge),$t=a(Ve);r($t,{name:"externalLink"}),z(2),t(Ve),t(ge);var be=e(ge,4),Ye=e(a(be),2),we=a(Ye),Qt=a(we);r(Qt,{name:"internalLink"}),z(2),t(we);var _e=e(we,2),Wt=a(_e);r(Wt,{name:"internalLink"}),z(2),t(_e);var fe=e(_e,2),Vt=a(fe);r(Vt,{name:"internalLink"}),z(2),t(fe);var Ke=e(fe,2),Yt=a(Ke);r(Yt,{name:"internalLink"}),z(2),t(Ke),t(Ye),t(be);var Xe=e(be,4),et=a(Xe),ye=a(et),Kt=a(ye);r(Kt,{name:"lightMode"}),z(2),t(ye);var tt=e(ye,4),Xt=a(tt);r(Xt,{name:"darkMode"}),z(2),t(tt),t(et),t(Xe),t(he);var at=e(he,4),it=e(a(at),2),te=a(it),nt=a(te);xa(nt,{classificationConfig:{impact:{label:"Impact",options:[{label:"Positive",value:1},{label:"Negative",value:2}]},quality:{label:"Quality",options:[{label:"Good",value:1},{label:"Bad",value:2}]}},impact:0,quality:0});var xe=e(nt,2),qe=a(xe),ea=a(qe,!0);t(qe);var ta=e(qe,2);t(xe);var rt=e(xe,2),ke=a(rt),aa=a(ke,!0);t(ke);var ia=e(ke,2);t(rt),t(te),t(it),t(at),z(4),t(Q);var Se=e(Q,2),na=e(a(Se),4);Ht(na),t(Se);var ze=e(Se,4);W(ze,21,()=>j,V,(d,g)=>{Sa(d,{get message(){return n(g)},onmessageupdate:()=>{},onbotmessageinit:()=>{}})}),t(ze);var Ie=e(ze,2),st=e(a(Ie),4);Gt(st);var ot=e(st,6),lt=a(ot);r(lt,{name:"predefinedQuestion"});var dt=e(lt,2);r(dt,{name:"edit"});var ct=e(dt,2);r(ct,{name:"newConversation"});var ut=e(ct,2);r(ut,{name:"voteUp"});var vt=e(ut,2);r(vt,{name:"voteDown"});var pt=e(vt,2);r(pt,{name:"retry"});var mt=e(pt,2);r(mt,{name:"message"});var ht=e(mt,2);r(ht,{name:"thread"});var gt=e(ht,2);r(gt,{name:"submit"});var bt=e(gt,2);r(bt,{name:"expand"});var wt=e(bt,2);r(wt,{name:"help"});var _t=e(wt,2);r(_t,{name:"attach"});var ft=e(_t,2);r(ft,{name:"record"});var yt=e(ft,2);r(yt,{name:"reward"});var xt=e(yt,2);r(xt,{name:"share"});var qt=e(xt,2);r(qt,{name:"audio"});var kt=e(qt,2);r(kt,{name:"copy"});var St=e(kt,2);r(St,{name:"dismiss"});var zt=e(St,2);r(zt,{name:"menu"});var It=e(zt,2);r(It,{name:"listUnordered"});var Tt=e(It,2);r(Tt,{name:"lightMode"});var ra=e(Tt,2);r(ra,{name:"darkMode"}),t(ot),t(Ie);var sa=e(Ie,2);{var oa=d=>{var g=Ra(),P=e(a(g),4),C=a(P),B=a(C),T=a(B);Pe(T,()=>n(o).popups[1].title),t(B);var E=e(B,2),O=e(a(E),2);r(O,{name:"dismiss"}),t(E),t(C);var Lt=e(C,2),la=a(Lt);Pe(la,()=>n(o).popups[1].content),t(Lt),t(P),t(g),l(d,g)};I(sa,d=>{n(o).popups&&n(o).popups?.length>0&&d(oa)})}K(()=>{R(te,"aria-label",n(o).feedbackFormTitle),je(ea,n(o).feedbackFormMessage),R(ta,"placeholder",n(o).feedbackFormMessagePlaceholder),je(aa,n(o).feedbackFormEmail),R(ia,"placeholder",n(o).feedbackFormEmailPlaceholder)}),ca("submit",te,async()=>{}),l(i,s)};I(Z,i=>{v.initialized?i(oe,!1):i(ee)})}t(H),t(p);var le=e(p,2);return t(x),K(i=>{M=At(x,"",M,i),R(le,"id",ma)},[()=>({"color-scheme":v.colorScheme})]),l(b,x),De({get data(){return y()},set data(i){y(i),ie()}})}X(Ot,{data:{}},[],[],!0);var Za=_('<iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe>'),$a=_('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),Qa=_('<div id="preview" class="svelte-1h9zc1h"><!> <!></div>');const Wa={hash:"svelte-1h9zc1h",code:`html,
29
29
  body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1h9zc1h {width:500px;height:100%;border:none;}#preview.svelte-1h9zc1h {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}#chat-wrapper.svelte-1h9zc1h {container-name:preview-container;
30
- /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function Va(b,c){Ee(c,!0),se(b,Wa);let y=La(c,["$$slots","$$events","$$legacy","$$host"]),o=D(()=>c.data);Y(()=>{window.onmessage=function(i){if(typeof i.data=="string"&&i.data.startsWith("liipgpt-url:")){const s=new URLSearchParams(i.data.replace("liipgpt-url:",""));Ca("?"+s.toString(),{replaceState:!0})}}});const j=i=>`/build/${i}/liipgpt-${i}.iife.js`,x=async i=>{i==="build"&&(await import(j("chat")),await import(j("button"))),i==="dev"&&(await Ct(()=>import("../chunks/CBDGXapX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Ct(()=>import("../chunks/CA9QnFog.js"),__vite__mapDeps([14,1,2,3,13,6,7,5,8,9,12]),import.meta.url)),i==="server"&&(import(Ft(c.data.options,"chat")),import(Ft(c.data.options,"button")))};let M="server",A=D(()=>c.data.options?.["preview-mode"]?.value??M);Y(()=>{x(n(A))});const U=`./sidebar${Ba.url.search}`;let p=jt(void 0),H=jt(void 0);const N=(i,s)=>{const m=document.createElement("script"),q=document.createTextNode(s);m.appendChild(q),i.replaceChildren(m)};Y(()=>{n(p)&&N(n(p),n(o).options.CHAT_CONFIG_OVERRIDE.value||"")}),Y(()=>{n(H)&&N(n(H),n(o).options.onclosechat.value||"")});var Z=Qa();Mt(i=>{var s=F(),m=L(s);{var q=k=>{var h=F(),u=L(h);{var S=f=>{Pt.title="LiipGPT Configurator | Components"},w=f=>{Pt.title="LiipGPT Configurator"};I(u,f=>{n(o).options["show-components"].value?f(S):f(w,!1)},!0)}l(k,h)};I(m,k=>{k(q,!1)})}l(i,s)});var ee=a(Z);{var oe=i=>{var s=Za();K(()=>R(s,"src",U)),l(i,s)};I(ee,i=>{n(o).options["hide-sidebar"].value||i(oe)})}var le=e(ee,2);za(le,()=>n(o),i=>{var s=F(),m=L(s);{var q=h=>{var u=F(),S=L(u);ua(S,{onerror:w=>console.error("Rendering error of components",w)},w=>{Ot(w,Ta(()=>y))}),l(h,u)},k=h=>{var u=$a(),S=a(u);Bt(S,G=>Et(p,G),()=>n(p));var w=e(S,2);Pe(w,()=>Ia(n(o).options));var f=e(w,2);Bt(f,G=>Et(H,G),()=>n(H)),t(u),l(h,u)};I(m,h=>{n(o).options["show-components"].value?h(q):h(k,!1)})}l(i,s)}),t(Z),l(b,Z),De()}X(Va,{},[],[],!0);export{Va as component};
30
+ /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function Va(b,c){Ee(c,!0),se(b,Wa);let y=La(c,["$$slots","$$events","$$legacy","$$host"]),o=D(()=>c.data);Y(()=>{window.onmessage=function(i){if(typeof i.data=="string"&&i.data.startsWith("liipgpt-url:")){const s=new URLSearchParams(i.data.replace("liipgpt-url:",""));Ca("?"+s.toString(),{replaceState:!0})}}});const j=i=>`/build/${i}/liipgpt-${i}.iife.js`,x=async i=>{i==="build"&&(await import(j("chat")),await import(j("button"))),i==="dev"&&(await Ct(()=>import("../chunks/Dxho-9wN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Ct(()=>import("../chunks/DHUEE9MT.js"),__vite__mapDeps([14,1,2,3,13,6,7,5,8,9,12]),import.meta.url)),i==="server"&&(import(Ft(c.data.options,"chat")),import(Ft(c.data.options,"button")))};let M="server",A=D(()=>c.data.options?.["preview-mode"]?.value??M);Y(()=>{x(n(A))});const U=`./sidebar${Ba.url.search}`;let p=jt(void 0),H=jt(void 0);const N=(i,s)=>{const m=document.createElement("script"),q=document.createTextNode(s);m.appendChild(q),i.replaceChildren(m)};Y(()=>{n(p)&&N(n(p),n(o).options.CHAT_CONFIG_OVERRIDE.value||"")}),Y(()=>{n(H)&&N(n(H),n(o).options.onclosechat.value||"")});var Z=Qa();Mt(i=>{var s=F(),m=L(s);{var q=k=>{var h=F(),u=L(h);{var S=f=>{Pt.title="LiipGPT Configurator | Components"},w=f=>{Pt.title="LiipGPT Configurator"};I(u,f=>{n(o).options["show-components"].value?f(S):f(w,!1)},!0)}l(k,h)};I(m,k=>{k(q,!1)})}l(i,s)});var ee=a(Z);{var oe=i=>{var s=Za();K(()=>R(s,"src",U)),l(i,s)};I(ee,i=>{n(o).options["hide-sidebar"].value||i(oe)})}var le=e(ee,2);za(le,()=>n(o),i=>{var s=F(),m=L(s);{var q=h=>{var u=F(),S=L(u);ua(S,{onerror:w=>console.error("Rendering error of components",w)},w=>{Ot(w,Ta(()=>y))}),l(h,u)},k=h=>{var u=$a(),S=a(u);Bt(S,G=>Et(p,G),()=>n(p));var w=e(S,2);Pe(w,()=>Ia(n(o).options));var f=e(w,2);Bt(f,G=>Et(H,G),()=>n(H)),t(u),l(h,u)};I(m,h=>{n(o).options["show-components"].value?h(q):h(k,!1)})}l(i,s)}),t(Z),l(b,Z),De()}X(Va,{},[],[],!0);export{Va as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/DePuinxN.js";import{R as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,S as bo,t as Ue,G as Ne,P as Vi,g as ot,b as $e,d as Xt,v as nt,T as uo,N as fo,a as Zt,aG as Ni,aC as Oi,aH as Fi,H as po,aE as Wi}from"../chunks/Cx_YT9bD.js";import{E as ho,F as mo,s as He,G as go,e as yo,i as Ui,H as Di,J as Bi,n as Li,K as Mi,a as Ii,D as Ri}from"../chunks/pxFTKbVE.js";import"../chunks/CKY99Gic.js";import{b as Hi,i as rt}from"../chunks/B0YFyw9m.js";import{g as qi}from"../chunks/B1VQlL-o.js";import{p as Pi}from"../chunks/BbjS28fo.js";var vo={},wo;function Yi(){return wo||(wo=1,(()=>{var O="4.1.5",M=92,D=47,_=42,re=34,be=39,I=58,ie=59,J=10,X=32,ne=9,P=123,Z=125,G=40,ge=41,we=91,ye=93,de=45,xe=64,qe=33;function fe(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
1
+ import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/DePuinxN.js";import{R as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,S as bo,t as Ue,G as Ne,P as Vi,g as ot,b as $e,d as Xt,v as nt,T as uo,N as fo,a as Zt,aG as Ni,aC as Oi,aH as Fi,H as po,aE as Wi}from"../chunks/Cx_YT9bD.js";import{E as ho,F as mo,s as He,G as go,e as yo,i as Ui,H as Di,J as Bi,n as Li,K as Mi,a as Ii,D as Ri}from"../chunks/Dj93PFYu.js";import"../chunks/4cQXnQ3V.js";import{b as Hi,i as rt}from"../chunks/B0YFyw9m.js";import{g as qi}from"../chunks/D4lwqaWa.js";import{p as Pi}from"../chunks/2ugYyY2X.js";var vo={},wo;function Yi(){return wo||(wo=1,(()=>{var O="4.1.5",M=92,D=47,_=42,re=34,be=39,I=58,ie=59,J=10,X=32,ne=9,P=123,Z=125,G=40,ge=41,we=91,ye=93,de=45,xe=64,qe=33;function fe(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],o=[],t=[],i=null,c=null,s="",u="",l;for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);if(m===M)s+=e.slice(p,p+2),p+=1;else if(m===D&&e.charCodeAt(p+1)===_){let h=p;for(let w=p+2;w<e.length;w++)if(l=e.charCodeAt(w),l===M)w+=1;else if(l===_&&e.charCodeAt(w+1)===D){p=w+1;break}let v=e.slice(h,p+1);v.charCodeAt(2)===qe&&o.push(sr(v.slice(2,-2)))}else if(m===be||m===re){let h=p;for(let v=p+1;v<e.length;v++)if(l=e.charCodeAt(v),l===M)v+=1;else if(l===m){p=v;break}else{if(l===ie&&e.charCodeAt(v+1)===J)throw new Error(`Unterminated string: ${e.slice(h,v+1)+String.fromCharCode(m)}`);if(l===J)throw new Error(`Unterminated string: ${e.slice(h,v)+String.fromCharCode(m)}`)}s+=e.slice(h,p+1)}else{if((m===X||m===J||m===ne)&&(l=e.charCodeAt(p+1))&&(l===X||l===J||l===ne))continue;if(m===J){if(s.length===0)continue;l=s.charCodeAt(s.length-1),l!==X&&l!==J&&l!==ne&&(s+=" ")}else if(m===de&&e.charCodeAt(p+1)===de&&s.length===0){let h="",v=p,w=-1;for(let b=p+2;b<e.length;b++)if(l=e.charCodeAt(b),l===M)b+=1;else if(l===D&&e.charCodeAt(b+1)===_){for(let A=b+2;A<e.length;A++)if(l=e.charCodeAt(A),l===M)A+=1;else if(l===_&&e.charCodeAt(A+1)===D){b=A+1;break}}else if(w===-1&&l===I)w=s.length+b-v;else if(l===ie&&h.length===0){s+=e.slice(v,b),p=b;break}else if(l===G)h+=")";else if(l===we)h+="]";else if(l===P)h+="}";else if((l===Z||e.length-1===b)&&h.length===0){p=b-1,s+=e.slice(v,b);break}else(l===ge||l===ye||l===Z)&&h.length>0&&e[b]===h[h.length-1]&&(h=h.slice(0,-1));let k=Oe(s,w);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):r.push(k),s=""}else if(m===ie&&s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else if(m===ie&&u[u.length-1]!==")"){let h=Oe(s);if(!h)throw s.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${s.trim()}\``);i?i.nodes.push(h):r.push(h),s=""}else if(m===P&&u[u.length-1]!==")")u+="}",c=ae(s.trim()),i&&i.nodes.push(c),t.push(i),i=c,s="",c=null;else if(m===Z&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),s.length>0)if(s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else{let v=s.indexOf(":");if(i){let w=Oe(s,v);if(!w)throw new Error(`Invalid declaration: \`${s.trim()}\``);i.nodes.push(w)}}let h=t.pop()??null;h===null&&i&&r.push(i),i=h,s="",c=null}else if(m===G)u+=")",s+="(";else if(m===ge){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),s+=")"}else{if(s.length===0&&(m===X||m===J||m===ne))continue;s+=String.fromCharCode(m)}}}if(s.charCodeAt(0)===xe&&r.push(Ke(s)),u.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return o.length>0?o.concat(r):r}function Ke(e,r=[]){for(let o=5;o<e.length;o++){let t=e.charCodeAt(o);if(t===X||t===G){let i=e.slice(0,o).trim(),c=e.slice(o).trim();return R(i,c,r)}}return R(e.trim(),"",r)}function Oe(e,r=e.indexOf(":")){if(r===-1)return null;let o=e.indexOf("!important",r+1);return n(e.slice(0,r).trim(),e.slice(r+1,o===-1?e.length:o).trim(),o!==-1)}function je(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),o=r.length,t=-1,i,c="",s=r.charCodeAt(0);if(o===1&&s===45)return"\\"+r;for(;++t<o;){if(i=r.charCodeAt(t),i===0){c+="�";continue}if(i>=1&&i<=31||i===127||t===0&&i>=48&&i<=57||t===1&&i>=48&&i<=57&&s===45){c+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){c+=r.charAt(t);continue}c+="\\"+r.charAt(t)}return c}function pe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Ae=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function st(e,r){return(Ae.get(r)??[]).some(o=>e===o||e.startsWith(`${o}-`))}var Ct=class{constructor(e=new Map,r=new Set([])){this.values=e,this.keyframes=r}prefix=null;add(e,r,o=0){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(o&4){let t=this.values.get(e);if(t&&!(t.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:o})}keysInNamespaces(e){let r=[];for(let o of e){let t=`${o}-`;for(let i of this.values.keys())i.startsWith(t)&&i.indexOf("--",2)===-1&&(st(i,o)||r.push(i.slice(t.length)))}return r}get(e){for(let r of e){let o=this.values.get(r);if(o)return o.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=pe(this.#r(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#r(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,r){let o=Ae.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let i of o)if(t.startsWith(i))continue e;this.values.delete(t)}}#e(e,r){for(let o of r){let t=e!==null?`${o}-${e}`:o;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${o}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!st(t,o))return t}return null}#t(e){let r=this.values.get(e);if(!r)return null;let o=null;return r.options&2&&(o=r.value),`var(${je(this.prefixKey(e))}${o?`, ${o}`:""})`}markUsedVariable(e){let r=pe(this.#r(e)),o=this.values.get(r);if(!o)return!1;let t=o.options&16;return o.options|=16,!t}resolve(e,r,o=0){let t=this.#e(e,r);if(!t)return null;let i=this.values.get(t);return(o|i.options)&1?i.value:this.#t(t)}resolveValue(e,r){let o=this.#e(e,r);return o?this.values.get(o).value:null}resolveWith(e,r,o=[]){let t=this.#e(e,r);if(!t)return null;let i={};for(let s of o){let u=`${t}${s}`,l=this.values.get(u);l&&(l.options&1?i[s]=l.value:i[s]=this.#t(u))}let c=this.values.get(t);return c.options&1?[c.value,i]:[this.#t(t),i]}namespace(e){let r=new Map,o=`${e}-`;for(let[t,i]of this.values)t===e?r.set(null,i.value):t.startsWith(`${o}-`)?r.set(t.slice(e.length),i.value):t.startsWith(o)&&r.set(t.slice(o.length),i.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},le=class extends Map{constructor(e){super(),this.factory=e}get(e){let r=super.get(e);return r===void 0&&(r=this.factory(e,this),this.set(e,r)),r}};function Ce(e){return{kind:"word",value:e}}function Q(e,r){return{kind:"function",value:e,nodes:r}}function Pe(e){return{kind:"separator",value:e}}function ke(e,r,o=null){for(let t=0;t<e.length;t++){let i=e[t],c=!1,s=0,u=r(i,{parent:o,replaceWith(l){c||(c=!0,Array.isArray(l)?l.length===0?(e.splice(t,1),s=0):l.length===1?(e[t]=l[0],s=1):(e.splice(t,1,...l),s=l.length):e[t]=l)}})??0;if(c){u===0?t--:t+=s-1;continue}if(u===2||u!==1&&i.kind==="function"&&ke(i.nodes,r,i)===2)return 2}}function ee(e){let r="";for(let o of e)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+ee(o.nodes)+")"}return r}var Fe=92,St=41,Xe=58,Qt=44,zo=34,er=61,tr=62,rr=60,or=10,To=40,jo=39,ar=47,ir=32,nr=9;function oe(e){e=e.replaceAll(`\r
4
4
  `,`
@@ -1 +1 @@
1
- {"version":"1764256618561"}
1
+ {"version":"1764597838753"}
@@ -5,11 +5,11 @@
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.B49AGbh4.js">
9
- <link rel="modulepreload" href="./_app/immutable/chunks/B1VQlL-o.js">
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.DTHjtGzf.js">
9
+ <link rel="modulepreload" href="./_app/immutable/chunks/D4lwqaWa.js">
10
10
  <link rel="modulepreload" href="./_app/immutable/chunks/D54U55sL.js">
11
11
  <link rel="modulepreload" href="./_app/immutable/chunks/Cx_YT9bD.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.CsTU4Z7r.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.vpbo6kpx.js">
13
13
  <link rel="modulepreload" href="./_app/immutable/chunks/B0YFyw9m.js">
14
14
  <link rel="modulepreload" href="./_app/immutable/chunks/NZTpNUN0.js">
15
15
  <link rel="modulepreload" href="./_app/immutable/chunks/DePuinxN.js">
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_68quhp = {
21
+ __sveltekit_1er66pk = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.B49AGbh4.js"),
30
- import("./_app/immutable/entry/app.CsTU4Z7r.js")
29
+ import("./_app/immutable/entry/start.DTHjtGzf.js"),
30
+ import("./_app/immutable/entry/app.vpbo6kpx.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
@@ -5,11 +5,11 @@
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.B49AGbh4.js">
9
- <link rel="modulepreload" href="./_app/immutable/chunks/B1VQlL-o.js">
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.DTHjtGzf.js">
9
+ <link rel="modulepreload" href="./_app/immutable/chunks/D4lwqaWa.js">
10
10
  <link rel="modulepreload" href="./_app/immutable/chunks/D54U55sL.js">
11
11
  <link rel="modulepreload" href="./_app/immutable/chunks/Cx_YT9bD.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.CsTU4Z7r.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.vpbo6kpx.js">
13
13
  <link rel="modulepreload" href="./_app/immutable/chunks/B0YFyw9m.js">
14
14
  <link rel="modulepreload" href="./_app/immutable/chunks/NZTpNUN0.js">
15
15
  <link rel="modulepreload" href="./_app/immutable/chunks/DePuinxN.js">
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_68quhp = {
21
+ __sveltekit_1er66pk = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.B49AGbh4.js"),
30
- import("./_app/immutable/entry/app.CsTU4Z7r.js")
29
+ import("./_app/immutable/entry/start.DTHjtGzf.js"),
30
+ import("./_app/immutable/entry/app.vpbo6kpx.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,3 +0,0 @@
1
- import{o as qe,s as yt}from"./D54U55sL.js";import{F as me,aR as wt,P as T,G as x,T as P}from"./Cx_YT9bD.js";const F=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(wt(e,o)&&(e=o,n)){const c=!F.length;for(const l of r)l[1](),F.push(l,e);if(c){for(let l=0;l<F.length;l+=2)F[l][0](F[l+1]);F.length=0}}}function s(o){a(o(e))}function i(o,c=me){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||me),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}class fe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ie{constructor(t,n){this.status=t,this.location=n}}class Ue extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function bt(e){return e.split("%25").map(decodeURI).join("%25")}function At(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function St(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function Et(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),Rt(e,t));const H=new Map;function It(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&H.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Et(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Ut(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Pt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return we(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return we(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const d=Lt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return we(c)}).join("")}).join("")}/?$`),params:t}}function xt(e){return!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(xt)}function Ct(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function we(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:u}=Tt(o),f={id:o,exec:p=>{const m=h.exec(p);if(m)return Ct(m,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Be(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_68quhp?.base??"/configurator",Nt=globalThis.__sveltekit_68quhp?.assets??U,jt="1764256618561",Xe="sveltekit:snapshot",Ze="sveltekit:scroll",Qe="sveltekit:states",$t="sveltekit:pageurl",B="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Q=location.origin;function Te(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...j,"":j.hover};function et(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function tt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=et(e)}}function Ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===Q&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ne(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=q(o,"preload-code")),a===null&&(a=q(o,"preload-data")),t===null&&(t=q(o,"keepfocus")),n===null&&(n=q(o,"noscroll")),s===null&&(s=q(o,"reload")),i===null&&(i=q(o,"replacestate")),o=et(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ge(e){const t=Re(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const nt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==jt;return i&&(e(!0),nt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==Q||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Sn(e){}function Me(e){const t=qt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function qt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Ft.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Bt=-1,Vt=-2,Gt=-3,Mt=-4,Ht=-5,Kt=-6;function Wt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Bt)return;if(s===Gt)return NaN;if(s===Mt)return 1/0;if(s===Ht)return-1/0;if(s===Kt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=o[1],m=Me(p),_=new f(m);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=Me(f);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==Vt&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...rt];const Yt=new Set([...rt]);[...Yt];function zt(e){return e.filter(t=>t!=null)}const Jt="x-sveltekit-invalidated",Xt="x-sveltekit-trailing-slash";function re(e){return e instanceof fe||e instanceof Ue?e.status:500}function Zt(e){return e instanceof Ue?e.text:"Internal Error"}let k,J,ve;const Qt=qe.toString().includes("$$")||/function \w+\(\) \{\}/.test(qe.toString());Qt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ve={current:!1}):(k=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},nt.v=()=>ve.current=!0);function en(e){Object.assign(k,e)}const tn="/__data.json",nn=".html__data.json";function rn(e){return e.endsWith(".html")?e.replace(/\.html$/,nn):e.replace(/\/$/,"")+tn}const{tick:an}=yt,on=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Ze)??{},X=Je(Xe)??{},N={url:Ge({}),page:Ge({}),navigating:Re(null),updated:Dt()};function xe(e){D[e]=ue()}function sn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function G(e){return location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function He(){}let Pe,Se,ae,C,ke,v;const oe=[],se=[];let O=null;const te=new Map,ot=new Set,cn=new Set,K=new Set;let w={branch:[],error:null,url:null},Ce=!1,ie=!1,Ke=!0,Z=!1,M=!1,st=!1,Oe=!1,it,A,I,$;const W=new Set;async function In(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=Ot(e),C=document.documentElement,ke=t,Se=e.nodes[0],ae=e.nodes[1],Se(),ae(),A=history.state?.[B],I=history.state?.[z],A||(A=I=Date.now(),history.replaceState({...history.state,[B]:A,[z]:I},""));const r=D[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await yn(ke,n)):(await Y({type:"enter",url:Te(v.hash?vn(new URL(location.href)):location.href),replace_state:!0}),a()),mn()}function ln(){oe.length=0,Oe=!1}function ct(e){se.some(t=>t?.snapshot)&&(X[e]=se.map(t=>t?.snapshot?.capture()))}function lt(e){X[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function We(){xe(A),Be(Ze,D),ct(I),Be(Xe,X)}async function Ne(e,t,n,r){return Y({type:"goto",url:Te(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Oe=!0),t.invalidate&&t.invalidate.forEach(_n)}})}async function fn(e){if(e.id!==O?.id){const t={};W.add(t),O={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(O=null),n))}}return O.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ft(e,t,n){w=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),it=new v.root({target:t,props:{...e.props,stores:N,components:se},hydrate:n,sync:!1}),lt(I),n){const a={from:null,to:{params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(s=>s(a))}ie=!0}function ce({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(U&&(e.pathname===U||e.pathname===U+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=vt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(f=>f.node.component),page:Fe(k)}};i!==void 0&&(c.props.form=i);let l={},d=!k,h=0;for(let f=0;f<Math.max(n.length,w.branch.length);f+=1){const p=n[f],m=w.branch[f];p?.data!==m?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!w.url||e.href!==w.url.href||w.error!==a||i!==void 0&&i!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:k.data}),c}async function je({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...u){for(const f of u){const{href:p}=new URL(f,n);c.dependencies.add(p)}};const h={route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:St(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:p,promise:m}=ut(u,f,n);return o&&d(p.href),m},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=ie?Ut(r,a.href,t):It(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(Oe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(oe.some(o=>o(new URL(i))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function un(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ze({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Fe(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return W.delete(O.token),O.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=w.url?e!==le(w.url):!1,u=w.route?a.id!==w.route.id:!1,f=un(w.url,n);let p=!1;const m=l.map((g,y)=>{const b=w.branch[y],S=!!g?.[0]&&(b?.loader!==g[1]||Ye(p,u,h,f,b.server?.uses,r));return S&&(p=!0),S});if(m.some(Boolean)){try{d=await gt(n,m)}catch(g){const y=await V(g,{url:n,params:r,route:{id:e}});return W.has(s)?ze({error:y,url:n,params:r,route:a}):he({status:re(g),error:y,url:n,route:a})}if(d.type==="redirect")return d}const _=d?.nodes;let R=!1;const E=l.map(async(g,y)=>{if(!g)return;const b=w.branch[y],S=_?.[y];if((!S||S.type==="skip")&&g[1]===b?.loader&&!Ye(R,u,h,f,b.universal?.uses,r))return b;if(R=!0,S?.type==="error")throw S;return je({loader:g[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let _e=0;_e<y;_e+=1)Object.assign(ge,(await E[_e])?.data);return ge},server_data_node:$e(S===void 0&&g[0]?{type:"skip"}:S??null,g[0]?b?.server:void 0)})});for(const g of E)g.catch(()=>{});const L=[];for(let g=0;g<l.length;g+=1)if(l[g])try{L.push(await E[g])}catch(y){if(y instanceof Ie)return{type:"redirect",location:y.location};if(W.has(s))return ze({error:await V(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=re(y),S;if(_?.includes(y))b=y.status??b,S=y.error;else if(y instanceof fe)S=y.body;else{if(await N.updated.check())return await at(),await G(n);S=await V(y,{params:r,url:n,route:{id:a.id}})}const ee=await dn(g,L,i);return ee?ce({url:n,params:r,branch:L.slice(0,ee.idx).concat(ee.node),status:b,error:S,route:a}):await pt(n,{id:a.id},S,b)}else L.push(void 0);return ce({url:n,params:r,branch:L,status:200,error:null,route:a,form:t?void 0:null})}async function dn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await gt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Q||n.pathname!==location.pathname||Ce)&&await G(n)}try{const o=await je({loader:Se,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(s)}),c={node:await ae(),loader:ae,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return Ne(new URL(o.location,location.href),{},0);throw o}}async function hn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ut(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,U,v.hash)){const n=await hn(e);if(!n)return;const r=pn(n);for(const a of Pe){const s=a.exec(r);if(s)return{id:le(e),invalidating:t,route:a,params:At(s),url:e}}}}function pn(e){return bt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r}){let a=!1;const s=De(w,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Z||ot.forEach(o=>o(i)),a?null:s}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=He,block:d=He}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?De(w,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=A,m=I;l(),Z=!0,ie&&f.navigation.type!=="enter"&&N.navigating.set(J.current=f.navigation);let _=u&&await dt(u);if(!_){if(de(t,U,v.hash))return await G(t);_=await pt(t,{id:null},await V(new Ue(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect")if(o>=20)_=await he({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Ne(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await N.updated.check()&&(await at(),await G(t));if(ln(),xe(p),ct(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,y={[B]:A+=g,[z]:I+=g,[Qe]:i};(s?history.replaceState:history.pushState).call(history,y,"",t),s||sn(A,I)}if(O=null,_.props.page.state=i,ie){w=_.state,_.props.page&&(_.props.page.url=t);const g=(await Promise.all(Array.from(cn,y=>y(f.navigation)))).filter(y=>typeof y=="function");if(g.length>0){let y=function(){g.forEach(b=>{K.delete(b)})};g.push(y),g.forEach(b=>{K.add(b)})}it.$set(_.props),en(_.props.page),st=!0}else ft(_,ke,!1);const{activeElement:R}=document;await an();const E=n?n.scroll:a?ue():null;if(Ke){const g=t.hash&&document.getElementById(mt(t));E?scrollTo(E.x,E.y):g?g.scrollIntoView():scrollTo(0,0)}const L=document.activeElement!==R&&document.activeElement!==document.body;!r&&!L&&wn(t),Ke=!0,_.props.page&&Object.assign(k,_.props.page),Z=!1,e==="popstate"&&lt(I),f.fulfil(void 0),K.forEach(g=>g(f.navigation)),N.navigating.set(J.current=null)}async function pt(e,t,n,r){return e.origin===Q&&e.pathname===location.pathname&&!Ce?await he({status:r,error:n,url:e,route:t}):await G(e)}function gn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(be(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=tt(o,C),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:u,download:f}=Ae(l,U,v.hash);if(u||f)return;const p=ne(l),m=h&&le(w.url)===le(h);if(!(p.reload||m))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;fn(_)}else c<=p.preload_code&&(t=l,n=c,be(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:l,download:d}=Ae(o,U,v.hash);if(l||d)continue;const h=ne(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&be(c))}}K.add(i),i()}function V(e,t){if(e instanceof fe)return e.body;const n=re(e),r=Zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Un(e,t={}){return e=new URL(Te(e)),e.origin!==Q?Promise.reject(new Error("goto: invalid URL")):Ne(e,t,0)}function _n(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function mn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Z){const r=De(w,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||gn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=tt(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=Ae(n,U,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ye(location);if(a||o.reload&&(!h||!d)){ht({url:r,type:"link"})?Z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=w.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(M=!0,xe(A),e(r),!o.replace_state)return;M=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await Y({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,U,!1))return;const o=t.target,c=ne(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o),d=r?.getAttribute("name");d&&l.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[B]){const n=t.state[B];if($={},n===A)return;const r=D[n],a=t.state[Qe]??{},s=new URL(t.state[$t]??location.href),i=t.state[z],o=w.url?ye(location)===ye(w.url):!1;if(i===I&&(st||o)){a!==k.state&&(k.state=a),e(s),D[A]=ue(),r&&scrollTo(r.x,r.y),A=n;return}const l=n-A;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{A=n,I=i},block:()=>{history.go(-l)},nav_token:$})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[B]:++A,[z]:I},"",location.href))});for(const t of document.querySelectorAll("link"))on.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(J.current=null)});function e(t){w.url=k.url=t,N.page.set(Fe(k)),N.page.notify()}}async function yn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ce=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=Pe.find(({id:f})=>f===s.id);let h,u=!0;try{const f=r.map(async(m,_)=>{const R=o[_];return R?.uses&&(R.uses=_t(R.uses)),je({loader:v.nodes[m],url:l,params:a,route:s,parent:async()=>{const E={};for(let L=0;L<_;L+=1)Object.assign(E,(await f[L]).data);return E},server_data_node:$e(R)})}),p=await Promise.all(f);if(d){const m=d.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}h=ce({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Ie){await G(new URL(f.location,location.href));return}h=await he({status:re(f),error:await V(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),ft(h,e,u)}async function gt(e,t){const n=new URL(e);n.pathname=rn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Xt,"1"),n.searchParams.append(Jt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new fe(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader(),c=new TextDecoder;function l(h){return Wt(h,{...v.decoders,Promise:u=>new Promise((f,p)=>{i.set(u,{fulfil:f,reject:p})})})}let d="";for(;;){const{done:h,value:u}=await o.read();if(h&&!d)break;for(d+=!u&&d?`
2
- `:c.decode(u,{stream:!0});;){const f=d.indexOf(`
3
- `);if(f===-1)break;const p=JSON.parse(d.slice(0,f));if(d=d.slice(f+1),p.type==="redirect")return s(p);if(p.type==="data")p.nodes?.forEach(m=>{m?.type==="data"&&(m.uses=_t(m.uses),m.data=l(m.data))}),s(p);else if(p.type==="chunk"){const{id:m,data:_,error:R}=p,E=i.get(m);i.delete(m),R?E.reject(l(R)):E.fulfil(l(_))}}}})}function _t(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function wn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=mt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=ue();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function De(e,t,n,r){let a,s;const i=new Promise((c,l)=>{a=c,s=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function Fe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function vn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{In as a,Un as g,Sn as l,k as p,N as s,Re as w};
@@ -1 +0,0 @@
1
- import{a7 as r}from"./Cx_YT9bD.js";import{s as t,p as e}from"./B1VQlL-o.js";r();const a={get error(){return e.error},get status(){return e.status},get url(){return e.url}};t.updated.check;const p=a;export{p};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/B1VQlL-o.js";export{o as load_css,r as start};