@liip/liipgpt 3.8.1 → 3.8.2
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.
- package/button/liipgpt-button.iife.js +1 -1
- package/chat/liipgpt-chat.iife.js +2 -2
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{aHwC0Rur.js → Bc0ERhDD.js} +1 -1
- package/configurator/_app/immutable/chunks/{C27tVb5g.js → BcilqXKJ.js} +1 -1
- package/configurator/_app/immutable/chunks/{Cn5qx8al.js → Bk4g5DYk.js} +1 -1
- package/configurator/_app/immutable/chunks/{DhVTVaBo.js → Bu_-InX1.js} +1 -1
- package/configurator/_app/immutable/chunks/{lPpx1Xpm.js → D6iQ8Gnz.js} +1 -1
- package/configurator/_app/immutable/chunks/DH-xz8L7.js +1 -0
- package/configurator/_app/immutable/chunks/{BaBjK23B.js → DWCMHgRQ.js} +1 -1
- package/configurator/_app/immutable/chunks/{CAaK3aFg.js → DiQywzfZ.js} +2 -2
- package/configurator/_app/immutable/chunks/{Shyv85t-.js → L40L4-j6.js} +1 -1
- package/configurator/_app/immutable/chunks/{DwRGsUyQ.js → nsvkqtCy.js} +1 -1
- package/configurator/_app/immutable/entry/{app.JJhipW03.js → app.BlJSbr9t.js} +2 -2
- package/configurator/_app/immutable/entry/start.CLLlx-n-.js +1 -0
- package/configurator/_app/immutable/nodes/{0.W5jK_-Qc.js → 0.CIk9Wfga.js} +2 -2
- package/configurator/_app/immutable/nodes/{1.CMVOiYFy.js → 1.OJw9HGOA.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.BBOc1se8.js → 2.BWOd_5YZ.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.CtA9ME8X.js → 3.Bfk8eHXh.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BDm2oSnh.js +0 -1
- package/configurator/_app/immutable/entry/start.B7bIbuwB.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rEsbAd0y.js";import{a as e,i as t,r as n}from"./
|
|
1
|
+
import"./rEsbAd0y.js";import{a as e,i as t,r as n}from"./DH-xz8L7.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Ct as r,D as i,Dt as a,E as o,Gt as s,H as c,I as l,J as u,K as d,Kt as f,L as p,Lt as m,M as h,Mt as g,N as _,Ot as v,Q as y,R as b,Rt as x,S,St as C,T as w,Tt as T,U as E,V as D,X as O,Y as k,Z as A,_ as j,_t as ee,bt as M,c as te,ct as ne,d as re,dt as ie,g as N,h as ae,ht as P,i as F,it as I,j as oe,k as L,kt as R,l as se,lt as ce,m as le,mt as z,nt as B,o as V,ot as H,p as ue,r as de,rt as U,s as fe,tt as W,u as G,v as K,x as pe,xt as q,y as me,yt as he,z as ge}from"./rEsbAd0y.js";import{n as _e}from"./CZzAbm1q.js";import{f as ve,n as J,t as ye}from"./De77gmQ_.js";import{i as be}from"./B08O5lEA.js";import{d as Y,f as xe,l as Se,n as X,o as Ce,r as Z,s as we,u as Te}from"./DhVTVaBo.js";import{A as Q,C as Ee,D as De,E as Oe,F as ke,I as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,R as Ie,S as Le,T as Re,U as ze,W as Be,_ as Ve,a as He,b as Ue,c as We,d as Ge,f as Ke,g as qe,h as Je,i as Ye,j as Xe,k as Ze,l as Qe,m as $e,n as et,o as $,r as tt,s as nt,t as rt,u as it,v as at,w as ot,x as st,y as ct,z as lt}from"./CAaK3aFg.js";import{a as ut,i as dt,o as ft}from"./CqCdl07t.js";import{t as pt}from"./Cn5qx8al.js";var mt=Array(12).fill(0),ht=O(`<div class="sonner-loading-bar"></div>`),gt=O(`<div><div class="sonner-spinner"></div></div>`);function _t(e,t){x(t,!0);let r=V(t,`visible`,7),a=V(t,`class`,7);var c={get visible(){return r()},set visible(e){r(e),g()},get class(){return a()},set class(e){a(e),g()}},l=gt(),d=M(l);return n(d,23,()=>mt,(e,t)=>`spinner-bar-${t}`,(e,t)=>{u(e,ht())}),s(d),s(l),z(e=>{o(l,1,e),K(l,`data-visible`,r())},[()=>i([`sonner-loading-wrapper`,a()].filter(Boolean).join(` `))]),u(e,l),m(c)}F(_t,{visible:{},class:{}},[],[],{mode:`open`});function vt(e){return e.label!==void 0}function yt(){let e=a(r(typeof document<`u`?document.hidden:!1));return P(()=>I(document,`visibilitychange`,()=>{T(e,document.hidden,!0)})),{get current(){return H(e)}}}var bt=4e3,xt=14,St=45,Ct=200,wt=.05,Tt={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Et(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Dt(e){return 1/(1.5+Math.abs(e)/20)}var Ot=O(`<div><!></div>`),kt=O(`<button data-close-button=""><!></button>`),At=O(`<div data-icon=""><!> <!></div>`),jt=O(`<div data-description=""><!></div>`),Mt=O(`<button data-button="" data-cancel=""> </button>`),Nt=O(`<button data-button=""> </button>`),Pt=O(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Ft=O(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function It(t,n){x(n,!0);let r=e=>{var t=k(),n=q(t),r=e=>{var t=Ot();p(M(t),N),s(t),z(e=>{o(t,1,e),K(t,`data-visible`,H(Q)===`loading`)},[()=>i(Y(H(Re)?.loader,c()?.classes?.loader,`sonner-loader`))]),u(e,t)},a=e=>{{let t=R(()=>Y(H(Re)?.loader,c().classes?.loader)),n=R(()=>H(Q)===`loading`);_t(e,{get class(){return H(t)},get visible(){return H(n)}})}};E(n,e=>{N()?e(r):e(a,-1)}),u(e,t)},c=V(n,`toast`,7),h=V(n,`index`,7),_=V(n,`expanded`,7),v=V(n,`invert`,7),y=V(n,`position`,7),b=V(n,`visibleToasts`,7),S=V(n,`expandByDefault`,7),D=V(n,`closeButton`,7),O=V(n,`interacting`,7),A=V(n,`cancelButtonStyle`,7,``),j=V(n,`actionButtonStyle`,7,``),ee=V(n,`duration`,7),ne=V(n,`descriptionClass`,7,``),re=V(n,`classes`,7),ie=V(n,`unstyled`,7,!1),N=V(n,`loadingIcon`,7),ae=V(n,`successIcon`,7),F=V(n,`errorIcon`,7),I=V(n,`warningIcon`,7),oe=V(n,`closeIcon`,7),L=V(n,`infoIcon`,7),se=V(n,`defaultRichColors`,7,!1),le=V(n,`swipeDirections`,7),ue=V(n,`closeButtonAriaLabel`,7),W=V(n,`pauseWhenPageIsHidden`,7);fe(n,`$$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 pe={...Tt},me=a(!1),he=a(!1),ge=a(!1),_e=a(!1),ve=a(!1),J=a(0),ye=a(0),be=c().duration||ee()||bt,xe=a(null),X=a(void 0),Ce=a(null),Z=a(null),we=R(()=>h()===0),Te=R(()=>h()+1<=b()),Q=R(()=>c().type),Ee=R(()=>c().dismissible===void 0?c().dismissable!==!1:c().dismissible!==!1),De=R(()=>c().class||``),Oe=R(()=>c().descriptionClass||``),ke=R(()=>Se.heights.findIndex(e=>e.toastId===c().id)||0),Ae=R(()=>c().closeButton??D()),je=R(()=>c().duration??ee()??bt),Me=null,Ne=R(()=>y().split(`-`)),Pe=R(()=>Se.heights.reduce((e,t,n)=>n>=H(ke)?e:e+t.height,0)),Fe=yt(),Ie=R(()=>c().invert||v()),Le=R(()=>H(Q)===`loading`),Re=R(()=>({...pe,...re()})),ze=R(()=>c().title),Be=R(()=>c().description),Ve=a(0),He=a(0),Ue=R(()=>Math.round(H(ke)*xt+H(Pe)));P(()=>{H(ze),H(Be);let e;e=_()||S()?1:1-h()*wt;let t=ce(()=>H(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,T(ye,a,!0),Se.setHeight({toastId:c().id,height:a})});function We(){T(he,!0),T(J,H(Ue),!0),Se.removeHeight(c().id),setTimeout(()=>{Se.remove(c().id)},Ct)}let Ge,Ke=R(()=>c().promise&&H(Q)===`loading`||c().duration===1/0);function qe(){T(Ve,new Date().getTime(),!0),Ge=setTimeout(()=>{c().onAutoClose?.(c()),We()},be)}function Je(){if(H(He)<H(Ve)){let e=new Date().getTime()-H(Ve);be-=e}T(He,new Date().getTime(),!0)}P(()=>{c().updated&&(clearTimeout(Ge),be=H(je),qe())}),P(()=>(H(Ke)||(_()||O()||W()&&Fe.current?Je():qe()),()=>clearTimeout(Ge))),de(()=>{T(me,!0);let e=H(X)?.getBoundingClientRect().height;return T(ye,e,!0),Se.setHeight({toastId:c().id,height:e}),()=>{Se.removeHeight(c().id)}}),P(()=>{c().delete&&ce(()=>{We(),c().onDismiss?.(c())})});let Ye=e=>{if(H(Le))return;T(J,H(Ue),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(T(ge,!0),Me={x:e.clientX,y:e.clientY})},Xe=()=>{if(H(_e)||!H(Ee))return;Me=null;let e=Number(H(X)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(H(X)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(H(xe)?.getTime()??0),r=H(Ce)===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=St||i>.11){T(J,H(Ue),!0),c().onDismiss?.(c()),H(Ce)===`x`?T(Z,e>0?`right`:`left`,!0):T(Z,t>0?`down`:`up`,!0),We(),T(_e,!0);return}else H(X)?.style.setProperty(`--swipe-amount-x`,`0px`),H(X)?.style.setProperty(`--swipe-amount-y`,`0px`);T(ve,!1),T(ge,!1),T(Ce,null)},Ze=e=>{if(!Me||!H(Ee)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Me.y,n=e.clientX-Me.x,r=le()??Et(y());!H(Ce)&&(Math.abs(n)>1||Math.abs(t)>1)&&T(Ce,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(H(Ce)===`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*Dt(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(H(Ce)===`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*Dt(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&T(ve,!0),H(X)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),H(X)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},Qe=()=>{T(ge,!1),T(Ce,null),Me=null},$e=R(()=>c().icon?c().icon:H(Q)===`success`?ae():H(Q)===`error`?F():H(Q)===`warning`?I():H(Q)===`info`?L():H(Q)===`loading`?N():null);var et={get toast(){return c()},set toast(e){c(e),g()},get index(){return h()},set index(e){h(e),g()},get expanded(){return _()},set expanded(e){_(e),g()},get invert(){return v()},set invert(e){v(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 S()},set expandByDefault(e){S(e),g()},get closeButton(){return D()},set closeButton(e){D(e),g()},get interacting(){return O()},set interacting(e){O(e),g()},get cancelButtonStyle(){return A()},set cancelButtonStyle(e=``){A(e),g()},get actionButtonStyle(){return j()},set actionButtonStyle(e=``){j(e),g()},get duration(){return ee()},set duration(e){ee(e),g()},get descriptionClass(){return ne()},set descriptionClass(e=``){ne(e),g()},get classes(){return re()},set classes(e){re(e),g()},get unstyled(){return ie()},set unstyled(e=!1){ie(e),g()},get loadingIcon(){return N()},set loadingIcon(e){N(e),g()},get successIcon(){return ae()},set successIcon(e){ae(e),g()},get errorIcon(){return F()},set errorIcon(e){F(e),g()},get warningIcon(){return I()},set warningIcon(e){I(e),g()},get closeIcon(){return oe()},set closeIcon(e){oe(e),g()},get infoIcon(){return L()},set infoIcon(e){L(e),g()},get defaultRichColors(){return se()},set defaultRichColors(e=!1){se(e),g()},get swipeDirections(){return le()},set swipeDirections(e){le(e),g()},get closeButtonAriaLabel(){return ue()},set closeButtonAriaLabel(e){ue(e),g()},get pauseWhenPageIsHidden(){return W()},set pauseWhenPageIsHidden(e){W(e),g()}},$=Ft();K($,`tabindex`,0);let tt;var nt=M($),rt=e=>{var t=kt();p(M(t),()=>oe()??f),s(t),z(e=>{K(t,`aria-label`,ue()),K(t,`data-disabled`,H(Le)),o(t,1,e)},[()=>i(Y(H(Re)?.closeButton,c()?.classes?.closeButton))]),B(`click`,t,()=>{H(Le)||!H(Ee)||(We(),c().onDismiss?.(c()))}),u(e,t)};E(nt,e=>{H(Ae)&&!c().component&&H(Q)!==`loading`&&oe()!==null&&e(rt)});var it=C(nt,2),at=e=>{let t=R(()=>c().component);var n=k();l(q(n),()=>H(t),(e,t)=>{t(e,te(()=>c().componentProps,{closeToast:We}))}),u(e,n)},ot=t=>{var n=Pt(),a=q(n),m=e=>{var t=At(),n=M(t),a=e=>{var t=k(),n=q(t),i=e=>{var t=k();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{r(e)};E(n,e=>{c().icon?e(i):e(a,-1)}),u(e,t)};E(n,e=>{(c().promise||H(Q)===`loading`)&&e(a)});var d=C(n,2),m=e=>{var t=k(),n=q(t),r=e=>{var t=k();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},i=e=>{var t=k();p(q(t),()=>ae()??f),u(e,t)},a=e=>{var t=k();p(q(t),()=>F()??f),u(e,t)},o=e=>{var t=k();p(q(t),()=>I()??f),u(e,t)},s=e=>{var t=k();p(q(t),()=>L()??f),u(e,t)};E(n,e=>{c().icon?e(r):H(Q)===`success`?e(i,1):H(Q)===`error`?e(a,2):H(Q)===`warning`?e(o,3):H(Q)===`info`&&e(s,4)}),u(e,t)};E(d,e=>{c().type!==`loading`&&e(m)}),s(t),z(e=>o(t,1,e),[()=>i(Y(H(Re)?.icon,c()?.classes?.icon))]),u(e,t)};E(a,e=>{(H(Q)||c().icon||c().promise)&&c().icon!==null&&(H($e)!==null||c().icon)&&e(m)});var h=C(a,2),g=M(h),_=M(g),v=t=>{var n=k(),r=q(n),i=e=>{let t=R(()=>c().title);var n=k();l(q(n),()=>H(t),(e,t)=>{t(e,te(()=>c().componentProps))}),u(e,n)},a=t=>{var n=e();z(()=>d(n,c().title)),u(t,n)};E(r,e=>{typeof c().title==`string`?e(a,-1):e(i)}),u(t,n)};E(_,e=>{c().title&&e(v)}),s(g);var y=C(g,2),b=t=>{var n=jt(),r=M(n),a=e=>{let t=R(()=>c().description);var n=k();l(q(n),()=>H(t),(e,t)=>{t(e,te(()=>c().componentProps))}),u(e,n)},f=t=>{var n=e();z(()=>d(n,c().description)),u(t,n)};E(r,e=>{typeof c().description==`string`?e(f,-1):e(a)}),s(n),z(e=>o(n,1,e),[()=>i(Y(ne(),H(Oe),H(Re)?.description,c().classes?.description))]),u(t,n)};E(y,e=>{c().description&&e(b)}),s(h);var x=C(h,2),S=e=>{var t=k(),n=q(t),r=e=>{var t=k();l(q(t),()=>c().cancel,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=Mt(),n=M(t,!0);s(t),z(e=>{w(t,c().cancelButtonStyle??A()),o(t,1,e),d(n,c().cancel.label)},[()=>i(Y(H(Re)?.cancelButton,c()?.classes?.cancelButton))]),B(`click`,t,e=>{vt(c().cancel)&&H(Ee)&&(c().cancel?.onClick?.(e),We())}),u(e,t)},f=R(()=>vt(c().cancel));E(n,e=>{typeof c().cancel==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};E(x,e=>{c().cancel&&e(S)});var T=C(x,2),D=e=>{var t=k(),n=q(t),r=e=>{var t=k();l(q(t),()=>c().action,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=Nt(),n=M(t,!0);s(t),z(e=>{w(t,c().actionButtonStyle??j()),o(t,1,e),d(n,c().action.label)},[()=>i(Y(H(Re)?.actionButton,c()?.classes?.actionButton))]),B(`click`,t,e=>{vt(c().action)&&(c().action?.onClick(e),!e.defaultPrevented&&We())}),u(e,t)},f=R(()=>vt(c().action));E(n,e=>{typeof c().action==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};E(T,e=>{c().action&&e(D)}),z((e,t)=>{o(h,1,e),o(g,1,t)},[()=>i(Y(H(Re)?.content,c()?.classes?.content)),()=>i(Y(H(Re)?.title,c()?.classes?.title))]),u(t,n)};return E(it,e=>{c().component?e(at):e(ot,-1)}),s($),G($,e=>T(X,e),()=>H(X)),z((e,t,r)=>{o($,1,e),K($,`aria-live`,c().important?`assertive`:`polite`),K($,`data-rich-colors`,c().richColors??se()),K($,`data-styled`,!(c().component||c().unstyled||ie())),K($,`data-mounted`,H(me)),K($,`data-promise`,t),K($,`data-swiped`,H(ve)),K($,`data-removed`,H(he)),K($,`data-visible`,H(Te)),K($,`data-y-position`,H(Ne)[0]),K($,`data-x-position`,H(Ne)[1]),K($,`data-index`,h()),K($,`data-front`,H(we)),K($,`data-swiping`,H(ge)),K($,`data-dismissible`,H(Ee)),K($,`data-type`,H(Q)),K($,`data-invert`,H(Ie)),K($,`data-swipe-out`,H(_e)),K($,`data-swipe-direction`,H(Z)),K($,`data-expanded`,r),tt=w($,`${n.style} ${c().style}`,tt,{"--index":h(),"--toasts-before":h(),"--z-index":Se.toasts.length-h(),"--offset":`${H(he)?H(J):H(Ue)}px`,"--initial-height":S()?`auto`:`${H(ye)}px`})},[()=>i(Y(n.class,H(De),H(Re)?.toast,c()?.classes?.toast,H(Re)?.[H(Q)],c()?.classes?.[H(Q)])),()=>!!c().promise,()=>!!(_()||S()&&H(me))]),B(`pointermove`,$,Ze),B(`pointerup`,$,Xe),B(`pointerdown`,$,Ye),U(`dragend`,$,Qe),u(t,$),m(et)}W([`pointermove`,`pointerup`,`pointerdown`,`click`]),F(It,{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 Lt=A(`<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 Rt(e){u(e,Lt())}F(Rt,{},[],[],{mode:`open`});var zt=A(`<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 Bt(e){u(e,zt())}F(Bt,{},[],[],{mode:`open`});var Vt=A(`<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 Ht(e){u(e,Vt())}F(Ht,{},[],[],{mode:`open`});var Ut=A(`<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 Wt(e){u(e,Ut())}F(Wt,{},[],[],{mode:`open`});var Gt=A(`<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 Kt(e){u(e,Gt())}F(Kt,{},[],[],{mode:`open`});var qt=3,Jt=`24px`,Yt=`16px`,Xt=4e3,Zt=356,Qt=14,$t=`dark`,en=`light`;function tn(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Yt:Jt;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 nn=O(`<ol></ol>`),rn=O(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),an={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
|
|
1
|
+
import{$ as e,A as t,B as n,Ct as r,D as i,Dt as a,E as o,Gt as s,H as c,I as l,J as u,K as d,Kt as f,L as p,Lt as m,M as h,Mt as g,N as _,Ot as v,Q as y,R as b,Rt as x,S,St as C,T as w,Tt as T,U as E,V as D,X as O,Y as k,Z as A,_ as j,_t as ee,bt as M,c as te,ct as ne,d as re,dt as ie,g as N,h as ae,ht as P,i as F,it as I,j as oe,k as L,kt as R,l as se,lt as ce,m as le,mt as z,nt as B,o as V,ot as H,p as ue,r as de,rt as U,s as fe,tt as W,u as G,v as K,x as pe,xt as q,y as me,yt as he,z as ge}from"./rEsbAd0y.js";import{n as _e}from"./CZzAbm1q.js";import{f as ve,n as J,t as ye}from"./De77gmQ_.js";import{i as be}from"./B08O5lEA.js";import{d as Y,f as xe,l as Se,n as X,o as Ce,r as Z,s as we,u as Te}from"./Bu_-InX1.js";import{A as Q,C as Ee,D as De,E as Oe,F as ke,I as Ae,L as je,M as Me,N as Ne,O as Pe,P as Fe,R as Ie,S as Le,T as Re,U as ze,W as Be,_ as Ve,a as He,b as Ue,c as We,d as Ge,f as Ke,g as qe,h as Je,i as Ye,j as Xe,k as Ze,l as Qe,m as $e,n as et,o as $,r as tt,s as nt,t as rt,u as it,v as at,w as ot,x as st,y as ct,z as lt}from"./DiQywzfZ.js";import{a as ut,i as dt,o as ft}from"./CqCdl07t.js";import{t as pt}from"./Bk4g5DYk.js";var mt=Array(12).fill(0),ht=O(`<div class="sonner-loading-bar"></div>`),gt=O(`<div><div class="sonner-spinner"></div></div>`);function _t(e,t){x(t,!0);let r=V(t,`visible`,7),a=V(t,`class`,7);var c={get visible(){return r()},set visible(e){r(e),g()},get class(){return a()},set class(e){a(e),g()}},l=gt(),d=M(l);return n(d,23,()=>mt,(e,t)=>`spinner-bar-${t}`,(e,t)=>{u(e,ht())}),s(d),s(l),z(e=>{o(l,1,e),K(l,`data-visible`,r())},[()=>i([`sonner-loading-wrapper`,a()].filter(Boolean).join(` `))]),u(e,l),m(c)}F(_t,{visible:{},class:{}},[],[],{mode:`open`});function vt(e){return e.label!==void 0}function yt(){let e=a(r(typeof document<`u`?document.hidden:!1));return P(()=>I(document,`visibilitychange`,()=>{T(e,document.hidden,!0)})),{get current(){return H(e)}}}var bt=4e3,xt=14,St=45,Ct=200,wt=.05,Tt={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Et(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Dt(e){return 1/(1.5+Math.abs(e)/20)}var Ot=O(`<div><!></div>`),kt=O(`<button data-close-button=""><!></button>`),At=O(`<div data-icon=""><!> <!></div>`),jt=O(`<div data-description=""><!></div>`),Mt=O(`<button data-button="" data-cancel=""> </button>`),Nt=O(`<button data-button=""> </button>`),Pt=O(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),Ft=O(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function It(t,n){x(n,!0);let r=e=>{var t=k(),n=q(t),r=e=>{var t=Ot();p(M(t),N),s(t),z(e=>{o(t,1,e),K(t,`data-visible`,H(Q)===`loading`)},[()=>i(Y(H(Re)?.loader,c()?.classes?.loader,`sonner-loader`))]),u(e,t)},a=e=>{{let t=R(()=>Y(H(Re)?.loader,c().classes?.loader)),n=R(()=>H(Q)===`loading`);_t(e,{get class(){return H(t)},get visible(){return H(n)}})}};E(n,e=>{N()?e(r):e(a,-1)}),u(e,t)},c=V(n,`toast`,7),h=V(n,`index`,7),_=V(n,`expanded`,7),v=V(n,`invert`,7),y=V(n,`position`,7),b=V(n,`visibleToasts`,7),S=V(n,`expandByDefault`,7),D=V(n,`closeButton`,7),O=V(n,`interacting`,7),A=V(n,`cancelButtonStyle`,7,``),j=V(n,`actionButtonStyle`,7,``),ee=V(n,`duration`,7),ne=V(n,`descriptionClass`,7,``),re=V(n,`classes`,7),ie=V(n,`unstyled`,7,!1),N=V(n,`loadingIcon`,7),ae=V(n,`successIcon`,7),F=V(n,`errorIcon`,7),I=V(n,`warningIcon`,7),oe=V(n,`closeIcon`,7),L=V(n,`infoIcon`,7),se=V(n,`defaultRichColors`,7,!1),le=V(n,`swipeDirections`,7),ue=V(n,`closeButtonAriaLabel`,7),W=V(n,`pauseWhenPageIsHidden`,7);fe(n,`$$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 pe={...Tt},me=a(!1),he=a(!1),ge=a(!1),_e=a(!1),ve=a(!1),J=a(0),ye=a(0),be=c().duration||ee()||bt,xe=a(null),X=a(void 0),Ce=a(null),Z=a(null),we=R(()=>h()===0),Te=R(()=>h()+1<=b()),Q=R(()=>c().type),Ee=R(()=>c().dismissible===void 0?c().dismissable!==!1:c().dismissible!==!1),De=R(()=>c().class||``),Oe=R(()=>c().descriptionClass||``),ke=R(()=>Se.heights.findIndex(e=>e.toastId===c().id)||0),Ae=R(()=>c().closeButton??D()),je=R(()=>c().duration??ee()??bt),Me=null,Ne=R(()=>y().split(`-`)),Pe=R(()=>Se.heights.reduce((e,t,n)=>n>=H(ke)?e:e+t.height,0)),Fe=yt(),Ie=R(()=>c().invert||v()),Le=R(()=>H(Q)===`loading`),Re=R(()=>({...pe,...re()})),ze=R(()=>c().title),Be=R(()=>c().description),Ve=a(0),He=a(0),Ue=R(()=>Math.round(H(ke)*xt+H(Pe)));P(()=>{H(ze),H(Be);let e;e=_()||S()?1:1-h()*wt;let t=ce(()=>H(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,T(ye,a,!0),Se.setHeight({toastId:c().id,height:a})});function We(){T(he,!0),T(J,H(Ue),!0),Se.removeHeight(c().id),setTimeout(()=>{Se.remove(c().id)},Ct)}let Ge,Ke=R(()=>c().promise&&H(Q)===`loading`||c().duration===1/0);function qe(){T(Ve,new Date().getTime(),!0),Ge=setTimeout(()=>{c().onAutoClose?.(c()),We()},be)}function Je(){if(H(He)<H(Ve)){let e=new Date().getTime()-H(Ve);be-=e}T(He,new Date().getTime(),!0)}P(()=>{c().updated&&(clearTimeout(Ge),be=H(je),qe())}),P(()=>(H(Ke)||(_()||O()||W()&&Fe.current?Je():qe()),()=>clearTimeout(Ge))),de(()=>{T(me,!0);let e=H(X)?.getBoundingClientRect().height;return T(ye,e,!0),Se.setHeight({toastId:c().id,height:e}),()=>{Se.removeHeight(c().id)}}),P(()=>{c().delete&&ce(()=>{We(),c().onDismiss?.(c())})});let Ye=e=>{if(H(Le))return;T(J,H(Ue),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(T(ge,!0),Me={x:e.clientX,y:e.clientY})},Xe=()=>{if(H(_e)||!H(Ee))return;Me=null;let e=Number(H(X)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(H(X)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(H(xe)?.getTime()??0),r=H(Ce)===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=St||i>.11){T(J,H(Ue),!0),c().onDismiss?.(c()),H(Ce)===`x`?T(Z,e>0?`right`:`left`,!0):T(Z,t>0?`down`:`up`,!0),We(),T(_e,!0);return}else H(X)?.style.setProperty(`--swipe-amount-x`,`0px`),H(X)?.style.setProperty(`--swipe-amount-y`,`0px`);T(ve,!1),T(ge,!1),T(Ce,null)},Ze=e=>{if(!Me||!H(Ee)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Me.y,n=e.clientX-Me.x,r=le()??Et(y());!H(Ce)&&(Math.abs(n)>1||Math.abs(t)>1)&&T(Ce,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(H(Ce)===`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*Dt(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(H(Ce)===`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*Dt(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&T(ve,!0),H(X)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),H(X)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},Qe=()=>{T(ge,!1),T(Ce,null),Me=null},$e=R(()=>c().icon?c().icon:H(Q)===`success`?ae():H(Q)===`error`?F():H(Q)===`warning`?I():H(Q)===`info`?L():H(Q)===`loading`?N():null);var et={get toast(){return c()},set toast(e){c(e),g()},get index(){return h()},set index(e){h(e),g()},get expanded(){return _()},set expanded(e){_(e),g()},get invert(){return v()},set invert(e){v(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 S()},set expandByDefault(e){S(e),g()},get closeButton(){return D()},set closeButton(e){D(e),g()},get interacting(){return O()},set interacting(e){O(e),g()},get cancelButtonStyle(){return A()},set cancelButtonStyle(e=``){A(e),g()},get actionButtonStyle(){return j()},set actionButtonStyle(e=``){j(e),g()},get duration(){return ee()},set duration(e){ee(e),g()},get descriptionClass(){return ne()},set descriptionClass(e=``){ne(e),g()},get classes(){return re()},set classes(e){re(e),g()},get unstyled(){return ie()},set unstyled(e=!1){ie(e),g()},get loadingIcon(){return N()},set loadingIcon(e){N(e),g()},get successIcon(){return ae()},set successIcon(e){ae(e),g()},get errorIcon(){return F()},set errorIcon(e){F(e),g()},get warningIcon(){return I()},set warningIcon(e){I(e),g()},get closeIcon(){return oe()},set closeIcon(e){oe(e),g()},get infoIcon(){return L()},set infoIcon(e){L(e),g()},get defaultRichColors(){return se()},set defaultRichColors(e=!1){se(e),g()},get swipeDirections(){return le()},set swipeDirections(e){le(e),g()},get closeButtonAriaLabel(){return ue()},set closeButtonAriaLabel(e){ue(e),g()},get pauseWhenPageIsHidden(){return W()},set pauseWhenPageIsHidden(e){W(e),g()}},$=Ft();K($,`tabindex`,0);let tt;var nt=M($),rt=e=>{var t=kt();p(M(t),()=>oe()??f),s(t),z(e=>{K(t,`aria-label`,ue()),K(t,`data-disabled`,H(Le)),o(t,1,e)},[()=>i(Y(H(Re)?.closeButton,c()?.classes?.closeButton))]),B(`click`,t,()=>{H(Le)||!H(Ee)||(We(),c().onDismiss?.(c()))}),u(e,t)};E(nt,e=>{H(Ae)&&!c().component&&H(Q)!==`loading`&&oe()!==null&&e(rt)});var it=C(nt,2),at=e=>{let t=R(()=>c().component);var n=k();l(q(n),()=>H(t),(e,t)=>{t(e,te(()=>c().componentProps,{closeToast:We}))}),u(e,n)},ot=t=>{var n=Pt(),a=q(n),m=e=>{var t=At(),n=M(t),a=e=>{var t=k(),n=q(t),i=e=>{var t=k();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{r(e)};E(n,e=>{c().icon?e(i):e(a,-1)}),u(e,t)};E(n,e=>{(c().promise||H(Q)===`loading`)&&e(a)});var d=C(n,2),m=e=>{var t=k(),n=q(t),r=e=>{var t=k();l(q(t),()=>c().icon,(e,t)=>{t(e,{})}),u(e,t)},i=e=>{var t=k();p(q(t),()=>ae()??f),u(e,t)},a=e=>{var t=k();p(q(t),()=>F()??f),u(e,t)},o=e=>{var t=k();p(q(t),()=>I()??f),u(e,t)},s=e=>{var t=k();p(q(t),()=>L()??f),u(e,t)};E(n,e=>{c().icon?e(r):H(Q)===`success`?e(i,1):H(Q)===`error`?e(a,2):H(Q)===`warning`?e(o,3):H(Q)===`info`&&e(s,4)}),u(e,t)};E(d,e=>{c().type!==`loading`&&e(m)}),s(t),z(e=>o(t,1,e),[()=>i(Y(H(Re)?.icon,c()?.classes?.icon))]),u(e,t)};E(a,e=>{(H(Q)||c().icon||c().promise)&&c().icon!==null&&(H($e)!==null||c().icon)&&e(m)});var h=C(a,2),g=M(h),_=M(g),v=t=>{var n=k(),r=q(n),i=e=>{let t=R(()=>c().title);var n=k();l(q(n),()=>H(t),(e,t)=>{t(e,te(()=>c().componentProps))}),u(e,n)},a=t=>{var n=e();z(()=>d(n,c().title)),u(t,n)};E(r,e=>{typeof c().title==`string`?e(a,-1):e(i)}),u(t,n)};E(_,e=>{c().title&&e(v)}),s(g);var y=C(g,2),b=t=>{var n=jt(),r=M(n),a=e=>{let t=R(()=>c().description);var n=k();l(q(n),()=>H(t),(e,t)=>{t(e,te(()=>c().componentProps))}),u(e,n)},f=t=>{var n=e();z(()=>d(n,c().description)),u(t,n)};E(r,e=>{typeof c().description==`string`?e(f,-1):e(a)}),s(n),z(e=>o(n,1,e),[()=>i(Y(ne(),H(Oe),H(Re)?.description,c().classes?.description))]),u(t,n)};E(y,e=>{c().description&&e(b)}),s(h);var x=C(h,2),S=e=>{var t=k(),n=q(t),r=e=>{var t=k();l(q(t),()=>c().cancel,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=Mt(),n=M(t,!0);s(t),z(e=>{w(t,c().cancelButtonStyle??A()),o(t,1,e),d(n,c().cancel.label)},[()=>i(Y(H(Re)?.cancelButton,c()?.classes?.cancelButton))]),B(`click`,t,e=>{vt(c().cancel)&&H(Ee)&&(c().cancel?.onClick?.(e),We())}),u(e,t)},f=R(()=>vt(c().cancel));E(n,e=>{typeof c().cancel==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};E(x,e=>{c().cancel&&e(S)});var T=C(x,2),D=e=>{var t=k(),n=q(t),r=e=>{var t=k();l(q(t),()=>c().action,(e,t)=>{t(e,{})}),u(e,t)},a=e=>{var t=Nt(),n=M(t,!0);s(t),z(e=>{w(t,c().actionButtonStyle??j()),o(t,1,e),d(n,c().action.label)},[()=>i(Y(H(Re)?.actionButton,c()?.classes?.actionButton))]),B(`click`,t,e=>{vt(c().action)&&(c().action?.onClick(e),!e.defaultPrevented&&We())}),u(e,t)},f=R(()=>vt(c().action));E(n,e=>{typeof c().action==`function`?e(r):H(f)&&e(a,1)}),u(e,t)};E(T,e=>{c().action&&e(D)}),z((e,t)=>{o(h,1,e),o(g,1,t)},[()=>i(Y(H(Re)?.content,c()?.classes?.content)),()=>i(Y(H(Re)?.title,c()?.classes?.title))]),u(t,n)};return E(it,e=>{c().component?e(at):e(ot,-1)}),s($),G($,e=>T(X,e),()=>H(X)),z((e,t,r)=>{o($,1,e),K($,`aria-live`,c().important?`assertive`:`polite`),K($,`data-rich-colors`,c().richColors??se()),K($,`data-styled`,!(c().component||c().unstyled||ie())),K($,`data-mounted`,H(me)),K($,`data-promise`,t),K($,`data-swiped`,H(ve)),K($,`data-removed`,H(he)),K($,`data-visible`,H(Te)),K($,`data-y-position`,H(Ne)[0]),K($,`data-x-position`,H(Ne)[1]),K($,`data-index`,h()),K($,`data-front`,H(we)),K($,`data-swiping`,H(ge)),K($,`data-dismissible`,H(Ee)),K($,`data-type`,H(Q)),K($,`data-invert`,H(Ie)),K($,`data-swipe-out`,H(_e)),K($,`data-swipe-direction`,H(Z)),K($,`data-expanded`,r),tt=w($,`${n.style} ${c().style}`,tt,{"--index":h(),"--toasts-before":h(),"--z-index":Se.toasts.length-h(),"--offset":`${H(he)?H(J):H(Ue)}px`,"--initial-height":S()?`auto`:`${H(ye)}px`})},[()=>i(Y(n.class,H(De),H(Re)?.toast,c()?.classes?.toast,H(Re)?.[H(Q)],c()?.classes?.[H(Q)])),()=>!!c().promise,()=>!!(_()||S()&&H(me))]),B(`pointermove`,$,Ze),B(`pointerup`,$,Xe),B(`pointerdown`,$,Ye),U(`dragend`,$,Qe),u(t,$),m(et)}W([`pointermove`,`pointerup`,`pointerdown`,`click`]),F(It,{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 Lt=A(`<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 Rt(e){u(e,Lt())}F(Rt,{},[],[],{mode:`open`});var zt=A(`<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 Bt(e){u(e,zt())}F(Bt,{},[],[],{mode:`open`});var Vt=A(`<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 Ht(e){u(e,Vt())}F(Ht,{},[],[],{mode:`open`});var Ut=A(`<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 Wt(e){u(e,Ut())}F(Wt,{},[],[],{mode:`open`});var Gt=A(`<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 Kt(e){u(e,Gt())}F(Kt,{},[],[],{mode:`open`});var qt=3,Jt=`24px`,Yt=`16px`,Xt=4e3,Zt=356,Qt=14,$t=`dark`,en=`light`;function tn(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Yt:Jt;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 nn=O(`<ol></ol>`),rn=O(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),an={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.
|
|
2
|
-
import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/rEsbAd0y.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CIk9Wfga.js","../chunks/CibALFW0.js","../chunks/DWCMHgRQ.js","../chunks/rEsbAd0y.js","../chunks/CZzAbm1q.js","../chunks/DKyUMEyV.js","../chunks/CFKVnMbq.js","../chunks/CIPNu9Fk.js","../chunks/tFLMI64R.js","../nodes/1.OJw9HGOA.js","../chunks/DH-xz8L7.js","../chunks/L40L4-j6.js","../chunks/CPPDi2Fg.js","../chunks/Bo0U8J3e.js","../nodes/2.BWOd_5YZ.js","../chunks/DjVmpym-.js","../chunks/DiQywzfZ.js","../chunks/De77gmQ_.js","../chunks/B08O5lEA.js","../chunks/Bu_-InX1.js","../chunks/CEu7mztv.js","../chunks/CqCdl07t.js","../chunks/Bc0ERhDD.js","../nodes/3.Bfk8eHXh.js","../chunks/nsvkqtCy.js","../chunks/Bk4g5DYk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/rEsbAd0y.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.CIk9Wfga.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.OJw9HGOA.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.BWOd_5YZ.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,20,4,21,22,11,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.Bfk8eHXh.js`),__vite__mapDeps([23,10,3,1,2,16,15,17,5,18,19,20,4,21,22,11,24,25,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/rEsbAd0y.js";import{n as e,s as t}from"../chunks/DH-xz8L7.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/rEsbAd0y.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CIPNu9Fk.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/rEsbAd0y.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CIPNu9Fk.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/DWCMHgRQ.js";import"../chunks/CZzAbm1q.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
|
|
2
2
|
* @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
|
|
3
3
|
*/
|
|
4
4
|
const CHAT_CONFIG_OVERRIDE = {
|
|
@@ -228,4 +228,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
|
|
|
228
228
|
</g>
|
|
229
229
|
</svg>
|
|
230
230
|
</div>
|
|
231
|
-
`,x={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"
|
|
231
|
+
`,x={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"scopeAvailableSlugs":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"flyout-style":{type:`string`,value:`width: 400px; height: 600px;`,description:`This is the style attribute of the flyout container. With this the flyout size and position can be customized.`},"flyout-class":{type:`string`,value:`custom-flyout-class`,description:`This is the class attribute of the flyout container. With this the flyout size and position can be customized.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"loader-background":{type:`string`,value:`linear-gradient(0deg, #1B181E 0%, #2A2440 90%)`,description:`This is the background color of the loading spinner.`},"loader-color":{type:`string`,value:`#9C92EE`,description:`This is the color of the loading spinner.`},"custom-loader":{type:`string`,value:b,description:`This is an example how you can provide a custom loading spinner when the chat is loading.`},onclosechat:{type:`string`,value:`document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));`,description:`This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners.`},cdn:{type:`boolean`,value:!0,description:`When set, a fixed CDN URL will be used. Instead of providing the code from the backend.`},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:y,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},cache:{type:`boolean`,value:!0,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical questions, so tweaking options here does not regenerate an answer every time. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"chat-cache":{type:`boolean`,value:!1,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical first questions, so you do not wait for a fresh answer on every reload. Only the first question of a conversation is cached. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"search-summary-question":{type:`string`,required:!0,value:f,description:"The question the search summary answers. In a real integration this is the visitor's search term, so the embed code uses a placeholder. The URL `q` param overrides this for quick testing."},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:d,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`}},S=async e=>{let t=await v(e),n=x;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},C=e({load:()=>D,prerender:()=>!0,ssr:()=>!1}),w=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},T,E=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},D=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await S(t),i=w(n,E(e.searchParams)),a=!!(T&&T[`api-org`].value!==i[`api-org`].value),o=!!(T&&T[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!T||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return T=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function O(e,s){a(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),i()}},f=o();return n(l(f),u),t(e,f),r(d)}s(O,{children:{}},[],[],{mode:`open`});export{O as component,C as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/rEsbAd0y.js";import"../chunks/
|
|
1
|
+
import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/rEsbAd0y.js";import"../chunks/DH-xz8L7.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/CPPDi2Fg.js";import{t as f}from"../chunks/L40L4-j6.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,K as l,Lt as u,Mt as d,N as f,Rt as p,St as m,T as h,Tt as g,U as _,V as v,Wt as y,X as b,Y as x,b as ee,bt as S,c as te,dt as C,ht as w,i as T,j as E,k as D,kt as O,lt as k,mt as A,o as j,ot as M,qt as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/rEsbAd0y.js";import{t as z}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/D6iQ8Gnz.js","../chunks/DiQywzfZ.js","../chunks/DjVmpym-.js","../chunks/De77gmQ_.js","../chunks/rEsbAd0y.js","../chunks/CibALFW0.js","../chunks/DKyUMEyV.js","../chunks/B08O5lEA.js","../chunks/Bu_-InX1.js","../chunks/CEu7mztv.js","../chunks/CZzAbm1q.js","../chunks/CqCdl07t.js","../chunks/nsvkqtCy.js","../chunks/Bk4g5DYk.js","../chunks/CFKVnMbq.js","../chunks/CPPDi2Fg.js","../chunks/Bo0U8J3e.js","../chunks/BiTRwaVm.js","../chunks/BcilqXKJ.js","../chunks/-qY1__IK.js","../chunks/tFLMI64R.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,K as l,Lt as u,Mt as d,N as f,Rt as p,St as m,T as h,Tt as g,U as _,V as v,Wt as y,X as b,Y as x,b as ee,bt as S,c as te,dt as C,ht as w,i as T,j as E,k as D,kt as O,lt as k,mt as A,o as j,ot as M,qt as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/rEsbAd0y.js";import{t as z}from"../chunks/DH-xz8L7.js";import"../chunks/Bo0U8J3e.js";import{t as B}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{c as V,i as H,l as U,o as W}from"../chunks/DWCMHgRQ.js";import"../chunks/CZzAbm1q.js";import"../chunks/CEu7mztv.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import{t as ie}from"../chunks/L40L4-j6.js";import{t as G}from"../chunks/Bc0ERhDD.js";import{n as K,t as q}from"../chunks/De77gmQ_.js";import"../chunks/B08O5lEA.js";import{n as J,r as Y}from"../chunks/Bu_-InX1.js";import{B as ae,H as oe,U as X,V as se,W as ce,_ as le,a as ue,c as de,f as fe,i as pe,l as me,n as he,o as ge,p as _e,r as ve,s as ye,t as be}from"../chunks/DiQywzfZ.js";var Z=b(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),xe={hash:`svelte-1inuijp`,code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
|
|
3
3
|
|
|
4
4
|
@media (min-width: 768px) {display:block;
|
|
5
5
|
}}`};function Se(t,n){p(n,!1),e(t,xe);let r=j(n,`name`,12),i=j(n,`key`,12),a=j(n,`value`,12);var s={get name(){return r()},set name(e){r(e),d()},get key(){return i()},set key(e){i(e),d()},get value(){return a()},set value(e){a(e),d()}},f=Z(),g=S(f),_=m(g,2),v=S(_,!0);return o(_),o(f),A(()=>{I(f,`title`,`Color ${i()}: ${a()}`),h(g,`background-color: var(--color-${r()??``}-${i()??``});`),l(v,i())}),c(t,f),u(s)}T(Se,{name:{},key:{},value:{}},[],[],{mode:`open`});var Ce=b(`<ol><li class="toast" data-type="error"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Error notification</div></div></li> <li class="toast" data-type="warning"><div data-icon=""><svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg></div> <div data-content=""><div data-title="">Warning notification</div></div></li> <li class="toast" data-type="success"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon="" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Success notification</div></div></li> <li class="toast" data-type="info"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Info notification</div></div></li></ol>`);function we(e){c(e,Ce())}T(we,{},[],[],{mode:`open`});var Te=b(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <p class="text-sm svelte-4x0tmq">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
|
|
@@ -47,4 +47,4 @@ CH-4001 Basel`,phone:`+41 61 200 20 20`,email:`rathaus@bs.ch`,coords:{lat:47.559
|
|
|
47
47
|
|
|
48
48
|
/* Keep widget hidden until the component marks itself ready (avoids barebone/unthemed flash) */liipgpt-search-summary .search-summary:not(.search-summary--ready) {opacity:0;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
|
|
49
49
|
#chat-wrapper.svelte-1uha8ag:has(#preview-form:where(.svelte-1uha8ag)) {
|
|
50
|
-
/* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){p(l,!0),e(n,We);let d=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=O(()=>l.data);w(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let h=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),b=async e=>{e===`build`&&(await B(()=>import(h(`chat`)),[],import.meta.url),await B(()=>import(h(`button`)),[],import.meta.url),await B(()=>import(h(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/
|
|
50
|
+
/* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(n,l){p(l,!0),e(n,We);let d=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=O(()=>l.data);w(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let h=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),b=async e=>{e===`build`&&(await B(()=>import(h(`chat`)),[],import.meta.url),await B(()=>import(h(`button`)),[],import.meta.url),await B(()=>import(h(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/D6iQ8Gnz.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),await B(()=>import(`../chunks/BcilqXKJ.js`),__vite__mapDeps([18,3,4,5,6,7,10,13,8,2,9,14,16,17]),import.meta.url),await B(()=>import(`../chunks/-qY1__IK.js`),__vite__mapDeps([19,2,3,4,5,6,7,11,14,16,20]),import.meta.url)),e===`server`&&(B(()=>import(W(l.data.options,`chat`)),[],import.meta.url),B(()=>import(W(l.data.options,`button`)),[],import.meta.url),B(()=>import(W(l.data.options,`search-summary`)),[],import.meta.url))},ee=O(()=>l.data.options?.[`preview-mode`]?.value??`server`);w(()=>{b(M(ee))});let T=`./sidebar${ie.url.search}`,D=i(void 0),k=i(void 0),j=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};w(()=>{M(D)&&j(M(D),M(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),w(()=>{M(k)&&M(f).embedTab===`chat`?j(M(k),M(f).options.onclosechat.value||``):M(k)&&M(k).replaceChildren()});let N=O(()=>M(f)&&M(f).options[`preview-components`].value),ne=O(()=>M(f).embedTab===`chat`),K=O(()=>M(f).embedTab===`search-summary`);w(()=>{if(!M(K)){U();return}let e=M(f).options[`use-chat-config`]?.value?``:M(f).options[`host-css`]?.value??``;e?V(e):U()});var q=Ue();E(`1uha8ag`,e=>{var t=x(),n=R(t),r=e=>{C(()=>{L.title=`LiipGPT Configurator | Components`})},i=e=>{C(()=>{L.title=`LiipGPT Configurator`})};_(n,e=>{M(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var J=S(q);let Y;var ae=S(J),oe=e=>{var t=ze();A(()=>I(t,`src`,T)),c(e,t)};_(ae,e=>{M(f).options[`hide-sidebar`].value||e(oe)}),o(J);var X=m(J,2),se=e=>{G(e,{mode:`show`})};_(X,e=>{M(f).options[`hide-sidebar`].value&&e(se)}),s(m(X,2),()=>M(f),e=>{var n=x(),r=R(n),i=e=>{var n=x();t(R(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,te(()=>d))}),c(e,n)},s=e=>{var t=He();let n;var r=S(t),i=e=>{var t=Be(),n=m(S(t),6),r=S(n),i=m(S(r),6),a=m(S(i),2),s=m(S(a),14),l=m(S(s),2),u=S(l);u.value=u.__value=``;var d=m(u);d.value=d.__value=`ch`;var f=m(d);f.value=f.__value=`de`;var p=m(f);p.value=p.__value=`at`,o(l),o(s);var h=m(s,12),g=m(S(h),2),_=S(g);_.value=_.__value=``;var v=m(_);v.value=v.__value=`a`;var b=m(v);b.value=b.__value=`b`;var x=m(b);x.value=x.__value=`c`,o(g),o(h),y(2),o(a),o(i),y(16),o(r),y(2),o(n),o(t),c(e,t)};_(r,e=>{M(ne)&&M(f).options.flyout.value&&M(f).options[`preview-form`].value&&e(i)});var s=m(r,2),l=e=>{var t=x(),n=R(t),r=e=>{var t=Ve();A(()=>I(t,`src`,M(f).options[`preview-background`].value)),c(e,t)},i=O(()=>v(M(f).options[`preview-background`].value));_(n,e=>{M(i)&&e(r)}),c(e,t)};_(s,e=>{M(ne)&&M(f).options.flyout.value&&M(f).options[`preview-background`].value&&e(l)});var u=m(s,2);F(u,e=>g(D,e),()=>M(D));var d=m(u,2);re(d,()=>H(M(f).options,M(f).embedTab,!1,!0)),F(m(d,2),e=>g(k,e),()=>M(k)),o(t),A(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":M(f).options.flyout.value&&M(f).options[`preview-background`].value&&v(M(f).options[`preview-background`].value),"search-summary-preview":M(K)})]),c(e,t)};_(r,e=>{M(N)?e(i):e(s,-1)}),c(e,n)}),o(q),A(()=>{a(q,1,r([{"components-preview":M(N)}]),`svelte-1uha8ag`),Y=a(J,1,`sidebar-slot svelte-1uha8ag`,null,Y,{"sidebar-slot--hidden":M(f).options[`hide-sidebar`].value})}),c(n,q),u()}T($,{},[],[],{mode:`open`});export{$ as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/rEsbAd0y.js";import"../chunks/
|
|
1
|
+
import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/rEsbAd0y.js";import"../chunks/DH-xz8L7.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/CIPNu9Fk.js";import{a as se,i as ce}from"../chunks/DWCMHgRQ.js";import"../chunks/CZzAbm1q.js";import"../chunks/CEu7mztv.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import"../chunks/L40L4-j6.js";import{n as le,r as ue,t as de}from"../chunks/Bc0ERhDD.js";import"../chunks/De77gmQ_.js";import"../chunks/B08O5lEA.js";import"../chunks/Bu_-InX1.js";import"../chunks/nsvkqtCy.js";import"../chunks/DiQywzfZ.js";import"../chunks/Bk4g5DYk.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case I:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=M(e[o]);r?r.nodes.push(n):t.push(n);break}case ne:case re:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==ne&&a!==re&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=P(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case ue:case ie:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===I)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=N(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case te:{let e=n.pop();if(i.length>0){let t=M(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(M(i)),t}var me=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(me||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function z(e,t){typeof t==`function`?he(e,t):he(e,t.enter,t.exit)}function he(e,t=()=>R.Continue,n=()=>R.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,o>=0){let n=a[o],s=t(n,i)??R.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??R.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ge(e){let t=[];return z(L(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return z(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),R.Skip}),t}var _e=64;function B(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function V(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function H(e,t=[]){return e.charCodeAt(0)===_e?w(e,t):B(e,t)}function U(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function ve(e){return{kind:`comment`,value:e}}function ye(e,t){return{kind:`context`,context:e,nodes:t}}function W(e){return{kind:`at-root`,nodes:e}}function be(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function xe(e){return{depth:e.depth,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,`context`,{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,`parent`,{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Se(e,t,n=3){let r=[],i=new Set,a=new j(()=>new Set),o=new j(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new j(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`))if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ge(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Ee(e.value))c.add(t);n&2&&e.value.includes(`color-mix(`)&&!m.supportsColorMix&&!m.keyframes&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);let n={},r=new Set;for(let e of t){if(e.kind!==`declaration`)continue;let t=`${e.property}:${e.value}:${e.important}`;n[t]??=[],n[t].push(e)}for(let e in n)for(let t=0;t<n[e].length-1;++t)r.add(n[e][t]);if(r.size>0&&(t=t.filter(e=>!r.has(e))),t.length===0)return;e.selector===`&`?p.push(...t):p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=U(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Te(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Ee(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=we(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(!0);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=L(r.value),a=!1;if(z(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(z(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?L(o)[0]:null}while(i);return R.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?R.Replace(n):void 0}else if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:F(i)},s=H(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=H(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=H(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>!(e.kind===`comment`||e.kind===`at-rule`&&(e.name===`@charset`||e.name===`@import`))),n=V(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=H(`@layer properties`,[V(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return p}function Ce(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
|
|
4
4
|
`,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1786702104764"}
|
package/configurator/index.html
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.CLLlx-n-.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/DH-xz8L7.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/rEsbAd0y.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
11
|
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
-
<link href="./_app/immutable/entry/app.
|
|
12
|
+
<link href="./_app/immutable/entry/app.BlJSbr9t.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_92x47s = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.CLLlx-n-.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.BlJSbr9t.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.CLLlx-n-.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/DH-xz8L7.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/rEsbAd0y.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
11
|
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
-
<link href="./_app/immutable/entry/app.
|
|
12
|
+
<link href="./_app/immutable/entry/app.BlJSbr9t.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_92x47s = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.CLLlx-n-.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.BlJSbr9t.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Dt as e,Nt as t,Tt as n,ct as r,ot as i,r as a,st as o,t as s}from"./rEsbAd0y.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_1yru0b6?.base??`/configurator`,de=globalThis.__sveltekit_1yru0b6?.assets??x??``,fe=`1786381130043`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ge=location.origin;function _e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ve={...w,"":w.hover};function ye(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function be(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ye(e)}}function xe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ge&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=ye(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ve[r??`off`],preload_data:ve[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let n=t(e),r=!0;function i(){r=!0,n.update(e=>e)}function a(e){r=!1,n.set(e)}function o(e){let t;return n.subscribe(n=>{(t===void 0||r&&n!==t)&&e(t=n)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:n}=t(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:n,check:r}}function O(e,t,n){return e.origin!==ge||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Te(e){}var Ee=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ee,`entries`]);var De=new Set([...Ee]);new Set([...De,`actions`,`entries`]);function Oe(e){return e.filter(e=>e!=null)}function ke(e){return e instanceof c||e instanceof u?e.status:500}function Ae(e){return e instanceof u?e.text:`Internal Error`}var k,A,j,je=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Me=`a:`;je?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Me)},A={current:null},j={current:!1}):(k=new class{#e=e({});get data(){return i(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return i(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return i(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return i(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return i(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return i(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return i(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(Me));get url(){return i(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},j=new class{#e=e(!1);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>j.current=!0);function Ne(e){Object.assign(k,e)}var Pe={spanContext(){return Fe},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Fe={traceId:``,spanId:``,traceFlags:0},{onMount:Ie,tick:Le}=s,Re=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:t(null),updated:we()};function ze(e){N[e]=T()}function Be(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ve(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}function He(){}var Ue,We,L,R,Ge,z,B=[],V=[],H=null;function Ke(){H?.fork?.then(e=>e?.discard()),H=null}var U=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,K=!1,Xe=!0,q=!1,J=!1,Ze=!1,Qe=!1,$e,Y,X,Z,et=new Set,tt=new Map;async function nt(e,t,n){globalThis.__sveltekit_1yru0b6?.data&&globalThis.__sveltekit_1yru0b6.data,document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ue=ce(e),R=document.documentElement,Ge=t,We=e.nodes[0],L=e.nodes[1],We(),L(),Y=history.state?.[S],X=history.state?.[C],Y||(Y=X=Date.now(),history.replaceState({...history.state,[S]:Y,[C]:X},``));let r=N[Y];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await jt(Ge,n)):(await Q({type:`enter`,url:_e(z.hash?Lt(new URL(location.href)):location.href),replace_state:!0}),i()),At()}function rt(){B.length=0,Qe=!1}function it(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function at(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ot(){ze(Y),ue(me,N),it(X),ue(pe,P)}async function st(e,t,n,i){let a;t.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{t.invalidateAll&&(Qe=!0,a=[...tt.keys()]),t.invalidate&&t.invalidate.forEach(kt)}}),t.invalidateAll&&r().then(r).then(()=>{tt.forEach(({resource:e},t)=>{a?.includes(t)&&e.refresh?.()})})}async function ct(e){if(e.id!==H?.id){Ke();let t={};et.add(t),H={id:e.id,token:t,promise:vt({...e,preload:t}).then(e=>(et.delete(t),e.type===`loaded`&&e.state.error&&Ke(),e)),fork:null}}return H.promise}async function lt(e){let t=(await St(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ut(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};G={...e.state,nav:r};let i=document.querySelector(`style[data-sveltekit]`);if(i&&i.remove(),Object.assign(k,e.props.page),$e=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),at(X),n){let e={from:null,to:{...r,scroll:N[Y]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}K=!0}async function dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:It(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Pe,current:Pe},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=pt(t,r,n);return s&&e(i.href),a},setHeaders:()=>{},depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:K?te(r,i.href,t):y(r,t)}}function mt(e,t,n,r,i,a){if(Qe)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function ht(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function gt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function _t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:It(k),constructors:[]}}}async function vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return et.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(()=>{})),d.forEach(e=>e?.[1]().catch(()=>{}));let f=G.url?e!==wt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=gt(G.url,n),h=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!mt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,ft({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:ht(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(()=>{});let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(et.has(a))return _t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),u;if((void 0)?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Ve(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await yt(e,_,o);return d?dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Et(n,{id:i.id},u,s)}else _.push(void 0);return dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function bt({status:e,error:t,url:n,route:r}){let i={};try{return dt({url:n,params:i,branch:[await ft({loader:We,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:ht(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return st(new URL(e.location,location.href),{},0);throw e}}async function xt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>pt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function St(e,t){if(e&&!O(e,x,z.hash)){let n=await xt(e);if(!n)return;let r=Ct(n);for(let n of Ue){let i=n.exec(r);if(i)return{id:wt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Ct(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function wt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Tt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Ft(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return q||qe.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=He,block:p=He,event:m}){let h=Z;Z=d;let g=await St(t,!1),_=e===`enter`?Ft(G,g,t,e):Tt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Z===d&&(Z=h);return}let ee=Y,v=X;f(),q=!0,K&&_.navigation.type!==`enter`&&F.navigating.set(A.current=_.navigation);let y=g&&await vt(g);if(!y){if(O(t,x,z.hash))return await I(t,s);y=await Et(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}y=await bt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(t,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=s?0:1,n={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Be(Y,X)}let te=g&&H?.id===g.id?H.fork:null;H=null,y.props.page.state=c;let b;if(K){let e=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t);let r=te&&await te;r?b=r.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=o?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await r(),await r();let re=null;if(Xe){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(Rt(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!i&&!ie&&Pt(t,!re),Xe=!0,y.props.page&&(M&&Object.assign(y.props.page,M),Object.assign(k,y.props.page)),q=!1,e===`popstate`&&at(X),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),F.navigating.set(A.current=null)}async function Et(e,t,n,r,i){return e.origin===ge&&e.pathname===location.pathname&&!Ye?await bt({status:r,error:n,url:e,route:t}):await I(e,i)}function Dt(){let e,t={element:void 0,href:void 0},n;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,w.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,r),R.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(lt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=be(e,R),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=xe(i,x,z.hash);if(s||c)return;let l=D(i),u=o&&wt(G.url)===wt(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=w.tap;let e=await St(o,!1);if(!e)return;ct(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,lt(o))}function o(){i.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:r}=xe(e,x,z.hash);if(n||r)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&i.observe(e),a.preload_code===w.eager&<(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
|
-
import"../chunks/rEsbAd0y.js";import{n as e,s as t}from"../chunks/BDm2oSnh.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
|