@liip/liipgpt 3.12.2 → 3.13.0

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 (28) hide show
  1. package/chat/liipgpt-chat.iife.js +14 -14
  2. package/chat/liipgpt-chat.js +14 -14
  3. package/configurator/_app/env.js +1 -1
  4. package/configurator/_app/immutable/chunks/BBWpG1hF.js +1 -0
  5. package/configurator/_app/immutable/chunks/{q8gaG5yu.js → BKRBEPI5.js} +2 -2
  6. package/configurator/_app/immutable/chunks/{BpZBEnLx.js → BMJ5aYRa.js} +1 -1
  7. package/configurator/_app/immutable/chunks/{W0DG3qIi.js → CbotzAWM.js} +1 -1
  8. package/configurator/_app/immutable/chunks/DLkzrfsn.js +2 -0
  9. package/configurator/_app/immutable/chunks/{DK5x2wSR.js → DeKAuPLN.js} +1 -1
  10. package/configurator/_app/immutable/chunks/{wBAqx-SG.js → Dy0FGVSs.js} +1 -1
  11. package/configurator/_app/immutable/chunks/{C7GamMay.js → Q68dKsWV.js} +9 -9
  12. package/configurator/_app/immutable/chunks/{B1Joifa9.js → k-nJVsgE.js} +1 -1
  13. package/configurator/_app/immutable/entry/{app.N8qcqFkp.js → app.BHBkpDs8.js} +2 -2
  14. package/configurator/_app/immutable/entry/start._nmsyr-e.js +1 -0
  15. package/configurator/_app/immutable/nodes/{0.DnB99G2N.js → 0.DLWEcFHQ.js} +1 -1
  16. package/configurator/_app/immutable/nodes/{1.DaqCyvgg.js → 1.KI8fWs2N.js} +1 -1
  17. package/configurator/_app/immutable/nodes/{2.F3TuebRJ.js → 2.B59b_gVk.js} +3 -3
  18. package/configurator/_app/immutable/nodes/{3.BbNw4LYP.js → 3.DN70KT-c.js} +1 -1
  19. package/configurator/_app/version.json +1 -1
  20. package/configurator/index.html +6 -6
  21. package/configurator/sidebar.html +6 -6
  22. package/index.d.ts +7 -7
  23. package/package.json +1 -1
  24. package/search-summary/liipgpt-search-summary.iife.js +7 -7
  25. package/search-summary/liipgpt-search-summary.js +5 -5
  26. package/configurator/_app/immutable/chunks/CYSkUxy-.js +0 -2
  27. package/configurator/_app/immutable/chunks/nkdIuSLi.js +0 -1
  28. package/configurator/_app/immutable/entry/start.C7KBUclR.js +0 -1
@@ -1,4 +1,4 @@
1
- var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.12.2`,n=new Map;async function r(e){let t=n.get(e);if(t)return t;let r=await fetch(e),i=r.url,a=await r.arrayBuffer(),o=await crypto.subtle.digest(`SHA-384`,a),s={versionedUrl:i,integrity:`sha384-${btoa(String.fromCharCode(...new Uint8Array(o)))}`};return n.set(e,s),s}var i=/\/\*\s*@host-class:\s*([a-zA-Z_-][\w-]*)\s*\*\//;function a(e,t=`your-custom-class-wrapper`){let n=e.match(i);if(n)return n[1];let r=e.match(/\.([a-zA-Z_-][\w-]*)\s+\.search-summary\b/);if(r)return r[1];let a=e.match(/liipgpt-search-summary\.([a-zA-Z_-][\w-]*)/);return a?a[1]:t}var o=`/* Host tokens — set on the custom element, inherited by .search-summary and descendants */
1
+ var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.13.0`,n=new Map;async function r(e){let t=n.get(e);if(t)return t;let r=await fetch(e),i=r.url,a=await r.arrayBuffer(),o=await crypto.subtle.digest(`SHA-384`,a),s={versionedUrl:i,integrity:`sha384-${btoa(String.fromCharCode(...new Uint8Array(o)))}`};return n.set(e,s),s}var i=/\/\*\s*@host-class:\s*([a-zA-Z_-][\w-]*)\s*\*\//;function a(e,t=`your-custom-class-wrapper`){let n=e.match(i);if(n)return n[1];let r=e.match(/\.([a-zA-Z_-][\w-]*)\s+\.search-summary\b/);if(r)return r[1];let a=e.match(/liipgpt-search-summary\.([a-zA-Z_-][\w-]*)/);return a?a[1]:t}var o=`/* Host tokens — set on the custom element, inherited by .search-summary and descendants */
2
2
  liipgpt-search-summary.your-custom-class-wrapper {
3
3
  --search-summary-padding: 1rem;
4
4
  --search-summary-background: #fff;
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DnB99G2N.js","../chunks/CibALFW0.js","../chunks/B1Joifa9.js","../chunks/DK3lEKRX.js","../chunks/CsGLkWF6.js","../chunks/BaFk5JeE.js","../chunks/CFKVnMbq.js","../chunks/CLWqXHLZ.js","../chunks/BFwiU0IZ.js","../nodes/1.DaqCyvgg.js","../chunks/nkdIuSLi.js","../chunks/wBAqx-SG.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../nodes/2.F3TuebRJ.js","../chunks/DjVmpym-.js","../chunks/C7GamMay.js","../chunks/W0DG3qIi.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/DHHLckcz.js","../chunks/BpZBEnLx.js","../chunks/I5DxyXWx.js","../nodes/3.BbNw4LYP.js","../chunks/q8gaG5yu.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/DK3lEKRX.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<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>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.DnB99G2N.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.DaqCyvgg.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.F3TuebRJ.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,4,20,21,11,22,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.BbNw4LYP.js`),__vite__mapDeps([23,10,3,1,2,16,15,17,5,18,19,4,20,21,11,24,22,25,26,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DLWEcFHQ.js","../chunks/CibALFW0.js","../chunks/k-nJVsgE.js","../chunks/DK3lEKRX.js","../chunks/CsGLkWF6.js","../chunks/BaFk5JeE.js","../chunks/CFKVnMbq.js","../chunks/CLWqXHLZ.js","../chunks/BFwiU0IZ.js","../nodes/1.KI8fWs2N.js","../chunks/BBWpG1hF.js","../chunks/Dy0FGVSs.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../nodes/2.B59b_gVk.js","../chunks/DjVmpym-.js","../chunks/Q68dKsWV.js","../chunks/CbotzAWM.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/DHHLckcz.js","../chunks/BMJ5aYRa.js","../chunks/I5DxyXWx.js","../nodes/3.DN70KT-c.js","../chunks/BKRBEPI5.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/DK3lEKRX.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<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>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.DLWEcFHQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.KI8fWs2N.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.B59b_gVk.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,4,20,21,11,22,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.DN70KT-c.js`),__vite__mapDeps([23,10,3,1,2,16,15,17,5,18,19,4,20,21,11,24,22,25,26,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
@@ -0,0 +1 @@
1
+ import"../chunks/DK3lEKRX.js";import{n as e,s as t}from"../chunks/BBWpG1hF.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
@@ -1,4 +1,4 @@
1
- import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DK3lEKRX.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CLWqXHLZ.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/BaFk5JeE.js";import"../chunks/BFwiU0IZ.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
1
+ import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DK3lEKRX.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CLWqXHLZ.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/k-nJVsgE.js";import"../chunks/CsGLkWF6.js";import"../chunks/BaFk5JeE.js";import"../chunks/BFwiU0IZ.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -1 +1 @@
1
- import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/DK3lEKRX.js";import"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DUHuqsF-.js";import{t as f}from"../chunks/wBAqx-SG.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
1
+ import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/DK3lEKRX.js";import"../chunks/BBWpG1hF.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DUHuqsF-.js";import{t as f}from"../chunks/Dy0FGVSs.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DK5x2wSR.js","../chunks/C7GamMay.js","../chunks/CibALFW0.js","../chunks/DjVmpym-.js","../chunks/DK3lEKRX.js","../chunks/W0DG3qIi.js","../chunks/BaFk5JeE.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/CsGLkWF6.js","../chunks/DHHLckcz.js","../chunks/q8gaG5yu.js","../chunks/I5DxyXWx.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js","../chunks/CFKVnMbq.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../chunks/CNNudH1c.js","../chunks/BndQp4ie.js","../chunks/CYSkUxy-.js","../chunks/BFwiU0IZ.js"])))=>i.map(i=>d[i]);
2
- import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,Jt as l,K as u,Lt as d,Mt as f,N as p,Rt as m,St as h,T as g,Tt as _,U as v,V as y,Wt as b,X as x,Y as S,b as C,bt as w,c as ee,dt as T,ht as E,i as D,j as te,k as O,kt as k,lt as A,mt as j,o as M,ot as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/DK3lEKRX.js";import{t as z}from"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import{t as B}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{c as ie,i as V,l as H,o as U}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/hJTLHSgs.js";import"../chunks/BaFk5JeE.js";import"../chunks/BJVrdkuG.js";import"../chunks/BFwiU0IZ.js";import"../chunks/DUHuqsF-.js";import{t as ae}from"../chunks/wBAqx-SG.js";import{t as oe}from"../chunks/BpZBEnLx.js";import"../chunks/W0DG3qIi.js";import{B as se,H as W,I as G,L as K,R as ce,U as q,V as J,a as le,d as ue,h as de,i as fe,n as pe,o as me,r as he,s as ge,t as _e,u as ve,z as ye}from"../chunks/C7GamMay.js";import{n as Y}from"../chunks/DHHLckcz.js";import{n as X,t as be}from"../chunks/I5DxyXWx.js";var Z=x(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),xe={hash:`svelte-1inuijp`,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-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {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/DeKAuPLN.js","../chunks/Q68dKsWV.js","../chunks/CibALFW0.js","../chunks/DjVmpym-.js","../chunks/DK3lEKRX.js","../chunks/CbotzAWM.js","../chunks/BaFk5JeE.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/CsGLkWF6.js","../chunks/DHHLckcz.js","../chunks/BKRBEPI5.js","../chunks/I5DxyXWx.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js","../chunks/CFKVnMbq.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../chunks/CNNudH1c.js","../chunks/BndQp4ie.js","../chunks/DLkzrfsn.js","../chunks/BFwiU0IZ.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,Jt as l,K as u,Lt as d,Mt as f,N as p,Rt as m,St as h,T as g,Tt as _,U as v,V as y,Wt as b,X as x,Y as S,b as C,bt as w,c as ee,dt as T,ht as E,i as D,j as te,k as O,kt as k,lt as A,mt as j,o as M,ot as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/DK3lEKRX.js";import{t as z}from"../chunks/BBWpG1hF.js";import"../chunks/Bo0U8J3e.js";import{t as B}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{c as ie,i as V,l as H,o as U}from"../chunks/k-nJVsgE.js";import"../chunks/CsGLkWF6.js";import"../chunks/hJTLHSgs.js";import"../chunks/BaFk5JeE.js";import"../chunks/BJVrdkuG.js";import"../chunks/BFwiU0IZ.js";import"../chunks/DUHuqsF-.js";import{t as ae}from"../chunks/Dy0FGVSs.js";import{t as oe}from"../chunks/BMJ5aYRa.js";import"../chunks/CbotzAWM.js";import{B as se,H as W,I as G,L as K,R as ce,U as q,V as J,a as le,d as ue,h as de,i as fe,n as pe,o as me,r as he,s as ge,t as _e,u as ve,z as ye}from"../chunks/Q68dKsWV.js";import{n as Y}from"../chunks/DHHLckcz.js";import{n as X,t as be}from"../chunks/I5DxyXWx.js";var Z=x(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),xe={hash:`svelte-1inuijp`,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-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {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 Se(t,n){m(n,!1),e(t,xe);let r=M(n,`name`,12),i=M(n,`key`,12),a=M(n,`value`,12);var s={get name(){return r()},set name(e){r(e),f()},get key(){return i()},set key(e){i(e),f()},get value(){return a()},set value(e){a(e),f()}},l=Z(),p=w(l),_=h(p,2),v=w(_,!0);return o(_),o(l),j(()=>{I(l,`title`,`Color ${i()}: ${a()}`),g(p,`background-color: var(--color-${r()??``}-${i()??``});`),u(v,i())}),c(t,l),d(s)}D(Se,{name:{},key:{},value:{}},[],[],{mode:`open`});var Ce=x(`<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 we(e){c(e,Ce())}D(we,{},[],[],{mode:`open`});var Te=x(`<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-4x0tmq">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
@@ -47,4 +47,4 @@ CH-4001 Basel`,phone:`+41 61 200 20 20`,email:`rathaus@bs.ch`,coords:{lat:47.559
47
47
 
48
48
  /* Keep widget hidden until the component marks itself ready (avoids barebone/unthemed flash) */liipgpt-search-summary .search-summary:not(.search-summary--ready) {opacity:0;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
49
49
  #chat-wrapper.svelte-1uha8ag:has(#preview-form:where(.svelte-1uha8ag)) {
50
- /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){m(l,!0),e(n,We);let u=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=k(()=>l.data);E(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>N(f).options?.esm?.value?`/build/${e}/liipgpt-${e}.js`:`/build/${e}/liipgpt-${e}.iife.js`,g=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),y=async e=>{e===`build`&&(await B(()=>import(p(`chat`)),[],import.meta.url),await B(()=>import(p(`button`)),[],import.meta.url),await B(()=>import(p(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/DK5x2wSR.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url),await B(()=>import(`../chunks/BndQp4ie.js`),__vite__mapDeps([19,12,4,2,9,6,13,8,7,10,14,15,18]),import.meta.url),await B(()=>import(`../chunks/CYSkUxy-.js`),__vite__mapDeps([20,3,12,4,2,5,6,7,15,17,21]),import.meta.url)),e===`server`&&(B(()=>import(U(l.data.options,`chat`)),[],import.meta.url),B(()=>import(U(l.data.options,`button`)),[],import.meta.url),B(()=>import(U(l.data.options,`search-summary`)),[],import.meta.url))},x=k(()=>l.data.options?.[`preview-mode`]?.value??`server`);E(()=>{y(N(x))});let C=`./sidebar${ae.url.search}`,D=i(void 0),O=i(void 0),A=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};E(()=>{N(D)&&A(N(D),N(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),E(()=>{N(O)&&N(f).embedTab===`chat`?A(N(O),N(f).options.onclosechat.value||``):N(O)&&N(O).replaceChildren()});let M=k(()=>N(f)&&N(f).options[`preview-components`].value),ne=k(()=>N(f).embedTab===`chat`),se=k(()=>N(f).embedTab===`search-summary`);E(()=>{if(!N(se)){H();return}let e=N(f).options[`use-chat-config`]?.value?``:N(f).options[`host-css`]?.value??``;e?ie(e):H()});var W=Ue();te(`1uha8ag`,e=>{var t=S(),n=R(t),r=e=>{T(()=>{L.title=`LiipGPT Configurator | Components`})},i=e=>{T(()=>{L.title=`LiipGPT Configurator`})};v(n,e=>{N(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var G=w(W);let K;var ce=w(G),q=e=>{var t=ze();j(()=>I(t,`src`,C)),c(e,t)};v(ce,e=>{N(f).options[`hide-sidebar`].value||e(q)}),o(G);var J=h(G,2),le=e=>{oe(e,{mode:`show`})};v(J,e=>{N(f).options[`hide-sidebar`].value&&e(le)}),s(h(J,2),()=>N(f),e=>{var n=S(),r=R(n),i=e=>{var n=S();t(R(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,ee(()=>u))}),c(e,n)},s=e=>{var t=He();let n;var r=w(t),i=e=>{var t=Be(),n=h(w(t),6),r=w(n),i=h(w(r),6),a=h(w(i),2),s=h(w(a),14),l=h(w(s),2),u=w(l);u.value=u.__value=``;var d=h(u);d.value=d.__value=`ch`;var f=h(d);f.value=f.__value=`de`;var p=h(f);p.value=p.__value=`at`,o(l),o(s);var m=h(s,12),g=h(w(m),2),_=w(g);_.value=_.__value=``;var v=h(_);v.value=v.__value=`a`;var y=h(v);y.value=y.__value=`b`;var x=h(y);x.value=x.__value=`c`,o(g),o(m),b(2),o(a),o(i),b(16),o(r),b(2),o(n),o(t),c(e,t)};v(r,e=>{N(ne)&&N(f).options.flyout.value&&N(f).options[`preview-form`].value&&e(i)});var s=h(r,2),l=e=>{var t=S(),n=R(t),r=e=>{var t=Ve();j(()=>I(t,`src`,N(f).options[`preview-background`].value)),c(e,t)},i=k(()=>g(N(f).options[`preview-background`].value));v(n,e=>{N(i)&&e(r)}),c(e,t)};v(s,e=>{N(ne)&&N(f).options.flyout.value&&N(f).options[`preview-background`].value&&e(l)});var u=h(s,2);F(u,e=>_(D,e),()=>N(D));var d=h(u,2);re(d,()=>V(N(f).options,N(f).embedTab,!1,!0)),F(h(d,2),e=>_(O,e),()=>N(O)),o(t),j(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":N(f).options.flyout.value&&N(f).options[`preview-background`].value&&g(N(f).options[`preview-background`].value),"search-summary-preview":N(se)})]),c(e,t)};v(r,e=>{N(M)?e(i):e(s,-1)}),c(e,n)}),o(W),j(()=>{a(W,1,r([{"components-preview":N(M)}]),`svelte-1uha8ag`),K=a(G,1,`sidebar-slot svelte-1uha8ag`,null,K,{"sidebar-slot--hidden":N(f).options[`hide-sidebar`].value})}),c(n,W),d()}D($,{},[],[],{mode:`open`});export{$ as component};
50
+ /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){m(l,!0),e(n,We);let u=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=k(()=>l.data);E(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>N(f).options?.esm?.value?`/build/${e}/liipgpt-${e}.js`:`/build/${e}/liipgpt-${e}.iife.js`,g=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),y=async e=>{e===`build`&&(await B(()=>import(p(`chat`)),[],import.meta.url),await B(()=>import(p(`button`)),[],import.meta.url),await B(()=>import(p(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/DeKAuPLN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url),await B(()=>import(`../chunks/BndQp4ie.js`),__vite__mapDeps([19,12,4,2,9,6,13,8,7,10,14,15,18]),import.meta.url),await B(()=>import(`../chunks/DLkzrfsn.js`),__vite__mapDeps([20,3,12,4,2,5,6,7,15,17,21]),import.meta.url)),e===`server`&&(B(()=>import(U(l.data.options,`chat`)),[],import.meta.url),B(()=>import(U(l.data.options,`button`)),[],import.meta.url),B(()=>import(U(l.data.options,`search-summary`)),[],import.meta.url))},x=k(()=>l.data.options?.[`preview-mode`]?.value??`server`);E(()=>{y(N(x))});let C=`./sidebar${ae.url.search}`,D=i(void 0),O=i(void 0),A=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};E(()=>{N(D)&&A(N(D),N(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),E(()=>{N(O)&&N(f).embedTab===`chat`?A(N(O),N(f).options.onclosechat.value||``):N(O)&&N(O).replaceChildren()});let M=k(()=>N(f)&&N(f).options[`preview-components`].value),ne=k(()=>N(f).embedTab===`chat`),se=k(()=>N(f).embedTab===`search-summary`);E(()=>{if(!N(se)){H();return}let e=N(f).options[`use-chat-config`]?.value?``:N(f).options[`host-css`]?.value??``;e?ie(e):H()});var W=Ue();te(`1uha8ag`,e=>{var t=S(),n=R(t),r=e=>{T(()=>{L.title=`LiipGPT Configurator | Components`})},i=e=>{T(()=>{L.title=`LiipGPT Configurator`})};v(n,e=>{N(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var G=w(W);let K;var ce=w(G),q=e=>{var t=ze();j(()=>I(t,`src`,C)),c(e,t)};v(ce,e=>{N(f).options[`hide-sidebar`].value||e(q)}),o(G);var J=h(G,2),le=e=>{oe(e,{mode:`show`})};v(J,e=>{N(f).options[`hide-sidebar`].value&&e(le)}),s(h(J,2),()=>N(f),e=>{var n=S(),r=R(n),i=e=>{var n=S();t(R(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,ee(()=>u))}),c(e,n)},s=e=>{var t=He();let n;var r=w(t),i=e=>{var t=Be(),n=h(w(t),6),r=w(n),i=h(w(r),6),a=h(w(i),2),s=h(w(a),14),l=h(w(s),2),u=w(l);u.value=u.__value=``;var d=h(u);d.value=d.__value=`ch`;var f=h(d);f.value=f.__value=`de`;var p=h(f);p.value=p.__value=`at`,o(l),o(s);var m=h(s,12),g=h(w(m),2),_=w(g);_.value=_.__value=``;var v=h(_);v.value=v.__value=`a`;var y=h(v);y.value=y.__value=`b`;var x=h(y);x.value=x.__value=`c`,o(g),o(m),b(2),o(a),o(i),b(16),o(r),b(2),o(n),o(t),c(e,t)};v(r,e=>{N(ne)&&N(f).options.flyout.value&&N(f).options[`preview-form`].value&&e(i)});var s=h(r,2),l=e=>{var t=S(),n=R(t),r=e=>{var t=Ve();j(()=>I(t,`src`,N(f).options[`preview-background`].value)),c(e,t)},i=k(()=>g(N(f).options[`preview-background`].value));v(n,e=>{N(i)&&e(r)}),c(e,t)};v(s,e=>{N(ne)&&N(f).options.flyout.value&&N(f).options[`preview-background`].value&&e(l)});var u=h(s,2);F(u,e=>_(D,e),()=>N(D));var d=h(u,2);re(d,()=>V(N(f).options,N(f).embedTab,!1,!0)),F(h(d,2),e=>_(O,e),()=>N(O)),o(t),j(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":N(f).options.flyout.value&&N(f).options[`preview-background`].value&&g(N(f).options[`preview-background`].value),"search-summary-preview":N(se)})]),c(e,t)};v(r,e=>{N(M)?e(i):e(s,-1)}),c(e,n)}),o(W),j(()=>{a(W,1,r([{"components-preview":N(M)}]),`svelte-1uha8ag`),K=a(G,1,`sidebar-slot svelte-1uha8ag`,null,K,{"sidebar-slot--hidden":N(f).options[`hide-sidebar`].value})}),c(n,W),d()}D($,{},[],[],{mode:`open`});export{$ as component};
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/DK3lEKRX.js";import"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/CLWqXHLZ.js";import{a as se,i as ce}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/hJTLHSgs.js";import"../chunks/BaFk5JeE.js";import"../chunks/BJVrdkuG.js";import"../chunks/BFwiU0IZ.js";import"../chunks/DUHuqsF-.js";import"../chunks/wBAqx-SG.js";import{n as le,r as ue,t as de}from"../chunks/BpZBEnLx.js";import"../chunks/W0DG3qIi.js";import"../chunks/C7GamMay.js";import"../chunks/q8gaG5yu.js";import"../chunks/DHHLckcz.js";import"../chunks/I5DxyXWx.js";import"../chunks/DmZKIk3Y.js";import"../chunks/MqTIsSeD.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=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`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(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}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
1
+ import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/DK3lEKRX.js";import"../chunks/BBWpG1hF.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/CLWqXHLZ.js";import{a as se,i as ce}from"../chunks/k-nJVsgE.js";import"../chunks/CsGLkWF6.js";import"../chunks/hJTLHSgs.js";import"../chunks/BaFk5JeE.js";import"../chunks/BJVrdkuG.js";import"../chunks/BFwiU0IZ.js";import"../chunks/DUHuqsF-.js";import"../chunks/Dy0FGVSs.js";import{n as le,r as ue,t as de}from"../chunks/BMJ5aYRa.js";import"../chunks/CbotzAWM.js";import"../chunks/Q68dKsWV.js";import"../chunks/BKRBEPI5.js";import"../chunks/DHHLckcz.js";import"../chunks/I5DxyXWx.js";import"../chunks/DmZKIk3Y.js";import"../chunks/MqTIsSeD.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=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`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(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}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case I:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=M(e[o]);r?r.nodes.push(n):t.push(n);break}case ne:case re:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==ne&&a!==re&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=P(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case ue:case ie:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===I)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=N(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case te:{let e=n.pop();if(i.length>0){let t=M(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(M(i)),t}var me=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(me||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function z(e,t){typeof t==`function`?he(e,t):he(e,t.enter,t.exit)}function he(e,t=()=>R.Continue,n=()=>R.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,o>=0){let n=a[o],s=t(n,i)??R.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??R.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ge(e){let t=[];return z(L(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return z(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),R.Skip}),t}var _e=64;function B(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function V(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function H(e,t=[]){return e.charCodeAt(0)===_e?w(e,t):B(e,t)}function U(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function ve(e){return{kind:`comment`,value:e}}function ye(e,t){return{kind:`context`,context:e,nodes:t}}function W(e){return{kind:`at-root`,nodes:e}}function be(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function xe(e){return{depth:e.depth,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,`context`,{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,`parent`,{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Se(e,t,n=3){let r=[],i=new Set,a=new j(()=>new Set),o=new j(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new j(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`))if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ge(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Ee(e.value))c.add(t);n&2&&e.value.includes(`color-mix(`)&&!m.supportsColorMix&&!m.keyframes&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);let n={},r=new Set;for(let e of t){if(e.kind!==`declaration`)continue;let t=`${e.property}:${e.value}:${e.important}`;n[t]??=[],n[t].push(e)}for(let e in n)for(let t=0;t<n[e].length-1;++t)r.add(n[e][t]);if(r.size>0&&(t=t.filter(e=>!r.has(e))),t.length===0)return;e.selector===`&`?p.push(...t):p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=U(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Te(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Ee(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=we(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(!0);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=L(r.value),a=!1;if(z(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(z(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?L(o)[0]:null}while(i);return R.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?R.Replace(n):void 0}else if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:F(i)},s=H(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=H(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=H(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>!(e.kind===`comment`||e.kind===`at-rule`&&(e.name===`@charset`||e.name===`@import`))),n=V(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=H(`@layer properties`,[V(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return p}function Ce(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
4
4
  `,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
@@ -1 +1 @@
1
- {"version":"1788984576380"}
1
+ {"version":"1789119781798"}
@@ -4,12 +4,12 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.C7KBUclR.js" rel="modulepreload">
8
- <link href="./_app/immutable/chunks/nkdIuSLi.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start._nmsyr-e.js" rel="modulepreload">
8
+ <link href="./_app/immutable/chunks/BBWpG1hF.js" rel="modulepreload">
9
9
  <link href="./_app/immutable/chunks/DK3lEKRX.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
11
11
  <link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
12
- <link href="./_app/immutable/entry/app.N8qcqFkp.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.BHBkpDs8.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
14
14
  <link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
15
15
 
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_kvl68p = {
21
+ __sveltekit_1vxa2dv = {
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.C7KBUclR.js"),
30
- import("./_app/immutable/entry/app.N8qcqFkp.js")
29
+ import("./_app/immutable/entry/start._nmsyr-e.js"),
30
+ import("./_app/immutable/entry/app.BHBkpDs8.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
@@ -4,12 +4,12 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.C7KBUclR.js" rel="modulepreload">
8
- <link href="./_app/immutable/chunks/nkdIuSLi.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start._nmsyr-e.js" rel="modulepreload">
8
+ <link href="./_app/immutable/chunks/BBWpG1hF.js" rel="modulepreload">
9
9
  <link href="./_app/immutable/chunks/DK3lEKRX.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
11
11
  <link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
12
- <link href="./_app/immutable/entry/app.N8qcqFkp.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.BHBkpDs8.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
14
14
  <link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
15
15
 
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_kvl68p = {
21
+ __sveltekit_1vxa2dv = {
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.C7KBUclR.js"),
30
- import("./_app/immutable/entry/app.N8qcqFkp.js")
29
+ import("./_app/immutable/entry/start._nmsyr-e.js"),
30
+ import("./_app/immutable/entry/app.BHBkpDs8.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
package/index.d.ts CHANGED
@@ -2733,14 +2733,14 @@ export declare const completeChatConfigSchema: z.ZodMiniObject<{
2733
2733
  renderKatex: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2734
2734
  /** When set, changing the language will change the url path to /[selected language locale] */
2735
2735
  reflectLanguageInPath: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2736
- /** When enabled, sends the current page referrer and domain to the backend with each question */
2737
2736
  /**
2738
- * 'all': sends full referrer URL (window.location in flyout mode, document.referrer in non-flyout mode)
2739
- * 'own': sends only if the referrer is from the same domain as the current location (only relevant in non-flyout mode when taken from document.referrer)
2740
- * 'location': always sends the window.location (instead of document.referrer in non-flyout mode, needed that for lozaerncitygpt)
2741
- * 'none': never sends referrer,
2742
-
2743
- * */
2737
+ * Which referrer to send to the backend with each question. Applies to the chat widget and the search summary alike
2738
+ * (see `resolveReferrer`). Defaults to 'all'.
2739
+ * 'all': sends the full referrer URL — window.location for the flyout chat (embedded on any page), document.referrer for a stand-alone chat page and the search summary
2740
+ * 'own': like 'all', but a document.referrer from another domain is dropped (only relevant for a stand-alone chat page and the search summary)
2741
+ * 'location': always sends window.location, also for a stand-alone chat page and the search summary (needed for lozaerncitygpt)
2742
+ * 'none': never sends a referrer
2743
+ */
2744
2744
  sendReferrer: z.ZodMiniOptional<z.ZodMiniEnum<{
2745
2745
  all: "all";
2746
2746
  own: "own";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.12.2",
3
+ "version": "3.13.0",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {