@liip/liipgpt 3.14.0 → 3.15.0-rc.1

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/configurator/_app/env.js +1 -1
  2. package/configurator/_app/immutable/chunks/{BKiCq6Wi.js → C-X7Q6CE.js} +1 -1
  3. package/configurator/_app/immutable/chunks/{D8Mbx1aL.js → CJ4gdVQF.js} +1 -1
  4. package/configurator/_app/immutable/chunks/{DwtB5Nu2.js → CZkMRFTC.js} +2 -2
  5. package/configurator/_app/immutable/chunks/D5CVK0so2.js +2 -0
  6. package/configurator/_app/immutable/chunks/{3-PKoknK.js → DQxXGCvq.js} +1 -1
  7. package/configurator/_app/immutable/chunks/{CCRsz3Cq.js → NwbFk4zm.js} +1 -1
  8. package/configurator/_app/immutable/entry/{app.CqMp7M7Z.js → app.DvQMXODj.js} +2 -2
  9. package/configurator/_app/immutable/entry/start.CGktXWNz.js +1 -0
  10. package/configurator/_app/immutable/nodes/{0.C3BS1E4u.js → 0.yXaOf2Ed.js} +2 -2
  11. package/configurator/_app/immutable/nodes/{1.BI0jtTlM.js → 1.D3YwKuqb.js} +1 -1
  12. package/configurator/_app/immutable/nodes/{2.D4p-rkZA.js → 2.DcVFmdbt.js} +3 -3
  13. package/configurator/_app/immutable/nodes/{3._lyZCdqa.js → 3.CGYF4KUT.js} +1 -1
  14. package/configurator/_app/version.json +1 -1
  15. package/configurator/index.html +6 -6
  16. package/configurator/sidebar.html +6 -6
  17. package/package.json +1 -1
  18. package/search-summary/liipgpt-search-summary.iife.js +26 -26
  19. package/search-summary/liipgpt-search-summary.js +18 -18
  20. package/search-summary/{load-chat-config-rIrJxcYJ.js → load-chat-config-ABZaHX9b.js} +1 -1
  21. package/search-summary/translations-utils-D5Ae2DBm.js +4 -0
  22. package/configurator/_app/immutable/chunks/TJW2RdJ02.js +0 -2
  23. package/configurator/_app/immutable/entry/start.IPJ3KCZ_.js +0 -1
  24. package/search-summary/translations-utils-Du2dWNi1.js +0 -4
@@ -1 +1 @@
1
- export const env={"PUBLIC_API_URL":"https://liipgpt.dev.cluster.liipgpt.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"3.14.0"}
1
+ export const env={"PUBLIC_API_URL":"https://liipgpt.dev.cluster.liipgpt.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"3.15.0-rc.1"}
@@ -1 +1 @@
1
- var e=[{id:`chat`,label:`Chat`},{id:`link-button`,label:`Link Button`},{id:`search-summary`,label:`Search summary`}],t=[{id:`api-embed`,label:`API & script delivery`,keys:[`api-url`,`api-org`,`prod-api`,`cdn`,`esm`,`use-sri`],tabs:`all`},{id:`theme-language`,label:`Theme & language`,keys:[`force-theme`,`lang`,`CHAT_CONFIG_OVERRIDE`,`chat-class`],tabs:[`chat`,`link-button`]},{id:`flyout`,label:`Flyout layout`,keys:[`flyout`,`flyout-style`,`flyout-class`],tabs:[`chat`]},{id:`events-loaders`,label:`Events & Loaders`,keys:[`onclosechat`,`loader-background`,`loader-color`,`custom-loader`],tabs:[`chat`]},{id:`link-button-appearance`,label:`Button appearance`,keys:[`button-class`,`button-style`],tabs:[`link-button`]},{id:`search-summary-styling`,label:`Styling`,keys:[`force-theme`,`host-css`,`height`,`max-height`],tabs:[`search-summary`],defaultOpen:!0},{id:`search-summary-content`,label:`Content`,keys:[`search-summary-question`,`opt-in`,`disclaimer-slot`,`buttons-slots`],tabs:[`search-summary`]},{id:`search-summary-follow-up`,label:`Follow-up question`,keys:[`chat-url`],tabs:[`search-summary`]},{id:`components-preview`,label:`Components & Preview`,keys:[`preview-components`,`preview-mode`,`preview-background`,`preview-form`],tabs:`all`},{id:`search-summary-cache`,label:`Answer cache (development only)`,keys:[`cache`],tabs:[`search-summary`]},{id:`chat-cache`,label:`Answer cache (development only)`,keys:[`chat-cache`],tabs:[`chat`]}],n=e=>e===`chat`||e===`link-button`||e===`search-summary`,r=e=>{let t=e.get(`embed-tab`);return n(t)?t:e.get(`show-link-button`)===`true`?`link-button`:`chat`},i=(e,n)=>t.filter(t=>t.devOnly&&!n?!1:t.tabs===`all`?!0:t.tabs.includes(e));export{i as n,r,e as t};
1
+ var e=[{id:`chat`,label:`Chat`},{id:`link-button`,label:`Link Button`},{id:`search-summary`,label:`Search summary`}],t=[{id:`api-embed`,label:`API & script delivery`,keys:[`api-url`,`api-org`,`prod-api`,`cdn`,`esm`,`use-sri`],tabs:`all`},{id:`theme-language`,label:`Theme & language`,keys:[`force-theme`,`lang`,`CHAT_CONFIG_OVERRIDE`,`chat-class`],tabs:[`chat`,`link-button`]},{id:`flyout`,label:`Flyout layout`,keys:[`flyout`,`flyout-style`,`flyout-class`],tabs:[`chat`]},{id:`events-loaders`,label:`Events & Loaders`,keys:[`onclosechat`,`loader-background`,`loader-color`,`custom-loader`],tabs:[`chat`]},{id:`link-button-appearance`,label:`Button appearance`,keys:[`button-class`,`button-style`],tabs:[`link-button`]},{id:`search-summary-styling`,label:`Styling`,keys:[`force-theme`,`host-css`,`height`,`max-height`],tabs:[`search-summary`],defaultOpen:!0},{id:`search-summary-content`,label:`Content`,keys:[`search-summary-question`,`opt-in`,`disclaimer-slot`,`buttons-slots`],tabs:[`search-summary`]},{id:`search-summary-follow-up`,label:`Follow-up question`,keys:[`chat-url`,`chat-embed`,`chat-script-url`],tabs:[`search-summary`]},{id:`components-preview`,label:`Components & Preview`,keys:[`preview-components`,`preview-mode`,`preview-background`,`preview-form`],tabs:`all`},{id:`search-summary-cache`,label:`Answer cache (development only)`,keys:[`cache`],tabs:[`search-summary`]},{id:`chat-cache`,label:`Answer cache (development only)`,keys:[`chat-cache`],tabs:[`chat`]}],n=e=>e===`chat`||e===`link-button`||e===`search-summary`,r=e=>{let t=e.get(`embed-tab`);return n(t)?t:e.get(`show-link-button`)===`true`?`link-button`:`chat`},i=(e,n)=>t.filter(t=>t.devOnly&&!n?!1:t.tabs===`all`?!0:t.tabs.includes(e));export{i as n,r,e as t};
@@ -1 +1 @@
1
- import"./DC2Dub5y.js";import{a as e,i as t,r as n}from"./3-PKoknK.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
1
+ import"./DC2Dub5y.js";import{a as e,i as t,r as n}from"./DQxXGCvq.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
@@ -1,4 +1,4 @@
1
- var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.14.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 */
1
+ var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.15.0-rc.1`,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;
@@ -66,7 +66,7 @@ liipgpt-search-summary .search-summary:not(.search-summary--ready) { opacity: 0;
66
66
  class="your-custom-class-btn your-custom-class-btn--secondary"
67
67
  >
68
68
  Disable AI
69
- </button>`,w=(e,t,n,r=!1)=>{let i=typeof e[`search-summary-question`]?.value==`string`&&e[`search-summary-question`].value?e[`search-summary-question`].value:b,c=(typeof window<`u`?new URLSearchParams(window.location.search).get(`q`):null)||i,l=typeof e.lang.value==`string`?e.lang.value:`en`,u=x[l]??x.en,p=e[`use-chat-config`]?.value,_=e[`host-css`]?.value,v=a((!p&&typeof _==`string`?_:``)||o),C=[f(`lang`,l),f(`api-url`,e[`api-url`].value),f(`question`,c),f(`labelled-by`,y),f(`height`,e.height?.value??`280`),f(`max-height`,e[`max-height`]?.value),f(`opt-in`,e[`opt-in`]?.value),f(`use-chat-config`,p),p?f(`force-theme`,e?.[`force-theme`]?.value):void 0,p?void 0:f(`class`,v),f(`chat-url`,e[`chat-url`]?.value),r?f(`cache`,e.cache?.value??!0):void 0].filter(Boolean),w=e[`disclaimer-slot`]?.value,T=typeof w==`string`?w:S,E=!p&&e[`opt-in`]?.value?`\n <div slot="disclaimer">\n ${T.trim().replace(/\n/g,`
69
+ </button>`,w=(e,t,n,r=!1)=>{let i=typeof e[`search-summary-question`]?.value==`string`&&e[`search-summary-question`].value?e[`search-summary-question`].value:b,c=(typeof window<`u`?new URLSearchParams(window.location.search).get(`q`):null)||i,l=typeof e.lang.value==`string`?e.lang.value:`en`,u=x[l]??x.en,p=e[`use-chat-config`]?.value,_=e[`host-css`]?.value,v=a((!p&&typeof _==`string`?_:``)||o),C=[f(`lang`,l),f(`api-url`,e[`api-url`].value),f(`question`,c),f(`labelled-by`,y),f(`height`,e.height?.value??`280`),f(`max-height`,e[`max-height`]?.value),f(`opt-in`,e[`opt-in`]?.value),f(`use-chat-config`,p),p?f(`force-theme`,e?.[`force-theme`]?.value):void 0,p?void 0:f(`class`,v),f(`chat-url`,e[`chat-url`]?.value),f(`chat-embed`,e[`chat-embed`]?.value),e[`chat-embed`]?.value&&e[`chat-script-url`]?.value?f(`chat-script-url`,e[`chat-script-url`].value):void 0,r?f(`cache`,e.cache?.value??!0):void 0].filter(Boolean),w=e[`disclaimer-slot`]?.value,T=typeof w==`string`?w:S,E=!p&&e[`opt-in`]?.value?`\n <div slot="disclaimer">\n ${T.trim().replace(/\n/g,`
70
70
  `)}\n </div>`:``,D=e[`buttons-slots`]?.value,O=typeof D==`string`?D.trim():``,k=!p&&O?`\n ${O.replace(/\n/g,`
71
71
  `)}`:``,A=`<liipgpt-search-summary\n ${C.join(`
72
72
  `)}\n>${E}${k}\n</liipgpt-search-summary>`,j=`${`<h2 id="${y}">${d(u)}</h2>`}\n${A}`;if(t){let t=h(e,`search-summary`),r=e[`host-css`]?.value,i=!p&&typeof r==`string`?r:``,a=`<style>\n${[s,...i?[i]:[]].join(`
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CGs5apVK2.js","./DC2Dub5y.js","./DW2dEcyF.js","./DXq2v1Et.js","./Dgo1hEZl.js","./C8mohMXa.js","./jIxBZpXH.js","./Cac-usFo.js","./BTi0ccO8.js","./Ddu6Runs.js","./CIHI5AgE.js","./BZxH-3SJ2.js"])))=>i.map(i=>d[i]);
2
+ import{B as e,Ct as t,Dt as n,E as r,F as i,Gt as a,J as o,K as s,Lt as c,Mt as l,N as u,P as d,Rt as f,St as p,T as m,Tt as h,U as g,X as _,Y as v,Z as y,_ as ee,b,bt as x,c as S,ct as C,gt as w,ht as T,i as E,k as D,kt as O,lt as k,mt as A,n as j,nt as te,o as M,ot as N,p as ne,pt as P,rt as re,tt as F,u as I,v as L,x as ie,xt as R,yt as ae,z as oe}from"./DC2Dub5y.js";import"./CNhGYG1q.js";import{t as se}from"./C8mohMXa.js";import"./D1hYfEew.js";import"./DXq2v1Et.js";import{t as ce}from"./jIxBZpXH.js";import{i as le,n as ue,r as de,t as fe}from"./K3i7Gwu8.js";import{a as pe,i as me,l as he,o as ge,t as _e}from"./BG3QC97Q.js";import{n as ve,t as ye}from"./BLitziHG2.js";import{n as be,t as xe}from"./ilVrIKNs2.js";function z(e){return Object.prototype.toString.call(e)===`[object Date]`}function Se(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>Se(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(z(e)&&z(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=Se(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var Ce=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=n(e),this.#t=n(e),this.#n=t}static of(t,n){let r=new e(t(),n);return P(()=>{r.set(t())}),r}set(e,t){h(this.#t,e);let{delay:n=0,duration:r=400,easing:a=ve,interpolate:o=Se}={...this.#n,...t};if(r===0)return this.#r?.abort(),h(this.#e,e),Promise.resolve();let s=i.now()+n,c,l=!1,u=this.#r;return this.#r=d(t=>{if(t<s)return!0;if(!l){l=!0;let t=this.#e.v;c=o(t,e),typeof r==`function`&&(r=r(t,e)),u?.abort()}let n=t-s;return n>r?(h(this.#e,e),!1):(h(this.#e,c(a(n/r))),!0)}),this.#r.promise}get current(){return N(this.#e)}get target(){return N(this.#t)}set target(e){this.set(e)}},we=class{clientPrimitive;constructor(e){this.clientPrimitive=new ge(e)}getMetadata(){return this.clientPrimitive.getMetadata()}createConversation(){return new he(this.clientPrimitive)}search(e,t={}){return this.clientPrimitive.search(e,t)}getChatConfig(){return this.clientPrimitive.getChatConfig()}getPredefinedQuestions(e){return this.clientPrimitive.getPredefinedQuestions(e)}},Te={de:{searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,referencesTitle:`Quellen`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryFollowUpInput:`Frage stellen`,searchSummaryOpenChat:`Unterhaltung fortsetzen`,searchSummaryChatLoadError:`Der Chat konnte nicht geladen werden. Bitte versuchen Sie es später erneut.`,ariaSearchSummaryChatModal:`KI-Chat`},en:{searchSummaryExpand:`Full answer`,searchSummaryCollapse:`Show less`,searchSummaryOptInDefault:`Enable AI search`,searchSummaryOptOut:`Disable AI search`,searchSummaryError:`Something went wrong.`,searchSummaryLoading:`Generating answer…`,searchSummaryDisclaimer:`<p><strong>I am an AI assistant.</strong></p><p>My answers are generated by artificial intelligence and may not always be correct. If you activate me, I will help you find the right information.</p>`,ariaSearchSummaryExpand:`Show full answer`,ariaSearchSummaryCollapse:`Collapse answer`,ariaSearchSummaryOptOut:`Disable AI search`,referencesTitle:`References`,searchSummaryFollowUpPlaceholder:`Ask a follow-up question…`,searchSummaryFollowUpSubmit:`Continue in chat`,ariaSearchSummaryFollowUpInput:`Ask a follow-up question`,searchSummaryOpenChat:`Continue the conversation`,searchSummaryChatLoadError:`The chat could not be loaded. Please try again later.`,ariaSearchSummaryChatModal:`AI chat`},it:{searchSummaryExpand:`Risposta completa`,searchSummaryCollapse:`Mostra meno`,searchSummaryOptInDefault:`Attiva la ricerca IA`,searchSummaryOptOut:`Disattiva la ricerca IA`,searchSummaryError:`Si è verificato un errore.`,searchSummaryLoading:`Generazione della risposta…`,searchSummaryDisclaimer:`<p><strong>Sono un assistente IA.</strong></p><p>Le mie risposte sono generate da un'intelligenza artificiale e potrebbero non essere sempre corrette. Se mi attivi, ti aiuto a trovare le informazioni giuste.</p>`,ariaSearchSummaryExpand:`Mostra la risposta completa`,ariaSearchSummaryCollapse:`Comprimi la risposta`,ariaSearchSummaryOptOut:`Disattiva la ricerca IA`,referencesTitle:`Riferimenti`,searchSummaryFollowUpPlaceholder:`Fai una domanda di approfondimento…`,searchSummaryFollowUpSubmit:`Continua nella chat`,ariaSearchSummaryFollowUpInput:`Fai una domanda di approfondimento`,searchSummaryOpenChat:`Continua la conversazione`,searchSummaryChatLoadError:`Impossibile caricare la chat. Riprova più tardi.`,ariaSearchSummaryChatModal:`Chat IA`},fr:{searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par une intelligence artificielle et peuvent ne pas toujours être correctes. Si vous m'activez, je vous aide à trouver les bonnes informations.</p>`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,referencesTitle:`Références`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,searchSummaryOpenChat:`Poursuivre la conversation`,searchSummaryChatLoadError:`Le chat n'a pas pu être chargé. Veuillez réessayer plus tard.`,ariaSearchSummaryChatModal:`Chat IA`}},Ee=`liipgpt-search-summary>[slot]{display:none}@layer components{@keyframes search-summary-spin{to{transform:rotate(360deg)}}@keyframes search-summary-content-appear{0%{opacity:0}}@keyframes search-summary-content-disappear{to{opacity:0}}@keyframes search-summary-action-appear{0%{opacity:0;transform:translateY(12px)}}@keyframes search-summary-action-disappear{to{opacity:0;transform:translateY(12px)}}.search-summary{box-sizing:border-box;padding:var(--search-summary-padding,0);border-width:var(--search-summary-border-width,0);border-style:var(--search-summary-border-style,solid);border-radius:var(--search-summary-border-radius,0);border-color:var(--search-summary-border-color,transparent);background:var(--search-summary-background,transparent);box-shadow:var(--search-summary-box-shadow,none);color:var(--search-summary-color,var(--body-color,inherit));font-weight:var(--base-font-weight-normal,inherit);font-size:var(--base-font-size-body,inherit);line-height:var(--base-line-height-default,inherit);font-family:var(--search-summary-font-family,var(--font-family,inherit));font-optical-sizing:auto;transition:opacity var(--search-summary-fade-duration,.2s) ease-out;flex-direction:column;padding-bottom:0;display:flex;position:relative;overflow:hidden}.search-summary :where(button){cursor:pointer;font-family:inherit}.search-summary :where(.search-summary__sr-only){clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-summary:where(.search-summary--ready[data-state=loading]),.search-summary:where(.search-summary--ready[data-state=answering]){opacity:var(--search-summary-loading-opacity,1)}.search-summary:where([data-state=error]){border-color:var(--search-summary-error-border-color,inherit)}.search-summary :where(.search-summary__content){min-height:0;padding-bottom:var(--search-summary-padding,0);flex:1;animation:.35s ease-out both search-summary-content-appear;display:block;position:relative;overflow:hidden}.search-summary :where(.search-summary__content--with-follow-up){flex-direction:column;display:flex}.search-summary:where([data-capped=true]) :where(.search-summary__content){overflow-y:auto}.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving){pointer-events:none;animation:.25s ease-in both search-summary-content-disappear}.search-summary :where(.search-summary__answer-wrap){display:block;position:relative}.search-summary :where(.search-summary__answer){margin-bottom:var(--spacer-16,1rem);line-height:var(--search-summary-answer-line-height,1.5)}.search-summary :where(.search-summary__answer a){color:var(--search-summary-link-color,LinkText);text-decoration:underline}.search-summary :where(.search-summary__answer p){margin-top:0}.search-summary :where(.search-summary__answer--themed){font-size:var(--base-font-size-body,inherit);line-height:var(--search-summary-answer-line-height,var(--base-line-height-default,1.5))}.search-summary :where(.search-summary__answer--themed>:first-child){margin-top:0}.search-summary :where(.search-summary__answer--themed>:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed p,.search-summary__answer--themed ul,.search-summary__answer--themed ol){margin-top:0;margin-bottom:var(--spacer-r-16,1rem)}.search-summary :where(.search-summary__answer--themed h1,.search-summary__answer--themed h2,.search-summary__answer--themed h3,.search-summary__answer--themed h4,.search-summary__answer--themed h5,.search-summary__answer--themed h6){margin-top:var(--spacer-r-24,1.5rem);margin-bottom:var(--spacer-r-12,.75rem);font-weight:var(--base-font-weight-title,700);line-height:var(--base-line-height-tight,1.2)}.search-summary :where(.search-summary__answer--themed ul,.search-summary__answer--themed ol){padding-left:1.5em;list-style-position:outside}.search-summary :where(.search-summary__answer--themed ul){list-style-type:disc}.search-summary :where(.search-summary__answer--themed ol){list-style-type:decimal}.search-summary :where(.search-summary__answer--themed li){margin-bottom:var(--spacer-8,.5rem)}.search-summary :where(.search-summary__answer--themed li:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed b,.search-summary__answer--themed strong){font-weight:var(--base-font-weight-bold,700)}.search-summary :where(.search-summary__answer--themed a){color:var(--search-summary-link-color,var(--anchor-color,LinkText))}.search-summary :where(.search-summary__loading){margin-bottom:var(--spacer-16,1rem);align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__loading-spinner){border:1.5px solid var(--anchor-color,currentColor);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:.5em;height:.5em;animation:.4s linear infinite search-summary-spin;display:inline-block}.search-summary :where(.search-summary__loading-text){font-size:var(--base-font-size-default,inherit)}.search-summary :where(.search-summary__references){padding:0;padding-bottom:var(--spacer-32,2rem);color:var(--search-summary-reference-list-color,inherit);font-size:var(--search-summary-reference-list-font-size,inherit);font-size:var(--base-font-size-sm,inherit);margin:0;list-style-type:none}.search-summary :where(.search-summary__references-title){padding:var(--spacer-2,2px) 0;font-weight:var(--base-font-weight-bold,500);font-size:var(--base-font-size-sm,inherit)}.search-summary :where(.search-summary__reference){display:list-item}.search-summary :where(.search-summary__reference a){padding:var(--spacer-2,2px) 0;color:var(--search-summary-reference-list-color,var(--search-summary-link-color,LinkText));display:block}.search-summary :where(.search-summary__follow-up){padding-top:var(--spacer-12,.75rem);flex-shrink:0;margin-top:auto}.search-summary :where(.search-summary__follow-up-field){align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__follow-up-input){border-width:var(--search-summary-follow-up-border-width,revert);border-style:var(--search-summary-follow-up-border-style,revert);border-radius:var(--search-summary-follow-up-border-radius,revert);border-color:var(--search-summary-follow-up-border-color,revert);background:var(--search-summary-follow-up-background,revert);min-width:0;color:var(--search-summary-follow-up-color,revert);font:inherit;flex:auto}.search-summary :where(.search-summary__follow-up-submit){border-width:var(--search-summary-follow-up-submit-border-width,revert);border-style:var(--search-summary-follow-up-submit-border-style,revert);border-radius:var(--search-summary-follow-up-submit-border-radius,revert);border-color:var(--search-summary-follow-up-submit-border-color,revert);background:var(--search-summary-follow-up-submit-background,revert);color:var(--search-summary-follow-up-submit-color,revert);font:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-summary :where(.search-summary__follow-up-submit-icon){width:var(--spacer-20,1.25rem);height:var(--spacer-20,1.25rem);pointer-events:none}.search-summary :where(.search-summary__follow-up-submit-icon) :where(svg){width:100%;height:100%;display:block}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field){padding:var(--spacer-4,.25rem) var(--spacer-8,.5rem) var(--spacer-4,.25rem) var(--spacer-16,1rem);border-width:var(--chat-input-border-width,var(--spacer-1,1px));border-radius:var(--chat-input-border-radius,1.75rem);border-style:solid;border-color:var(--chat-input-border-color,currentColor);background:var(--chat-input-background,transparent);box-shadow:var(--chat-input-box-shadow,none);transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):hover{background:var(--chat-input-hover-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):has(.search-summary__follow-up-input:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width,var(--spacer-1,1px)));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius,1.75rem));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color,currentColor));background:var(--chat-input-focus-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input){color:var(--chat-input-color,inherit);background:0 0;border:0;padding:0}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus,.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus-visible{outline:none}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit){width:var(--btn-submit-size,2.25rem);height:var(--btn-submit-size,2.25rem);padding:0;border-width:var(--chat-input-submit-border-width,0);border-radius:var(--chat-input-submit-border-radius,50%);border-style:solid;border-color:var(--chat-input-submit-border-color,transparent);background:var(--chat-input-submit-background,var(--search-summary-link-color,LinkText));box-shadow:var(--chat-input-submit-box-shadow,none);color:var(--chat-input-submit-color,Canvas);padding-inline:0;transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s,color .2s,transform .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit):hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width,0));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius,50%));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color,transparent));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background,var(--search-summary-link-color,LinkText)));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow,none));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color,Canvas))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit-icon--fallback path){stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,2px)}.search-summary :where(.search-summary__disclaimer){margin-bottom:var(--spacer-16,1rem);line-height:var(--base-line-height-default,1.5)}.search-summary :where(.search-summary__disclaimer a){color:var(--search-summary-disclaimer-link-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__disclaimer p){margin-top:0}.search-summary :where(.search-summary__opt-in-panel){flex-direction:column;flex:1;min-height:0;display:flex}.search-summary :where(.search-summary__opt-in-body){min-height:0;margin-top:var(--spacer-4,.25rem);margin-bottom:var(--spacer-16,1rem);flex:1;position:relative;overflow-y:auto}.search-summary :where(.search-summary__error){color:var(--search-summary-error-color,inherit)}.search-summary :where(.search-summary__footer){margin-right:calc(-1 * var(--search-summary-padding,0));margin-left:calc(-1 * var(--search-summary-padding,0));padding:0 var(--search-summary-padding,0) calc(var(--search-summary-padding,0));justify-content:space-between;align-items:center;gap:var(--spacer-12,.75rem);background:var(--search-summary-footer-background,var(--search-summary-background,white));flex-wrap:wrap;flex-shrink:0;display:flex;position:relative}.search-summary :where(.search-summary__footer):after{height:var(--spacer-48,3rem);background:linear-gradient(to bottom, transparent, var(--search-summary-footer-background,var(--search-summary-background,white)));content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;transform:translateY(-100%)}.search-summary :where(.search-summary__footer--overlay){margin:0;position:absolute;bottom:0;left:0;right:0}.search-summary :where(.search-summary__footer-actions){align-items:center;gap:var(--spacer-8,.5rem);flex-wrap:wrap;display:flex}.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__open-chat,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount){animation:.3s cubic-bezier(.25,.46,.45,.94) both search-summary-action-appear}.search-summary :where(.search-summary__opt-in,.search-summary__opt-in-slot-mount){animation-delay:.3s}.search-summary :where(.search-summary__btn--leaving){pointer-events:none;animation:.2s cubic-bezier(.55,0,1,.45) both search-summary-action-disappear}.search-summary :where(.search-summary__expand,.search-summary__open-chat,.search-summary__opt-in,.search-summary__opt-out):not(:where(.search-summary__btn)){font:inherit;padding:0;padding-inline:0}.search-summary :where(.search-summary__expand,.search-summary__open-chat,.search-summary__opt-in):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-primary-border-radius,0);border-color:var(--search-summary-action-primary-border-color,transparent);background:var(--search-summary-action-primary-background,transparent);color:var(--search-summary-action-primary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__opt-out):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-secondary-border-radius,0);border-color:var(--search-summary-action-secondary-border-color,transparent);background:var(--search-summary-action-secondary-background,transparent);color:var(--search-summary-action-secondary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__btn){padding:var(--btn-padding-y,var(--spacer-8,.5rem)) var(--btn-padding-x,var(--spacer-20,1.25rem));align-items:center;gap:var(--spacer-8,.5rem);border-width:var(--spacer-1,1px);font-size:var(--base-font-size-sm,inherit);cursor:pointer;border-style:solid;font-family:inherit;line-height:1.25;text-decoration:none;display:inline-flex}.search-summary :where(.search-summary__btn--primary){border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color,transparent);background:var(--btn-primary-background);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.search-summary :where(.search-summary__btn--primary):hover{background:var(--btn-primary-hover-background,var(--btn-primary-background));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.search-summary :where(.search-summary__btn--secondary){border-radius:var(--btn-secondary-border-radius);border-color:var(--btn-secondary-border-color,var(--btn-secondary-background));background:var(--btn-secondary-background);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.search-summary :where(.search-summary__btn--secondary):hover{background:var(--btn-secondary-hover-background,var(--btn-secondary-background));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}.search-summary :where(.search-summary__chat-load-error){margin-top:var(--spacer-8,.5rem);color:var(--search-summary-error-color,inherit);font-size:var(--base-font-size-sm,inherit)}@media (prefers-reduced-motion:reduce){.search-summary{transition:none}.search-summary :where(.search-summary__content),.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving),.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__open-chat,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount),.search-summary :where(.search-summary__btn--leaving),.search-summary :where(.search-summary__loading-spinner){animation:none!important}}}.search-summary-chat-modal{box-sizing:border-box;visibility:hidden;z-index:var(--search-summary-chat-modal-z-index,9999);font-family:var(--search-summary-font-family,var(--font-family,inherit));transition:visibility 0s linear .25s;position:fixed;inset:0}.search-summary-chat-modal--open{visibility:visible;transition-delay:0s}.search-summary-chat-modal__backdrop{background:var(--search-summary-chat-modal-backdrop,#00000080);opacity:0;transition:opacity .25s ease-out;position:absolute;inset:0}.search-summary-chat-modal__dialog{box-sizing:border-box;width:min(1000px,100vw - 2rem);height:calc(100dvh - 2rem);max-height:var(--search-summary-chat-modal-max-height,none);border-radius:var(--search-summary-chat-modal-border-radius,var(--spacer-8,.5rem));background:var(--search-summary-chat-modal-background,var(--body-background,Canvas));box-shadow:var(--search-summary-chat-modal-box-shadow,0 1rem 3rem #00000040);opacity:0;margin:0;padding:0;transition:opacity .25s ease-out,transform .25s cubic-bezier(.25,.46,.45,.94);display:block;position:absolute;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-48%)scale(.98)}.search-summary-chat-modal__dialog:focus,.search-summary-chat-modal__dialog:focus-visible{outline:none}.search-summary-chat-modal__dialog liipgpt-chat{width:100%;height:100%;display:block}.search-summary-chat-modal--open .search-summary-chat-modal__backdrop{opacity:1}.search-summary-chat-modal--open .search-summary-chat-modal__dialog{opacity:1;transform:translate(-50%,-50%)scale(1)}@media (prefers-reduced-motion:reduce){.search-summary-chat-modal,.search-summary-chat-modal__backdrop,.search-summary-chat-modal__dialog{transition:none!important}}`,De=`liipgpt:search-summary:opt-in:`;function Oe(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)}function B(e){return`${De}${Oe(e??``)}`}function V(){try{return typeof window<`u`&&window.localStorage!==void 0}catch{return!1}}function ke(e){if(!V())return!1;try{return window.localStorage.getItem(B(e))===`1`}catch{return!1}}function Ae(e){if(V())try{window.localStorage.setItem(B(e),`1`)}catch{}}function je(e){if(V())try{window.localStorage.removeItem(B(e))}catch{}}var H=new WeakMap;function Me(e,t,n){if(!t)return null;let r=H.get(t);return r&&t.removeEventListener(`click`,r),t.removeAttribute(`slot`),t.type=`button`,t.addEventListener(`click`,n),H.set(t,n),e.appendChild(t),({label:e,ariaLabel:n,ariaExpanded:r})=>{e!==void 0&&(t.textContent=e),n!==void 0&&t.setAttribute(`aria-label`,n),r===void 0?t.removeAttribute(`aria-expanded`):t.setAttribute(`aria-expanded`,String(r))}}function Ne(e,t){if(!t)return;let n=H.get(t);n&&(t.removeEventListener(`click`,n),H.delete(t)),e.contains(t)&&e.removeChild(t)}function Pe(e,t=`.search-summary`){return e.replaceAll(`.chat-app`,t)}var Fe=`(prefers-reduced-motion: reduce)`;function Ie(e){if(typeof window>`u`)return e(!1),()=>{};let t=window.matchMedia(Fe);e(t.matches);let n=()=>e(t.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Le=`liipgpt-chat`,Re=1e4;function ze(e,t){return e?.trim()||`${t.replace(/\/+$/,``)}/cdn/npm/@liip/liipgpt/chat/liipgpt-chat.js`}function Be(e){return/\.iife(\.min)?\.js(?:[?#]|$)/.test(e)}var U=null;function Ve(e){return customElements.get(Le)?Promise.resolve():U||(U=new Promise((t,n)=>{let r=!1,i=document.createElement(`script`),a=e=>{r||(r=!0,clearTimeout(o),e?(i.remove(),U=null,n(e)):t())},o=setTimeout(()=>a(Error(`Timed out loading the chat widget from ${e}`)),Re);i.src=e,i.async=!0,Be(e)||(i.type=`module`),i.onerror=()=>a(Error(`Failed to load the chat widget from ${e}`)),document.head.appendChild(i),customElements.whenDefined(Le).then(()=>a())}),U)}function He(e,t){let n=new URL(window.location.href);t?n.searchParams.set(`follow-up-q`,t):n.searchParams.delete(`follow-up-q`),n.hash=`cID=${e}`,history.replaceState(null,``,n.toString())}var Ue=_(`<div><div class="search-summary-chat-modal__backdrop" aria-hidden="true"></div> <div class="search-summary-chat-modal__dialog" role="dialog" aria-modal="true" tabindex="-1"><liipgpt-chat></liipgpt-chat></div></div>`,2);function We(e,t){f(t,!0);let i=M(t,`open`,7),s=M(t,`onClose`,7),u=M(t,`apiUrl`,7),d=M(t,`apiKey`,7),m=M(t,`lang`,7),g=M(t,`forceTheme`,7),_=M(t,`dialogLabel`,7),v=n(null),y=null;function ee(e){return document.body.appendChild(e),{destroy:()=>e.remove()}}T(()=>{if(!i())return;let e=document.activeElement instanceof HTMLElement?document.activeElement:null,t=document.body.style.overflow;document.body.style.overflow=`hidden`;let n=[];for(let e of Array.from(document.body.children))e===y||e.hasAttribute(`inert`)||(e.setAttribute(`inert`,``),n.push(e));return N(v)?.focus(),()=>{n.forEach(e=>e.removeAttribute(`inert`)),document.body.style.overflow=t,e?.focus()}});function S(e){i()&&e.key===`Escape`&&(e.stopPropagation(),s()())}var C={get open(){return i()},set open(e){i(e),l()},get onClose(){return s()},set onClose(e){s(e),l()},get apiUrl(){return u()},set apiUrl(e){u(e),l()},get apiKey(){return d()},set apiKey(e){d(e),l()},get lang(){return m()},set lang(e){m(e),l()},get forceTheme(){return g()},set forceTheme(e){g(e),l()},get dialogLabel(){return _()},set dialogLabel(e){_(e),l()}},w=Ue();re(`keydown`,ae,S);let E;var O=x(w),k=p(O,2),j=x(k);return A(()=>b(j,`api-url`,u())),A(()=>b(j,`api-key`,d()||void 0)),A(()=>b(j,`lang`,m())),A(()=>b(j,`force-theme`,g()||void 0)),a(k),I(k,e=>h(v,e),()=>N(v)),a(w),I(w,e=>y=e,()=>y),D(w,e=>ee?.(e)),A(()=>{E=r(w,1,`search-summary-chat-modal`,null,E,{"search-summary-chat-modal--open":i()}),L(w,`aria-hidden`,i()?void 0:`true`),L(k,`aria-label`,_())}),te(`click`,O,function(...e){s()?.apply(this,e)}),re(`closechat`,j,function(...e){s()?.apply(this,e)}),o(e,w),c(C)}F([`click`]),E(We,{open:{},onClose:{},apiUrl:{},apiKey:{},lang:{},forceTheme:{},dialogLabel:{}},[],[],{mode:`open`});var Ge=_(`<!> <!> <!>`,1),Ke=_(`<div class="search-summary__disclaimer-text"></div>`),qe=_(`<div class="search-summary__opt-in-slot-mount"></div>`),Je=_(`<button type="button"> </button>`),Ye=_(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),Xe=_(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),Ze=_(`<div class="search-summary__error" role="alert"> </div>`),Qe=_(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),$e=_(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),et=_(`<div class="search-summary__follow-up-submit-icon"></div>`),tt=y(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),nt=_(`<div class="search-summary__chat-load-error" role="alert"> </div>`),rt=_(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form> <!>`,1),it=_(`<button type="button"> </button>`),at=_(`<div class="search-summary__expand-slot-mount"></div>`),ot=_(`<button type="button"> </button>`),st=_(`<div class="search-summary__opt-out-slot-mount"></div>`),ct=_(`<button type="button"> </button>`),lt=_(`<div><div class="search-summary__footer-actions"><!> <!></div> <!></div>`),ut=_(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),dt=_(`<!> <!> <div><!></div> <!>`,1);function ft(i,d){f(d,!0);function _(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let y=M(d,`lang`,7,`de`),b=M(d,`apiUrl`,7),S=M(d,`apiKey`,7,``),E=M(d,`question`,7),D=M(d,`height`,7,`280`),P=M(d,`maxHeight`,7),F=M(d,`optIn`,7,!1),ae=M(d,`optInLabel`,7),he=M(d,`expandLabel`,7),ge=M(d,`collapseLabel`,7),_e=M(d,`optOutLabel`,7),ve=M(d,`useChatConfig`,7,!1),z=M(d,`sendReferrer`,7),Se=M(d,`forceTheme`,7),De=M(d,`disclaimerHtml`,7,``),Oe=M(d,`labelledBy`,7),B=M(d,`chatUrl`,7),V=M(d,`chatEmbed`,7,!1),H=M(d,`chatScriptUrl`,7),Fe=M(d,`mode`,7,`search`),Le=M(d,`source`,7,`search-summary`),Re=M(d,`cache`,7,!1),Be=M(d,`activateAiButtonSlot`,7,null),U=M(d,`expandAnswerButtonSlot`,7,null),Ue=M(d,`deactivateAiButtonSlot`,7,null),ft=n(null),W=n(null),pt=n(!1),mt=O(()=>{let e=me(z());return z()&&!e&&console.warn(`liipgpt-search-summary: ignoring unknown send-referrer="${z()}". Expected all, own, location or none.`),e??N(W)?.chatConfig.sendReferrer}),ht=[`de`,`en`,`fr`,`it`],gt=O(()=>N(W)?.language??ce(y(),ht)),G=O(()=>({...Te[N(gt)],...N(ft)})),K=n(`loading`),q=n(null),J=n(null),_t=n(null),vt=n(null),yt=n(!1),Y=n(!1),bt=n(!1),xt=n(t(fe)),St=O(()=>de(D())),Ct=O(()=>le(N(St))),wt=O(()=>N(Ct)===null),Tt=O(()=>N(Ct)??fe),Et=O(()=>P()===void 0?``:de(P()));function Dt(){if(!N(Et))return null;let e=le(N(Et));return e===null?N(q)?ue(N(q),N(Et)):null:e}let Ot=n(!1);T(()=>Ie(e=>h(Ot,e,!0)));function kt(e){return N(Ot)?0:e}let At=new Ce(k(()=>N(Tt)),{duration:400,easing:ye}),jt=n(!1);T(()=>{if(!N(jt)){if(N(Y)){At.set(N(xt),{duration:kt(400)});return}!N(wt)&&N(Ct)!==null&&At.set(N(Ct),{duration:kt(400)})}});function Mt(){return N(q)?N(Ct)===null?ue(N(q),N(St)):N(Ct):N(Tt)}async function Nt(e){h(jt,!0),await At.set(e,{duration:kt(400)}),h(jt,!1)}function Pt(){if(!N(q))return Mt();if(N(q).offsetHeight>0)return N(q).offsetHeight;let e=N(q).style.height;if(!e)return Mt();let t=le(e);return t===null?ue(N(q),e):t}let Ft=n(``),It=n(t([])),Lt=n(``),X=n(null),Rt=n(!1),zt=n(``),Z=n(!1),Bt=n(!1),Vt=n(null),Ht=n(!1),Ut=!1,Wt=O(()=>B()&&_(B())?B():void 0),Gt=O(()=>(!!N(Wt)||V())&&!!N(X)),Kt=O(()=>N(Gt)&&N(Rt)&&!N(Z)),qt=O(()=>V()&&N(Z)&&N(Rt)),Jt=O(()=>!N(Y)&&N(yt)),Yt=O(()=>N(K)!==`opt-in`&&N(K)!==`loading`&&N(K)!==`error`&&(N(yt)||N(Y))&&!(N(Y)&&N(Gt))),Xt=O(()=>F()&&N(K)!==`opt-in`),Zt=O(()=>N(Y)?ge()||N(G).searchSummaryCollapse:he()||N(G).searchSummaryExpand),Qt=O(()=>N(Y)?N(G).ariaSearchSummaryCollapse:N(G).ariaSearchSummaryExpand),$t=n(``),en=n(``),tn=null,nn=O(()=>N(Y)?N(en)||ge()||N(G).searchSummaryCollapse:he()||N($t)||N(G).searchSummaryExpand),rn=O(()=>N(Y)?N(en)||ge()||N(G).ariaSearchSummaryCollapse:he()||N($t)||N(G).ariaSearchSummaryExpand),an=O(()=>N(W)?xe(N(W).chatConfig.fullTheme[N(W).colorScheme].tokens,{root:`.search-summary`}):``),on=O(()=>N(W)?.chatConfig.fullTheme[N(W).colorScheme]?.customCSS?Pe(N(W).chatConfig.fullTheme[N(W).colorScheme].customCSS):``),sn=O(()=>N(W)?.chatConfig.fullTheme[N(W).colorScheme]?.fontCSS??``),cn=O(()=>N(W)?.chatConfig.fullTheme[N(W).colorScheme]?.tokens?.svgs?.submit??``),Q=O(()=>N(W)!==null),ln=O(()=>N(Q)?` search-summary__btn`:``),un=O(()=>N(Q)?` search-summary__follow-up--themed`:``);function dn(){if(!N(q))return N(Tt);let e=N(q).style.height;N(q).style.height=`auto`;let t=N(J)?.style.flex??``;N(J)&&(N(J).style.flex=`none`);let n=N(q).scrollHeight;return N(J)&&(N(J).style.flex=t),N(q).style.height=e,n}function fn(){h(yt,(N(J)?.scrollHeight??0)>(N(J)?.offsetHeight??0)+1)}function pn(){let e=dn(),t=Dt();h(xt,t===null?e:Math.min(e,t),!0),h(bt,t!==null&&e>t,!0)}async function mn(){if(N(q))if(!N(Y))pn(),At.set(Pt(),{duration:0}),h(Y,!0),h(K,`expanded`),await C(),fn(),pn(),await Nt(N(xt));else{At.set(Pt(),{duration:0});let e=Mt();h(Y,!1),h(K,N(Ft)?`done`:`loading`,!0),await C(),fn(),await Nt(e)}}let hn=n(!1);w(()=>{N(hn)||b()&&(h(K,F()&&!ke(b())?`opt-in`:`loading`,!0),h(hn,!0))}),T(()=>{if(!b()||!ve()){h(W,null),h(ft,null),h(pt,!0);return}let e=!1;return h(pt,!1),se(async()=>{let{loadChatConfig:e}=await import(`./CGs5apVK2.js`);return{loadChatConfig:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then(({loadChatConfig:e})=>e({apiUrl:b(),lang:y(),forceTheme:Se()})).then(t=>{e||(h(W,t,!0),h(ft,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(h(W,null),h(ft,null))}).finally(()=>{e||h(pt,!0)}),()=>{e=!0}});let gn=O(()=>N(hn)&&N(pt)),_n=n(!1);T(()=>{if(!N(gn)||N(_n))return;let e=requestAnimationFrame(()=>h(_n,!0));return()=>cancelAnimationFrame(e)}),T(()=>{if(!N(q))return;N(Ft),N(It).length,N(St),pn(),fn();let e=new ResizeObserver(()=>{pn(),fn()});return e.observe(N(q)),N(J)&&e.observe(N(J)),()=>e.disconnect()});function vn(e){return e.classList.add(`search-summary__btn--leaving`),{duration:kt(200)}}function yn(e,t){if(N(Ot)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function bn(e=null){if(N(Ot)){wn();return}e?.classList.add(`search-summary__btn--leaving`),N(J)?.classList.add(`search-summary__content--leaving`),N(_t)?.classList.add(`search-summary__footer--leaving`),N(_t)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=N(J)??e;t?t.addEventListener(`animationend`,wn,{once:!0}):wn()}function xn(e){bn(e.currentTarget)}function Sn(){Ae(b()),h(K,`loading`)}function Cn(){Dn?.(),On&&On.abort().catch(()=>{}),Dn=void 0,On=void 0,h(X,null),h(Rt,!1),h(zt,``),h(Bt,!1),h(Z,!1),h(Ht,!1),Tn=!1,h(Ft,``),h(It,[],!0),h(Lt,``),h(Y,!1),h(yt,!1)}function wn(){je(b()),Cn(),h(K,`opt-in`)}let Tn=!1,En,Dn,On;function kn(){if(Tn||!N(pt))return;Tn=!0,En=E();let e=new we({apiUrl:b(),apiKey:S()});try{let t=e.createConversation();h(X,t.id,!0),On=t.chat(E(),{lang:N(gt),mode:Fe()||void 0,source:Le()||void 0,cache:Re()||void 0,referrer:pe(N(mt),{embedded:!1})})}catch(e){h(Lt,e instanceof Error&&e.message?e.message:N(G).searchSummaryError,!0),h(K,`error`);return}Dn=On.subscribe(e=>{if(e.errors.length>0){h(Lt,e.errors.join(`, `)||N(G).searchSummaryError,!0),h(K,`error`);return}if(e.state===`loading`){h(K,`loading`);return}h(Ft,e.message.html,!0),h(It,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?N(Y)||h(K,`answering`):e.state===`done`&&(h(Rt,!0),N(Y)||h(K,`done`),queueMicrotask(fn))})}T(()=>{!E()||!b()||!N(pt)||N(K)!==`loading`||kn()});function An(){if(Cn(),F()&&!ke(b())){h(K,`opt-in`);return}h(K,`loading`),kn()}T(()=>{let e=E();!e||!Tn||e===En||k(()=>An())}),j(()=>{Dn?.(),On&&On.abort().catch(()=>{})}),T(()=>{N(vt)&&(N(vt).innerHTML=N(Ft),N(vt).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(fn))});function jn(e){e.preventDefault();let t=N(zt).trim();if(N(X)){if(V()){Pn(t||void 0);return}!t||!N(Wt)||Mn(N(Wt),t)}}function Mn(e,t){let n=new URL(e,window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${N(X)}`,window.location.assign(n.toString())}function Nn(){h(Bt,!1),C().then(()=>N(Vt)?.focus())}async function Pn(e){if(!(!N(X)||!N(Rt)||Ut)){if(N(Z)){h(Bt,!0);return}Ut=!0,h(Ht,!1);try{await Ve(ze(H(),b()))}catch{if(N(Wt)&&e){Mn(N(Wt),e);return}h(Ht,!0);return}finally{Ut=!1}He(N(X),e),h(zt,``),h(Z,!0),await C(),requestAnimationFrame(()=>h(Bt,!0))}}function Fn(){!V()||N(Z)||Ve(ze(H(),b())).catch(()=>{})}let In=n(null),Ln=n(null),Rn=n(null);T(()=>{let e=N(In),t=Be();if(!(!e||!t))return Me(e,t,Sn)?.({label:ae()||void 0}),()=>Ne(e,t)}),T(()=>{let e=N(Ln),t=U();if(!(!e||!t||!N(Yt)))return tn!==t&&(tn=t,h($t,t.textContent?.trim()??``,!0),h(en,t.dataset.collapseLabel?.trim()??``,!0)),Me(e,t,mn)?.({label:N(nn),ariaLabel:N(rn),ariaExpanded:N(Y)}),()=>Ne(e,t)}),T(()=>{!U()||!N(Yt)||(U().textContent=N(nn),U().setAttribute(`aria-label`,N(rn)),U().setAttribute(`aria-expanded`,String(N(Y))))}),T(()=>{let e=N(Rn),t=Ue();if(!(!e||!t||!N(Xt)))return Me(e,t,()=>bn(e))?.({label:_e()||void 0,ariaLabel:N(G).ariaSearchSummaryOptOut}),()=>Ne(e,t)});var zn={reload:An,get lang(){return y()},set lang(e=`de`){y(e),l()},get apiUrl(){return b()},set apiUrl(e){b(e),l()},get apiKey(){return S()},set apiKey(e=``){S(e),l()},get question(){return E()},set question(e){E(e),l()},get height(){return D()},set height(e=`280`){D(e),l()},get maxHeight(){return P()},set maxHeight(e){P(e),l()},get optIn(){return F()},set optIn(e=!1){F(e),l()},get optInLabel(){return ae()},set optInLabel(e){ae(e),l()},get expandLabel(){return he()},set expandLabel(e){he(e),l()},get collapseLabel(){return ge()},set collapseLabel(e){ge(e),l()},get optOutLabel(){return _e()},set optOutLabel(e){_e(e),l()},get useChatConfig(){return ve()},set useChatConfig(e=!1){ve(e),l()},get sendReferrer(){return z()},set sendReferrer(e){z(e),l()},get forceTheme(){return Se()},set forceTheme(e){Se(e),l()},get disclaimerHtml(){return De()},set disclaimerHtml(e=``){De(e),l()},get labelledBy(){return Oe()},set labelledBy(e){Oe(e),l()},get chatUrl(){return B()},set chatUrl(e){B(e),l()},get chatEmbed(){return V()},set chatEmbed(e=!1){V(e),l()},get chatScriptUrl(){return H()},set chatScriptUrl(e){H(e),l()},get mode(){return Fe()},set mode(e=`search`){Fe(e),l()},get source(){return Le()},set source(e=`search-summary`){Le(e),l()},get cache(){return Re()},set cache(e=!1){Re(e),l()},get activateAiButtonSlot(){return Be()},set activateAiButtonSlot(e=null){Be(e),l()},get expandAnswerButtonSlot(){return U()},set expandAnswerButtonSlot(e=null){U(e),l()},get deactivateAiButtonSlot(){return Ue()},set deactivateAiButtonSlot(e=null){Ue(e),l()}},Bn=dt(),Vn=R(Bn);be(Vn,{id:`search-summary-css`,get css(){return Ee}});var Hn=p(Vn,2),Un=e=>{var t=Ge(),n=R(t);be(n,{id:`search-summary-font-css`,get css(){return N(sn)}});var r=p(n,2);be(r,{id:`search-summary-theme-css`,get css(){return N(an)}});var i=p(r,2),a=e=>{be(e,{id:`search-summary-custom-css`,get css(){return N(on)}})};g(i,e=>{N(on)&&e(a)}),o(e,t)};g(Hn,e=>{N(Q)&&N(an)&&e(Un)});var $=p(Hn,2);let Wn,Gn;var Kn=x($),qn=e=>{var t=Ye(),n=x(t),i=x(n),c=x(i),l=e=>{var t=v(),n=R(t),r=e=>{var t=Ke();oe(t,()=>N(G).searchSummaryDisclaimer,!0),a(t),o(e,t)};g(n,e=>{N(G).searchSummaryDisclaimer&&e(r)}),o(e,t)},u=e=>{var t=v();oe(R(t),De),o(e,t)};g(c,e=>{ve()?e(l):e(u,-1)}),a(i),a(n);var d=p(n,2),f=x(d),m=e=>{var t=qe();I(t,e=>h(In,e),()=>N(In)),o(e,t)},_=e=>{var t=Je(),n=x(t,!0);a(t),A(()=>{r(t,1,`search-summary__opt-in${N(ln)??``}${N(Q)?` search-summary__btn--secondary`:``}`),s(n,ae()||N(G).searchSummaryOptInDefault)}),te(`click`,t,e=>yn(e,Sn)),o(e,t)};g(f,e=>{Be()?e(m):e(_,-1)}),a(d),a(t),o(e,t)},Jn=t=>{var n=ut(),i=R(n);let c;var l=x(i),d=x(l),f=e=>{var t=Xe(),n=p(x(t),2),r=x(n,!0);a(n),a(t),A(()=>s(r,N(G).searchSummaryLoading)),o(e,t)};g(d,e=>{N(K)===`loading`&&e(f)});var m=p(d,2);let _;I(m,e=>h(vt,e),()=>N(vt)),a(l);var y=p(l,2),b=e=>{var t=Ze(),n=x(t,!0);a(t),A(()=>s(n,N(Lt)||N(G).searchSummaryError)),o(e,t)};g(y,e=>{N(K)===`error`&&e(b)});var S=p(y,2),C=t=>{var n=$e(),r=R(n),i=x(r,!0);a(r);var c=p(r,2);e(c,21,()=>N(It),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=Qe(),r=x(n),i=x(r,!0);a(r),a(n),A(()=>{ie(n,N(t).referenceIndex.used??void 0),L(r,`href`,N(t).url),L(r,`tabindex`,N(Jt)?-1:void 0),s(i,N(t).display.listItem.title||N(t).display.card.title||N(t).url)}),o(e,n)}),a(c),A(()=>s(i,N(G).referencesTitle)),o(t,n)};g(S,e=>{N(It).length>0&&e(C)});var w=p(S,2),T=e=>{var t=rt(),n=R(t),i=x(n),c=x(i,!0);a(i);var l=p(i,2),u=x(l);ee(u);var d=p(u,2),f=x(d),m=x(f,!0);a(f);var _=p(f,2),v=e=>{var t=et();oe(t,()=>N(cn),!0),a(t),o(e,t)},y=e=>{o(e,tt())};g(_,e=>{N(cn)?e(v):e(y,-1)}),a(d),a(l),a(n);var b=p(n,2),S=e=>{var t=nt(),n=x(t,!0);a(t),A(()=>s(n,N(G).searchSummaryChatLoadError)),o(e,t)};g(b,e=>{N(Ht)&&e(S)}),A(()=>{r(n,1,`search-summary__follow-up${N(un)??``}`),n.inert=N(Jt),s(c,N(G).ariaSearchSummaryFollowUpInput),L(u,`placeholder`,N(G).searchSummaryFollowUpPlaceholder),L(u,`aria-label`,N(G).ariaSearchSummaryFollowUpInput),L(d,`aria-label`,N(G).searchSummaryFollowUpSubmit),s(m,N(G).searchSummaryFollowUpSubmit)}),re(`submit`,n,jn),re(`focus`,u,Fn),ne(u,()=>N(zt),e=>h(zt,e)),o(e,t)};g(w,e=>{N(Kt)&&e(T)}),a(i),I(i,e=>h(J,e),()=>N(J));var E=p(i,2),D=e=>{var t=lt();let n;var i=x(t),c=x(i),l=e=>{var t=it(),n=x(t,!0);a(t),I(t,e=>h(Vt,e),()=>N(Vt)),A(()=>{r(t,1,`search-summary__open-chat${N(ln)??``}${N(Q)?` search-summary__btn--primary`:``}`),s(n,N(G).searchSummaryOpenChat)}),te(`click`,t,()=>void Pn()),o(e,t)};g(c,e=>{N(qt)&&e(l)});var d=p(c,2),f=e=>{var t=v(),n=R(t),i=e=>{var t=at();I(t,e=>h(Ln,e),()=>N(Ln)),u(2,t,()=>vn),o(e,t)},c=e=>{var t=ot(),n=x(t,!0);a(t),A(()=>{r(t,1,`search-summary__expand${N(ln)??``}${N(Q)?` search-summary__btn--primary`:``}`),L(t,`aria-expanded`,N(Y)),L(t,`aria-label`,N(Qt)),s(n,N(Zt))}),te(`click`,t,mn),u(2,t,()=>vn),o(e,t)};g(n,e=>{U()?e(i):e(c,-1)}),o(e,t)};g(d,e=>{N(Yt)&&e(f)}),a(i);var m=p(i,2),_=e=>{var t=v(),n=R(t),i=e=>{var t=st();I(t,e=>h(Rn,e),()=>N(Rn)),o(e,t)},c=e=>{var t=ct(),n=x(t,!0);a(t),A(()=>{r(t,1,`search-summary__opt-out${N(ln)??``}${N(Q)?` search-summary__btn--secondary`:``}`),L(t,`aria-label`,N(G).ariaSearchSummaryOptOut),s(n,_e()||N(G).searchSummaryOptOut)}),te(`click`,t,xn),o(e,t)};g(n,e=>{Ue()?e(i):e(c,-1)}),o(e,t)};g(m,e=>{N(Xt)&&e(_)}),a(t),I(t,e=>h(_t,e),()=>N(_t)),A(()=>n=r(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":N(Kt)})),o(e,t)};g(E,e=>{(!N(Kt)||N(Yt)||N(Xt))&&e(D)}),A(()=>{c=r(i,1,`search-summary__content`,null,c,{"search-summary__content--with-follow-up":N(Kt)}),_=r(m,1,`search-summary__answer`,null,_,{"search-summary__answer--themed":N(Q)})}),o(t,n)};g(Kn,e=>{N(K)===`opt-in`?e(qn):e(Jn,-1)}),a($),I($,e=>h(q,e),()=>N(q));var Yn=p($,2),Xn=e=>{{let t=O(()=>S()||void 0),n=O(()=>Se()||void 0);We(e,{get open(){return N(Bt)},onClose:Nn,get apiUrl(){return b()},get apiKey(){return N(t)},get lang(){return N(gt)},get forceTheme(){return N(n)},get dialogLabel(){return N(G).ariaSearchSummaryChatModal}})}};return g(Yn,e=>{N(Z)&&e(Xn)}),A(()=>{Wn=r($,1,`search-summary`,null,Wn,{"search-summary--ready":N(_n)}),L($,`data-state`,N(K)),L($,`data-expanded`,N(Y)?`true`:`false`),L($,`data-capped`,N(Y)&&N(bt)?`true`:void 0),L($,`role`,Oe()?`region`:void 0),L($,`aria-labelledby`,Oe()),Gn=m($,``,Gn,{height:N(Y)||N(jt)||!N(wt)?`${At.current}px`:N(St),"max-height":N(Et)||null})}),o(i,Bn),c(zn)}F([`click`]),E(ft,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},sendReferrer:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},chatEmbed:{},chatScriptUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function W(e,t){f(t,!0);let r=M(t,`lang`,7),i=M(t,`apiUrl`,7),a=M(t,`apiKey`,7),o=M(t,`question`,7),s=M(t,`height`,7),u=M(t,`maxHeight`,7),d=M(t,`optIn`,7),p=M(t,`optInLabel`,7),m=M(t,`expandLabel`,7),g=M(t,`collapseLabel`,7),_=M(t,`optOutLabel`,7),v=M(t,`useChatConfig`,7),y=M(t,`sendReferrer`,7),ee=M(t,`forceTheme`,7),b=M(t,`wrapperClass`,7),x=M(t,`labelledBy`,7),C=M(t,`chatUrl`,7),E=M(t,`chatEmbed`,7),D=M(t,`chatScriptUrl`,7),k=M(t,`mode`,7),A=M(t,`source`,7),j=M(t,`cache`,7),te=O(()=>({lang:r(),apiUrl:i(),apiKey:a(),question:o(),height:s(),maxHeight:u(),optIn:d(),optInLabel:p(),expandLabel:m(),collapseLabel:g(),optOutLabel:_(),useChatConfig:v(),sendReferrer:y(),forceTheme:ee(),labelledBy:x(),chatUrl:C(),chatEmbed:E(),chatScriptUrl:D(),mode:k(),source:A(),cache:j()})),ne=n(void 0),P=t.$$host;T(()=>{P&&b()&&(P.className=b())}),T(()=>{if(!P||!N(ne))return;let e=P;return e.reload=()=>N(ne)?.reload(),()=>{delete e.reload}});let re=O(()=>P?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),F=n(null),L=n(null),ie=n(null);return w(()=>{if(v()){h(F,null),h(L,null),h(ie,null);return}h(F,P?.querySelector(`[slot="activate-ai-button"]`)??null,!0),h(L,P?.querySelector(`[slot="expand-answer-button"]`)??null,!0),h(ie,P?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),I(ft(e,S(()=>N(te),{get disclaimerHtml(){return N(re)},get activateAiButtonSlot(){return N(F)},get expandAnswerButtonSlot(){return N(L)},get deactivateAiButtonSlot(){return N(ie)}})),e=>h(ne,e,!0),()=>N(ne)),c({get lang(){return r()},set lang(e){r(e),l()},get apiUrl(){return i()},set apiUrl(e){i(e),l()},get apiKey(){return a()},set apiKey(e){a(e),l()},get question(){return o()},set question(e){o(e),l()},get height(){return s()},set height(e){s(e),l()},get maxHeight(){return u()},set maxHeight(e){u(e),l()},get optIn(){return d()},set optIn(e){d(e),l()},get optInLabel(){return p()},set optInLabel(e){p(e),l()},get expandLabel(){return m()},set expandLabel(e){m(e),l()},get collapseLabel(){return g()},set collapseLabel(e){g(e),l()},get optOutLabel(){return _()},set optOutLabel(e){_(e),l()},get useChatConfig(){return v()},set useChatConfig(e){v(e),l()},get sendReferrer(){return y()},set sendReferrer(e){y(e),l()},get forceTheme(){return ee()},set forceTheme(e){ee(e),l()},get wrapperClass(){return b()},set wrapperClass(e){b(e),l()},get labelledBy(){return x()},set labelledBy(e){x(e),l()},get chatUrl(){return C()},set chatUrl(e){C(e),l()},get chatEmbed(){return E()},set chatEmbed(e){E(e),l()},get chatScriptUrl(){return D()},set chatScriptUrl(e){D(e),l()},get mode(){return k()},set mode(e){k(e),l()},get source(){return A()},set source(e){A(e),l()},get cache(){return j()},set cache(e){j(e),l()}})}customElements.define(`liipgpt-search-summary`,E(W,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},sendReferrer:{attribute:`send-referrer`,type:`String`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},chatEmbed:{attribute:`chat-embed`,type:`Boolean`},chatScriptUrl:{attribute:`chat-script-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[]));export{W as LiipGPTSearchSummary,_e as PiiChecks};
@@ -1 +1 @@
1
- import{Dt as e,Nt as t,Tt as n,ct as r,ot as i,r as a,st as o,t as s}from"./DC2Dub5y.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,`searchParams`,{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder,new TextDecoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ee=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),ee(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=_(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function te(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var ne=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function re(e){let t=[];return{pattern:e===`/`?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ne.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_13vmif1?.base??`/configurator`,de=globalThis.__sveltekit_13vmif1?.assets??x??``,fe=`1789555561549`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ge=location.origin;function _e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ve={...w,"":w.hover};function ye(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function be(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ye(e)}}function xe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ge&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=ye(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ve[r??`off`],preload_data:ve[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let n=t(e),r=!0;function i(){r=!0,n.update(e=>e)}function a(e){r=!1,n.set(e)}function o(e){let t;return n.subscribe(n=>{(t===void 0||r&&n!==t)&&e(t=n)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:n}=t(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:n,check:r}}function O(e,t,n){return e.origin!==ge||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Te(e){}var Ee=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ee,`entries`]);var De=new Set([...Ee]);new Set([...De,`actions`,`entries`]);function Oe(e){return e.filter(e=>e!=null)}function ke(e){return e instanceof c||e instanceof u?e.status:500}function Ae(e){return e instanceof u?e.text:`Internal Error`}var k,A,j,je=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Me=`a:`;je?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Me)},A={current:null},j={current:!1}):(k=new class{#e=e({});get data(){return i(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return i(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return i(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return i(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return i(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return i(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return i(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(Me));get url(){return i(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},j=new class{#e=e(!1);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>j.current=!0);function Ne(e){Object.assign(k,e)}var Pe={spanContext(){return Fe},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Fe={traceId:``,spanId:``,traceFlags:0},{onMount:Ie,tick:Le}=s,Re=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:t(null),updated:we()};function ze(e){N[e]=T()}function Be(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ve(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}function He(){}var Ue,We,L,R,Ge,z,B=[],V=[],H=null;function Ke(){H?.fork?.then(e=>e?.discard()),H=null}var U=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,K=!1,Xe=!0,q=!1,J=!1,Ze=!1,Qe=!1,$e,Y,X,Z,et=new Set,tt=new Map;async function nt(e,t,n){globalThis.__sveltekit_13vmif1?.data&&globalThis.__sveltekit_13vmif1.data,document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ue=ce(e),R=document.documentElement,Ge=t,We=e.nodes[0],L=e.nodes[1],We(),L(),Y=history.state?.[S],X=history.state?.[C],Y||(Y=X=Date.now(),history.replaceState({...history.state,[S]:Y,[C]:X},``));let r=N[Y];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await jt(Ge,n)):(await Q({type:`enter`,url:_e(z.hash?Lt(new URL(location.href)):location.href),replace_state:!0}),i()),At()}function rt(){B.length=0,Qe=!1}function it(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function at(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ot(){ze(Y),ue(me,N),it(X),ue(pe,P)}async function st(e,t,n,i){let a;t.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{t.invalidateAll&&(Qe=!0,a=[...tt.keys()]),t.invalidate&&t.invalidate.forEach(kt)}}),t.invalidateAll&&r().then(r).then(()=>{tt.forEach(({resource:e},t)=>{a?.includes(t)&&e.refresh?.()})})}async function ct(e){if(e.id!==H?.id){Ke();let t={};et.add(t),H={id:e.id,token:t,promise:vt({...e,preload:t}).then(e=>(et.delete(t),e.type===`loaded`&&e.state.error&&Ke(),e)),fork:null}}return H.promise}async function lt(e){let t=(await St(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ut(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};G={...e.state,nav:r};let i=document.querySelector(`style[data-sveltekit]`);if(i&&i.remove(),Object.assign(k,e.props.page),$e=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),at(X),n){let e={from:null,to:{...r,scroll:N[Y]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}K=!0}async function dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:It(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Pe,current:Pe},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=pt(t,r,n);return s&&e(i.href),a},setHeaders:()=>{},depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:K?te(r,i.href,t):y(r,t)}}function mt(e,t,n,r,i,a){if(Qe)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function ht(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function gt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function _t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:It(k),constructors:[]}}}async function vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return et.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(()=>{})),d.forEach(e=>e?.[1]().catch(()=>{}));let f=G.url?e!==wt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=gt(G.url,n),h=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!mt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,ft({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:ht(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(()=>{});let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(et.has(a))return _t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),u;if((void 0)?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Ve(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await yt(e,_,o);return d?dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Et(n,{id:i.id},u,s)}else _.push(void 0);return dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function bt({status:e,error:t,url:n,route:r}){let i={};try{return dt({url:n,params:i,branch:[await ft({loader:We,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:ht(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return st(new URL(e.location,location.href),{},0);throw e}}async function xt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>pt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function St(e,t){if(e&&!O(e,x,z.hash)){let n=await xt(e);if(!n)return;let r=Ct(n);for(let n of Ue){let i=n.exec(r);if(i)return{id:wt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Ct(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function wt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Tt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Ft(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return q||qe.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=He,block:p=He,event:m}){let h=Z;Z=d;let g=await St(t,!1),_=e===`enter`?Ft(G,g,t,e):Tt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Z===d&&(Z=h);return}let ee=Y,v=X;f(),q=!0,K&&_.navigation.type!==`enter`&&F.navigating.set(A.current=_.navigation);let y=g&&await vt(g);if(!y){if(O(t,x,z.hash))return await I(t,s);y=await Et(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}y=await bt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(t,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=s?0:1,n={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Be(Y,X)}let te=g&&H?.id===g.id?H.fork:null;H=null,y.props.page.state=c;let b;if(K){let e=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t);let r=te&&await te;r?b=r.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=o?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await r(),await r();let re=null;if(Xe){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(Rt(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!i&&!ie&&Pt(t,!re),Xe=!0,y.props.page&&(M&&Object.assign(y.props.page,M),Object.assign(k,y.props.page)),q=!1,e===`popstate`&&at(X),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),F.navigating.set(A.current=null)}async function Et(e,t,n,r,i){return e.origin===ge&&e.pathname===location.pathname&&!Ye?await bt({status:r,error:n,url:e,route:t}):await I(e,i)}function Dt(){let e,t={element:void 0,href:void 0},n;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,w.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,r),R.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(lt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=be(e,R),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=xe(i,x,z.hash);if(s||c)return;let l=D(i),u=o&&wt(G.url)===wt(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=w.tap;let e=await St(o,!1);if(!e)return;ct(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,lt(o))}function o(){i.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:r}=xe(e,x,z.hash);if(n||r)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&i.observe(e),a.preload_code===w.eager&&lt(t))}}W.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Ot(e,t={}){return e=new URL(_e(e)),e.origin===ge?st(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function kt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function At(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ot(),!q){let e=Ft(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ot()}),navigator.connection?.saveData||Dt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=be(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=xe(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Tt({url:r,type:`link`,event:t})?q=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(J=!0,ze(Y),e(r),!s.replace_state)return;J=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Nt)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Z={},n===Y)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===X&&(Ze||s)){i!==k.state&&(k.state=i),e(a),N[Y]=T(),r&&scrollTo(r.x,r.y),Y=n;return}let c=n-Y;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{Y=n,X=o},block:()=>{history.go(-c)},nav_token:Z,event:t})}else J||(e(new URL(location.href)),z.hash&&location.reload())}),addEventListener(`hashchange`,()=>{J&&(J=!1,history.replaceState({...history.state,[S]:++Y,[C]:X},``,location.href))});for(let e of document.querySelectorAll(`link`))Re.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(A.current=null)});function e(e){G.url=k.url=e,F.page.set(It(k)),F.page.notify()}}async function jt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await St(u,!1)||{}),d=Ue.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Mt(r.uses)),ft({loader:z.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:ht(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await dt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await bt({status:ke(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await ut(f,e,p)}function Mt(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??[])}}var Nt=!1;function Pt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Rt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Nt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Nt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Ft(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function It(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 Lt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Rt(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,A as i,nt as n,j as o,F as r,Te as s,Ot as t};
1
+ import{Dt as e,Nt as t,Tt as n,ct as r,ot as i,r as a,st as o,t as s}from"./DC2Dub5y.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,`searchParams`,{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder,new TextDecoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ee=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),ee(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=_(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function te(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var ne=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function re(e){let t=[];return{pattern:e===`/`?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ne.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_15e8ng9?.base??`/configurator`,de=globalThis.__sveltekit_15e8ng9?.assets??x??``,fe=`1789558983724`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ge=location.origin;function _e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ve={...w,"":w.hover};function ye(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function be(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ye(e)}}function xe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ge&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=ye(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ve[r??`off`],preload_data:ve[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let n=t(e),r=!0;function i(){r=!0,n.update(e=>e)}function a(e){r=!1,n.set(e)}function o(e){let t;return n.subscribe(n=>{(t===void 0||r&&n!==t)&&e(t=n)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:n}=t(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:n,check:r}}function O(e,t,n){return e.origin!==ge||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Te(e){}var Ee=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ee,`entries`]);var De=new Set([...Ee]);new Set([...De,`actions`,`entries`]);function Oe(e){return e.filter(e=>e!=null)}function ke(e){return e instanceof c||e instanceof u?e.status:500}function Ae(e){return e instanceof u?e.text:`Internal Error`}var k,A,j,je=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Me=`a:`;je?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Me)},A={current:null},j={current:!1}):(k=new class{#e=e({});get data(){return i(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return i(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return i(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return i(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return i(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return i(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return i(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(Me));get url(){return i(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},j=new class{#e=e(!1);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>j.current=!0);function Ne(e){Object.assign(k,e)}var Pe={spanContext(){return Fe},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Fe={traceId:``,spanId:``,traceFlags:0},{onMount:Ie,tick:Le}=s,Re=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:t(null),updated:we()};function ze(e){N[e]=T()}function Be(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ve(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}function He(){}var Ue,We,L,R,Ge,z,B=[],V=[],H=null;function Ke(){H?.fork?.then(e=>e?.discard()),H=null}var U=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,K=!1,Xe=!0,q=!1,J=!1,Ze=!1,Qe=!1,$e,Y,X,Z,et=new Set,tt=new Map;async function nt(e,t,n){globalThis.__sveltekit_15e8ng9?.data&&globalThis.__sveltekit_15e8ng9.data,document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ue=ce(e),R=document.documentElement,Ge=t,We=e.nodes[0],L=e.nodes[1],We(),L(),Y=history.state?.[S],X=history.state?.[C],Y||(Y=X=Date.now(),history.replaceState({...history.state,[S]:Y,[C]:X},``));let r=N[Y];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await jt(Ge,n)):(await Q({type:`enter`,url:_e(z.hash?Lt(new URL(location.href)):location.href),replace_state:!0}),i()),At()}function rt(){B.length=0,Qe=!1}function it(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function at(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ot(){ze(Y),ue(me,N),it(X),ue(pe,P)}async function st(e,t,n,i){let a;t.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{t.invalidateAll&&(Qe=!0,a=[...tt.keys()]),t.invalidate&&t.invalidate.forEach(kt)}}),t.invalidateAll&&r().then(r).then(()=>{tt.forEach(({resource:e},t)=>{a?.includes(t)&&e.refresh?.()})})}async function ct(e){if(e.id!==H?.id){Ke();let t={};et.add(t),H={id:e.id,token:t,promise:vt({...e,preload:t}).then(e=>(et.delete(t),e.type===`loaded`&&e.state.error&&Ke(),e)),fork:null}}return H.promise}async function lt(e){let t=(await St(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ut(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};G={...e.state,nav:r};let i=document.querySelector(`style[data-sveltekit]`);if(i&&i.remove(),Object.assign(k,e.props.page),$e=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),at(X),n){let e={from:null,to:{...r,scroll:N[Y]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}K=!0}async function dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:It(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Pe,current:Pe},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=pt(t,r,n);return s&&e(i.href),a},setHeaders:()=>{},depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:K?te(r,i.href,t):y(r,t)}}function mt(e,t,n,r,i,a){if(Qe)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function ht(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function gt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function _t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:It(k),constructors:[]}}}async function vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return et.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(()=>{})),d.forEach(e=>e?.[1]().catch(()=>{}));let f=G.url?e!==wt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=gt(G.url,n),h=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!mt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,ft({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:ht(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(()=>{});let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(et.has(a))return _t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),u;if((void 0)?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Ve(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await yt(e,_,o);return d?dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Et(n,{id:i.id},u,s)}else _.push(void 0);return dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function bt({status:e,error:t,url:n,route:r}){let i={};try{return dt({url:n,params:i,branch:[await ft({loader:We,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:ht(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return st(new URL(e.location,location.href),{},0);throw e}}async function xt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>pt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function St(e,t){if(e&&!O(e,x,z.hash)){let n=await xt(e);if(!n)return;let r=Ct(n);for(let n of Ue){let i=n.exec(r);if(i)return{id:wt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Ct(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function wt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Tt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Ft(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return q||qe.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=He,block:p=He,event:m}){let h=Z;Z=d;let g=await St(t,!1),_=e===`enter`?Ft(G,g,t,e):Tt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Z===d&&(Z=h);return}let ee=Y,v=X;f(),q=!0,K&&_.navigation.type!==`enter`&&F.navigating.set(A.current=_.navigation);let y=g&&await vt(g);if(!y){if(O(t,x,z.hash))return await I(t,s);y=await Et(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}y=await bt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(t,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=s?0:1,n={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Be(Y,X)}let te=g&&H?.id===g.id?H.fork:null;H=null,y.props.page.state=c;let b;if(K){let e=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t);let r=te&&await te;r?b=r.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=o?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await r(),await r();let re=null;if(Xe){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(Rt(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!i&&!ie&&Pt(t,!re),Xe=!0,y.props.page&&(M&&Object.assign(y.props.page,M),Object.assign(k,y.props.page)),q=!1,e===`popstate`&&at(X),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),F.navigating.set(A.current=null)}async function Et(e,t,n,r,i){return e.origin===ge&&e.pathname===location.pathname&&!Ye?await bt({status:r,error:n,url:e,route:t}):await I(e,i)}function Dt(){let e,t={element:void 0,href:void 0},n;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,w.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,r),R.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(lt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=be(e,R),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=xe(i,x,z.hash);if(s||c)return;let l=D(i),u=o&&wt(G.url)===wt(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=w.tap;let e=await St(o,!1);if(!e)return;ct(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,lt(o))}function o(){i.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:r}=xe(e,x,z.hash);if(n||r)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&i.observe(e),a.preload_code===w.eager&&lt(t))}}W.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Ot(e,t={}){return e=new URL(_e(e)),e.origin===ge?st(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function kt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function At(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ot(),!q){let e=Ft(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ot()}),navigator.connection?.saveData||Dt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=be(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=xe(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Tt({url:r,type:`link`,event:t})?q=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(J=!0,ze(Y),e(r),!s.replace_state)return;J=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Nt)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Z={},n===Y)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===X&&(Ze||s)){i!==k.state&&(k.state=i),e(a),N[Y]=T(),r&&scrollTo(r.x,r.y),Y=n;return}let c=n-Y;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{Y=n,X=o},block:()=>{history.go(-c)},nav_token:Z,event:t})}else J||(e(new URL(location.href)),z.hash&&location.reload())}),addEventListener(`hashchange`,()=>{J&&(J=!1,history.replaceState({...history.state,[S]:++Y,[C]:X},``,location.href))});for(let e of document.querySelectorAll(`link`))Re.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(A.current=null)});function e(e){G.url=k.url=e,F.page.set(It(k)),F.page.notify()}}async function jt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await St(u,!1)||{}),d=Ue.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Mt(r.uses)),ft({loader:z.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:ht(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await dt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await bt({status:ke(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await ut(f,e,p)}function Mt(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??[])}}var Nt=!1;function Pt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Rt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Nt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Nt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Ft(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function It(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 Lt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Rt(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,A as i,nt as n,j as o,F as r,Te as s,Ot as t};
@@ -1,4 +1,4 @@
1
- import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./DC2Dub5y.js";import{t as p}from"./3-PKoknK.js";import{t as m}from"./D8Mbx1aL.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
1
+ import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./DC2Dub5y.js";import{t as p}from"./DQxXGCvq.js";import{t as m}from"./CJ4gdVQF.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
2
2
  0 1px 2px -1px rgb(0 0 0 / 0.1);color:#4b5563;font-weight:500;font-size:0.6rem;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-reopen.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen__label.svelte-q6hwt7 {letter-spacing:0.04em;text-orientation:mixed;writing-mode:vertical-rl;}
3
3
 
4
4
  @media (prefers-color-scheme: dark) {.sidebar-hide.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-hide.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}.sidebar-reopen.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-reopen.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C3BS1E4u.js","../chunks/DC2Dub5y.js","../chunks/DwtB5Nu2.js","../chunks/DW2dEcyF.js","../chunks/DXq2v1Et.js","../chunks/D1hYfEew.js","../chunks/BKiCq6Wi.js","../chunks/K3i7Gwu8.js","../nodes/1.BI0jtTlM.js","../chunks/3-PKoknK.js","../chunks/D8Mbx1aL.js","../chunks/CPmPuHTy.js","../chunks/CNhGYG1q.js","../nodes/2.D4p-rkZA.js","../chunks/C8mohMXa.js","../chunks/CCRsz3Cq.js","../chunks/C57s_a4s.js","../chunks/C_Kt29nP.js","../chunks/BG3QC97Q.js","../chunks/jIxBZpXH.js","../chunks/D0mVOhkG.js","../chunks/Dgo1hEZl.js","../chunks/Cac-usFo.js","../chunks/BTi0ccO8.js","../chunks/Ddu6Runs.js","../chunks/CIHI5AgE.js","../chunks/BDb7ndb6.js","../chunks/BLitziHG2.js","../chunks/5LTQietD.js","../chunks/Bx9o1FGt.js","../chunks/mvBHTO00.js","../chunks/D96zbh9g.js","../chunks/B-Biam5E.js","../chunks/ilVrIKNs2.js","../nodes/3._lyZCdqa.js","../chunks/Cdf5zcPh2.js","../chunks/acNkS6u92.js","../chunks/BZxH-3SJ2.js","../chunks/C6zVetzL2.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/DC2Dub5y.js";import{t as D}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.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.C3BS1E4u.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),()=>D(()=>import(`../nodes/1.BI0jtTlM.js`),__vite__mapDeps([8,1,9,10,5,11,12]),import.meta.url),()=>D(()=>import(`../nodes/2.D4p-rkZA.js`),__vite__mapDeps([13,1,9,2,14,15,10,16,17,18,4,19,20,3,21,22,23,24,25,26,27,28,29,30,31,32,33,5,11,12,7]),import.meta.url),()=>D(()=>import(`../nodes/3._lyZCdqa.js`),__vite__mapDeps([34,1,9,2,15,10,33,3,4,35,21,14,19,22,23,24,25,26,36,37,5,12,38,27,30,6,7]),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.yXaOf2Ed.js","../chunks/DC2Dub5y.js","../chunks/CZkMRFTC.js","../chunks/DW2dEcyF.js","../chunks/DXq2v1Et.js","../chunks/D1hYfEew.js","../chunks/C-X7Q6CE.js","../chunks/K3i7Gwu8.js","../nodes/1.D3YwKuqb.js","../chunks/DQxXGCvq.js","../chunks/CJ4gdVQF.js","../chunks/CPmPuHTy.js","../chunks/CNhGYG1q.js","../nodes/2.DcVFmdbt.js","../chunks/C8mohMXa.js","../chunks/NwbFk4zm.js","../chunks/C57s_a4s.js","../chunks/C_Kt29nP.js","../chunks/BG3QC97Q.js","../chunks/jIxBZpXH.js","../chunks/D0mVOhkG.js","../chunks/Dgo1hEZl.js","../chunks/Cac-usFo.js","../chunks/BTi0ccO8.js","../chunks/Ddu6Runs.js","../chunks/CIHI5AgE.js","../chunks/BDb7ndb6.js","../chunks/BLitziHG2.js","../chunks/5LTQietD.js","../chunks/Bx9o1FGt.js","../chunks/mvBHTO00.js","../chunks/D96zbh9g.js","../chunks/B-Biam5E.js","../chunks/ilVrIKNs2.js","../nodes/3.CGYF4KUT.js","../chunks/Cdf5zcPh2.js","../chunks/acNkS6u92.js","../chunks/BZxH-3SJ2.js","../chunks/C6zVetzL2.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/DC2Dub5y.js";import{t as D}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.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.yXaOf2Ed.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),()=>D(()=>import(`../nodes/1.D3YwKuqb.js`),__vite__mapDeps([8,1,9,10,5,11,12]),import.meta.url),()=>D(()=>import(`../nodes/2.DcVFmdbt.js`),__vite__mapDeps([13,1,9,2,14,15,10,16,17,18,4,19,20,3,21,22,23,24,25,26,27,28,29,30,31,32,33,5,11,12,7]),import.meta.url),()=>D(()=>import(`../nodes/3.CGYF4KUT.js`),__vite__mapDeps([34,1,9,2,15,10,33,3,4,35,21,14,19,22,23,24,25,26,36,37,5,12,38,27,30,6,7]),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/DC2Dub5y.js";import{n as e,s as t}from"../chunks/DQxXGCvq.js";import"../chunks/CNhGYG1q.js";export{t as load_css,e as start};
@@ -1,4 +1,4 @@
1
- import{J as e,L as t,Lt as n,Mt as r,Rt as i,Xt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DC2Dub5y.js";import"../chunks/D1hYfEew.js";import{r as u}from"../chunks/BKiCq6Wi.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/DwtB5Nu2.js";import"../chunks/DW2dEcyF.js";import"../chunks/DXq2v1Et.js";import"../chunks/K3i7Gwu8.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{J as e,L as t,Lt as n,Mt as r,Rt as i,Xt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DC2Dub5y.js";import"../chunks/D1hYfEew.js";import{r as u}from"../chunks/C-X7Q6CE.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/CZkMRFTC.js";import"../chunks/DW2dEcyF.js";import"../chunks/DXq2v1Et.js";import"../chunks/K3i7Gwu8.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 = {
@@ -230,4 +230,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
230
230
  </g>
231
231
  </svg>
232
232
  </div>
233
- `,x={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"scopeAvailableSlugs":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"flyout-style":{type:`string`,value:`width: 400px; height: 600px;`,description:`This is the style attribute of the flyout container. With this the flyout size and position can be customized.`},"flyout-class":{type:`string`,value:`custom-flyout-class`,description:`This is the class attribute of the flyout container. With this the flyout size and position can be customized.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"loader-background":{type:`string`,value:`linear-gradient(0deg, #1B181E 0%, #2A2440 90%)`,description:`This is the background color of the loading spinner.`},"loader-color":{type:`string`,value:`#9C92EE`,description:`This is the color of the loading spinner.`},"custom-loader":{type:`string`,value:b,description:`This is an example how you can provide a custom loading spinner when the chat is loading.`},onclosechat:{type:`string`,value:`document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));`,description:`This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners.`},cdn:{type:`boolean`,value:!0,description:`When set, a fixed CDN URL will be used. Instead of providing the code from the backend.`},esm:{type:`boolean`,value:!0,description:'Embeds the ES module build (`<script type="module">`), the default and the recommended way to embed. Only it can load on demand: a flyout that is never opened starts about two thirds smaller, and the search summary splits out its ChatConfig support, so an embed styled through host CSS starts about a quarter smaller. Needs a version-pinned URL, and `https://cdn.jsdelivr.net` must be allowed by the site\'s script-src — the on-demand parts load from there even with the CDN option off, because `/cdn/npm` redirects to jsdelivr. Unset to fall back to the single-file IIFE build, which is still supported and is the one to use when SRI must cover everything: SRI covers only the entry file, not the parts loaded on demand.'},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:y,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},cache:{type:`boolean`,value:!0,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical questions, so tweaking options here does not regenerate an answer every time. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"chat-cache":{type:`boolean`,value:!1,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical first questions, so you do not wait for a fresh answer on every reload. Only the first question of a conversation is cached. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"search-summary-question":{type:`string`,required:!0,value:f,description:"The question the search summary answers. In a real integration this is the visitor's search term, so the embed code uses a placeholder. The URL `q` param overrides this for quick testing."},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:d,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`}},S=async e=>{let t=await v(e),n=x;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},C=a({load:()=>D,prerender:()=>!0,ssr:()=>!1}),w=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},T,E=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},D=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await S(t),i=w(n,E(e.searchParams)),a=!!(T&&T[`api-org`].value!==i[`api-org`].value),o=!!(T&&T[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!T||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return T=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function O(a,s){i(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),r()}},f=o();return t(l(f),u),e(a,f),n(d)}s(O,{children:{}},[],[],{mode:`open`});export{O as component,C as universal};
233
+ `,x={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"scopeAvailableSlugs":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"flyout-style":{type:`string`,value:`width: 400px; height: 600px;`,description:`This is the style attribute of the flyout container. With this the flyout size and position can be customized.`},"flyout-class":{type:`string`,value:`custom-flyout-class`,description:`This is the class attribute of the flyout container. With this the flyout size and position can be customized.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"loader-background":{type:`string`,value:`linear-gradient(0deg, #1B181E 0%, #2A2440 90%)`,description:`This is the background color of the loading spinner.`},"loader-color":{type:`string`,value:`#9C92EE`,description:`This is the color of the loading spinner.`},"custom-loader":{type:`string`,value:b,description:`This is an example how you can provide a custom loading spinner when the chat is loading.`},onclosechat:{type:`string`,value:`document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));`,description:`This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners.`},cdn:{type:`boolean`,value:!0,description:`When set, a fixed CDN URL will be used. Instead of providing the code from the backend.`},esm:{type:`boolean`,value:!0,description:'Embeds the ES module build (`<script type="module">`), the default and the recommended way to embed. Only it can load on demand: a flyout that is never opened starts about two thirds smaller, and the search summary splits out its ChatConfig support, so an embed styled through host CSS starts about a quarter smaller. Needs a version-pinned URL, and `https://cdn.jsdelivr.net` must be allowed by the site\'s script-src — the on-demand parts load from there even with the CDN option off, because `/cdn/npm` redirects to jsdelivr. Unset to fall back to the single-file IIFE build, which is still supported and is the one to use when SRI must cover everything: SRI covers only the entry file, not the parts loaded on demand.'},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:y,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},cache:{type:`boolean`,value:!0,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical questions, so tweaking options here does not regenerate an answer every time. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"chat-cache":{type:`boolean`,value:!1,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical first questions, so you do not wait for a fresh answer on every reload. Only the first question of a conversation is cached. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"search-summary-question":{type:`string`,required:!0,value:f,description:"The question the search summary answers. In a real integration this is the visitor's search term, so the embed code uses a placeholder. The URL `q` param overrides this for quick testing."},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:d,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`},"chat-embed":{type:`boolean`,value:!1,description:`Continue the conversation in an in-page modal instead of navigating to CHAT-URL: submitting the follow-up input (also with an empty question) lazily loads the full chat widget and opens it centered over the page, rehydrated with the summary's conversation. CHAT-URL then only serves as the fallback when the chat bundle fails to load.`},"chat-script-url":{type:`string`,value:``,description:`Optional URL of the chat widget bundle loaded by CHAT-EMBED. When empty it is derived from API-URL (<api-url>/cdn/npm/@liip/liipgpt/chat/liipgpt-chat.js, the ES module entry, which loads its chunks from cdn.jsdelivr.net). Point it at liipgpt-chat.iife.min.js for a site whose script-src cannot allow jsdelivr. The configurator page has the chat bundle loaded already, so the preview never fetches it — this only affects the embed snippet.`}},S=async e=>{let t=await v(e),n=x;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},C=a({load:()=>D,prerender:()=>!0,ssr:()=>!1}),w=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},T,E=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},D=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await S(t),i=w(n,E(e.searchParams)),a=!!(T&&T[`api-org`].value!==i[`api-org`].value),o=!!(T&&T[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!T||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return T=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function O(a,s){i(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),r()}},f=o();return t(l(f),u),e(a,f),n(d)}s(O,{children:{}},[],[],{mode:`open`});export{O as component,C as universal};
@@ -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/DC2Dub5y.js";import"../chunks/3-PKoknK.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import"../chunks/CPmPuHTy.js";import{t as f}from"../chunks/D8Mbx1aL.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/DC2Dub5y.js";import"../chunks/DQxXGCvq.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import"../chunks/CPmPuHTy.js";import{t as f}from"../chunks/CJ4gdVQF.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/D-QExoGk2.js","../chunks/DC2Dub5y.js","../chunks/ilVrIKNs2.js","../chunks/DW2dEcyF.js","../chunks/DXq2v1Et.js","../chunks/Cdf5zcPh2.js","../chunks/Dgo1hEZl.js","../chunks/C8mohMXa.js","../chunks/jIxBZpXH.js","../chunks/Cac-usFo.js","../chunks/BTi0ccO8.js","../chunks/Ddu6Runs.js","../chunks/CIHI5AgE.js","../chunks/BDb7ndb6.js","../chunks/acNkS6u92.js","../chunks/BZxH-3SJ2.js","../chunks/D1hYfEew.js","../chunks/C6zVetzL2.js","../chunks/BLitziHG2.js","../chunks/mvBHTO00.js","../chunks/B5cw-CPP2.js","../chunks/BO1z8i0R2.js","../chunks/TJW2RdJ02.js","../chunks/BG3QC97Q.js","../chunks/CNhGYG1q.js","../chunks/K3i7Gwu8.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 T,dt as E,ht as D,i as O,j as k,k as A,kt as j,lt as M,mt as N,o as P,ot as F,rt as ee,s as I,u as L,v as R,vt as z,xt as B,z as te}from"../chunks/DC2Dub5y.js";import{t as V}from"../chunks/3-PKoknK.js";import"../chunks/CNhGYG1q.js";import{t as H}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.js";import{c as ne,i as U,l as W,o as G}from"../chunks/DwtB5Nu2.js";import"../chunks/DW2dEcyF.js";import"../chunks/DXq2v1Et.js";import"../chunks/jIxBZpXH.js";import"../chunks/K3i7Gwu8.js";import"../chunks/CPmPuHTy.js";import{t as re}from"../chunks/D8Mbx1aL.js";import{t as K}from"../chunks/CCRsz3Cq.js";import"../chunks/BG3QC97Q.js";import{t as q}from"../chunks/D0mVOhkG.js";import"../chunks/Dgo1hEZl.js";import{t as J}from"../chunks/BDb7ndb6.js";import{C as Y,S as ie,a as ae,b as X,d as oe,i as se,n as ce,o as le,r as ue,s as de,t as fe,w as pe,x as me}from"../chunks/C57s_a4s.js";import{t as Z}from"../chunks/5LTQietD.js";import{t as he}from"../chunks/mvBHTO00.js";import{t as ge}from"../chunks/D96zbh9g.js";import{n as Q,t as _e}from"../chunks/ilVrIKNs2.js";var ve=x(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),ye={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/D-QExoGk2.js","../chunks/DC2Dub5y.js","../chunks/ilVrIKNs2.js","../chunks/DW2dEcyF.js","../chunks/DXq2v1Et.js","../chunks/Cdf5zcPh2.js","../chunks/Dgo1hEZl.js","../chunks/C8mohMXa.js","../chunks/jIxBZpXH.js","../chunks/Cac-usFo.js","../chunks/BTi0ccO8.js","../chunks/Ddu6Runs.js","../chunks/CIHI5AgE.js","../chunks/BDb7ndb6.js","../chunks/acNkS6u92.js","../chunks/BZxH-3SJ2.js","../chunks/D1hYfEew.js","../chunks/C6zVetzL2.js","../chunks/BLitziHG2.js","../chunks/mvBHTO00.js","../chunks/B5cw-CPP2.js","../chunks/BO1z8i0R2.js","../chunks/D5CVK0so2.js","../chunks/BG3QC97Q.js","../chunks/CNhGYG1q.js","../chunks/K3i7Gwu8.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 T,dt as E,ht as D,i as O,j as k,k as A,kt as j,lt as M,mt as N,o as P,ot as F,rt as ee,s as I,u as L,v as R,vt as z,xt as B,z as te}from"../chunks/DC2Dub5y.js";import{t as V}from"../chunks/DQxXGCvq.js";import"../chunks/CNhGYG1q.js";import{t as H}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.js";import{c as ne,i as U,l as W,o as G}from"../chunks/CZkMRFTC.js";import"../chunks/DW2dEcyF.js";import"../chunks/DXq2v1Et.js";import"../chunks/jIxBZpXH.js";import"../chunks/K3i7Gwu8.js";import"../chunks/CPmPuHTy.js";import{t as re}from"../chunks/CJ4gdVQF.js";import{t as K}from"../chunks/NwbFk4zm.js";import"../chunks/BG3QC97Q.js";import{t as q}from"../chunks/D0mVOhkG.js";import"../chunks/Dgo1hEZl.js";import{t as J}from"../chunks/BDb7ndb6.js";import{C as Y,S as ie,a as ae,b as X,d as oe,i as se,n as ce,o as le,r as ue,s as de,t as fe,w as pe,x as me}from"../chunks/C57s_a4s.js";import{t as Z}from"../chunks/5LTQietD.js";import{t as he}from"../chunks/mvBHTO00.js";import{t as ge}from"../chunks/D96zbh9g.js";import{n as Q,t as _e}from"../chunks/ilVrIKNs2.js";var ve=x(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),ye={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 be(t,n){m(n,!1),e(t,ye);let r=P(n,`name`,12),i=P(n,`key`,12),a=P(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=ve(),p=w(l),_=h(p,2),v=w(_,!0);return o(_),o(l),N(()=>{R(l,`title`,`Color ${i()}: ${a()}`),g(p,`background-color: var(--color-${r()??``}-${i()??``});`),u(v,i())}),c(t,l),d(s)}O(be,{name:{},key:{},value:{}},[],[],{mode:`open`});var xe=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 Se(e){c(e,xe())}O(Se,{},[],[],{mode:`open`});var Ce=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 We(n,l){m(l,!0),e(n,Ue);let u=I(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=j(()=>l.data);D(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&V(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>F(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 H(()=>import(p(`chat`)),[],import.meta.url),await H(()=>import(p(`button`)),[],import.meta.url),await H(()=>import(p(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/D-QExoGk2.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),await H(()=>import(`../chunks/BO1z8i0R2.js`),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,20]),import.meta.url),await H(()=>import(`../chunks/TJW2RdJ02.js`),__vite__mapDeps([22,1,7,2,23,4,8,18,16,24,25]),import.meta.url)),e===`server`&&(H(()=>import(G(l.data.options,`chat`)),[],import.meta.url),H(()=>import(G(l.data.options,`button`)),[],import.meta.url),H(()=>import(G(l.data.options,`search-summary`)),[],import.meta.url))},x=j(()=>l.data.options?.[`preview-mode`]?.value??`server`);D(()=>{y(F(x))});let C=`./sidebar${re.url.search}`,O=i(void 0),A=i(void 0),M=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};D(()=>{F(O)&&M(F(O),F(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),D(()=>{F(A)&&F(f).embedTab===`chat`?M(F(A),F(f).options.onclosechat.value||``):F(A)&&F(A).replaceChildren()});let P=j(()=>F(f)&&F(f).options[`preview-components`].value),ee=j(()=>F(f).embedTab===`chat`),q=j(()=>F(f).embedTab===`search-summary`);D(()=>{if(!F(q)){W();return}let e=F(f).options[`use-chat-config`]?.value?``:F(f).options[`host-css`]?.value??``;e?ne(e):W()});var J=He();k(`1uha8ag`,e=>{var t=S(),n=B(t),r=e=>{E(()=>{z.title=`LiipGPT Configurator | Components`})},i=e=>{E(()=>{z.title=`LiipGPT Configurator`})};v(n,e=>{F(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var Y=w(J);let ie;var ae=w(Y),X=e=>{var t=Re();N(()=>R(t,`src`,C)),c(e,t)};v(ae,e=>{F(f).options[`hide-sidebar`].value||e(X)}),o(Y);var oe=h(Y,2),se=e=>{K(e,{mode:`show`})};v(oe,e=>{F(f).options[`hide-sidebar`].value&&e(se)}),s(h(oe,2),()=>F(f),e=>{var n=S(),r=B(n),i=e=>{var n=S();t(B(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{$(e,T(()=>u))}),c(e,n)},s=e=>{var t=Ve();let n;var r=w(t),i=e=>{var t=ze(),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=>{F(ee)&&F(f).options.flyout.value&&F(f).options[`preview-form`].value&&e(i)});var s=h(r,2),l=e=>{var t=S(),n=B(t),r=e=>{var t=Be();N(()=>R(t,`src`,F(f).options[`preview-background`].value)),c(e,t)},i=j(()=>g(F(f).options[`preview-background`].value));v(n,e=>{F(i)&&e(r)}),c(e,t)};v(s,e=>{F(ee)&&F(f).options.flyout.value&&F(f).options[`preview-background`].value&&e(l)});var u=h(s,2);L(u,e=>_(O,e),()=>F(O));var d=h(u,2);te(d,()=>U(F(f).options,F(f).embedTab,!1,!0)),L(h(d,2),e=>_(A,e),()=>F(A)),o(t),N(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":F(f).options.flyout.value&&F(f).options[`preview-background`].value&&g(F(f).options[`preview-background`].value),"search-summary-preview":F(q)})]),c(e,t)};v(r,e=>{F(P)?e(i):e(s,-1)}),c(e,n)}),o(J),N(()=>{a(J,1,r([{"components-preview":F(P)}]),`svelte-1uha8ag`),ie=a(Y,1,`sidebar-slot svelte-1uha8ag`,null,ie,{"sidebar-slot--hidden":F(f).options[`hide-sidebar`].value})}),c(n,J),d()}O(We,{},[],[],{mode:`open`});export{We 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 We(n,l){m(l,!0),e(n,Ue);let u=I(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=j(()=>l.data);D(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&V(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>F(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 H(()=>import(p(`chat`)),[],import.meta.url),await H(()=>import(p(`button`)),[],import.meta.url),await H(()=>import(p(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/D-QExoGk2.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),await H(()=>import(`../chunks/BO1z8i0R2.js`),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,20]),import.meta.url),await H(()=>import(`../chunks/D5CVK0so2.js`),__vite__mapDeps([22,1,7,2,23,4,8,18,16,24,25]),import.meta.url)),e===`server`&&(H(()=>import(G(l.data.options,`chat`)),[],import.meta.url),H(()=>import(G(l.data.options,`button`)),[],import.meta.url),H(()=>import(G(l.data.options,`search-summary`)),[],import.meta.url))},x=j(()=>l.data.options?.[`preview-mode`]?.value??`server`);D(()=>{y(F(x))});let C=`./sidebar${re.url.search}`,O=i(void 0),A=i(void 0),M=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};D(()=>{F(O)&&M(F(O),F(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),D(()=>{F(A)&&F(f).embedTab===`chat`?M(F(A),F(f).options.onclosechat.value||``):F(A)&&F(A).replaceChildren()});let P=j(()=>F(f)&&F(f).options[`preview-components`].value),ee=j(()=>F(f).embedTab===`chat`),q=j(()=>F(f).embedTab===`search-summary`);D(()=>{if(!F(q)){W();return}let e=F(f).options[`use-chat-config`]?.value?``:F(f).options[`host-css`]?.value??``;e?ne(e):W()});var J=He();k(`1uha8ag`,e=>{var t=S(),n=B(t),r=e=>{E(()=>{z.title=`LiipGPT Configurator | Components`})},i=e=>{E(()=>{z.title=`LiipGPT Configurator`})};v(n,e=>{F(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var Y=w(J);let ie;var ae=w(Y),X=e=>{var t=Re();N(()=>R(t,`src`,C)),c(e,t)};v(ae,e=>{F(f).options[`hide-sidebar`].value||e(X)}),o(Y);var oe=h(Y,2),se=e=>{K(e,{mode:`show`})};v(oe,e=>{F(f).options[`hide-sidebar`].value&&e(se)}),s(h(oe,2),()=>F(f),e=>{var n=S(),r=B(n),i=e=>{var n=S();t(B(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{$(e,T(()=>u))}),c(e,n)},s=e=>{var t=Ve();let n;var r=w(t),i=e=>{var t=ze(),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=>{F(ee)&&F(f).options.flyout.value&&F(f).options[`preview-form`].value&&e(i)});var s=h(r,2),l=e=>{var t=S(),n=B(t),r=e=>{var t=Be();N(()=>R(t,`src`,F(f).options[`preview-background`].value)),c(e,t)},i=j(()=>g(F(f).options[`preview-background`].value));v(n,e=>{F(i)&&e(r)}),c(e,t)};v(s,e=>{F(ee)&&F(f).options.flyout.value&&F(f).options[`preview-background`].value&&e(l)});var u=h(s,2);L(u,e=>_(O,e),()=>F(O));var d=h(u,2);te(d,()=>U(F(f).options,F(f).embedTab,!1,!0)),L(h(d,2),e=>_(A,e),()=>F(A)),o(t),N(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":F(f).options.flyout.value&&F(f).options[`preview-background`].value&&g(F(f).options[`preview-background`].value),"search-summary-preview":F(q)})]),c(e,t)};v(r,e=>{F(P)?e(i):e(s,-1)}),c(e,n)}),o(J),N(()=>{a(J,1,r([{"components-preview":F(P)}]),`svelte-1uha8ag`),ie=a(Y,1,`sidebar-slot svelte-1uha8ag`,null,ie,{"sidebar-slot--hidden":F(f).options[`hide-sidebar`].value})}),c(n,J),d()}O(We,{},[],[],{mode:`open`});export{We 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/DC2Dub5y.js";import"../chunks/3-PKoknK.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import{n as ae,t as oe}from"../chunks/BKiCq6Wi.js";import{a as se,i as ce}from"../chunks/DwtB5Nu2.js";import"../chunks/DW2dEcyF.js";import"../chunks/DXq2v1Et.js";import"../chunks/jIxBZpXH.js";import"../chunks/K3i7Gwu8.js";import"../chunks/D8Mbx1aL.js";import{n as le,r as ue,t as de}from"../chunks/CCRsz3Cq.js";import"../chunks/Dgo1hEZl.js";import"../chunks/BDb7ndb6.js";import"../chunks/ilVrIKNs2.js";import"../chunks/C6zVetzL2.js";import"../chunks/Cdf5zcPh2.js";import"../chunks/BZxH-3SJ2.js";import"../chunks/acNkS6u92.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/DC2Dub5y.js";import"../chunks/DQxXGCvq.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import{n as ae,t as oe}from"../chunks/C-X7Q6CE.js";import{a as se,i as ce}from"../chunks/CZkMRFTC.js";import"../chunks/DW2dEcyF.js";import"../chunks/DXq2v1Et.js";import"../chunks/jIxBZpXH.js";import"../chunks/K3i7Gwu8.js";import"../chunks/CJ4gdVQF.js";import{n as le,r as ue,t as de}from"../chunks/NwbFk4zm.js";import"../chunks/Dgo1hEZl.js";import"../chunks/BDb7ndb6.js";import"../chunks/ilVrIKNs2.js";import"../chunks/C6zVetzL2.js";import"../chunks/Cdf5zcPh2.js";import"../chunks/BZxH-3SJ2.js";import"../chunks/acNkS6u92.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":"1789555561549"}
1
+ {"version":"1789558983724"}