@liip/liipgpt 3.4.4 → 3.4.5

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.
@@ -0,0 +1 @@
1
+ import{Ct as e,at as t,it as n,kt as r,r as i,rt as a,t as o,xt as s}from"./BdP-K7KO.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_dbt1hy?.base??`/configurator`,de=globalThis.__sveltekit_dbt1hy?.assets??x??``,fe=`1774876064904`,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 t=r(e),n=!0;function i(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:t}=r(!1);async function n(){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:t,check:n}}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=i.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(i.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 a(this.#e)}set data(e){s(this.#e,e)}#t=e(null);get form(){return a(this.#t)}set form(e){s(this.#t,e)}#n=e(null);get error(){return a(this.#n)}set error(e){s(this.#n,e)}#r=e({});get params(){return a(this.#r)}set params(e){s(this.#r,e)}#i=e({id:null});get route(){return a(this.#i)}set route(e){s(this.#i,e)}#a=e({});get state(){return a(this.#a)}set state(e){s(this.#a,e)}#o=e(-1);get status(){return a(this.#o)}set status(e){s(this.#o,e)}#s=e(new URL(Me));get url(){return a(this.#s)}set url(e){s(this.#s,e)}},A=new class{#e=e(null);get current(){return a(this.#e)}set current(e){s(this.#e,e)}},j=new class{#e=e(!1);get current(){return a(this.#e)}set current(e){s(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}=o,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:r(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_dbt1hy?.data&&globalThis.__sveltekit_dbt1hy.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,n,r,i){let a;n.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{n.invalidateAll&&(Qe=!0,a=[...tt.keys()]),n.invalidate&&n.invalidate.forEach(kt)}}),n.invalidateAll&&t().then(t).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:r,popped:i,keepfocus:a,noscroll:o,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(r,!1),_=e===`enter`?Ft(G,g,r,e):Tt({url:r,type:e,delta:i?.delta,intent:g,scroll:i?.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(r,x,z.hash))return await I(r,s);y=await Et(r,{id:null},await $(new u(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,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:r,params:{},route:{id:null}}),url:r,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(r,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=s?0:1,t={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),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 t=_.navigation.to;G={...y.state,nav:{params:t.params,route:t.route,url:t.url}},y.props.page&&(y.props.page.url=r);let i=te&&await te;i?b=i.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=n?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await t(),await t();let re=null;if(Xe){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(re=r.hash&&document.getElementById(Rt(r)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!a&&!ie&&Pt(r,!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};
@@ -0,0 +1 @@
1
+ var e=`https://liipgpt.api.dev.genai.liip.ch/liipgpt`,t=`3.4.5`;export{t as n,e as t};
@@ -1 +1 @@
1
- import{Ht as e,Nt as t,Ot as n,Pt as r,Tt as i,c as a,i as o,o as s,rt as c}from"./BdP-K7KO.js";import"./CNhGYG1q.js";import"./D1hYfEew.js";import"./DEv5Ueqk.js";import"./DevUxHro.js";import"./CaZV0epm.js";import{t as l}from"./DJ-KAQCp.js";import"./DC7iQzPK.js";import"./BUm3woLX.js";import{t as u}from"./DUJlwB59.js";function d(o,d){r(d,!0);let f=s(d,`forceTheme`,7),p=s(d,`apiUrl`,7),m=s(d,`apiKey`,7),h=s(d,`speechRecognitionApiKey`,7),g=s(d,`lang`,7),_=s(d,`features`,7),v=s(d,`loaderBackground`,7),y=s(d,`loaderColor`,7),b=s(d,`flyout`,7),x=s(d,`flyoutStyle`,7),S=s(d,`flyoutClass`,7),C=s(d,`inlineLayout`,7),w=i(()=>({forceTheme:f(),apiUrl:p(),apiKey:m(),speechRecognitionApiKey:h(),lang:g(),features:_(),loaderBackground:v(),loaderColor:y(),flyout:b(),flyoutStyle:x(),flyoutClass:S(),inlineLayout:C()}));var T={get forceTheme(){return f()},set forceTheme(e){f(e),n()},get apiUrl(){return p()},set apiUrl(e){p(e),n()},get apiKey(){return m()},set apiKey(e){m(e),n()},get speechRecognitionApiKey(){return h()},set speechRecognitionApiKey(e){h(e),n()},get lang(){return g()},set lang(e){g(e),n()},get features(){return _()},set features(e){_(e),n()},get loaderBackground(){return v()},set loaderBackground(e){v(e),n()},get loaderColor(){return y()},set loaderColor(e){y(e),n()},get flyout(){return b()},set flyout(e){b(e),n()},get flyoutStyle(){return x()},set flyoutStyle(e){x(e),n()},get flyoutClass(){return S()},set flyoutClass(e){S(e),n()},get inlineLayout(){return C()},set inlineLayout(e){C(e),n()}};{let t=(t,n=e)=>{l(t,a({host:d.$$host,get onError(){return n()}},()=>c(w)))},n=i(()=>c(w).flyout??!1);u(o,{get silent(){return c(n)},body:t,$$slots:{body:!0}})}return t(T)}customElements.define(`liipgpt-chat`,o(d,{forceTheme:{attribute:`force-theme`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},speechRecognitionApiKey:{attribute:`speech-recognition-api-key`,type:`String`},lang:{attribute:`lang`,type:`String`},features:{attribute:`features`,type:`String`},loaderBackground:{attribute:`loader-background`,type:`String`},loaderColor:{attribute:`loader-color`,type:`String`},flyout:{attribute:`flyout`,type:`Boolean`},flyoutStyle:{attribute:`flyout-style`,type:`String`},flyoutClass:{attribute:`flyout-class`,type:`String`},inlineLayout:{attribute:`inline-layout`,type:`Boolean`}},[],[],{mode:`open`}));export{d as LiipGPTChat};
1
+ import{Ht as e,Nt as t,Ot as n,Pt as r,Tt as i,c as a,i as o,o as s,rt as c}from"./BdP-K7KO.js";import"./CNhGYG1q.js";import"./D1hYfEew.js";import"./DEv5Ueqk.js";import"./DevUxHro.js";import"./CaZV0epm.js";import{t as l}from"./IT5xfoUt.js";import"./CKlCoule.js";import"./BUm3woLX.js";import{t as u}from"./DUJlwB59.js";function d(o,d){r(d,!0);let f=s(d,`forceTheme`,7),p=s(d,`apiUrl`,7),m=s(d,`apiKey`,7),h=s(d,`speechRecognitionApiKey`,7),g=s(d,`lang`,7),_=s(d,`features`,7),v=s(d,`loaderBackground`,7),y=s(d,`loaderColor`,7),b=s(d,`flyout`,7),x=s(d,`flyoutStyle`,7),S=s(d,`flyoutClass`,7),C=s(d,`inlineLayout`,7),w=i(()=>({forceTheme:f(),apiUrl:p(),apiKey:m(),speechRecognitionApiKey:h(),lang:g(),features:_(),loaderBackground:v(),loaderColor:y(),flyout:b(),flyoutStyle:x(),flyoutClass:S(),inlineLayout:C()}));var T={get forceTheme(){return f()},set forceTheme(e){f(e),n()},get apiUrl(){return p()},set apiUrl(e){p(e),n()},get apiKey(){return m()},set apiKey(e){m(e),n()},get speechRecognitionApiKey(){return h()},set speechRecognitionApiKey(e){h(e),n()},get lang(){return g()},set lang(e){g(e),n()},get features(){return _()},set features(e){_(e),n()},get loaderBackground(){return v()},set loaderBackground(e){v(e),n()},get loaderColor(){return y()},set loaderColor(e){y(e),n()},get flyout(){return b()},set flyout(e){b(e),n()},get flyoutStyle(){return x()},set flyoutStyle(e){x(e),n()},get flyoutClass(){return S()},set flyoutClass(e){S(e),n()},get inlineLayout(){return C()},set inlineLayout(e){C(e),n()}};{let t=(t,n=e)=>{l(t,a({host:d.$$host,get onError(){return n()}},()=>c(w)))},n=i(()=>c(w).flyout??!1);u(o,{get silent(){return c(n)},body:t,$$slots:{body:!0}})}return t(T)}customElements.define(`liipgpt-chat`,o(d,{forceTheme:{attribute:`force-theme`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},speechRecognitionApiKey:{attribute:`speech-recognition-api-key`,type:`String`},lang:{attribute:`lang`,type:`String`},features:{attribute:`features`,type:`String`},loaderBackground:{attribute:`loader-background`,type:`String`},loaderColor:{attribute:`loader-color`,type:`String`},flyout:{attribute:`flyout`,type:`Boolean`},flyoutStyle:{attribute:`flyout-style`,type:`String`},flyoutClass:{attribute:`flyout-class`,type:`String`},inlineLayout:{attribute:`inline-layout`,type:`Boolean`}},[],[],{mode:`open`}));export{d as LiipGPTChat};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,B as n,Ct as r,E as i,F as a,G as o,Ht as s,I as c,J as l,K as u,L as d,M as f,N as p,Nt as m,O as h,Ot as g,P as _,Pt as v,Q as y,R as b,T as x,Tt as S,U as C,Vt as w,X as T,Y as E,_ as D,_t as O,c as k,ct as ee,d as te,dt as A,et as j,g as M,gt as N,h as ne,ht as re,i as P,k as ie,l as F,o as I,ot as L,p as R,pt as ae,q as z,r as oe,rt as B,s as se,tt as ce,u as V,ut as H,v as U,vt as W,w as le,wt as G,xt as K,yt as ue,z as de}from"./BdP-K7KO.js";import{h as fe}from"./DEv5Ueqk.js";import{S as pe,a as q,b as me,f as J,g as he,i as Y,l as ge,n as _e,p as ve,t as ye,u as be}from"./DevUxHro.js";import{A as xe,B as Se,C as X,D as Z,E as Ce,F as we,H as Te,I as Q,L as Ee,M as De,N as Oe,O as ke,P as Ae,R as je,S as Me,T as Ne,V as Pe,_ as Fe,a as Ie,b as Le,c as Re,f as ze,g as Be,h as Ve,i as He,j as Ue,k as We,l as Ge,m as Ke,n as qe,o as Je,p as Ye,r as Xe,s as Ze,t as Qe,u as $e,v as et,w as $,x as tt,y as nt,z as rt}from"./DC7iQzPK.js";import{t as it}from"./BUm3woLX.js";var at=Array(12).fill(0),ot=z(`<div class="sonner-loading-bar"></div>`),st=z(`<div><div class="sonner-spinner"></div></div>`);function ct(e,t){v(t,!0);let n=I(t,`visible`,7),r=I(t,`class`,7);var a={get visible(){return n()},set visible(e){n(e),g()},get class(){return r()},set class(e){r(e),g()}},s=st(),c=N(s);return d(c,23,()=>at,(e,t)=>`spinner-bar-${t}`,(e,t)=>{o(e,ot())}),w(c),w(s),H(e=>{x(s,1,e),U(s,`data-visible`,n())},[()=>i([`sonner-loading-wrapper`,r()].filter(Boolean).join(` `))]),o(e,s),m(a)}P(ct,{visible:{},class:{}},[],[],{mode:`open`});function lt(e){return e.label!==void 0}function ut(){let e=r(ue(typeof document<`u`?document.hidden:!1));return A(()=>ce(document,`visibilitychange`,()=>{K(e,document.hidden,!0)})),{get current(){return B(e)}}}var dt=4e3,ft=14,pt=45,mt=200,ht=.05,gt={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function _t(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function vt(e){return 1/(1.5+Math.abs(e)/20)}var yt=z(`<div><!></div>`),bt=z(`<button data-close-button=""><!></button>`),xt=z(`<div data-icon=""><!> <!></div>`),St=z(`<div data-description=""><!></div>`),Ct=z(`<button data-button="" data-cancel=""> </button>`),wt=z(`<button data-button=""> </button>`),Tt=z(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Et=z(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Dt(t,a){v(a,!0);let c=e=>{var t=u(),r=O(t),a=e=>{var t=yt();_(N(t),F),w(t),H(e=>{x(t,1,e),U(t,`data-visible`,B(Q)===`loading`)},[()=>i(he(B(Re)?.loader,l()?.classes?.loader,`sonner-loader`))]),o(e,t)},s=e=>{{let t=S(()=>he(B(Re)?.loader,l().classes?.loader)),n=S(()=>B(Q)===`loading`);ct(e,{get class(){return B(t)},get visible(){return B(n)}})}};n(r,e=>{F()?e(a):e(s,-1)}),o(e,t)},l=I(a,`toast`,7),d=I(a,`index`,7),f=I(a,`expanded`,7),h=I(a,`invert`,7),y=I(a,`position`,7),b=I(a,`visibleToasts`,7),E=I(a,`expandByDefault`,7),D=I(a,`closeButton`,7),ee=I(a,`interacting`,7),te=I(a,`cancelButtonStyle`,7,``),M=I(a,`actionButtonStyle`,7,``),ne=I(a,`duration`,7),re=I(a,`descriptionClass`,7,``),P=I(a,`classes`,7),ie=I(a,`unstyled`,7,!1),F=I(a,`loadingIcon`,7),R=I(a,`successIcon`,7),ae=I(a,`errorIcon`,7),z=I(a,`warningIcon`,7),ce=I(a,`closeIcon`,7),G=I(a,`infoIcon`,7),ue=I(a,`defaultRichColors`,7,!1),de=I(a,`swipeDirections`,7),fe=I(a,`closeButtonAriaLabel`,7),pe=I(a,`pauseWhenPageIsHidden`,7);se(a,`$$slots.$$events.$$legacy.$$host.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`));let q={...gt},me=r(!1),Y=r(!1),ge=r(!1),_e=r(!1),ve=r(!1),ye=r(0),be=r(0),xe=l().duration||ne()||dt,Se=r(null),X=r(void 0),Z=r(null),Ce=r(null),we=S(()=>d()===0),Te=S(()=>d()+1<=b()),Q=S(()=>l().type),Ee=S(()=>l().dismissible===void 0?l().dismissable!==!1:l().dismissible!==!1),De=S(()=>l().class||``),Oe=S(()=>l().descriptionClass||``),ke=S(()=>J.heights.findIndex(e=>e.toastId===l().id)||0),Ae=S(()=>l().closeButton??D()),je=S(()=>l().duration??ne()??dt),Me=null,Ne=S(()=>y().split(`-`)),Pe=S(()=>J.heights.reduce((e,t,n)=>n>=B(ke)?e:e+t.height,0)),Fe=ut(),Ie=S(()=>l().invert||h()),Le=S(()=>B(Q)===`loading`),Re=S(()=>({...q,...P()})),ze=S(()=>l().title),Be=S(()=>l().description),Ve=r(0),He=r(0),Ue=S(()=>Math.round(B(ke)*ft+B(Pe)));A(()=>{B(ze),B(Be);let e;e=f()||E()?1:1-d()*ht;let t=L(()=>B(X));if(t===void 0)return;t.style.setProperty(`height`,`auto`);let n=t.offsetHeight,r=t.getBoundingClientRect().height,i=Math.round(r/e+2**-52&100)/100;t.style.removeProperty(`height`);let a;a=Math.abs(i-n)<1?i:n,K(be,a,!0),J.setHeight({toastId:l().id,height:a})});function We(){K(Y,!0),K(ye,B(Ue),!0),J.removeHeight(l().id),setTimeout(()=>{J.remove(l().id)},mt)}let Ge,Ke=S(()=>l().promise&&B(Q)===`loading`||l().duration===1/0);function qe(){K(Ve,new Date().getTime(),!0),Ge=setTimeout(()=>{l().onAutoClose?.(l()),We()},xe)}function Je(){if(B(He)<B(Ve)){let e=new Date().getTime()-B(Ve);xe-=e}K(He,new Date().getTime(),!0)}A(()=>{l().updated&&(clearTimeout(Ge),xe=B(je),qe())}),A(()=>(B(Ke)||(f()||ee()||pe()&&Fe.current?Je():qe()),()=>clearTimeout(Ge))),oe(()=>{K(me,!0);let e=B(X)?.getBoundingClientRect().height;return K(be,e,!0),J.setHeight({toastId:l().id,height:e}),()=>{J.removeHeight(l().id)}}),A(()=>{l().delete&&L(()=>{We(),l().onDismiss?.(l())})});let Ye=e=>{if(B(Le))return;K(ye,B(Ue),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(K(ge,!0),Me={x:e.clientX,y:e.clientY})},Xe=()=>{if(B(_e)||!B(Ee))return;Me=null;let e=Number(B(X)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(B(X)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(B(Se)?.getTime()??0),r=B(Z)===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=pt||i>.11){K(ye,B(Ue),!0),l().onDismiss?.(l()),B(Z)===`x`?K(Ce,e>0?`right`:`left`,!0):K(Ce,t>0?`down`:`up`,!0),We(),K(_e,!0);return}else B(X)?.style.setProperty(`--swipe-amount-x`,`0px`),B(X)?.style.setProperty(`--swipe-amount-y`,`0px`);K(ve,!1),K(ge,!1),K(Z,null)},Ze=e=>{if(!Me||!B(Ee)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Me.y,n=e.clientX-Me.x,r=de()??_t(y());!B(Z)&&(Math.abs(n)>1||Math.abs(t)>1)&&K(Z,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(B(Z)===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*vt(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(B(Z)===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*vt(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&K(ve,!0),B(X)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),B(X)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},Qe=()=>{K(ge,!1),K(Z,null),Me=null},$e=S(()=>l().icon?l().icon:B(Q)===`success`?R():B(Q)===`error`?ae():B(Q)===`warning`?z():B(Q)===`info`?G():B(Q)===`loading`?F():null);var et={get toast(){return l()},set toast(e){l(e),g()},get index(){return d()},set index(e){d(e),g()},get expanded(){return f()},set expanded(e){f(e),g()},get invert(){return h()},set invert(e){h(e),g()},get position(){return y()},set position(e){y(e),g()},get visibleToasts(){return b()},set visibleToasts(e){b(e),g()},get expandByDefault(){return E()},set expandByDefault(e){E(e),g()},get closeButton(){return D()},set closeButton(e){D(e),g()},get interacting(){return ee()},set interacting(e){ee(e),g()},get cancelButtonStyle(){return te()},set cancelButtonStyle(e=``){te(e),g()},get actionButtonStyle(){return M()},set actionButtonStyle(e=``){M(e),g()},get duration(){return ne()},set duration(e){ne(e),g()},get descriptionClass(){return re()},set descriptionClass(e=``){re(e),g()},get classes(){return P()},set classes(e){P(e),g()},get unstyled(){return ie()},set unstyled(e=!1){ie(e),g()},get loadingIcon(){return F()},set loadingIcon(e){F(e),g()},get successIcon(){return R()},set successIcon(e){R(e),g()},get errorIcon(){return ae()},set errorIcon(e){ae(e),g()},get warningIcon(){return z()},set warningIcon(e){z(e),g()},get closeIcon(){return ce()},set closeIcon(e){ce(e),g()},get infoIcon(){return G()},set infoIcon(e){G(e),g()},get defaultRichColors(){return ue()},set defaultRichColors(e=!1){ue(e),g()},get swipeDirections(){return de()},set swipeDirections(e){de(e),g()},get closeButtonAriaLabel(){return fe()},set closeButtonAriaLabel(e){fe(e),g()},get pauseWhenPageIsHidden(){return pe()},set pauseWhenPageIsHidden(e){pe(e),g()}},$=Et();U($,`tabindex`,0);let tt;var nt=N($),rt=t=>{var n=bt();_(N(n),()=>ce()??s),w(n),H(e=>{U(n,`aria-label`,fe()),U(n,`data-disabled`,B(Le)),x(n,1,e)},[()=>i(he(B(Re)?.closeButton,l()?.classes?.closeButton))]),e(`click`,n,()=>{B(Le)||!B(Ee)||(We(),l().onDismiss?.(l()))}),o(t,n)};n(nt,e=>{B(Ae)&&!l().component&&B(Q)!==`loading`&&ce()!==null&&e(rt)});var it=W(nt,2),at=e=>{let t=S(()=>l().component);var n=u();p(O(n),()=>B(t),(e,t)=>{t(e,k(()=>l().componentProps,{closeToast:We}))}),o(e,n)},ot=t=>{var r=Tt(),a=O(r),d=e=>{var t=xt(),r=N(t),a=e=>{var t=u(),r=O(t),i=e=>{var t=u();p(O(t),()=>l().icon,(e,t)=>{t(e,{})}),o(e,t)},a=e=>{c(e)};n(r,e=>{l().icon?e(i):e(a,-1)}),o(e,t)};n(r,e=>{(l().promise||B(Q)===`loading`)&&e(a)});var d=W(r,2),f=e=>{var t=u(),r=O(t),i=e=>{var t=u();p(O(t),()=>l().icon,(e,t)=>{t(e,{})}),o(e,t)},a=e=>{var t=u();_(O(t),()=>R()??s),o(e,t)},c=e=>{var t=u();_(O(t),()=>ae()??s),o(e,t)},d=e=>{var t=u();_(O(t),()=>z()??s),o(e,t)},f=e=>{var t=u();_(O(t),()=>G()??s),o(e,t)};n(r,e=>{l().icon?e(i):B(Q)===`success`?e(a,1):B(Q)===`error`?e(c,2):B(Q)===`warning`?e(d,3):B(Q)===`info`&&e(f,4)}),o(e,t)};n(d,e=>{l().type!==`loading`&&e(f)}),w(t),H(e=>x(t,1,e),[()=>i(he(B(Re)?.icon,l()?.classes?.icon))]),o(e,t)};n(a,e=>{(B(Q)||l().icon||l().promise)&&l().icon!==null&&(B($e)!==null||l().icon)&&e(d)});var f=W(a,2),m=N(f),h=N(m),g=e=>{var t=u(),r=O(t),i=e=>{let t=S(()=>l().title);var n=u();p(O(n),()=>B(t),(e,t)=>{t(e,k(()=>l().componentProps))}),o(e,n)},a=e=>{var t=T();H(()=>C(t,l().title)),o(e,t)};n(r,e=>{typeof l().title==`string`?e(a,-1):e(i)}),o(e,t)};n(h,e=>{l().title&&e(g)}),w(m);var v=W(m,2),y=e=>{var t=St(),r=N(t),a=e=>{let t=S(()=>l().description);var n=u();p(O(n),()=>B(t),(e,t)=>{t(e,k(()=>l().componentProps))}),o(e,n)},s=e=>{var t=T();H(()=>C(t,l().description)),o(e,t)};n(r,e=>{typeof l().description==`string`?e(s,-1):e(a)}),w(t),H(e=>x(t,1,e),[()=>i(he(re(),B(Oe),B(Re)?.description,l().classes?.description))]),o(e,t)};n(v,e=>{l().description&&e(y)}),w(f);var b=W(f,2),E=t=>{var r=u(),a=O(r),s=e=>{var t=u();p(O(t),()=>l().cancel,(e,t)=>{t(e,{})}),o(e,t)},c=t=>{var n=Ct(),r=N(n,!0);w(n),H(e=>{le(n,l().cancelButtonStyle??te()),x(n,1,e),C(r,l().cancel.label)},[()=>i(he(B(Re)?.cancelButton,l()?.classes?.cancelButton))]),e(`click`,n,e=>{lt(l().cancel)&&B(Ee)&&(l().cancel?.onClick?.(e),We())}),o(t,n)},d=S(()=>lt(l().cancel));n(a,e=>{typeof l().cancel==`function`?e(s):B(d)&&e(c,1)}),o(t,r)};n(b,e=>{l().cancel&&e(E)});var D=W(b,2),ee=t=>{var r=u(),a=O(r),s=e=>{var t=u();p(O(t),()=>l().action,(e,t)=>{t(e,{})}),o(e,t)},c=t=>{var n=wt(),r=N(n,!0);w(n),H(e=>{le(n,l().actionButtonStyle??M()),x(n,1,e),C(r,l().action.label)},[()=>i(he(B(Re)?.actionButton,l()?.classes?.actionButton))]),e(`click`,n,e=>{lt(l().action)&&(l().action?.onClick(e),!e.defaultPrevented&&We())}),o(t,n)},d=S(()=>lt(l().action));n(a,e=>{typeof l().action==`function`?e(s):B(d)&&e(c,1)}),o(t,r)};n(D,e=>{l().action&&e(ee)}),H((e,t)=>{x(f,1,e),x(m,1,t)},[()=>i(he(B(Re)?.content,l()?.classes?.content)),()=>i(he(B(Re)?.title,l()?.classes?.title))]),o(t,r)};return n(it,e=>{l().component?e(at):e(ot,-1)}),w($),V($,e=>K(X,e),()=>B(X)),H((e,t,n)=>{x($,1,e),U($,`aria-live`,l().important?`assertive`:`polite`),U($,`data-rich-colors`,l().richColors??ue()),U($,`data-styled`,!(l().component||l().unstyled||ie())),U($,`data-mounted`,B(me)),U($,`data-promise`,t),U($,`data-swiped`,B(ve)),U($,`data-removed`,B(Y)),U($,`data-visible`,B(Te)),U($,`data-y-position`,B(Ne)[0]),U($,`data-x-position`,B(Ne)[1]),U($,`data-index`,d()),U($,`data-front`,B(we)),U($,`data-swiping`,B(ge)),U($,`data-dismissible`,B(Ee)),U($,`data-type`,B(Q)),U($,`data-invert`,B(Ie)),U($,`data-swipe-out`,B(_e)),U($,`data-swipe-direction`,B(Ce)),U($,`data-expanded`,n),tt=le($,`${a.style} ${l().style}`,tt,{"--index":d(),"--toasts-before":d(),"--z-index":J.toasts.length-d(),"--offset":`${B(Y)?B(ye):B(Ue)}px`,"--initial-height":E()?`auto`:`${B(be)}px`})},[()=>i(he(a.class,B(De),B(Re)?.toast,l()?.classes?.toast,B(Re)?.[B(Q)],l()?.classes?.[B(Q)])),()=>!!l().promise,()=>!!(f()||E()&&B(me))]),e(`pointermove`,$,Ze),e(`pointerup`,$,Xe),e(`pointerdown`,$,Ye),j(`dragend`,$,Qe),o(t,$),m(et)}y([`pointermove`,`pointerup`,`pointerdown`,`click`]),P(Dt,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{}},[],[],{mode:`open`});var Ot=l(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><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>`);function kt(e){o(e,Ot())}P(kt,{},[],[],{mode:`open`});var At=l(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><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>`);function jt(e){o(e,At())}P(jt,{},[],[],{mode:`open`});var Mt=l(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><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>`);function Nt(e){o(e,Mt())}P(Nt,{},[],[],{mode:`open`});var Pt=l(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><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>`);function Ft(e){o(e,Pt())}P(Ft,{},[],[],{mode:`open`});var It=l(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function Lt(e){o(e,It())}P(Lt,{},[],[],{mode:`open`});var Rt=3,zt=`24px`,Bt=`16px`,Vt=4e3,Ht=356,Ut=14,Wt=`dark`,Gt=`light`;function Kt(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Bt:zt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var qt=z(`<ol></ol>`),Jt=z(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),Yt={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
1
+ import{$ as e,A as t,B as n,Ct as r,E as i,F as a,G as o,Ht as s,I as c,J as l,K as u,L as d,M as f,N as p,Nt as m,O as h,Ot as g,P as _,Pt as v,Q as y,R as b,T as x,Tt as S,U as C,Vt as w,X as T,Y as E,_ as D,_t as O,c as k,ct as ee,d as te,dt as A,et as j,g as M,gt as N,h as ne,ht as re,i as P,k as ie,l as F,o as I,ot as L,p as R,pt as ae,q as z,r as oe,rt as B,s as se,tt as ce,u as V,ut as H,v as U,vt as W,w as le,wt as G,xt as K,yt as ue,z as de}from"./BdP-K7KO.js";import{h as fe}from"./DEv5Ueqk.js";import{S as pe,a as q,b as me,f as J,g as he,i as Y,l as ge,n as _e,p as ve,t as ye,u as be}from"./DevUxHro.js";import{A as xe,B as Se,C as X,D as Z,E as Ce,F as we,H as Te,I as Q,L as Ee,M as De,N as Oe,O as ke,P as Ae,R as je,S as Me,T as Ne,V as Pe,_ as Fe,a as Ie,b as Le,c as Re,f as ze,g as Be,h as Ve,i as He,j as Ue,k as We,l as Ge,m as Ke,n as qe,o as Je,p as Ye,r as Xe,s as Ze,t as Qe,u as $e,v as et,w as $,x as tt,y as nt,z as rt}from"./CKlCoule.js";import{t as it}from"./BUm3woLX.js";var at=Array(12).fill(0),ot=z(`<div class="sonner-loading-bar"></div>`),st=z(`<div><div class="sonner-spinner"></div></div>`);function ct(e,t){v(t,!0);let n=I(t,`visible`,7),r=I(t,`class`,7);var a={get visible(){return n()},set visible(e){n(e),g()},get class(){return r()},set class(e){r(e),g()}},s=st(),c=N(s);return d(c,23,()=>at,(e,t)=>`spinner-bar-${t}`,(e,t)=>{o(e,ot())}),w(c),w(s),H(e=>{x(s,1,e),U(s,`data-visible`,n())},[()=>i([`sonner-loading-wrapper`,r()].filter(Boolean).join(` `))]),o(e,s),m(a)}P(ct,{visible:{},class:{}},[],[],{mode:`open`});function lt(e){return e.label!==void 0}function ut(){let e=r(ue(typeof document<`u`?document.hidden:!1));return A(()=>ce(document,`visibilitychange`,()=>{K(e,document.hidden,!0)})),{get current(){return B(e)}}}var dt=4e3,ft=14,pt=45,mt=200,ht=.05,gt={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function _t(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function vt(e){return 1/(1.5+Math.abs(e)/20)}var yt=z(`<div><!></div>`),bt=z(`<button data-close-button=""><!></button>`),xt=z(`<div data-icon=""><!> <!></div>`),St=z(`<div data-description=""><!></div>`),Ct=z(`<button data-button="" data-cancel=""> </button>`),wt=z(`<button data-button=""> </button>`),Tt=z(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Et=z(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function Dt(t,a){v(a,!0);let c=e=>{var t=u(),r=O(t),a=e=>{var t=yt();_(N(t),F),w(t),H(e=>{x(t,1,e),U(t,`data-visible`,B(Q)===`loading`)},[()=>i(he(B(Re)?.loader,l()?.classes?.loader,`sonner-loader`))]),o(e,t)},s=e=>{{let t=S(()=>he(B(Re)?.loader,l().classes?.loader)),n=S(()=>B(Q)===`loading`);ct(e,{get class(){return B(t)},get visible(){return B(n)}})}};n(r,e=>{F()?e(a):e(s,-1)}),o(e,t)},l=I(a,`toast`,7),d=I(a,`index`,7),f=I(a,`expanded`,7),h=I(a,`invert`,7),y=I(a,`position`,7),b=I(a,`visibleToasts`,7),E=I(a,`expandByDefault`,7),D=I(a,`closeButton`,7),ee=I(a,`interacting`,7),te=I(a,`cancelButtonStyle`,7,``),M=I(a,`actionButtonStyle`,7,``),ne=I(a,`duration`,7),re=I(a,`descriptionClass`,7,``),P=I(a,`classes`,7),ie=I(a,`unstyled`,7,!1),F=I(a,`loadingIcon`,7),R=I(a,`successIcon`,7),ae=I(a,`errorIcon`,7),z=I(a,`warningIcon`,7),ce=I(a,`closeIcon`,7),G=I(a,`infoIcon`,7),ue=I(a,`defaultRichColors`,7,!1),de=I(a,`swipeDirections`,7),fe=I(a,`closeButtonAriaLabel`,7),pe=I(a,`pauseWhenPageIsHidden`,7);se(a,`$$slots.$$events.$$legacy.$$host.toast.index.expanded.invert.position.visibleToasts.expandByDefault.closeButton.interacting.cancelButtonStyle.actionButtonStyle.duration.descriptionClass.classes.unstyled.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.defaultRichColors.swipeDirections.closeButtonAriaLabel.pauseWhenPageIsHidden`.split(`.`));let q={...gt},me=r(!1),Y=r(!1),ge=r(!1),_e=r(!1),ve=r(!1),ye=r(0),be=r(0),xe=l().duration||ne()||dt,Se=r(null),X=r(void 0),Z=r(null),Ce=r(null),we=S(()=>d()===0),Te=S(()=>d()+1<=b()),Q=S(()=>l().type),Ee=S(()=>l().dismissible===void 0?l().dismissable!==!1:l().dismissible!==!1),De=S(()=>l().class||``),Oe=S(()=>l().descriptionClass||``),ke=S(()=>J.heights.findIndex(e=>e.toastId===l().id)||0),Ae=S(()=>l().closeButton??D()),je=S(()=>l().duration??ne()??dt),Me=null,Ne=S(()=>y().split(`-`)),Pe=S(()=>J.heights.reduce((e,t,n)=>n>=B(ke)?e:e+t.height,0)),Fe=ut(),Ie=S(()=>l().invert||h()),Le=S(()=>B(Q)===`loading`),Re=S(()=>({...q,...P()})),ze=S(()=>l().title),Be=S(()=>l().description),Ve=r(0),He=r(0),Ue=S(()=>Math.round(B(ke)*ft+B(Pe)));A(()=>{B(ze),B(Be);let e;e=f()||E()?1:1-d()*ht;let t=L(()=>B(X));if(t===void 0)return;t.style.setProperty(`height`,`auto`);let n=t.offsetHeight,r=t.getBoundingClientRect().height,i=Math.round(r/e+2**-52&100)/100;t.style.removeProperty(`height`);let a;a=Math.abs(i-n)<1?i:n,K(be,a,!0),J.setHeight({toastId:l().id,height:a})});function We(){K(Y,!0),K(ye,B(Ue),!0),J.removeHeight(l().id),setTimeout(()=>{J.remove(l().id)},mt)}let Ge,Ke=S(()=>l().promise&&B(Q)===`loading`||l().duration===1/0);function qe(){K(Ve,new Date().getTime(),!0),Ge=setTimeout(()=>{l().onAutoClose?.(l()),We()},xe)}function Je(){if(B(He)<B(Ve)){let e=new Date().getTime()-B(Ve);xe-=e}K(He,new Date().getTime(),!0)}A(()=>{l().updated&&(clearTimeout(Ge),xe=B(je),qe())}),A(()=>(B(Ke)||(f()||ee()||pe()&&Fe.current?Je():qe()),()=>clearTimeout(Ge))),oe(()=>{K(me,!0);let e=B(X)?.getBoundingClientRect().height;return K(be,e,!0),J.setHeight({toastId:l().id,height:e}),()=>{J.removeHeight(l().id)}}),A(()=>{l().delete&&L(()=>{We(),l().onDismiss?.(l())})});let Ye=e=>{if(B(Le))return;K(ye,B(Ue),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(K(ge,!0),Me={x:e.clientX,y:e.clientY})},Xe=()=>{if(B(_e)||!B(Ee))return;Me=null;let e=Number(B(X)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(B(X)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(B(Se)?.getTime()??0),r=B(Z)===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=pt||i>.11){K(ye,B(Ue),!0),l().onDismiss?.(l()),B(Z)===`x`?K(Ce,e>0?`right`:`left`,!0):K(Ce,t>0?`down`:`up`,!0),We(),K(_e,!0);return}else B(X)?.style.setProperty(`--swipe-amount-x`,`0px`),B(X)?.style.setProperty(`--swipe-amount-y`,`0px`);K(ve,!1),K(ge,!1),K(Z,null)},Ze=e=>{if(!Me||!B(Ee)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Me.y,n=e.clientX-Me.x,r=de()??_t(y());!B(Z)&&(Math.abs(n)>1||Math.abs(t)>1)&&K(Z,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(B(Z)===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*vt(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(B(Z)===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*vt(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&K(ve,!0),B(X)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),B(X)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},Qe=()=>{K(ge,!1),K(Z,null),Me=null},$e=S(()=>l().icon?l().icon:B(Q)===`success`?R():B(Q)===`error`?ae():B(Q)===`warning`?z():B(Q)===`info`?G():B(Q)===`loading`?F():null);var et={get toast(){return l()},set toast(e){l(e),g()},get index(){return d()},set index(e){d(e),g()},get expanded(){return f()},set expanded(e){f(e),g()},get invert(){return h()},set invert(e){h(e),g()},get position(){return y()},set position(e){y(e),g()},get visibleToasts(){return b()},set visibleToasts(e){b(e),g()},get expandByDefault(){return E()},set expandByDefault(e){E(e),g()},get closeButton(){return D()},set closeButton(e){D(e),g()},get interacting(){return ee()},set interacting(e){ee(e),g()},get cancelButtonStyle(){return te()},set cancelButtonStyle(e=``){te(e),g()},get actionButtonStyle(){return M()},set actionButtonStyle(e=``){M(e),g()},get duration(){return ne()},set duration(e){ne(e),g()},get descriptionClass(){return re()},set descriptionClass(e=``){re(e),g()},get classes(){return P()},set classes(e){P(e),g()},get unstyled(){return ie()},set unstyled(e=!1){ie(e),g()},get loadingIcon(){return F()},set loadingIcon(e){F(e),g()},get successIcon(){return R()},set successIcon(e){R(e),g()},get errorIcon(){return ae()},set errorIcon(e){ae(e),g()},get warningIcon(){return z()},set warningIcon(e){z(e),g()},get closeIcon(){return ce()},set closeIcon(e){ce(e),g()},get infoIcon(){return G()},set infoIcon(e){G(e),g()},get defaultRichColors(){return ue()},set defaultRichColors(e=!1){ue(e),g()},get swipeDirections(){return de()},set swipeDirections(e){de(e),g()},get closeButtonAriaLabel(){return fe()},set closeButtonAriaLabel(e){fe(e),g()},get pauseWhenPageIsHidden(){return pe()},set pauseWhenPageIsHidden(e){pe(e),g()}},$=Et();U($,`tabindex`,0);let tt;var nt=N($),rt=t=>{var n=bt();_(N(n),()=>ce()??s),w(n),H(e=>{U(n,`aria-label`,fe()),U(n,`data-disabled`,B(Le)),x(n,1,e)},[()=>i(he(B(Re)?.closeButton,l()?.classes?.closeButton))]),e(`click`,n,()=>{B(Le)||!B(Ee)||(We(),l().onDismiss?.(l()))}),o(t,n)};n(nt,e=>{B(Ae)&&!l().component&&B(Q)!==`loading`&&ce()!==null&&e(rt)});var it=W(nt,2),at=e=>{let t=S(()=>l().component);var n=u();p(O(n),()=>B(t),(e,t)=>{t(e,k(()=>l().componentProps,{closeToast:We}))}),o(e,n)},ot=t=>{var r=Tt(),a=O(r),d=e=>{var t=xt(),r=N(t),a=e=>{var t=u(),r=O(t),i=e=>{var t=u();p(O(t),()=>l().icon,(e,t)=>{t(e,{})}),o(e,t)},a=e=>{c(e)};n(r,e=>{l().icon?e(i):e(a,-1)}),o(e,t)};n(r,e=>{(l().promise||B(Q)===`loading`)&&e(a)});var d=W(r,2),f=e=>{var t=u(),r=O(t),i=e=>{var t=u();p(O(t),()=>l().icon,(e,t)=>{t(e,{})}),o(e,t)},a=e=>{var t=u();_(O(t),()=>R()??s),o(e,t)},c=e=>{var t=u();_(O(t),()=>ae()??s),o(e,t)},d=e=>{var t=u();_(O(t),()=>z()??s),o(e,t)},f=e=>{var t=u();_(O(t),()=>G()??s),o(e,t)};n(r,e=>{l().icon?e(i):B(Q)===`success`?e(a,1):B(Q)===`error`?e(c,2):B(Q)===`warning`?e(d,3):B(Q)===`info`&&e(f,4)}),o(e,t)};n(d,e=>{l().type!==`loading`&&e(f)}),w(t),H(e=>x(t,1,e),[()=>i(he(B(Re)?.icon,l()?.classes?.icon))]),o(e,t)};n(a,e=>{(B(Q)||l().icon||l().promise)&&l().icon!==null&&(B($e)!==null||l().icon)&&e(d)});var f=W(a,2),m=N(f),h=N(m),g=e=>{var t=u(),r=O(t),i=e=>{let t=S(()=>l().title);var n=u();p(O(n),()=>B(t),(e,t)=>{t(e,k(()=>l().componentProps))}),o(e,n)},a=e=>{var t=T();H(()=>C(t,l().title)),o(e,t)};n(r,e=>{typeof l().title==`string`?e(a,-1):e(i)}),o(e,t)};n(h,e=>{l().title&&e(g)}),w(m);var v=W(m,2),y=e=>{var t=St(),r=N(t),a=e=>{let t=S(()=>l().description);var n=u();p(O(n),()=>B(t),(e,t)=>{t(e,k(()=>l().componentProps))}),o(e,n)},s=e=>{var t=T();H(()=>C(t,l().description)),o(e,t)};n(r,e=>{typeof l().description==`string`?e(s,-1):e(a)}),w(t),H(e=>x(t,1,e),[()=>i(he(re(),B(Oe),B(Re)?.description,l().classes?.description))]),o(e,t)};n(v,e=>{l().description&&e(y)}),w(f);var b=W(f,2),E=t=>{var r=u(),a=O(r),s=e=>{var t=u();p(O(t),()=>l().cancel,(e,t)=>{t(e,{})}),o(e,t)},c=t=>{var n=Ct(),r=N(n,!0);w(n),H(e=>{le(n,l().cancelButtonStyle??te()),x(n,1,e),C(r,l().cancel.label)},[()=>i(he(B(Re)?.cancelButton,l()?.classes?.cancelButton))]),e(`click`,n,e=>{lt(l().cancel)&&B(Ee)&&(l().cancel?.onClick?.(e),We())}),o(t,n)},d=S(()=>lt(l().cancel));n(a,e=>{typeof l().cancel==`function`?e(s):B(d)&&e(c,1)}),o(t,r)};n(b,e=>{l().cancel&&e(E)});var D=W(b,2),ee=t=>{var r=u(),a=O(r),s=e=>{var t=u();p(O(t),()=>l().action,(e,t)=>{t(e,{})}),o(e,t)},c=t=>{var n=wt(),r=N(n,!0);w(n),H(e=>{le(n,l().actionButtonStyle??M()),x(n,1,e),C(r,l().action.label)},[()=>i(he(B(Re)?.actionButton,l()?.classes?.actionButton))]),e(`click`,n,e=>{lt(l().action)&&(l().action?.onClick(e),!e.defaultPrevented&&We())}),o(t,n)},d=S(()=>lt(l().action));n(a,e=>{typeof l().action==`function`?e(s):B(d)&&e(c,1)}),o(t,r)};n(D,e=>{l().action&&e(ee)}),H((e,t)=>{x(f,1,e),x(m,1,t)},[()=>i(he(B(Re)?.content,l()?.classes?.content)),()=>i(he(B(Re)?.title,l()?.classes?.title))]),o(t,r)};return n(it,e=>{l().component?e(at):e(ot,-1)}),w($),V($,e=>K(X,e),()=>B(X)),H((e,t,n)=>{x($,1,e),U($,`aria-live`,l().important?`assertive`:`polite`),U($,`data-rich-colors`,l().richColors??ue()),U($,`data-styled`,!(l().component||l().unstyled||ie())),U($,`data-mounted`,B(me)),U($,`data-promise`,t),U($,`data-swiped`,B(ve)),U($,`data-removed`,B(Y)),U($,`data-visible`,B(Te)),U($,`data-y-position`,B(Ne)[0]),U($,`data-x-position`,B(Ne)[1]),U($,`data-index`,d()),U($,`data-front`,B(we)),U($,`data-swiping`,B(ge)),U($,`data-dismissible`,B(Ee)),U($,`data-type`,B(Q)),U($,`data-invert`,B(Ie)),U($,`data-swipe-out`,B(_e)),U($,`data-swipe-direction`,B(Ce)),U($,`data-expanded`,n),tt=le($,`${a.style} ${l().style}`,tt,{"--index":d(),"--toasts-before":d(),"--z-index":J.toasts.length-d(),"--offset":`${B(Y)?B(ye):B(Ue)}px`,"--initial-height":E()?`auto`:`${B(be)}px`})},[()=>i(he(a.class,B(De),B(Re)?.toast,l()?.classes?.toast,B(Re)?.[B(Q)],l()?.classes?.[B(Q)])),()=>!!l().promise,()=>!!(f()||E()&&B(me))]),e(`pointermove`,$,Ze),e(`pointerup`,$,Xe),e(`pointerdown`,$,Ye),j(`dragend`,$,Qe),o(t,$),m(et)}y([`pointermove`,`pointerup`,`pointerdown`,`click`]),P(Dt,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{}},[],[],{mode:`open`});var Ot=l(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><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>`);function kt(e){o(e,Ot())}P(kt,{},[],[],{mode:`open`});var At=l(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><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>`);function jt(e){o(e,At())}P(jt,{},[],[],{mode:`open`});var Mt=l(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><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>`);function Nt(e){o(e,Mt())}P(Nt,{},[],[],{mode:`open`});var Pt=l(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><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>`);function Ft(e){o(e,Pt())}P(Ft,{},[],[],{mode:`open`});var It=l(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function Lt(e){o(e,It())}P(Lt,{},[],[],{mode:`open`});var Rt=3,zt=`24px`,Bt=`16px`,Vt=4e3,Ht=356,Ut=14,Wt=`dark`,Gt=`light`;function Kt(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Bt:zt;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var qt=z(`<ol></ol>`),Jt=z(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),Yt={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
2
2
  [data-sonner-toaster][dir='ltr'] {--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%);}html[dir='rtl'],
3
3
  [data-sonner-toaster][dir='rtl'] {--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%);}[data-sonner-toaster] {position:fixed;width:var(--width);font-family:ui-sans-serif,
4
4
  system-ui,
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DQUsz_zn.js","../chunks/BdP-K7KO.js","../chunks/D7iAOzgH.js","../chunks/DEv5Ueqk.js","../chunks/D1hYfEew.js","../nodes/1.DRz2V13W.js","../chunks/B3eztMjm.js","../chunks/B5LAyE-f.js","../chunks/CaZV0epm.js","../chunks/CNhGYG1q.js","../nodes/2.DJcyAYWL.js","../chunks/C8mohMXa.js","../chunks/DC7iQzPK.js","../chunks/DevUxHro.js","../chunks/az2UTMiX.js","../nodes/3.B_llVVii.js","../chunks/DJ-KAQCp.js","../chunks/BUm3woLX.js"])))=>i.map(i=>d[i]);
2
- import{B as e,Ct as t,G as n,K as r,N as i,Nt as a,Ot as o,Pt as s,Tt as c,U as l,Vt as u,X as d,_t as f,a as p,at as m,dt as h,ft as g,gt as _,i as v,o as y,q as b,r as x,rt as S,u as C,ut as w,vt as T,xt as E}from"../chunks/BdP-K7KO.js";import{t as D}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.js";var O={},k=b(`<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=b(`<!> <!>`,1);function j(p,v){s(v,!0);let b=y(v,`stores`,7),D=y(v,`page`,7),O=y(v,`constructors`,7),j=y(v,`components`,23,()=>[]),M=y(v,`form`,7),N=y(v,`data_0`,7,null),P=y(v,`data_1`,7,null);g(()=>b().page.set(D())),h(()=>{b(),D(),O(),j(),M(),N(),P(),b().page.notify()});let F=t(!1),I=t(!1),L=t(null);x(()=>{let e=b().page.subscribe(()=>{S(F)&&(E(I,!0),m().then(()=>{E(L,document.title||`untitled page`,!0)}))});return E(F,!0),e});let R=c(()=>O()[1]);var z={get stores(){return b()},set stores(e){b(e),o()},get page(){return D()},set page(e){D(e),o()},get constructors(){return O()},set constructors(e){O(e),o()},get components(){return j()},set components(e=[]){j(e),o()},get form(){return M()},set form(e){M(e),o()},get data_0(){return N()},set data_0(e=null){N(e),o()},get data_1(){return P()},set data_1(e=null){P(e),o()}},B=A(),V=f(B),H=e=>{let t=c(()=>O()[0]);var a=r();i(f(a),()=>S(t),(e,t)=>{C(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var a=r();i(f(a),()=>S(R),(e,t)=>{C(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),n(e,a)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),n(e,a)},U=e=>{let t=c(()=>O()[0]);var a=r();i(f(a),()=>S(t),(e,t)=>{C(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),n(e,a)};e(V,e=>{O()[1]?e(H):e(U,-1)});var W=T(V,2),G=t=>{var r=k(),i=_(r),a=e=>{var t=d();w(()=>l(t,S(L))),n(e,t)};e(i,e=>{S(I)&&e(a)}),u(r),n(t,r)};return e(W,e=>{S(F)&&e(G)}),n(p,B),a(z)}v(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=p(j),N=[()=>D(()=>import(`../nodes/0.DQUsz_zn.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>D(()=>import(`../nodes/1.DRz2V13W.js`),__vite__mapDeps([5,1,6,7,4,8,9]),import.meta.url),()=>D(()=>import(`../nodes/2.DJcyAYWL.js`),__vite__mapDeps([10,1,6,11,12,13,3,14,2,7,4,8,9]),import.meta.url),()=>D(()=>import(`../nodes/3.B_llVVii.js`),__vite__mapDeps([15,1,6,12,13,11,3,14,2,7,16,17,4,8,9]),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.oIOrVwBZ.js","../chunks/BdP-K7KO.js","../chunks/DpjyrDSa.js","../chunks/DEv5Ueqk.js","../chunks/D1hYfEew.js","../nodes/1.yPbTiS_g.js","../chunks/DFy-DHbb.js","../chunks/C9h8nQnw.js","../chunks/CaZV0epm.js","../chunks/CNhGYG1q.js","../nodes/2.7uv1AOe3.js","../chunks/C8mohMXa.js","../chunks/CKlCoule.js","../chunks/DevUxHro.js","../chunks/BSBRafHb.js","../nodes/3.DMRfokjC.js","../chunks/IT5xfoUt.js","../chunks/BUm3woLX.js"])))=>i.map(i=>d[i]);
2
+ import{B as e,Ct as t,G as n,K as r,N as i,Nt as a,Ot as o,Pt as s,Tt as c,U as l,Vt as u,X as d,_t as f,a as p,at as m,dt as h,ft as g,gt as _,i as v,o as y,q as b,r as x,rt as S,u as C,ut as w,vt as T,xt as E}from"../chunks/BdP-K7KO.js";import{t as D}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.js";var O={},k=b(`<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=b(`<!> <!>`,1);function j(p,v){s(v,!0);let b=y(v,`stores`,7),D=y(v,`page`,7),O=y(v,`constructors`,7),j=y(v,`components`,23,()=>[]),M=y(v,`form`,7),N=y(v,`data_0`,7,null),P=y(v,`data_1`,7,null);g(()=>b().page.set(D())),h(()=>{b(),D(),O(),j(),M(),N(),P(),b().page.notify()});let F=t(!1),I=t(!1),L=t(null);x(()=>{let e=b().page.subscribe(()=>{S(F)&&(E(I,!0),m().then(()=>{E(L,document.title||`untitled page`,!0)}))});return E(F,!0),e});let R=c(()=>O()[1]);var z={get stores(){return b()},set stores(e){b(e),o()},get page(){return D()},set page(e){D(e),o()},get constructors(){return O()},set constructors(e){O(e),o()},get components(){return j()},set components(e=[]){j(e),o()},get form(){return M()},set form(e){M(e),o()},get data_0(){return N()},set data_0(e=null){N(e),o()},get data_1(){return P()},set data_1(e=null){P(e),o()}},B=A(),V=f(B),H=e=>{let t=c(()=>O()[0]);var a=r();i(f(a),()=>S(t),(e,t)=>{C(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var a=r();i(f(a),()=>S(R),(e,t)=>{C(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),n(e,a)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),n(e,a)},U=e=>{let t=c(()=>O()[0]);var a=r();i(f(a),()=>S(t),(e,t)=>{C(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),n(e,a)};e(V,e=>{O()[1]?e(H):e(U,-1)});var W=T(V,2),G=t=>{var r=k(),i=_(r),a=e=>{var t=d();w(()=>l(t,S(L))),n(e,t)};e(i,e=>{S(I)&&e(a)}),u(r),n(t,r)};return e(W,e=>{S(F)&&e(G)}),n(p,B),a(z)}v(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=p(j),N=[()=>D(()=>import(`../nodes/0.oIOrVwBZ.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>D(()=>import(`../nodes/1.yPbTiS_g.js`),__vite__mapDeps([5,1,6,7,4,8,9]),import.meta.url),()=>D(()=>import(`../nodes/2.7uv1AOe3.js`),__vite__mapDeps([10,1,6,11,12,13,3,14,2,7,4,8,9]),import.meta.url),()=>D(()=>import(`../nodes/3.DMRfokjC.js`),__vite__mapDeps([15,1,6,12,13,11,3,14,2,7,16,17,4,8,9]),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/BdP-K7KO.js";import{n as e,s as t}from"../chunks/DFy-DHbb.js";import"../chunks/CNhGYG1q.js";export{t as load_css,e as start};
@@ -1,4 +1,4 @@
1
- import{G as e,Gt as t,K as n,Nt as r,Ot as i,P as a,Pt as o,_t as s,i as c,o as l}from"../chunks/BdP-K7KO.js";import"../chunks/D1hYfEew.js";import{t as u}from"../chunks/D7iAOzgH.js";import"../chunks/DEv5Ueqk.js";var d=async e=>await(await e(`https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names`)).json(),f=[`baselcitygpt`],p=async e=>{let t=await d(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>f.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(n)},m=`/**
1
+ import{G as e,Gt as t,K as n,Nt as r,Ot as i,P as a,Pt as o,_t as s,i as c,o as l}from"../chunks/BdP-K7KO.js";import"../chunks/D1hYfEew.js";import{t as u}from"../chunks/DpjyrDSa.js";import"../chunks/DEv5Ueqk.js";var d=async e=>await(await e(`https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names`)).json(),f=[`baselcitygpt`],p=async e=>{let t=await d(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>f.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(n)},m=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -1 +1 @@
1
- import{G as e,Nt as t,Pt as n,U as r,Vt as i,_t as a,gt as o,i as s,l as c,q as l,ut as u,vt as d}from"../chunks/BdP-K7KO.js";import"../chunks/B3eztMjm.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import"../chunks/CaZV0epm.js";import{t as f}from"../chunks/B5LAyE-f.js";var p=l(`<h1> </h1> <p> </p>`,1);function m(s,l){n(l,!1),c();var m=p(),h=a(m),g=o(h,!0);i(h);var _=d(h,2),v=o(_,!0);i(_),u(()=>{r(g,f.status),r(v,f.error?.message)}),e(s,m),t()}s(m,{},[],[],{mode:`open`});export{m as component};
1
+ import{G as e,Nt as t,Pt as n,U as r,Vt as i,_t as a,gt as o,i as s,l as c,q as l,ut as u,vt as d}from"../chunks/BdP-K7KO.js";import"../chunks/DFy-DHbb.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import"../chunks/CaZV0epm.js";import{t as f}from"../chunks/C9h8nQnw.js";var p=l(`<h1> </h1> <p> </p>`,1);function m(s,l){n(l,!1),c();var m=p(),h=a(m),g=o(h,!0);i(h);var _=d(h,2),v=o(_,!0);i(_),u(()=>{r(g,f.status),r(v,f.error?.message)}),e(s,m),t()}s(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/DopJiv6A.js","../chunks/BdP-K7KO.js","../chunks/DC7iQzPK.js","../chunks/DevUxHro.js","../chunks/C8mohMXa.js","../chunks/DEv5Ueqk.js","../chunks/DJ-KAQCp.js","../chunks/BUm3woLX.js","../chunks/D1hYfEew.js","../chunks/CaZV0epm.js","../chunks/CNhGYG1q.js","../chunks/DUJlwB59.js","../chunks/DpTUJVdo.js"])))=>i.map(i=>d[i]);
2
- import{A as e,B as t,Bt as n,Ct as r,E as i,Et as a,G as o,I as s,K as c,L as l,M as u,Nt as d,O as f,Ot as p,Pt as m,R as h,T as g,Tt as _,U as ee,Ut as v,Vt as y,_t as b,b as x,c as te,ct as S,dt as C,et as w,gt as T,i as E,k as D,mt as O,o as k,ot as A,q as j,rt as M,s as N,u as P,ut as F,v as I,vt as L,w as R,xt as z,z as B}from"../chunks/BdP-K7KO.js";import{t as ne}from"../chunks/B3eztMjm.js";import"../chunks/CNhGYG1q.js";import{t as V}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.js";import"../chunks/DEv5Ueqk.js";import{a as re,i as H,n as U,t as W}from"../chunks/DevUxHro.js";import"../chunks/CaZV0epm.js";import{t as G}from"../chunks/B5LAyE-f.js";import{n as K,t as q}from"../chunks/az2UTMiX.js";import{H as ie,V as J,a as ae,c as oe,d as se,h as ce,i as le,l as ue,n as de,o as fe,r as pe,s as me,t as he,u as ge}from"../chunks/DC7iQzPK.js";var Y=j(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),X={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/Dqpl7tve.js","../chunks/BdP-K7KO.js","../chunks/CKlCoule.js","../chunks/DevUxHro.js","../chunks/C8mohMXa.js","../chunks/DEv5Ueqk.js","../chunks/IT5xfoUt.js","../chunks/BUm3woLX.js","../chunks/D1hYfEew.js","../chunks/CaZV0epm.js","../chunks/CNhGYG1q.js","../chunks/DUJlwB59.js","../chunks/DpTUJVdo.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,B as t,Bt as n,Ct as r,E as i,Et as a,G as o,I as s,K as c,L as l,M as u,Nt as d,O as f,Ot as p,Pt as m,R as h,T as g,Tt as _,U as ee,Ut as v,Vt as y,_t as b,b as x,c as te,ct as S,dt as C,et as w,gt as T,i as E,k as D,mt as O,o as k,ot as A,q as j,rt as M,s as N,u as P,ut as F,v as I,vt as L,w as R,xt as z,z as B}from"../chunks/BdP-K7KO.js";import{t as ne}from"../chunks/DFy-DHbb.js";import"../chunks/CNhGYG1q.js";import{t as V}from"../chunks/C8mohMXa.js";import"../chunks/D1hYfEew.js";import"../chunks/DEv5Ueqk.js";import{a as re,i as H,n as U,t as W}from"../chunks/DevUxHro.js";import"../chunks/CaZV0epm.js";import{t as G}from"../chunks/C9h8nQnw.js";import{n as K,t as q}from"../chunks/BSBRafHb.js";import{H as ie,V as J,a as ae,c as oe,d as se,h as ce,i as le,l as ue,n as de,o as fe,r as pe,s as me,t as he,u as ge}from"../chunks/CKlCoule.js";var Y=j(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),X={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 _e(e,t){m(t,!1),D(e,X);let n=k(t,`name`,12),r=k(t,`key`,12),i=k(t,`value`,12);var a={get name(){return n()},set name(e){n(e),p()},get key(){return r()},set key(e){r(e),p()},get value(){return i()},set value(e){i(e),p()}},s=Y(),c=T(s),l=L(c,2),u=T(l,!0);return y(l),y(s),F(()=>{I(s,`title`,`Color ${r()}: ${i()}`),R(c,`background-color: var(--color-${n()??``}-${r()??``});`),ee(u,r())}),o(e,s),d(a)}E(_e,{name:{},key:{},value:{}},[],[],{mode:`open`});var ve=j(`<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 ye(e){o(e,ve())}E(ye,{},[],[],{mode:`open`});var be=j(`<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
@@ -28,4 +28,4 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
28
28
  body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1uha8ag {flex-shrink:0;width:378px;height:100%;border:none;}#preview.svelte-1uha8ag {display:flex;align-items:flex-start;justify-content:flex-start;width:100%;height:100%;&.components-preview,
29
29
  &:has(.has-bg-image:where(.svelte-1uha8ag)) {height:auto;& #sidebar:where(.svelte-1uha8ag) {position:sticky;top:0;height:100vh;}}}#chat-wrapper.svelte-1uha8ag {container-name:preview-container;
30
30
  /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}#chat-wrapper.svelte-1uha8ag liipgpt-chat {display:block;width:100%;height:100%;}#chat-wrapper.has-bg-image.svelte-1uha8ag {
31
- /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){m(l,!0),D(n,Le);let u=N(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=_(()=>l.data);C(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&ne(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>`/build/${e}/liipgpt-${e}.iife.js`,h=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),ee=async e=>{e===`build`&&(await V(()=>import(p(`chat`)),[],import.meta.url),await V(()=>import(p(`button`)),[],import.meta.url)),e===`dev`&&(await V(()=>import(`../chunks/DopJiv6A.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),await V(()=>import(`../chunks/DpTUJVdo.js`),__vite__mapDeps([12,1,3,4,5,7,8,10,11]),import.meta.url)),e===`server`&&(V(()=>import(K(l.data.options,`chat`)),[],import.meta.url),V(()=>import(K(l.data.options,`button`)),[],import.meta.url))},v=_(()=>l.data.options?.[`preview-mode`]?.value??`server`);C(()=>{ee(M(v))});let x=`./sidebar${G.url.search}`,w=r(void 0),E=r(void 0),k=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};C(()=>{M(w)&&k(M(w),M(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),C(()=>{M(E)&&k(M(E),M(f).options.onclosechat.value||``)});let A=_(()=>M(f)&&M(f).options[`show-components`].value);var j=Ie();e(`1uha8ag`,e=>{var n=c(),r=b(n),i=e=>{S(()=>{O.title=`LiipGPT Configurator | Components`})},a=e=>{S(()=>{O.title=`LiipGPT Configurator`})};t(r,e=>{M(f).options[`show-components`].value?e(i,1):e(a,-1)}),o(e,n)});var R=T(j),re=e=>{var t=Pe();F(()=>I(t,`src`,x)),o(e,t)};t(R,e=>{M(f).options[`hide-sidebar`].value||e(re)}),B(L(R,2),()=>M(f),e=>{var n=c(),r=b(n),i=e=>{var t=c();a(b(t),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Ne(e,te(()=>u))}),o(e,t)},l=e=>{var n=Q();let r;var i=T(n),a=e=>{var n=c(),r=b(n),i=e=>{var t=Fe();F(()=>I(t,`src`,M(f).options[`preview-background`].value)),o(e,t)},a=_(()=>h(M(f).options[`preview-background`].value));t(r,e=>{M(a)&&e(i)}),o(e,n)};t(i,e=>{M(f).options.flyout.value&&M(f).options[`preview-background`].value&&e(a)});var l=L(i,2);P(l,e=>z(w,e),()=>M(w));var u=L(l,2);s(u,()=>q(M(f).options)),P(L(u,2),e=>z(E,e),()=>M(E)),y(n),F(e=>r=g(n,1,`svelte-1uha8ag`,null,r,e),[()=>({"has-bg-image":M(f).options.flyout.value&&M(f).options[`preview-background`].value&&h(M(f).options[`preview-background`].value)})]),o(e,n)};t(r,e=>{M(A)?e(i):e(l,-1)}),o(e,n)}),y(j),F(()=>g(j,1,i([{"components-preview":M(A)}]),`svelte-1uha8ag`)),o(n,j),d()}E($,{},[],[],{mode:`open`});export{$ as component};
31
+ /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){m(l,!0),D(n,Le);let u=N(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=_(()=>l.data);C(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&ne(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let p=e=>`/build/${e}/liipgpt-${e}.iife.js`,h=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),ee=async e=>{e===`build`&&(await V(()=>import(p(`chat`)),[],import.meta.url),await V(()=>import(p(`button`)),[],import.meta.url)),e===`dev`&&(await V(()=>import(`../chunks/Dqpl7tve.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),await V(()=>import(`../chunks/DpTUJVdo.js`),__vite__mapDeps([12,1,3,4,5,7,8,10,11]),import.meta.url)),e===`server`&&(V(()=>import(K(l.data.options,`chat`)),[],import.meta.url),V(()=>import(K(l.data.options,`button`)),[],import.meta.url))},v=_(()=>l.data.options?.[`preview-mode`]?.value??`server`);C(()=>{ee(M(v))});let x=`./sidebar${G.url.search}`,w=r(void 0),E=r(void 0),k=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};C(()=>{M(w)&&k(M(w),M(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),C(()=>{M(E)&&k(M(E),M(f).options.onclosechat.value||``)});let A=_(()=>M(f)&&M(f).options[`show-components`].value);var j=Ie();e(`1uha8ag`,e=>{var n=c(),r=b(n),i=e=>{S(()=>{O.title=`LiipGPT Configurator | Components`})},a=e=>{S(()=>{O.title=`LiipGPT Configurator`})};t(r,e=>{M(f).options[`show-components`].value?e(i,1):e(a,-1)}),o(e,n)});var R=T(j),re=e=>{var t=Pe();F(()=>I(t,`src`,x)),o(e,t)};t(R,e=>{M(f).options[`hide-sidebar`].value||e(re)}),B(L(R,2),()=>M(f),e=>{var n=c(),r=b(n),i=e=>{var t=c();a(b(t),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Ne(e,te(()=>u))}),o(e,t)},l=e=>{var n=Q();let r;var i=T(n),a=e=>{var n=c(),r=b(n),i=e=>{var t=Fe();F(()=>I(t,`src`,M(f).options[`preview-background`].value)),o(e,t)},a=_(()=>h(M(f).options[`preview-background`].value));t(r,e=>{M(a)&&e(i)}),o(e,n)};t(i,e=>{M(f).options.flyout.value&&M(f).options[`preview-background`].value&&e(a)});var l=L(i,2);P(l,e=>z(w,e),()=>M(w));var u=L(l,2);s(u,()=>q(M(f).options)),P(L(u,2),e=>z(E,e),()=>M(E)),y(n),F(e=>r=g(n,1,`svelte-1uha8ag`,null,r,e),[()=>({"has-bg-image":M(f).options.flyout.value&&M(f).options[`preview-background`].value&&h(M(f).options[`preview-background`].value)})]),o(e,n)};t(r,e=>{M(A)?e(i):e(l,-1)}),o(e,n)}),y(j),F(()=>g(j,1,i([{"components-preview":M(A)}]),`svelte-1uha8ag`)),o(n,j),d()}E($,{},[],[],{mode:`open`});export{$ as component};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,B as n,Bt as r,C as i,Ct as a,G as o,K as s,L as c,Nt as l,O as u,Ot as d,Pt as f,Q as p,R as m,S as h,T as g,Tt as _,U as v,Ut as y,Vt as b,Z as x,_ as S,_t as C,c as ee,gt as w,i as te,k as T,o as E,pt as ne,q as D,rt as O,s as k,u as A,ut as j,v as M,vt as N,x as re,xt as ie,y as ae}from"../chunks/BdP-K7KO.js";import{t as oe}from"../chunks/B3eztMjm.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import"../chunks/DEv5Ueqk.js";import"../chunks/DevUxHro.js";import"../chunks/CaZV0epm.js";import{t as se}from"../chunks/B5LAyE-f.js";import{t as ce}from"../chunks/az2UTMiX.js";import"../chunks/DJ-KAQCp.js";import"../chunks/DC7iQzPK.js";import"../chunks/BUm3woLX.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 T=[],E=[],ne=[],D=null,O=null,k=``,A=``,j=0,M;for(let t=0;t<e.length;t++){let N=e.charCodeAt(t);if(!(N===u&&(M=e.charCodeAt(t+1),M===l)))if(N===n)k===``&&(j=t),k+=e.slice(t,t+2),t+=1;else if(N===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(M=e.charCodeAt(a),M===n)a+=1;else if(M===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=xe(o.slice(2,-2));E.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(N===o||N===a){let n=te(e,t,N,C);k+=e.slice(t,n+1),t=n}else{if((N===d||N===l||N===f)&&(M=e.charCodeAt(t+1))&&(M===d||M===l||M===f||M===u&&(M=e.charCodeAt(t+2))&&M==l))continue;if(N===l){if(k.length===0)continue;M=k.charCodeAt(k.length-1),M!==d&&M!==l&&M!==f&&(k+=` `)}else if(N===y&&e.charCodeAt(t+1)===y&&k.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(M=e.charCodeAt(f),M===n)f+=1;else if(M===o||M===a)f=te(e,f,M,C);else if(M===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(M=e.charCodeAt(t),M===n)t+=1;else if(M===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&M===s)d=k.length+f-u;else if(M===c&&l.length===0){k+=e.slice(u,f),t=f;break}else if(M===h)l+=`)`;else if(M===_)l+=`]`;else if(M===p)l+=`}`;else if((M===m||e.length-1===f)&&l.length===0){t=f-1,k+=e.slice(u,f);break}else (M===g||M===v||M===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=w(k,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]),D?D.nodes.push(f):T.push(f),k=``}else if(N===c&&k.charCodeAt(0)===b)O=ee(k),C&&(O.src=[C,j,t],O.dst=[C,j,t]),D?D.nodes.push(O):T.push(O),k=``,O=null;else if(N===c&&A[A.length-1]!==`)`){let e=w(k);if(!e){if(k.length===0)continue;throw new S(`Invalid declaration: \`${k.trim()}\``,C?[C,j,t]:null)}C&&(e.src=[C,j,t],e.dst=[C,j,t]),D?D.nodes.push(e):T.push(e),k=``}else if(N===p&&A[A.length-1]!==`)`)A+=`}`,O=z(k.trim()),C&&(O.src=[C,j,t],O.dst=[C,j,t]),D&&D.nodes.push(O),ne.push(D),D=O,k=``,O=null;else if(N===m&&A[A.length-1]!==`)`){if(A===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(A=A.slice(0,-1),k.length>0)if(k.charCodeAt(0)===b)O=ee(k),C&&(O.src=[C,j,t],O.dst=[C,j,t]),D?D.nodes.push(O):T.push(O),k=``,O=null;else{let e=k.indexOf(`:`);if(D){let n=w(k,e);if(!n)throw new S(`Invalid declaration: \`${k.trim()}\``,C?[C,j,t]:null);C&&(n.src=[C,j,t],n.dst=[C,j,t]),D.nodes.push(n)}}let e=ne.pop()??null;e===null&&D&&T.push(D),D=e,k=``,O=null}else if(N===h)A+=`)`,k+=`(`;else if(N===g){if(A[A.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);A=A.slice(0,-1),k+=`)`}else{if(k.length===0&&(N===d||N===l||N===f))continue;k===``&&(j=t),k+=String.fromCharCode(N)}}}if(k.charCodeAt(0)===b){let t=ee(k);C&&(t.src=[C,j,e.length],t.dst=[C,j,e.length]),T.push(t)}if(A.length>0&&D){if(D.kind===`rule`)throw new S(`Missing closing } at ${D.selector}`,D.src?[D.src[0],D.src[1],D.src[1]]:null);if(D.kind===`at-rule`)throw new S(`Missing closing } at ${D.name} ${D.params}`,D.src?[D.src[0],D.src[1],D.src[1]]:null)}return E.length>0?E.concat(T):T}function ee(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 R(n.trim(),r.trim(),t)}function w(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return B(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function te(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 T(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 E(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 ne=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 D(e,t){return(ne.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var O=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&&(D(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=E(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=ne.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(!D(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(${T(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=E(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)}},k=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 A(e){return{kind:`word`,value:e}}function j(e,t){return{kind:`function`,value:e,nodes:t}}function M(e){return{kind:`separator`,value:e}}function N(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+N(n.nodes)+`)`}return t}var re=92,ie=41,ae=58,oe=44,se=34,ce=61,le=62,ue=60,de=10,fe=40,pe=39,me=47,he=32,ge=9;function P(e){e=e.replaceAll(`\r
1
+ import{$ as e,A as t,B as n,Bt as r,C as i,Ct as a,G as o,K as s,L as c,Nt as l,O as u,Ot as d,Pt as f,Q as p,R as m,S as h,T as g,Tt as _,U as v,Ut as y,Vt as b,Z as x,_ as S,_t as C,c as ee,gt as w,i as te,k as T,o as E,pt as ne,q as D,rt as O,s as k,u as A,ut as j,v as M,vt as N,x as re,xt as ie,y as ae}from"../chunks/BdP-K7KO.js";import{t as oe}from"../chunks/DFy-DHbb.js";import"../chunks/CNhGYG1q.js";import"../chunks/D1hYfEew.js";import"../chunks/DEv5Ueqk.js";import"../chunks/DevUxHro.js";import"../chunks/CaZV0epm.js";import{t as se}from"../chunks/C9h8nQnw.js";import{t as ce}from"../chunks/BSBRafHb.js";import"../chunks/IT5xfoUt.js";import"../chunks/CKlCoule.js";import"../chunks/BUm3woLX.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 T=[],E=[],ne=[],D=null,O=null,k=``,A=``,j=0,M;for(let t=0;t<e.length;t++){let N=e.charCodeAt(t);if(!(N===u&&(M=e.charCodeAt(t+1),M===l)))if(N===n)k===``&&(j=t),k+=e.slice(t,t+2),t+=1;else if(N===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(M=e.charCodeAt(a),M===n)a+=1;else if(M===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=xe(o.slice(2,-2));E.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(N===o||N===a){let n=te(e,t,N,C);k+=e.slice(t,n+1),t=n}else{if((N===d||N===l||N===f)&&(M=e.charCodeAt(t+1))&&(M===d||M===l||M===f||M===u&&(M=e.charCodeAt(t+2))&&M==l))continue;if(N===l){if(k.length===0)continue;M=k.charCodeAt(k.length-1),M!==d&&M!==l&&M!==f&&(k+=` `)}else if(N===y&&e.charCodeAt(t+1)===y&&k.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(M=e.charCodeAt(f),M===n)f+=1;else if(M===o||M===a)f=te(e,f,M,C);else if(M===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(M=e.charCodeAt(t),M===n)t+=1;else if(M===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&M===s)d=k.length+f-u;else if(M===c&&l.length===0){k+=e.slice(u,f),t=f;break}else if(M===h)l+=`)`;else if(M===_)l+=`]`;else if(M===p)l+=`}`;else if((M===m||e.length-1===f)&&l.length===0){t=f-1,k+=e.slice(u,f);break}else (M===g||M===v||M===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=w(k,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]),D?D.nodes.push(f):T.push(f),k=``}else if(N===c&&k.charCodeAt(0)===b)O=ee(k),C&&(O.src=[C,j,t],O.dst=[C,j,t]),D?D.nodes.push(O):T.push(O),k=``,O=null;else if(N===c&&A[A.length-1]!==`)`){let e=w(k);if(!e){if(k.length===0)continue;throw new S(`Invalid declaration: \`${k.trim()}\``,C?[C,j,t]:null)}C&&(e.src=[C,j,t],e.dst=[C,j,t]),D?D.nodes.push(e):T.push(e),k=``}else if(N===p&&A[A.length-1]!==`)`)A+=`}`,O=z(k.trim()),C&&(O.src=[C,j,t],O.dst=[C,j,t]),D&&D.nodes.push(O),ne.push(D),D=O,k=``,O=null;else if(N===m&&A[A.length-1]!==`)`){if(A===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(A=A.slice(0,-1),k.length>0)if(k.charCodeAt(0)===b)O=ee(k),C&&(O.src=[C,j,t],O.dst=[C,j,t]),D?D.nodes.push(O):T.push(O),k=``,O=null;else{let e=k.indexOf(`:`);if(D){let n=w(k,e);if(!n)throw new S(`Invalid declaration: \`${k.trim()}\``,C?[C,j,t]:null);C&&(n.src=[C,j,t],n.dst=[C,j,t]),D.nodes.push(n)}}let e=ne.pop()??null;e===null&&D&&T.push(D),D=e,k=``,O=null}else if(N===h)A+=`)`,k+=`(`;else if(N===g){if(A[A.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);A=A.slice(0,-1),k+=`)`}else{if(k.length===0&&(N===d||N===l||N===f))continue;k===``&&(j=t),k+=String.fromCharCode(N)}}}if(k.charCodeAt(0)===b){let t=ee(k);C&&(t.src=[C,j,e.length],t.dst=[C,j,e.length]),T.push(t)}if(A.length>0&&D){if(D.kind===`rule`)throw new S(`Missing closing } at ${D.selector}`,D.src?[D.src[0],D.src[1],D.src[1]]:null);if(D.kind===`at-rule`)throw new S(`Missing closing } at ${D.name} ${D.params}`,D.src?[D.src[0],D.src[1],D.src[1]]:null)}return E.length>0?E.concat(T):T}function ee(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 R(n.trim(),r.trim(),t)}function w(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return B(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function te(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 T(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 E(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 ne=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 D(e,t){return(ne.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var O=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&&(D(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=E(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=ne.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(!D(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(${T(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=E(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)}},k=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 A(e){return{kind:`word`,value:e}}function j(e,t){return{kind:`function`,value:e,nodes:t}}function M(e){return{kind:`separator`,value:e}}function N(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+N(n.nodes)+`)`}return t}var re=92,ie=41,ae=58,oe=44,se=34,ce=61,le=62,ue=60,de=10,fe=40,pe=39,me=47,he=32,ge=9;function P(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 re:i+=e[o]+e[o+1],o++;break;case me:{if(i.length>0){let e=A(i);r?r.nodes.push(e):t.push(e),i=``}let n=A(e[o]);r?r.nodes.push(n):t.push(n);break}case ae:case oe:case ce:case le:case ue:case de:case he:case ge:{if(i.length>0){let e=A(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!==ae&&a!==oe&&a!==ce&&a!==le&&a!==ue&&a!==de&&a!==he&&a!==ge));s++);o=s-1;let c=M(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case pe:case se:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===re)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case fe:{let e=j(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case ie:{let e=n.pop();if(i.length>0){let t=A(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(A(i)),t}var _e=(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))(_e||{}),F={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 I(e,t){typeof t==`function`?ve(e,t):ve(e,t.enter,t.exit)}function ve(e,t=()=>F.Continue,n=()=>F.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)??F.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.${_e[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??F.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.${_e[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ye(e){let t=[];return I(P(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return I(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),F.Skip}),t}var be=64;function L(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function R(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function z(e,t=[]){return e.charCodeAt(0)===be?ee(e,t):L(e,t)}function B(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function xe(e){return{kind:`comment`,value:e}}function Se(e,t){return{kind:`context`,context:e,nodes:t}}function V(e){return{kind:`at-root`,nodes:e}}function H(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(H),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(H),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(H),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(H),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 Ce(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 we(e,t,n=3){let r=[],i=new Set,a=new k(()=>new Set),o=new k(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new k(()=>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 ye(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Oe(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=B(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(De(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Oe(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=Ee(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=P(r.value),a=!1;if(I(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(I(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(`)?P(o)[0]:null}while(i);return F.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?F.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:N(i)},s=z(`@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=z(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=z(`*, ::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=R(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=z(`@layer properties`,[R(`@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 Te(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":"1774275585345"}
1
+ {"version":"1774876064904"}
@@ -4,11 +4,11 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.ByoY54BX.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start.BtlBa7Lv.js" rel="modulepreload">
8
8
  <link href="./_app/immutable/chunks/BdP-K7KO.js" rel="modulepreload">
9
- <link href="./_app/immutable/chunks/B3eztMjm.js" rel="modulepreload">
9
+ <link href="./_app/immutable/chunks/DFy-DHbb.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CNhGYG1q.js" rel="modulepreload">
11
- <link href="./_app/immutable/entry/app.Bl6ijR0o.js" rel="modulepreload">
11
+ <link href="./_app/immutable/entry/app.Do4fjbw-.js" rel="modulepreload">
12
12
  <link href="./_app/immutable/chunks/C8mohMXa.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/D1hYfEew.js" rel="modulepreload">
14
14
 
@@ -17,7 +17,7 @@
17
17
  <div style="display: contents">
18
18
  <script>
19
19
  {
20
- __sveltekit_1ktx74q = {
20
+ __sveltekit_dbt1hy = {
21
21
  base: new URL(".", location).pathname.slice(0, -1),
22
22
  assets: "/configurator"
23
23
  };
@@ -25,8 +25,8 @@
25
25
  const element = document.currentScript.parentElement;
26
26
 
27
27
  Promise.all([
28
- import("./_app/immutable/entry/start.ByoY54BX.js"),
29
- import("./_app/immutable/entry/app.Bl6ijR0o.js")
28
+ import("./_app/immutable/entry/start.BtlBa7Lv.js"),
29
+ import("./_app/immutable/entry/app.Do4fjbw-.js")
30
30
  ]).then(([kit, app]) => {
31
31
  kit.start(app, element);
32
32
  });
@@ -4,11 +4,11 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.ByoY54BX.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start.BtlBa7Lv.js" rel="modulepreload">
8
8
  <link href="./_app/immutable/chunks/BdP-K7KO.js" rel="modulepreload">
9
- <link href="./_app/immutable/chunks/B3eztMjm.js" rel="modulepreload">
9
+ <link href="./_app/immutable/chunks/DFy-DHbb.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CNhGYG1q.js" rel="modulepreload">
11
- <link href="./_app/immutable/entry/app.Bl6ijR0o.js" rel="modulepreload">
11
+ <link href="./_app/immutable/entry/app.Do4fjbw-.js" rel="modulepreload">
12
12
  <link href="./_app/immutable/chunks/C8mohMXa.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/D1hYfEew.js" rel="modulepreload">
14
14
 
@@ -17,7 +17,7 @@
17
17
  <div style="display: contents">
18
18
  <script>
19
19
  {
20
- __sveltekit_1ktx74q = {
20
+ __sveltekit_dbt1hy = {
21
21
  base: new URL(".", location).pathname.slice(0, -1),
22
22
  assets: "/configurator"
23
23
  };
@@ -25,8 +25,8 @@
25
25
  const element = document.currentScript.parentElement;
26
26
 
27
27
  Promise.all([
28
- import("./_app/immutable/entry/start.ByoY54BX.js"),
29
- import("./_app/immutable/entry/app.Bl6ijR0o.js")
28
+ import("./_app/immutable/entry/start.BtlBa7Lv.js"),
29
+ import("./_app/immutable/entry/app.Do4fjbw-.js")
30
30
  ]).then(([kit, app]) => {
31
31
  kit.start(app, element);
32
32
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- import{Ct as e,at as t,it as n,kt as r,r as i,rt as a,t as o,xt as s}from"./BdP-K7KO.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_1ktx74q?.base??`/configurator`,de=globalThis.__sveltekit_1ktx74q?.assets??x??``,fe=`1774275585345`,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 t=r(e),n=!0;function i(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:t}=r(!1);async function n(){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:t,check:n}}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=i.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(i.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 a(this.#e)}set data(e){s(this.#e,e)}#t=e(null);get form(){return a(this.#t)}set form(e){s(this.#t,e)}#n=e(null);get error(){return a(this.#n)}set error(e){s(this.#n,e)}#r=e({});get params(){return a(this.#r)}set params(e){s(this.#r,e)}#i=e({id:null});get route(){return a(this.#i)}set route(e){s(this.#i,e)}#a=e({});get state(){return a(this.#a)}set state(e){s(this.#a,e)}#o=e(-1);get status(){return a(this.#o)}set status(e){s(this.#o,e)}#s=e(new URL(Me));get url(){return a(this.#s)}set url(e){s(this.#s,e)}},A=new class{#e=e(null);get current(){return a(this.#e)}set current(e){s(this.#e,e)}},j=new class{#e=e(!1);get current(){return a(this.#e)}set current(e){s(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}=o,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:r(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_1ktx74q?.data&&globalThis.__sveltekit_1ktx74q.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,n,r,i){let a;n.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{n.invalidateAll&&(Qe=!0,a=[...tt.keys()]),n.invalidate&&n.invalidate.forEach(kt)}}),n.invalidateAll&&t().then(t).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:r,popped:i,keepfocus:a,noscroll:o,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(r,!1),_=e===`enter`?Ft(G,g,r,e):Tt({url:r,type:e,delta:i?.delta,intent:g,scroll:i?.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(r,x,z.hash))return await I(r,s);y=await Et(r,{id:null},await $(new u(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,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:r,params:{},route:{id:null}}),url:r,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(r,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=s?0:1,t={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),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 t=_.navigation.to;G={...y.state,nav:{params:t.params,route:t.route,url:t.url}},y.props.page&&(y.props.page.url=r);let i=te&&await te;i?b=i.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=n?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await t(),await t();let re=null;if(Xe){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(re=r.hash&&document.getElementById(Rt(r)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!a&&!ie&&Pt(r,!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 +0,0 @@
1
- var e=`https://liipgpt.api.dev.genai.liip.ch/liipgpt`,t=`3.4.4`;export{t as n,e as t};
@@ -1 +0,0 @@
1
- import"../chunks/BdP-K7KO.js";import{n as e,s as t}from"../chunks/B3eztMjm.js";import"../chunks/CNhGYG1q.js";export{t as load_css,e as start};