@botfabrik/engine-webclient 4.104.27 → 4.104.28

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.
@@ -13,7 +13,7 @@
13
13
  <meta name="theme-color" content="#000000" />
14
14
  <meta name="google" content="notranslate" />
15
15
  <title>Bubble Chat Client</title>
16
- <script type="module" crossorigin src="./assets/index-Cg1x9cJp.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-DphxIz_o.js"></script>
17
17
  <link rel="stylesheet" crossorigin href="./assets/index-DT3EByXa.css">
18
18
  </head>
19
19
 
@@ -1,5 +1,5 @@
1
- (function(){"use strict";const He=!1;var pn=Array.isArray,gn=Array.prototype.indexOf,wn=Array.from,mn=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,yn=Object.prototype,En=Array.prototype,wt=Object.getPrototypeOf,mt=Object.isExtensible;function kn(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const m=2,Ye=4,Ge=8,xn=1<<24,H=16,Y=32,$=64,Te=128,M=512,y=1024,C=2048,U=4096,z=8192,G=16384,Ke=32768,le=65536,yt=1<<17,Ve=1<<18,fe=1<<19,Sn=1<<20,ee=32768,Ze=1<<21,Je=1<<22,Q=1<<23,Ce=Symbol("$state"),Tn=Symbol("legacy props"),Cn=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function On(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function An(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function In(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ln(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Mn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Un(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const zn=1,jn=4,qn=8,Bn=16,Wn=1,Hn=2,E=Symbol(),Yn="http://www.w3.org/1999/xhtml";function Gn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Et(e){return e===this.v}function Kn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vn(e){return!Kn(e,this.v)}let Zn=!1,R=null;function ce(e){R=e}function Oe(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ae(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)Ft(r)}return t.i=!0,R=t.p,{}}function kt(){return!0}let de=[];function Jn(){var e=de;de=[],kn(e)}function Qe(e){if(de.length===0){var t=de;queueMicrotask(()=>{t===de&&Jn()})}de.push(e)}function xt(e){var t=_;if(t===null)return v.f|=Q,e;if((t.f&Ke)===0){if((t.f&Te)===0)throw e;t.b.error(e)}else he(e,t)}function he(e,t){for(;t!==null;){if((t.f&Te)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Re=new Set;let g=null,L=null,j=[],Xe=null,$e=!1;class q{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#n=0;#l=null;#s=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){j=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects)):(g=null,St(n.render_effects),St(n.effects),this.#l?.resolve()),L=null}#o(t,n){t.f^=y;for(var r=t.first;r!==null;){var i=r.f,s=(i&(Y|$))!==0,o=s&&(i&y)!==0,l=o||(i&z)!==0||this.skipped_effects.has(r);if((r.f&Te)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){s?r.f^=y:(i&Ye)!==0?n.effects.push(r):ke(r)&&((r.f&H)!==0&&this.#s.add(r),xe(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),n=n.parent),r=f.next,f=f.parent}}#a(t){for(const n of t)(n.f&C)!==0?this.#s.add(n):(n.f&U)!==0&&this.#i.add(n),this.#f(n.deps),k(n,y)}#f(t){if(t!==null)for(const n of t)(n.f&m)===0||(n.f&ee)===0||(n.f^=ee,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,t.v),L?.set(t,t.v))}activate(){g=this,this.apply()}deactivate(){g===this&&(g=null,L=null)}flush(){if(this.activate(),j.length>0){if(Qn(),g!==null&&g!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#u(){if(this.#n===0){for(const t of this.#e)t();this.#e.clear()}this.#r===0&&this.#c()}#c(){if(Re.size>1){this.previous.clear();var t=L,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const s of Re){if(s===this){n=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(n&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=j;j=[];const a=new Set,f=new Map;for(const c of o)Tt(c,l,a,f);if(j.length>0){g=s,s.apply();for(const c of j)s.#o(c,r);s.deactivate()}j=i}}g=null,L=t}this.committed=!0,Re.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)this.#i.delete(t),k(t,C),te(t);for(const t of this.#i)k(t,U),te(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#l??=bt()).promise}static ensure(){if(g===null){const t=g=new q;Re.add(g),q.enqueue(()=>{g===t&&t.flush()})}return g}static enqueue(t){Qe(t)}apply(){}}function Qn(){var e=re;$e=!0;var t=null;try{var n=0;for(Fe(!0);j.length>0;){var r=q.ensure();if(n++>1e3){var i,s;Xn()}r.process(j),X.clear()}}finally{$e=!1,Fe(e),Xe=null}}function Xn(){try{Ln()}catch(e){he(e,Xe)}}let K=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(G|z))===0&&ke(r)&&(K=new Set,xe(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?jt(r):r.fn=null),K?.size>0)){X.clear();for(const i of K){if((i.f&(G|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)K.has(o)&&(K.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(G|z))===0&&xe(a)}}K.clear()}}K=null}}function Tt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&m)!==0?Tt(i,t,n,r):(s&(Je|H))!==0&&(s&C)===0&&Ct(i,t,r)&&(k(i,C),te(i))}}function Ct(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&m)!==0&&Ct(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function te(e){for(var t=Xe=e;t.parent!==null;){t=t.parent;var n=t.f;if($e&&t===_&&(n&H)!==0&&(n&Ve)===0)return;if((n&($|Y))!==0){if((n&y)===0)return;t.f^=y}}j.push(t)}function $n(e){let t=0,n=De(0),r;return()=>{be()&&(T(n),br(()=>(t===0&&(r=st(()=>e(()=>me(n)))),t+=1,()=>{Qe(()=>{t-=1,t===0&&(r?.(),r=void 0,me(n))})})))}}var er=le|fe|Te;function tr(e,t,n){new nr(e,t,n)}class nr{parent;#e=!1;#t;#r=null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=$n(()=>(this.#h=De(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#n=n,this.#l=r,this.parent=_.b,this.#e=!!this.#n.pending,this.#s=it(()=>{_.b=this;{var i=this.#g();try{this.#i=Z(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#e=!1}return()=>{this.#u?.remove()}},er)}#b(){try{this.#i=Z(()=>this.#l(this.#t))}catch(t){this.error(t)}this.#e=!1}#y(){const t=this.#n.pending;t&&(this.#o=Z(()=>t(this.#t)),q.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(q.ensure(),Z(()=>this.#l(n)))),this.#d>0?this.#p():(ye(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#g(){var t=this.#t;return this.#e&&(this.#u=ve(),this.#t.before(this.#u),t=this.#u),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var n=_,r=v,i=R;W(this.#s),O(this.#s),ce(this.#s.ctx);try{return t()}catch(s){return xt(s),null}finally{W(n),O(r),ce(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Wt(this.#i,this.#f)),this.#o===null&&(this.#o=Z(()=>t(this.#t)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#o&&ye(this.#o,()=>{this.#o=null}),this.#f&&(this.#t.before(this.#f),this.#f=null))}update_pending_count(t){this.#w(t),this.#c+=t,this.#h&&Le(this.#h,this.#c)}get_effect_pending(){return this.#m(),T(this.#h)}error(t){var n=this.#n.onerror;let r=this.#n.failed;if(this.#v||!n&&!r)throw t;this.#i&&(I(this.#i),this.#i=null),this.#o&&(I(this.#o),this.#o=null),this.#a&&(I(this.#a),this.#a=null);var i=!1,s=!1;const o=()=>{if(i){Gn();return}i=!0,s&&Un(),q.ensure(),this.#c=0,this.#a!==null&&ye(this.#a,()=>{this.#a=null}),this.#e=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,Z(()=>this.#l(this.#t)))),this.#d>0?this.#p():this.#e=!1};var l=v;try{O(null),s=!0,n?.(t,o),s=!1}catch(a){he(a,this.#s&&this.#s.parent)}finally{O(l)}r&&Qe(()=>{this.#a=this.#_(()=>{q.ensure(),this.#v=!0;try{return Z(()=>{r(this.#t,()=>t,()=>o)})}catch(a){return he(a,this.#s.parent),null}finally{this.#v=!1}})})}}function rr(e,t,n,r){const i=et;if(n.length===0&&e.length===0){r(t.map(i));return}var s=g,o=_,l=ir();function a(){Promise.all(n.map(f=>sr(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(c){(o.f&G)===0&&he(c,o)}s?.deactivate(),Ie()}).catch(f=>{he(f,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),Ie()}}):a()}function ir(){var e=_,t=v,n=R,r=g;return function(s=!0){W(e),O(t),ce(n),s&&r?.activate()}}function Ie(){W(null),O(null),ce(null)}function et(e){var t=m|C,n=v!==null&&(v.f&m)!==0?v:null;return _!==null&&(_.f|=fe),{ctx:R,deps:null,effects:null,equals:Et,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??_,ac:null}}function sr(e,t){let n=_;n===null&&An();var r=n.b,i=void 0,s=De(E),o=!v,l=new Map;return mr(()=>{var a=bt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===g&&f.committed&&f.deactivate(),Ie()})}catch(u){a.reject(u),Ie()}var f=g;if(o){var c=!r.is_pending();r.update_pending_count(1),f.increment(c),l.get(f)?.reject(ue),l.delete(f),l.set(f,a)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==ue&&(s.f|=Q,Le(s,d));else{(s.f&Q)!==0&&(s.f^=Q),Le(s,u);for(const[w,b]of l){if(l.delete(w),w===f)break;b.reject(ue)}}o&&(r.update_pending_count(-1),f.decrement(c))};a.promise.then(h,u=>h(null,u||"unknown"))}),_r(()=>{for(const a of l.values())a.reject(ue)}),new Promise(a=>{function f(c){function h(){c===i?a(s):f(i)}c.then(h,h)}f(i)})}function or(e){const t=et(e);return t.equals=Vn,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)I(t[n])}}function ar(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&G)===0?t:null;t=t.parent}return null}function tt(e){var t,n=_;W(ar(e));try{e.f&=~ee,Ot(e),t=Zt(e)}finally{W(n)}return t}function At(e){var t=tt(e);if(e.equals(t)||(g?.is_fork||(e.v=t),e.wv=Kt()),!ie)if(L!==null)(be()||g?.is_fork)&&L.set(e,t);else{var n=(e.f&M)===0?U:y;k(e,n)}}let nt=new Set;const X=new Map;let Rt=!1;function De(e,t){var n={f:0,v:e,reactions:null,equals:Et,rv:0,wv:0};return n}function P(e,t){const n=De(e);return xr(n),n}function F(e,t,n=!1){v!==null&&(!B||(v.f&yt)!==0)&&kt()&&(v.f&(m|H|Je|yt))!==0&&!J?.includes(e)&&Fn();let r=n?ne(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;ie?X.set(e,t):X.set(e,n),e.v=t;var r=q.ensure();r.capture(e,n),(e.f&m)!==0&&((e.f&C)!==0&&tt(e),k(e,(e.f&M)!==0?y:U)),e.wv=Kt(),It(e,C),_!==null&&(_.f&y)!==0&&(_.f&(Y|$))===0&&(N===null?Sr([e]):N.push(e)),!r.is_fork&&nt.size>0&&!Rt&&lr()}return t}function lr(){Rt=!1;var e=re;Fe(!0);const t=Array.from(nt);try{for(const n of t)(n.f&y)!==0&&k(n,U),ke(n)&&xe(n)}finally{Fe(e)}nt.clear()}function me(e){F(e,e.v+1)}function It(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&C)===0;if(l&&k(s,t),(o&m)!==0){var a=s;L?.delete(a),(o&ee)===0&&(o&M&&(s.f|=ee),It(a,U))}else l&&((o&H)!==0&&K!==null&&K.add(s),te(s))}}function ne(e){if(typeof e!="object"||e===null||Ce in e)return e;const t=wt(e);if(t!==yn&&t!==En)return e;var n=new Map,r=pn(e),i=P(0),s=se,o=l=>{if(se===s)return l();var a=v,f=se;O(null),Gt(s);var c=l();return O(a),Gt(f),c};return r&&n.set("length",P(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Mn();var c=n.get(a);return c===void 0?c=o(()=>{var h=P(f.value);return n.set(a,h),h}):F(c,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const c=o(()=>P(E));n.set(a,c),me(i)}}else F(f,E),me(i);return!0},get(l,a,f){if(a===Ce)return e;var c=n.get(a),h=a in l;if(c===void 0&&(!h||ae(l,a)?.writable)&&(c=o(()=>{var d=ne(h?l[a]:E),w=P(d);return w}),n.set(a,c)),c!==void 0){var u=T(c);return u===E?void 0:u}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=T(c))}else if(f===void 0){var h=n.get(a),u=h?.v;if(h!==void 0&&u!==E)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(l,a){if(a===Ce)return!0;var f=n.get(a),c=f!==void 0&&f.v!==E||Reflect.has(l,a);if(f!==void 0||_!==null&&(!c||ae(l,a)?.writable)){f===void 0&&(f=o(()=>{var u=c?ne(l[a]):E,d=P(u);return d}),n.set(a,f));var h=T(f);if(h===E)return!1}return c},set(l,a,f,c){var h=n.get(a),u=a in l;if(r&&a==="length")for(var d=f;d<h.v;d+=1){var w=n.get(d+"");w!==void 0?F(w,E):d in l&&(w=o(()=>P(E)),n.set(d+"",w))}if(h===void 0)(!u||ae(l,a)?.writable)&&(h=o(()=>P(void 0)),F(h,ne(f)),n.set(a,h));else{u=h.v!==E;var b=o(()=>ne(f));F(h,b)}var x=Reflect.getOwnPropertyDescriptor(l,a);if(x?.set&&x.set.call(c,f),!u){if(r&&typeof a=="string"){var we=n.get("length"),p=Number(a);Number.isInteger(p)&&p>=we.v&&F(we,p+1)}me(i)}return!0},ownKeys(l){T(i);var a=Reflect.ownKeys(l).filter(h=>{var u=n.get(h);return u===void 0||u.v!==E});for(var[f,c]of n)c.v!==E&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Pn()}})}var Dt,Lt,Nt,Mt;function fr(){if(Dt===void 0){Dt=window,Lt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nt=ae(t,"firstChild").get,Mt=ae(t,"nextSibling").get,mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mt(n)&&(n.__t=void 0)}}function ve(e=""){return document.createTextNode(e)}function Ne(e){return Nt.call(e)}function Me(e){return Mt.call(e)}function rt(e,t){return Ne(e)}function ur(e,t=!1){{var n=Ne(e);return n instanceof Comment&&n.data===""?Me(n):n}}function cr(e,t=1,n=!1){let r=e;for(;t--;)r=Me(r);return r}function dr(){return!1}function Pt(e){var t=v,n=_;O(null),W(null);try{return e()}finally{O(t),W(n)}}function hr(e){_===null&&(v===null&&Dn(),In()),ie&&Rn()}function vr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t,n){var r=_;r!==null&&(r.f&z)!==0&&(e|=z);var i={ctx:R,deps:null,nodes:null,f:e|C|M,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{xe(i),i.f|=Ke}catch(l){throw I(i),l}else t!==null&&te(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&fe)===0&&(s=s.first,(e&H)!==0&&(e&le)!==0&&s!==null&&(s.f|=le)),s!==null&&(s.parent=r,r!==null&&vr(s,r),v!==null&&(v.f&m)!==0&&(e&$)===0)){var o=v;(o.effects??=[]).push(s)}return i}function be(){return v!==null&&!B}function _r(e){const t=V(Ge,null,!1);return k(t,y),t.teardown=e,t}function pr(e){hr();var t=_.f,n=!v&&(t&Y)!==0&&(t&Ke)===0;if(n){var r=R;(r.e??=[]).push(e)}else return Ft(e)}function Ft(e){return V(Ye|Sn,e,!1)}function gr(e){q.ensure();const t=V($|fe,e,!0);return(n={})=>new Promise(r=>{n.outro?ye(t,()=>{I(t),r(void 0)}):(I(t),r(void 0))})}function wr(e){return V(Ye,e,!1)}function mr(e){return V(Je|fe,e,!0)}function br(e,t=0){return V(Ge|t,e,!0)}function Pe(e,t=[],n=[],r=[]){rr(r,t,n,i=>{V(Ge,()=>e(...i.map(T)),!0)})}function it(e,t=0){var n=V(H|t,e,!0);return n}function Z(e){return V(Y|fe,e,!0)}function Ut(e){var t=e.teardown;if(t!==null){const n=ie,r=v;Ht(!0),O(null);try{t.call(null)}finally{Ht(n),O(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Pt(()=>{i.abort(ue)});var r=n.next;(n.f&$)!==0?n.parent=null:I(n,t),n=r}}function yr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Y)===0&&I(t),t=n}}function I(e,t=!0){var n=!1;(t||(e.f&Ve)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Er(e.nodes.start,e.nodes.end),n=!0),zt(e,t&&!n),Ue(e,0),k(e,G);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Ut(e);var i=e.parent;i!==null&&i.first!==null&&jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Er(e,t){for(;e!==null;){var n=e===t?null:Me(e);e.remove(),e=n}}function jt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ye(e,t,n=!0){var r=[];qt(e,r,!0);var i=()=>{n&&I(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function qt(e,t,n){if((e.f&z)===0){e.f^=z;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&le)!==0||(i.f&Y)!==0&&(e.f&H)!==0;qt(i,t,o?n:!1),i=s}}}function kr(e){Bt(e,!0)}function Bt(e,t){if((e.f&z)!==0){e.f^=z,(e.f&y)===0&&(k(e,C),te(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&le)!==0||(n.f&Y)!==0;Bt(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Wt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Me(n);t.append(n),n=i}}let re=!1;function Fe(e){re=e}let ie=!1;function Ht(e){ie=e}let v=null,B=!1;function O(e){v=e}let _=null;function W(e){_=e}let J=null;function xr(e){v!==null&&(J===null?J=[e]:J.push(e))}let S=null,D=0,N=null;function Sr(e){N=e}let Yt=1,Ee=0,se=Ee;function Gt(e){se=e}function Kt(){return++Yt}function ke(e){var t=e.f;if((t&C)!==0)return!0;if(t&m&&(e.f&=~ee),(t&U)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(ke(s)&&At(s),s.wv>e.wv)return!0}(t&M)!==0&&L===null&&k(e,y)}return!1}function Vt(e,t,n=!0){var r=e.reactions;if(r!==null&&!J?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&m)!==0?Vt(s,t,!1):t===s&&(n?k(s,C):(s.f&y)!==0&&k(s,U),te(s))}}function Zt(e){var t=S,n=D,r=N,i=v,s=J,o=R,l=B,a=se,f=e.f;S=null,D=0,N=null,v=(f&(Y|$))===0?e:null,J=null,ce(e.ctx),B=!1,se=++Ee,e.ac!==null&&(Pt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=Ze;var c=e.fn,h=c(),u=e.deps;if(S!==null){var d;if(Ue(e,D),u!==null&&D>0)for(u.length=D+S.length,d=0;d<S.length;d++)u[D+d]=S[d];else e.deps=u=S;if(be()&&(e.f&M)!==0)for(d=D;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&D<u.length&&(Ue(e,D),u.length=D);if(kt()&&N!==null&&!B&&u!==null&&(e.f&(m|U|C))===0)for(d=0;d<N.length;d++)Vt(N[d],e);return i!==null&&i!==e&&(Ee++,N!==null&&(r===null?r=N:r.push(...N))),(e.f&Q)!==0&&(e.f^=Q),h}catch(w){return xt(w)}finally{e.f^=Ze,S=t,D=n,N=r,v=i,J=s,ce(o),B=l,se=a}}function Tr(e,t){let n=t.reactions;if(n!==null){var r=gn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&m)!==0&&(S===null||!S.includes(t))&&(k(t,U),(t.f&M)!==0&&(t.f^=M,t.f&=~ee),Ot(t),Ue(t,0))}function Ue(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Tr(e,n[r])}function xe(e){var t=e.f;if((t&G)===0){k(e,y);var n=_,r=re;_=e,re=!0;try{(t&(H|xn))!==0?yr(e):zt(e),Ut(e);var i=Zt(e);e.teardown=typeof i=="function"?i:null,e.wv=Yt;var s;He&&Zn&&(e.f&C)!==0&&e.deps}finally{re=r,_=n}}}function T(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!B){var r=_!==null&&(_.f&G)!==0;if(!r&&!J?.includes(e)){var i=v.deps;if((v.f&Ze)!==0)e.rv<Ee&&(e.rv=Ee,S===null&&i!==null&&i[D]===e?D++:S===null?S=[e]:S.includes(e)||S.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ie){if(X.has(e))return X.get(e);if(n){var o=e,l=o.v;return((o.f&y)===0&&o.reactions!==null||Qt(o))&&(l=tt(o)),X.set(o,l),l}}else n&&(!L?.has(e)||g?.is_fork&&!be())&&(o=e,ke(o)&&At(o),re&&be()&&(o.f&M)===0&&Jt(o));if(L?.has(e))return L.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function Jt(e){if(e.deps!==null){e.f^=M;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&M)===0&&Jt(t)}}function Qt(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(X.has(t)||(t.f&m)!==0&&Qt(t))return!0;return!1}function st(e){var t=B;try{return B=!0,e()}finally{B=t}}const Cr=-7169;function k(e,t){e.f=e.f&Cr|t}const Or=["touchstart","touchmove"];function Ar(e){return Or.includes(e)}const Xt=new Set,ot=new Set;function Rr(e){for(var t=0;t<e.length;t++)Xt.add(e[t]);for(var n of ot)n(e)}let $t=null;function ze(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;$t=e;var o=0,l=$t===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){mn(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,h=_;O(null),W(null);try{for(var u,d=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+r];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(x){u?d.push(x):u=x}if(e.cancelBubble||w===t||w===null)break;s=w}if(u){for(let x of d)queueMicrotask(()=>{throw x});throw u}}finally{e.__root=t,delete e.currentTarget,O(c),W(h)}}}function Ir(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function at(e,t){var n=_;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Se(e,t){var n=(t&Wn)!==0,r=(t&Hn)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=Ir(s?e:"<!>"+e),n||(i=Ne(i)));var o=r||Lt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ne(o),a=o.lastChild;at(l,a)}else at(o,o);return o}}function Dr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ve();return e.append(t,n),at(t,n),e}function _e(e,t){e!==null&&e.before(t)}function Lr(e,t){return Nr(e,t)}const pe=new Map;function Nr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){fr();var l=new Set,a=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!l.has(d)){l.add(d);var w=Ar(d);t.addEventListener(d,ze,{passive:w});var b=pe.get(d);b===void 0?(document.addEventListener(d,ze,{passive:w}),pe.set(d,1)):pe.set(d,b+1)}}};a(wn(Xt)),ot.add(a);var f=void 0,c=gr(()=>{var h=n??t.appendChild(ve());return tr(h,{pending:()=>{}},u=>{if(s){Oe({});var d=R;d.c=s}i&&(r.$$events=i),f=e(u,r)||{},s&&Ae()}),()=>{for(var u of l){t.removeEventListener(u,ze);var d=pe.get(u);--d===0?(document.removeEventListener(u,ze),pe.delete(u)):pe.set(u,d)}ot.delete(a),h!==n&&h.parentNode?.removeChild(h)}});return Mr.set(f,c),f}let Mr=new WeakMap;class Pr{anchor;#e=new Map;#t=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#s=()=>{var t=g;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)kr(r),this.#n.delete(n);else{var i=this.#r.get(n);i&&(this.#t.set(n,i.effect),this.#r.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#r.get(o);l&&(I(l.effect),this.#r.delete(o))}for(const[s,o]of this.#t){if(s===n||this.#n.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Wt(o,f),f.append(ve()),this.#r.set(s,{effect:o,fragment:f})}else I(o);this.#n.delete(s),this.#t.delete(s)};this.#l||!r?(this.#n.add(s),ye(o,l,!1)):l()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#r)n.includes(r)||(I(i.effect),this.#r.delete(r))};ensure(t,n){var r=g,i=dr();if(n&&!this.#t.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=ve();s.append(o),this.#r.set(t,{effect:Z(()=>n(o)),fragment:s})}else this.#t.set(t,Z(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#t)l===t?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[l,a]of this.#r)l===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else this.#s()}}function Fr(e,t,n=!1){var r=new Pr(e),i=n?le:0;function s(o,l){r.ensure(o,l)}it(()=>{var o=!1;t((l,a=!0)=>{o=!0,s(a,l)}),o||s(!1,null)},i)}function Ur(e,t){var n;n=document.head.appendChild(ve()),it(()=>t(n),Ve)}function lt(e,t){wr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const en=[...`
2
- \r\f \v\uFEFF`];function zr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var l=o+s;(o===0||en.includes(r[o-1]))&&(l===r.length||en.includes(r[l]))?r=(o===0?"":r.substring(0,o))+r.substring(l+1):o=l}}return r===""?null:r}function tn(e,t,n,r,i,s){var o=e.__className;if(o!==n||o===void 0){var l=zr(n,r,s);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(s&&i!==s)for(var a in s){var f=!!s[a];(i==null||f!==!!i[a])&&e.classList.toggle(a,f)}return s}const jr=Symbol("is custom element"),qr=Symbol("is html");function ge(e,t,n,r){var i=Br(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[Cn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Wr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Br(e){return e.__attributes??={[jr]:e.nodeName.includes("-"),[qr]:e.namespaceURI===Yn}}var nn=new Map;function Wr(e){var t=e.getAttribute("is")||e.nodeName,n=nn.get(t);if(n)return n;nn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=bn(i);for(var o in r)r[o].set&&n.push(o);i=wt(i)}return n}let je=!1;function Hr(e){var t=je;try{return je=!1,[e(),je]}finally{je=t}}function ft(e,t,n,r){var i=(n&qn)!==0,s=(n&Bn)!==0,o=r,l=!0,a=()=>(l&&(l=!1,o=s?st(r):r),o),f;if(i){var c=Ce in e||Tn in e;f=ae(e,t)?.set??(c&&t in e?p=>e[t]=p:void 0)}var h,u=!1;i?[h,u]=Hr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),f&&(Nn(),f(h)));var d;if(d=()=>{var p=e[t];return p===void 0?a():(l=!0,p)},(n&jn)===0)return d;if(f){var w=e.$$legacy;return(function(p,A){return arguments.length>0?((!A||w||u)&&f(A?d():p),p):d()})}var b=!1,x=((n&zn)!==0?et:or)(()=>(b=!1,d()));i&&T(x);var we=_;return(function(p,A){if(arguments.length>0){const oe=A?T(x):i?ne(p):p;return F(x,oe),b=!0,o!==void 0&&(o=oe),p}return ie&&b||(we.f&G)!==0?x.v:T(x)})}function rn(e){R===null&&On(),pr(()=>{const t=st(e);if(typeof t=="function")return t})}const Yr="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Yr);var Gr=Se('<div><iframe id="chat-frame" title="Chat" class="bot svelte-yhk8rr" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),Kr=Se(`<p class="svelte-yhk8rr">Please make sure that the script tag has 'id="chatbot"' and the attribute
1
+ (function(){"use strict";const Ge=!1;var pn=Array.isArray,gn=Array.prototype.indexOf,wn=Array.from,mn=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,yn=Object.prototype,En=Array.prototype,wt=Object.getPrototypeOf,mt=Object.isExtensible;function kn(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const m=2,He=4,Ye=8,xn=1<<24,G=16,H=32,$=64,Se=128,P=512,y=1024,O=2048,U=4096,W=8192,Y=16384,Ve=32768,le=65536,yt=1<<17,Ke=1<<18,fe=1<<19,Tn=1<<20,ee=32768,Xe=1<<21,Ze=1<<22,J=1<<23,Oe=Symbol("$state"),Sn=Symbol("legacy props"),On=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Cn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function An(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function In(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ln(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Un(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Wn=1,zn=4,jn=8,qn=16,Bn=1,Gn=2,E=Symbol(),Hn="http://www.w3.org/1999/xhtml";function Yn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Et(e){return e===this.v}function Vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Kn(e){return!Vn(e,this.v)}let Xn=!1,R=null;function ce(e){R=e}function Ce(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ae(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)Ft(r)}return t.i=!0,R=t.p,{}}function kt(){return!0}let de=[];function Zn(){var e=de;de=[],kn(e)}function Je(e){if(de.length===0){var t=de;queueMicrotask(()=>{t===de&&Zn()})}de.push(e)}function xt(e){var t=_;if(t===null)return v.f|=J,e;if((t.f&Ve)===0){if((t.f&Se)===0)throw e;t.b.error(e)}else he(e,t)}function he(e,t){for(;t!==null;){if((t.f&Se)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Re=new Set;let g=null,I=null,z=[],Qe=null,$e=!1;class j{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#n=0;#l=null;#s=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){z=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects)):(g=null,Tt(n.render_effects),Tt(n.effects),this.#l?.resolve()),I=null}#o(t,n){t.f^=y;for(var r=t.first;r!==null;){var i=r.f,s=(i&(H|$))!==0,o=s&&(i&y)!==0,l=o||(i&W)!==0||this.skipped_effects.has(r);if((r.f&Se)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){s?r.f^=y:(i&He)!==0?n.effects.push(r):ke(r)&&((r.f&G)!==0&&this.#s.add(r),xe(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),n=n.parent),r=f.next,f=f.parent}}#a(t){for(const n of t)(n.f&O)!==0?this.#s.add(n):(n.f&U)!==0&&this.#i.add(n),this.#f(n.deps),k(n,y)}#f(t){if(t!==null)for(const n of t)(n.f&m)===0||(n.f&ee)===0||(n.f^=ee,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&J)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){g=this,this.apply()}deactivate(){g===this&&(g=null,I=null)}flush(){if(this.activate(),z.length>0){if(Jn(),g!==null&&g!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#u(){if(this.#n===0){for(const t of this.#e)t();this.#e.clear()}this.#r===0&&this.#c()}#c(){if(Re.size>1){this.previous.clear();var t=I,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const s of Re){if(s===this){n=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(n&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=z;z=[];const a=new Set,f=new Map;for(const u of o)St(u,l,a,f);if(z.length>0){g=s,s.apply();for(const u of z)s.#o(u,r);s.deactivate()}z=i}}g=null,I=t}this.committed=!0,Re.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)this.#i.delete(t),k(t,O),te(t);for(const t of this.#i)k(t,U),te(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#l??=bt()).promise}static ensure(){if(g===null){const t=g=new j;Re.add(g),j.enqueue(()=>{g===t&&t.flush()})}return g}static enqueue(t){Je(t)}apply(){}}function Jn(){var e=re;$e=!0;var t=null;try{var n=0;for(Fe(!0);z.length>0;){var r=j.ensure();if(n++>1e3){var i,s;Qn()}r.process(z),Q.clear()}}finally{$e=!1,Fe(e),Qe=null}}function Qn(){try{In()}catch(e){he(e,Qe)}}let V=null;function Tt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Y|W))===0&&ke(r)&&(V=new Set,xe(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?zt(r):r.fn=null),V?.size>0)){Q.clear();for(const i of V){if((i.f&(Y|W))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)V.has(o)&&(V.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(Y|W))===0&&xe(a)}}V.clear()}}V=null}}function St(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&m)!==0?St(i,t,n,r):(s&(Ze|G))!==0&&(s&O)===0&&Ot(i,t,r)&&(k(i,O),te(i))}}function Ot(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&m)!==0&&Ot(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function te(e){for(var t=Qe=e;t.parent!==null;){t=t.parent;var n=t.f;if($e&&t===_&&(n&G)!==0&&(n&Ke)===0)return;if((n&($|H))!==0){if((n&y)===0)return;t.f^=y}}z.push(t)}function $n(e){let t=0,n=Ne(0),r;return()=>{be()&&(S(n),br(()=>(t===0&&(r=st(()=>e(()=>me(n)))),t+=1,()=>{Je(()=>{t-=1,t===0&&(r?.(),r=void 0,me(n))})})))}}var er=le|fe|Se;function tr(e,t,n){new nr(e,t,n)}class nr{parent;#e=!1;#t;#r=null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=$n(()=>(this.#h=Ne(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#n=n,this.#l=r,this.parent=_.b,this.#e=!!this.#n.pending,this.#s=it(()=>{_.b=this;{var i=this.#g();try{this.#i=X(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#e=!1}return()=>{this.#u?.remove()}},er)}#b(){try{this.#i=X(()=>this.#l(this.#t))}catch(t){this.error(t)}this.#e=!1}#y(){const t=this.#n.pending;t&&(this.#o=X(()=>t(this.#t)),j.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(j.ensure(),X(()=>this.#l(n)))),this.#d>0?this.#p():(ye(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#g(){var t=this.#t;return this.#e&&(this.#u=ve(),this.#t.before(this.#u),t=this.#u),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var n=_,r=v,i=R;B(this.#s),C(this.#s),ce(this.#s.ctx);try{return t()}catch(s){return xt(s),null}finally{B(n),C(r),ce(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Bt(this.#i,this.#f)),this.#o===null&&(this.#o=X(()=>t(this.#t)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#o&&ye(this.#o,()=>{this.#o=null}),this.#f&&(this.#t.before(this.#f),this.#f=null))}update_pending_count(t){this.#w(t),this.#c+=t,this.#h&&Ie(this.#h,this.#c)}get_effect_pending(){return this.#m(),S(this.#h)}error(t){var n=this.#n.onerror;let r=this.#n.failed;if(this.#v||!n&&!r)throw t;this.#i&&(D(this.#i),this.#i=null),this.#o&&(D(this.#o),this.#o=null),this.#a&&(D(this.#a),this.#a=null);var i=!1,s=!1;const o=()=>{if(i){Yn();return}i=!0,s&&Un(),j.ensure(),this.#c=0,this.#a!==null&&ye(this.#a,()=>{this.#a=null}),this.#e=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,X(()=>this.#l(this.#t)))),this.#d>0?this.#p():this.#e=!1};var l=v;try{C(null),s=!0,n?.(t,o),s=!1}catch(a){he(a,this.#s&&this.#s.parent)}finally{C(l)}r&&Je(()=>{this.#a=this.#_(()=>{j.ensure(),this.#v=!0;try{return X(()=>{r(this.#t,()=>t,()=>o)})}catch(a){return he(a,this.#s.parent),null}finally{this.#v=!1}})})}}function rr(e,t,n,r){const i=et;if(n.length===0&&e.length===0){r(t.map(i));return}var s=g,o=_,l=ir();function a(){Promise.all(n.map(f=>sr(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(u){(o.f&Y)===0&&he(u,o)}s?.deactivate(),De()}).catch(f=>{he(f,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),De()}}):a()}function ir(){var e=_,t=v,n=R,r=g;return function(s=!0){B(e),C(t),ce(n),s&&r?.activate()}}function De(){B(null),C(null),ce(null)}function et(e){var t=m|O,n=v!==null&&(v.f&m)!==0?v:null;return _!==null&&(_.f|=fe),{ctx:R,deps:null,effects:null,equals:Et,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??_,ac:null}}function sr(e,t){let n=_;n===null&&An();var r=n.b,i=void 0,s=Ne(E),o=!v,l=new Map;return mr(()=>{var a=bt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===g&&f.committed&&f.deactivate(),De()})}catch(d){a.reject(d),De()}var f=g;if(o){var u=!r.is_pending();r.update_pending_count(1),f.increment(u),l.get(f)?.reject(ue),l.delete(f),l.set(f,a)}const c=(d,h=void 0)=>{if(f.activate(),h)h!==ue&&(s.f|=J,Ie(s,h));else{(s.f&J)!==0&&(s.f^=J),Ie(s,d);for(const[w,b]of l){if(l.delete(w),w===f)break;b.reject(ue)}}o&&(r.update_pending_count(-1),f.decrement(u))};a.promise.then(c,d=>c(null,d||"unknown"))}),_r(()=>{for(const a of l.values())a.reject(ue)}),new Promise(a=>{function f(u){function c(){u===i?a(s):f(i)}u.then(c,c)}f(i)})}function or(e){const t=et(e);return t.equals=Kn,t}function Ct(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)D(t[n])}}function ar(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function tt(e){var t,n=_;B(ar(e));try{e.f&=~ee,Ct(e),t=Xt(e)}finally{B(n)}return t}function At(e){var t=tt(e);if(e.equals(t)||(g?.is_fork||(e.v=t),e.wv=Vt()),!ie)if(I!==null)(be()||g?.is_fork)&&I.set(e,t);else{var n=(e.f&P)===0?U:y;k(e,n)}}let nt=new Set;const Q=new Map;let Rt=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:Et,rv:0,wv:0};return n}function M(e,t){const n=Ne(e);return xr(n),n}function F(e,t,n=!1){v!==null&&(!q||(v.f&yt)!==0)&&kt()&&(v.f&(m|G|Ze|yt))!==0&&!Z?.includes(e)&&Fn();let r=n?ne(t):t;return Ie(e,r)}function Ie(e,t){if(!e.equals(t)){var n=e.v;ie?Q.set(e,t):Q.set(e,n),e.v=t;var r=j.ensure();r.capture(e,n),(e.f&m)!==0&&((e.f&O)!==0&&tt(e),k(e,(e.f&P)!==0?y:U)),e.wv=Vt(),Dt(e,O),_!==null&&(_.f&y)!==0&&(_.f&(H|$))===0&&(L===null?Tr([e]):L.push(e)),!r.is_fork&&nt.size>0&&!Rt&&lr()}return t}function lr(){Rt=!1;var e=re;Fe(!0);const t=Array.from(nt);try{for(const n of t)(n.f&y)!==0&&k(n,U),ke(n)&&xe(n)}finally{Fe(e)}nt.clear()}function me(e){F(e,e.v+1)}function Dt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&O)===0;if(l&&k(s,t),(o&m)!==0){var a=s;I?.delete(a),(o&ee)===0&&(o&P&&(s.f|=ee),Dt(a,U))}else l&&((o&G)!==0&&V!==null&&V.add(s),te(s))}}function ne(e){if(typeof e!="object"||e===null||Oe in e)return e;const t=wt(e);if(t!==yn&&t!==En)return e;var n=new Map,r=pn(e),i=M(0),s=se,o=l=>{if(se===s)return l();var a=v,f=se;C(null),Yt(s);var u=l();return C(a),Yt(f),u};return r&&n.set("length",M(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Pn();var u=n.get(a);return u===void 0?u=o(()=>{var c=M(f.value);return n.set(a,c),c}):F(u,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const u=o(()=>M(E));n.set(a,u),me(i)}}else F(f,E),me(i);return!0},get(l,a,f){if(a===Oe)return e;var u=n.get(a),c=a in l;if(u===void 0&&(!c||ae(l,a)?.writable)&&(u=o(()=>{var h=ne(c?l[a]:E),w=M(h);return w}),n.set(a,u)),u!==void 0){var d=S(u);return d===E?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=S(u))}else if(f===void 0){var c=n.get(a),d=c?.v;if(c!==void 0&&d!==E)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===Oe)return!0;var f=n.get(a),u=f!==void 0&&f.v!==E||Reflect.has(l,a);if(f!==void 0||_!==null&&(!u||ae(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=u?ne(l[a]):E,h=M(d);return h}),n.set(a,f));var c=S(f);if(c===E)return!1}return u},set(l,a,f,u){var c=n.get(a),d=a in l;if(r&&a==="length")for(var h=f;h<c.v;h+=1){var w=n.get(h+"");w!==void 0?F(w,E):h in l&&(w=o(()=>M(E)),n.set(h+"",w))}if(c===void 0)(!d||ae(l,a)?.writable)&&(c=o(()=>M(void 0)),F(c,ne(f)),n.set(a,c));else{d=c.v!==E;var b=o(()=>ne(f));F(c,b)}var x=Reflect.getOwnPropertyDescriptor(l,a);if(x?.set&&x.set.call(u,f),!d){if(r&&typeof a=="string"){var we=n.get("length"),p=Number(a);Number.isInteger(p)&&p>=we.v&&F(we,p+1)}me(i)}return!0},ownKeys(l){S(i);var a=Reflect.ownKeys(l).filter(c=>{var d=n.get(c);return d===void 0||d.v!==E});for(var[f,u]of n)u.v!==E&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Mn()}})}var Nt,It,Lt,Pt;function fr(){if(Nt===void 0){Nt=window,It=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Lt=ae(t,"firstChild").get,Pt=ae(t,"nextSibling").get,mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mt(n)&&(n.__t=void 0)}}function ve(e=""){return document.createTextNode(e)}function Le(e){return Lt.call(e)}function Pe(e){return Pt.call(e)}function rt(e,t){return Le(e)}function ur(e,t=!1){{var n=Le(e);return n instanceof Comment&&n.data===""?Pe(n):n}}function cr(e,t=1,n=!1){let r=e;for(;t--;)r=Pe(r);return r}function dr(){return!1}function Mt(e){var t=v,n=_;C(null),B(null);try{return e()}finally{C(t),B(n)}}function hr(e){_===null&&(v===null&&Nn(),Dn()),ie&&Rn()}function vr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function K(e,t,n){var r=_;r!==null&&(r.f&W)!==0&&(e|=W);var i={ctx:R,deps:null,nodes:null,f:e|O|P,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{xe(i),i.f|=Ve}catch(l){throw D(i),l}else t!==null&&te(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&fe)===0&&(s=s.first,(e&G)!==0&&(e&le)!==0&&s!==null&&(s.f|=le)),s!==null&&(s.parent=r,r!==null&&vr(s,r),v!==null&&(v.f&m)!==0&&(e&$)===0)){var o=v;(o.effects??=[]).push(s)}return i}function be(){return v!==null&&!q}function _r(e){const t=K(Ye,null,!1);return k(t,y),t.teardown=e,t}function pr(e){hr();var t=_.f,n=!v&&(t&H)!==0&&(t&Ve)===0;if(n){var r=R;(r.e??=[]).push(e)}else return Ft(e)}function Ft(e){return K(He|Tn,e,!1)}function gr(e){j.ensure();const t=K($|fe,e,!0);return(n={})=>new Promise(r=>{n.outro?ye(t,()=>{D(t),r(void 0)}):(D(t),r(void 0))})}function wr(e){return K(He,e,!1)}function mr(e){return K(Ze|fe,e,!0)}function br(e,t=0){return K(Ye|t,e,!0)}function Me(e,t=[],n=[],r=[]){rr(r,t,n,i=>{K(Ye,()=>e(...i.map(S)),!0)})}function it(e,t=0){var n=K(G|t,e,!0);return n}function X(e){return K(H|fe,e,!0)}function Ut(e){var t=e.teardown;if(t!==null){const n=ie,r=v;Gt(!0),C(null);try{t.call(null)}finally{Gt(n),C(r)}}}function Wt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Mt(()=>{i.abort(ue)});var r=n.next;(n.f&$)!==0?n.parent=null:D(n,t),n=r}}function yr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&H)===0&&D(t),t=n}}function D(e,t=!0){var n=!1;(t||(e.f&Ke)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Er(e.nodes.start,e.nodes.end),n=!0),Wt(e,t&&!n),Ue(e,0),k(e,Y);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Ut(e);var i=e.parent;i!==null&&i.first!==null&&zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Er(e,t){for(;e!==null;){var n=e===t?null:Pe(e);e.remove(),e=n}}function zt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ye(e,t,n=!0){var r=[];jt(e,r,!0);var i=()=>{n&&D(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function jt(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&le)!==0||(i.f&H)!==0&&(e.f&G)!==0;jt(i,t,o?n:!1),i=s}}}function kr(e){qt(e,!0)}function qt(e,t){if((e.f&W)!==0){e.f^=W,(e.f&y)===0&&(k(e,O),te(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&le)!==0||(n.f&H)!==0;qt(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Bt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Pe(n);t.append(n),n=i}}let re=!1;function Fe(e){re=e}let ie=!1;function Gt(e){ie=e}let v=null,q=!1;function C(e){v=e}let _=null;function B(e){_=e}let Z=null;function xr(e){v!==null&&(Z===null?Z=[e]:Z.push(e))}let T=null,N=0,L=null;function Tr(e){L=e}let Ht=1,Ee=0,se=Ee;function Yt(e){se=e}function Vt(){return++Ht}function ke(e){var t=e.f;if((t&O)!==0)return!0;if(t&m&&(e.f&=~ee),(t&U)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(ke(s)&&At(s),s.wv>e.wv)return!0}(t&P)!==0&&I===null&&k(e,y)}return!1}function Kt(e,t,n=!0){var r=e.reactions;if(r!==null&&!Z?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&m)!==0?Kt(s,t,!1):t===s&&(n?k(s,O):(s.f&y)!==0&&k(s,U),te(s))}}function Xt(e){var t=T,n=N,r=L,i=v,s=Z,o=R,l=q,a=se,f=e.f;T=null,N=0,L=null,v=(f&(H|$))===0?e:null,Z=null,ce(e.ctx),q=!1,se=++Ee,e.ac!==null&&(Mt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=Xe;var u=e.fn,c=u(),d=e.deps;if(T!==null){var h;if(Ue(e,N),d!==null&&N>0)for(d.length=N+T.length,h=0;h<T.length;h++)d[N+h]=T[h];else e.deps=d=T;if(be()&&(e.f&P)!==0)for(h=N;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&N<d.length&&(Ue(e,N),d.length=N);if(kt()&&L!==null&&!q&&d!==null&&(e.f&(m|U|O))===0)for(h=0;h<L.length;h++)Kt(L[h],e);return i!==null&&i!==e&&(Ee++,L!==null&&(r===null?r=L:r.push(...L))),(e.f&J)!==0&&(e.f^=J),c}catch(w){return xt(w)}finally{e.f^=Xe,T=t,N=n,L=r,v=i,Z=s,ce(o),q=l,se=a}}function Sr(e,t){let n=t.reactions;if(n!==null){var r=gn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&m)!==0&&(T===null||!T.includes(t))&&(k(t,U),(t.f&P)!==0&&(t.f^=P,t.f&=~ee),Ct(t),Ue(t,0))}function Ue(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Sr(e,n[r])}function xe(e){var t=e.f;if((t&Y)===0){k(e,y);var n=_,r=re;_=e,re=!0;try{(t&(G|xn))!==0?yr(e):Wt(e),Ut(e);var i=Xt(e);e.teardown=typeof i=="function"?i:null,e.wv=Ht;var s;Ge&&Xn&&(e.f&O)!==0&&e.deps}finally{re=r,_=n}}}function S(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!q){var r=_!==null&&(_.f&Y)!==0;if(!r&&!Z?.includes(e)){var i=v.deps;if((v.f&Xe)!==0)e.rv<Ee&&(e.rv=Ee,T===null&&i!==null&&i[N]===e?N++:T===null?T=[e]:T.includes(e)||T.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ie){if(Q.has(e))return Q.get(e);if(n){var o=e,l=o.v;return((o.f&y)===0&&o.reactions!==null||Jt(o))&&(l=tt(o)),Q.set(o,l),l}}else n&&(!I?.has(e)||g?.is_fork&&!be())&&(o=e,ke(o)&&At(o),re&&be()&&(o.f&P)===0&&Zt(o));if(I?.has(e))return I.get(e);if((e.f&J)!==0)throw e.v;return e.v}function Zt(e){if(e.deps!==null){e.f^=P;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&P)===0&&Zt(t)}}function Jt(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&m)!==0&&Jt(t))return!0;return!1}function st(e){var t=q;try{return q=!0,e()}finally{q=t}}const Or=-7169;function k(e,t){e.f=e.f&Or|t}const Cr=["touchstart","touchmove"];function Ar(e){return Cr.includes(e)}const Qt=new Set,ot=new Set;function Rr(e){for(var t=0;t<e.length;t++)Qt.add(e[t]);for(var n of ot)n(e)}let $t=null;function We(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;$t=e;var o=0,l=$t===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){mn(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=v,c=_;C(null),B(null);try{for(var d,h=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+r];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(x){d?h.push(x):d=x}if(e.cancelBubble||w===t||w===null)break;s=w}if(d){for(let x of h)queueMicrotask(()=>{throw x});throw d}}finally{e.__root=t,delete e.currentTarget,C(u),B(c)}}}function Dr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function at(e,t){var n=_;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Te(e,t){var n=(t&Bn)!==0,r=(t&Gn)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=Dr(s?e:"<!>"+e),n||(i=Le(i)));var o=r||It?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Le(o),a=o.lastChild;at(l,a)}else at(o,o);return o}}function Nr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ve();return e.append(t,n),at(t,n),e}function _e(e,t){e!==null&&e.before(t)}function Ir(e,t){return Lr(e,t)}const pe=new Map;function Lr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){fr();var l=new Set,a=c=>{for(var d=0;d<c.length;d++){var h=c[d];if(!l.has(h)){l.add(h);var w=Ar(h);t.addEventListener(h,We,{passive:w});var b=pe.get(h);b===void 0?(document.addEventListener(h,We,{passive:w}),pe.set(h,1)):pe.set(h,b+1)}}};a(wn(Qt)),ot.add(a);var f=void 0,u=gr(()=>{var c=n??t.appendChild(ve());return tr(c,{pending:()=>{}},d=>{if(s){Ce({});var h=R;h.c=s}i&&(r.$$events=i),f=e(d,r)||{},s&&Ae()}),()=>{for(var d of l){t.removeEventListener(d,We);var h=pe.get(d);--h===0?(document.removeEventListener(d,We),pe.delete(d)):pe.set(d,h)}ot.delete(a),c!==n&&c.parentNode?.removeChild(c)}});return Pr.set(f,u),f}let Pr=new WeakMap;class Mr{anchor;#e=new Map;#t=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#s=()=>{var t=g;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)kr(r),this.#n.delete(n);else{var i=this.#r.get(n);i&&(this.#t.set(n,i.effect),this.#r.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#r.get(o);l&&(D(l.effect),this.#r.delete(o))}for(const[s,o]of this.#t){if(s===n||this.#n.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Bt(o,f),f.append(ve()),this.#r.set(s,{effect:o,fragment:f})}else D(o);this.#n.delete(s),this.#t.delete(s)};this.#l||!r?(this.#n.add(s),ye(o,l,!1)):l()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#r)n.includes(r)||(D(i.effect),this.#r.delete(r))};ensure(t,n){var r=g,i=dr();if(n&&!this.#t.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=ve();s.append(o),this.#r.set(t,{effect:X(()=>n(o)),fragment:s})}else this.#t.set(t,X(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#t)l===t?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[l,a]of this.#r)l===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else this.#s()}}function Fr(e,t,n=!1){var r=new Mr(e),i=n?le:0;function s(o,l){r.ensure(o,l)}it(()=>{var o=!1;t((l,a=!0)=>{o=!0,s(a,l)}),o||s(!1,null)},i)}function Ur(e,t){var n;n=document.head.appendChild(ve()),it(()=>t(n),Ke)}function lt(e,t){wr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const en=[...`
2
+ \r\f \v\uFEFF`];function Wr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var l=o+s;(o===0||en.includes(r[o-1]))&&(l===r.length||en.includes(r[l]))?r=(o===0?"":r.substring(0,o))+r.substring(l+1):o=l}}return r===""?null:r}function tn(e,t,n,r,i,s){var o=e.__className;if(o!==n||o===void 0){var l=Wr(n,r,s);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(s&&i!==s)for(var a in s){var f=!!s[a];(i==null||f!==!!i[a])&&e.classList.toggle(a,f)}return s}const zr=Symbol("is custom element"),jr=Symbol("is html");function ge(e,t,n,r){var i=qr(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[On]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Br(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function qr(e){return e.__attributes??={[zr]:e.nodeName.includes("-"),[jr]:e.namespaceURI===Hn}}var nn=new Map;function Br(e){var t=e.getAttribute("is")||e.nodeName,n=nn.get(t);if(n)return n;nn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=bn(i);for(var o in r)r[o].set&&n.push(o);i=wt(i)}return n}let ze=!1;function Gr(e){var t=ze;try{return ze=!1,[e(),ze]}finally{ze=t}}function ft(e,t,n,r){var i=(n&jn)!==0,s=(n&qn)!==0,o=r,l=!0,a=()=>(l&&(l=!1,o=s?st(r):r),o),f;if(i){var u=Oe in e||Sn in e;f=ae(e,t)?.set??(u&&t in e?p=>e[t]=p:void 0)}var c,d=!1;i?[c,d]=Gr(()=>e[t]):c=e[t],c===void 0&&r!==void 0&&(c=a(),f&&(Ln(),f(c)));var h;if(h=()=>{var p=e[t];return p===void 0?a():(l=!0,p)},(n&zn)===0)return h;if(f){var w=e.$$legacy;return(function(p,A){return arguments.length>0?((!A||w||d)&&f(A?h():p),p):h()})}var b=!1,x=((n&Wn)!==0?et:or)(()=>(b=!1,h()));i&&S(x);var we=_;return(function(p,A){if(arguments.length>0){const oe=A?S(x):i?ne(p):p;return F(x,oe),b=!0,o!==void 0&&(o=oe),p}return ie&&b||(we.f&Y)!==0?x.v:S(x)})}function rn(e){R===null&&Cn(),pr(()=>{const t=st(e);if(typeof t=="function")return t})}const Hr="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Hr);var Yr=Te('<div><iframe id="chat-frame" title="Chat" class="bot svelte-yhk8rr" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),Vr=Te(`<p class="svelte-yhk8rr">Please make sure that the script tag has 'id="chatbot"' and the attribute
3
3
  'data-server' with the full qualified URL to the chatbot-server.</p> <pre class="svelte-yhk8rr">
4
4
  <code class="svelte-yhk8rr">
5
5
  &lt;script
@@ -12,7 +12,7 @@
12
12
  <br class="svelte-yhk8rr"/>
13
13
  src="https://server.com/webclient/embed/bundle.js"&gt; &lt;/script&gt;
14
14
  </code>
15
- </pre>`,1);const Vr={hash:"svelte-yhk8rr",code:`.svelte-yhk8rr,
15
+ </pre>`,1);const Kr={hash:"svelte-yhk8rr",code:`.svelte-yhk8rr,
16
16
  .svelte-yhk8rr:before,
17
17
  .svelte-yhk8rr:after {box-sizing:border-box;}.bot-border.svelte-yhk8rr {position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:transparent;opacity:1;transition:transform 200ms,
18
18
  opacity 100ms 100ms,
@@ -20,10 +20,10 @@
20
20
 
21
21
  @media screen and (min-width: 768px) {#chat-frame.svelte-yhk8rr {border-radius:var(--window-border-radius, 8px);}.bot-border.svelte-yhk8rr {height:var(--window-height, 46em);max-height:var(--window-max-height, calc(100vh - 2em));width:var(--window-width, 26em);top:var(--window-top, auto);right:var(--window-right, 1em);bottom:var(--window-bottom, 1em);left:var(--window-left, auto);border-radius:var(--window-border-radius, 8px);}.bot-border.closed.svelte-yhk8rr {transform:translateY(var(--window-height, 46em));opacity:0;}
22
22
  }p.svelte-yhk8rr,
23
- pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function Zr(e,t){Oe(t,!0),lt(e,Vr),rn(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=Dr(),r=ur(n);{var i=o=>{var l=Gr();let a;var f=rt(l);Pe(c=>{a=tn(l,1,"bot-border svelte-yhk8rr",null,a,{closed:!t.open}),ge(l,"aria-hidden",t.open?"false":"true"),ge(f,"src",c)},[()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),_e(o,l)},s=o=>{var l=Kr();_e(o,l)};Fr(r,o=>{t.server?o(i):o(s,!1)})}_e(e,n),Ae()}var Jr=Se('<div class="chat-button-wrapper svelte-1xi58vz" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-1xi58vz" alt="Open chat window"/></div>');const Qr={hash:"svelte-1xi58vz",code:`.svelte-1xi58vz,
23
+ pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function Xr(e,t){Ce(t,!0),lt(e,Kr),rn(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=Nr(),r=ur(n);{var i=o=>{var l=Yr();let a;var f=rt(l);Me(u=>{a=tn(l,1,"bot-border svelte-yhk8rr",null,a,{closed:!t.open}),ge(l,"aria-hidden",t.open?"false":"true"),ge(f,"src",u)},[()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),_e(o,l)},s=o=>{var l=Vr();_e(o,l)};Fr(r,o=>{t.server?o(i):o(s,!1)})}_e(e,n),Ae()}var Zr=Te('<div class="chat-button-wrapper svelte-1xi58vz" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-1xi58vz" alt="Open chat window"/></div>');const Jr={hash:"svelte-1xi58vz",code:`.svelte-1xi58vz,
24
24
  .svelte-1xi58vz:before,
25
25
  .svelte-1xi58vz:after {box-sizing:border-box;}.chat-button-wrapper.svelte-1xi58vz {position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999;}
26
26
 
27
27
  @media screen and (min-width: 768px) {.chat-button-wrapper.svelte-1xi58vz {top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em);}
28
28
  }.chat-button.svelte-1xi58vz {display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms,
29
- box-shadow 100ms;}.chat-button.svelte-1xi58vz:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function Xr(e,t){Oe(t,!0),lt(e,Qr);function n(s){const o=s.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(s.stopPropagation(),t.onToggle())}var r=Jr();r.__click=function(...s){t.onToggle?.apply(this,s)},r.__keydown=n;var i=rt(r);Pe(()=>{ge(r,"aria-expanded",t.open?"true":"false"),ge(i,"src",`${t.assetsUrl}/fab.svg`)}),_e(e,r),Ae()}Rr(["click","keydown"]);let sn=!1;function $r(e){sn=e}function ei(){return sn}function qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var ti={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ut(e,t){function n(i,s,o){if(!(typeof document>"u")){o=qe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var a in o)o[a]&&(l+="; "+a,o[a]!==!0&&(l+="="+o[a].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},l=0;l<s.length;l++){var a=s[l].split("="),f=a.slice(1).join("=");try{var c=decodeURIComponent(a[0]);if(o[c]=e.read(f,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",qe({},s,{expires:-1}))},withAttributes:function(i){return ut(this.converter,qe({},this.attributes,i))},withConverter:function(i){return ut(qe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var on=ut(ti,{path:"/"});const an="bubble-chat-window-state",ln=()=>{switch(on.get(an)){case"open":return!0;case"closed":return!1;default:return}},fn=e=>{const t=new Date(new Date().getTime()+288e5);on.set(an,e,{expires:t})},ct=[];let dt=ln();function ht(){dt=!0,fn("open"),ct.forEach(function(e){e.call(window,!0)})}function Be(){dt=!1,fn("closed"),ct.forEach(function(e){e.call(window,!1)})}function un(){dt?Be():ht()}function ni(){vt({type:"RESTART_CHAT"})}function ri(e){vt({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function ii(e){vt({type:"TRIGGER_STORY",story:e})}function cn(){return document.getElementById("chat-frame")}function si(){const e=cn();if(e?.src)try{return new URL(e.src).origin}catch{return null}return null}function vt(e){const t=cn(),n=si();if(!n){console.warn("Cannot send message: chat iframe origin could not be determined");return}t?.contentWindow?.postMessage(e,n)}function dn(e,t){if(e==="ON_CHAT_WINDOW_STATE_CHANGE")ct.push(t);else throw new Error("Unsupported event "+e)}const oi=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:Be,enterGuestMessage:ri,isChatbotLoaded:ei,openChatWindow:ht,restartChat:ni,subscribe:dn,toggleChatWindow:un,triggerStory:ii},Symbol.toStringTag,{value:"Module"})),ai=e=>{if(!e||typeof e!="object"||Array.isArray(e)){console.warn("Invalid tracking payload received:",e);return}"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},li=(e,t,n,r,i)=>{const s=()=>{const l=document.getElementById("chat-frame");if(l?.src)try{return new URL(l.src).origin}catch{return null}return null},o=l=>{const a=s();if(a&&l.origin!==a){console.warn("Rejected postMessage from untrusted origin:",l.origin);return}const f=l.data;switch(f.type){case"webclient.chat.started":e();break;case"webclient.chat.ended":t();break;case"webclient.window.expand":n(f.devices,f.initial);break;case"webclient.window.close":r();break;case"webclient.change.url":i(f.url);break;case"google.tag.event":ai(f.payload);break}};window.addEventListener("message",o,!1)},fi=e=>new Promise(t=>{const n=document.getElementById(e);n?(n.onload=()=>{t(!0)},n.onerror=()=>{console.error("Failed to load CSS file: custom.css"),t(!1)}):(console.error("No custom.css file found"),t(!1))});var ui=Se('<link rel="stylesheet"/>'),ci=Se("<div><!> <!></div>");const di={hash:"svelte-1n46o8q",code:".bubble-chat.svelte-1n46o8q {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-1n46o8q {visibility:visible;opacity:1;}"};function hi(e,t){Oe(t,!0),lt(e,di);let n=ft(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),r=ft(t,"linkHandling",3,"default"),i=ft(t,"chatStarted",7,!1);const s="chatbot-style";let o=P(!1),l=P(!1),a=P(ne(ln()));dn("ON_CHAT_WINDOW_STATE_CHANGE",function(A){F(a,A,!0)});function f(){i(!0)}function c(){i(!1)}function h(p,A){const oe=window.innerWidth,pt=p==null||p==="all",gt=p==="desktop"&&oe>=768,wi=p==="mobile"&&oe<768,mi=pt||gt||wi;(!A||T(a)!==!1)&&mi&&ht()}function u(){Be()}function d(p){const A=window.innerWidth,oe=window.location.hostname,pt=new URL(p).hostname,gt=oe===pt;A<768&&Be(),r()==="new-tab"?window.open(p,"_blank"):r()==="existing-tab"||gt?document.location.href=p:window.open(p,"_blank")}function w(){F(l,!0)}li(f,c,h,u,d),rn(async()=>{F(o,await fi(s),!0)});var b=ci();Ur("1n46o8q",p=>{var A=ui();ge(A,"id",s),Pe(()=>ge(A,"href",`${n()}/custom.css`)),_e(p,A)});var x=rt(b);Xr(x,{get assetsUrl(){return n()},get open(){return T(a)},get onToggle(){return un}});var we=cr(x,2);Zr(we,{get server(){return t.server},get referrer(){return t.referrer},get open(){return T(a)},onLoad:w}),Pe(()=>tn(b,1,`bubble-chat ${T(o)&&T(l)?"chatbot-ready":""}`,"svelte-1n46o8q")),_e(e,b),Ae()}const vi=e=>e.replace(/\/embed\/bundle\.js/,""),_i=e=>e.dataset?.server,pi=e=>{if(e&&"src"in e&&typeof e.src=="string")return _i(e)||vi(e.src)},_t=document.querySelector("script#chatbot"),hn=pi(_t),gi=_t?.getAttribute("link-handling")?_t.getAttribute("link-handling"):"default";window.chatbot=oi;const vn=()=>{console.log("Chatbot is loading from",hn),Lr(hi,{target:document.body,props:{server:hn,referrer:window.location.href,linkHandling:gi}}),$r(!0)},_n=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(vn,500):setTimeout(()=>{_n(e+1)},500)};_n();const We=document.getElementById("chatbot");We&&"src"in We&&typeof We.src=="string"&&We.src.indexOf("caller=bookmarklet")>0&&setTimeout(vn,500)})();
29
+ box-shadow 100ms;}.chat-button.svelte-1xi58vz:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function Qr(e,t){Ce(t,!0),lt(e,Jr);function n(s){const o=s.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(s.stopPropagation(),t.onToggle())}var r=Zr();r.__click=function(...s){t.onToggle?.apply(this,s)},r.__keydown=n;var i=rt(r);Me(()=>{ge(r,"aria-expanded",t.open?"true":"false"),ge(i,"src",`${t.assetsUrl}/fab.svg`)}),_e(e,r),Ae()}Rr(["click","keydown"]);let sn=!1;function $r(e){sn=e}function ei(){return sn}function je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var ti={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ut(e,t){function n(i,s,o){if(!(typeof document>"u")){o=je({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var a in o)o[a]&&(l+="; "+a,o[a]!==!0&&(l+="="+o[a].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},l=0;l<s.length;l++){var a=s[l].split("="),f=a.slice(1).join("=");try{var u=decodeURIComponent(a[0]);if(o[u]=e.read(f,u),i===u)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",je({},s,{expires:-1}))},withAttributes:function(i){return ut(this.converter,je({},this.attributes,i))},withConverter:function(i){return ut(je({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var on=ut(ti,{path:"/"});const an="bubble-chat-window-state",ln=()=>{switch(on.get(an)){case"open":return!0;case"closed":return!1;default:return}},fn=e=>{const t=new Date(new Date().getTime()+288e5);on.set(an,e,{expires:t})},ct=[];let dt=ln();function ht(){dt=!0,fn("open"),ct.forEach(function(e){e.call(window,!0)})}function qe(){dt=!1,fn("closed"),ct.forEach(function(e){e.call(window,!1)})}function un(){dt?qe():ht()}function ni(){vt({type:"RESTART_CHAT"})}function ri(e){vt({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function ii(e){vt({type:"TRIGGER_STORY",story:e})}function cn(){return document.getElementById("chat-frame")}function si(){const e=cn();if(e?.src)try{return new URL(e.src).origin}catch{return null}return null}function vt(e){const t=cn(),n=si();if(!n){console.warn("Cannot send message: chat iframe origin could not be determined");return}t?.contentWindow?.postMessage(e,n)}function dn(e,t){if(e==="ON_CHAT_WINDOW_STATE_CHANGE")ct.push(t);else throw new Error("Unsupported event "+e)}const oi=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:qe,enterGuestMessage:ri,isChatbotLoaded:ei,openChatWindow:ht,restartChat:ni,subscribe:dn,toggleChatWindow:un,triggerStory:ii},Symbol.toStringTag,{value:"Module"})),ai=e=>{if(!e||typeof e!="object"||Array.isArray(e)){console.warn("Invalid tracking payload received:",e);return}"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},li=(e,t,n,r,i)=>{const s=()=>{const f=document.getElementById("chat-frame");if(f?.src)try{return new URL(f.src).origin}catch{return null}return null},o={CHAT_STARTED:"webclient.chat.started",CHAT_ENDED:"webclient.chat.ended",WINDOW_EXPAND:"webclient.window.expand",WINDOW_CLOSE:"webclient.window.close",CHANGE_URL:"webclient.change.url",GOOGLE_TAG_EVENT:"google.tag.event"},l=Object.values(o),a=f=>{if(!f.data?.type||!l.includes(f.data.type))return;const u=s();if(u&&f.origin!==u){console.warn("Rejected postMessage from untrusted origin:",f.origin);return}const c=f.data;switch(c.type){case o.CHAT_STARTED:e();break;case o.CHAT_ENDED:t();break;case o.WINDOW_EXPAND:n(c.devices,c.initial);break;case o.WINDOW_CLOSE:r();break;case o.CHANGE_URL:i(c.url);break;case o.GOOGLE_TAG_EVENT:ai(c.payload);break}};window.addEventListener("message",a,!1)},fi=e=>new Promise(t=>{const n=document.getElementById(e);n?(n.onload=()=>{t(!0)},n.onerror=()=>{console.error("Failed to load CSS file: custom.css"),t(!1)}):(console.error("No custom.css file found"),t(!1))});var ui=Te('<link rel="stylesheet"/>'),ci=Te("<div><!> <!></div>");const di={hash:"svelte-1n46o8q",code:".bubble-chat.svelte-1n46o8q {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-1n46o8q {visibility:visible;opacity:1;}"};function hi(e,t){Ce(t,!0),lt(e,di);let n=ft(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),r=ft(t,"linkHandling",3,"default"),i=ft(t,"chatStarted",7,!1);const s="chatbot-style";let o=M(!1),l=M(!1),a=M(ne(ln()));dn("ON_CHAT_WINDOW_STATE_CHANGE",function(A){F(a,A,!0)});function f(){i(!0)}function u(){i(!1)}function c(p,A){const oe=window.innerWidth,pt=p==null||p==="all",gt=p==="desktop"&&oe>=768,wi=p==="mobile"&&oe<768,mi=pt||gt||wi;(!A||S(a)!==!1)&&mi&&ht()}function d(){qe()}function h(p){const A=window.innerWidth,oe=window.location.hostname,pt=new URL(p).hostname,gt=oe===pt;A<768&&qe(),r()==="new-tab"?window.open(p,"_blank"):r()==="existing-tab"||gt?document.location.href=p:window.open(p,"_blank")}function w(){F(l,!0)}li(f,u,c,d,h),rn(async()=>{F(o,await fi(s),!0)});var b=ci();Ur("1n46o8q",p=>{var A=ui();ge(A,"id",s),Me(()=>ge(A,"href",`${n()}/custom.css`)),_e(p,A)});var x=rt(b);Qr(x,{get assetsUrl(){return n()},get open(){return S(a)},get onToggle(){return un}});var we=cr(x,2);Xr(we,{get server(){return t.server},get referrer(){return t.referrer},get open(){return S(a)},onLoad:w}),Me(()=>tn(b,1,`bubble-chat ${S(o)&&S(l)?"chatbot-ready":""}`,"svelte-1n46o8q")),_e(e,b),Ae()}const vi=e=>e.replace(/\/embed\/bundle\.js/,""),_i=e=>e.dataset?.server,pi=e=>{if(e&&"src"in e&&typeof e.src=="string")return _i(e)||vi(e.src)},_t=document.querySelector("script#chatbot"),hn=pi(_t),gi=_t?.getAttribute("link-handling")?_t.getAttribute("link-handling"):"default";window.chatbot=oi;const vn=()=>{console.log("Chatbot is loading from",hn),Ir(hi,{target:document.body,props:{server:hn,referrer:window.location.href,linkHandling:gi}}),$r(!0)},_n=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(vn,500):setTimeout(()=>{_n(e+1)},500)};_n();const Be=document.getElementById("chatbot");Be&&"src"in Be&&typeof Be.src=="string"&&Be.src.indexOf("caller=bookmarklet")>0&&setTimeout(vn,500)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.104.27",
3
+ "version": "4.104.28",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -50,5 +50,5 @@
50
50
  "tsx": "^4.21.0",
51
51
  "typescript": "5.9.3"
52
52
  },
53
- "gitHead": "2a67d7780ca534038f39f6be71f6d11872d986db"
53
+ "gitHead": "e530be8c7b145934628ab2e3b7441664dd7958de"
54
54
  }