@botfabrik/engine-webclient 4.102.4 → 4.102.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client/index.html
CHANGED
|
@@ -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-
|
|
16
|
+
<script type="module" crossorigin src="./assets/index-BDTcnnaG.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="./assets/index-nVfX9aR5.css">
|
|
18
18
|
</head>
|
|
19
19
|
|
package/dist/embed/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";const gt=!1;var _n=Array.isArray,pn=Array.prototype.indexOf,gn=Array.from,wn=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,bn=Object.prototype,yn=Array.prototype,wt=Object.getPrototypeOf,mt=Object.isExtensible;function En(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 b=2,Se=4,Ye=8,B=16,W=32,ee=64,Te=128,y=1024,O=2048,H=4096,z=8192,Y=16384,Ge=32768,ae=65536,yt=1<<17,Ke=1<<18,le=1<<19,kn=1<<20,P=256,Oe=512,Ce=32768,Ve=1<<21,Ze=1<<22,J=1<<23,Ae=Symbol("$state"),xn=Symbol("legacy props"),Sn=Symbol(""),fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Tn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function On(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function An(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function In(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Mn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Fn=1,Un=4,zn=8,jn=16,qn=1,Bn=2,E=Symbol(),Wn="http://www.w3.org/1999/xhtml";function Hn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Et(e){return e===this.v}function Yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Gn(e){return!Yn(e,this.v)}let Kn=!1,R=null;function ue(e){R=e}function Re(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ie(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 ce=[];function Vn(){var e=ce;ce=[],En(e)}function Je(e){if(ce.length===0){var t=ce;queueMicrotask(()=>{t===ce&&Vn()})}ce.push(e)}function xt(e){var t=_;if(t===null)return v.f|=J,e;if((t.f&Ge)===0){if((t.f&Te)===0)throw e;t.b.error(e)}else de(e,t)}function de(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 De=new Set;let m=null,N=null,Q=[],Qe=null,Xe=!1;class j{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;process(t){Q=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#f(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(m=null,St(n.render_effects),St(n.effects),this.#l?.resolve()),N=null}#i(t,n){t.f^=y;for(var r=t.first;r!==null;){var i=r.f,o=(i&(W|ee))!==0,s=o&&(i&y)!==0,l=s||(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:[],block_effects:[]}),!l&&r.fn!==null){o?r.f^=y:(i&Se)!==0?n.effects.push(r):Ee(r)&&((r.f&B)!==0&&n.block_effects.push(r),ke(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.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#s(t){for(const n of t)((n.f&O)!==0?this.#o:this.#a).push(n),k(n,y)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&J)===0&&(this.current.set(t,t.v),N?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m=null,N=null}flush(){if(this.activate(),Q.length>0){if(Zn(),m!==null&&m!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#f(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#u()}#u(){if(De.size>1){this.previous.clear();var t=N,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of De){if(i===this){n=!1;continue}const o=[];for(const[l,a]of this.current){if(i.current.has(l))if(n&&a!==i.current.get(l))i.current.set(l,a);else continue;o.push(l)}if(o.length===0)continue;const s=[...i.current.keys()].filter(l=>!this.current.has(l));if(s.length>0){const l=new Set,a=new Map;for(const f of o)Tt(f,s,l,a);if(Q.length>0){m=i,i.apply();for(const f of Q)i.#i(f,r);Q=[],i.deactivate()}}}m=null,N=t}this.committed=!0,De.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)k(t,O),te(t);for(const t of this.#a)k(t,H),te(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#l??=bt()).promise}static ensure(){if(m===null){const t=m=new j;De.add(m),j.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){Je(t)}apply(){}}function Zn(){var e=ve;Xe=!0;try{var t=0;for(Ht(!0);Q.length>0;){var n=j.ensure();if(t++>1e3){var r,i;Jn()}n.process(Q),X.clear()}}finally{Xe=!1,Ht(e),Qe=null}}function Jn(){try{In()}catch(e){de(e,Qe)}}let G=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Y|z))===0&&Ee(r)&&(G=new Set,ke(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?jt(r):r.fn=null),G?.size>0)){X.clear();for(const i of G){if((i.f&(Y|z))!==0)continue;const o=[i];let s=i.parent;for(;s!==null;)G.has(s)&&(G.delete(s),o.push(s)),s=s.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(Y|z))===0&&ke(a)}}G.clear()}}G=null}}function Tt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&b)!==0?Tt(i,t,n,r):(o&(Ze|B))!==0&&(o&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&b)!==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(Xe&&t===_&&(n&B)!==0&&(n&Ke)===0)return;if((n&(ee|W))!==0){if((n&y)===0)return;t.f^=y}}Q.push(t)}function Qn(e){let t=0,n=Le(0),r;return()=>{hr()&&(T(n),mr(()=>(t===0&&(r=it(()=>e(()=>me(n)))),t+=1,()=>{Je(()=>{t-=1,t===0&&(r?.(),r=void 0,me(n))})})))}}var Xn=ae|le|Te;function $n(e,t,n){new er(e,t,n)}class er{parent;#e=!1;#t;#n=null;#r;#l;#o;#a=null;#i=null;#s=null;#f=null;#u=null;#h=0;#c=0;#v=!1;#d=null;#m=Qn(()=>(this.#d=Le(this.#h),()=>{this.#d=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#l=r,this.parent=_.b,this.#e=!!this.#r.pending,this.#o=rt(()=>{_.b=this;{var i=this.#g();try{this.#a=V(()=>r(i))}catch(o){this.error(o)}this.#c>0?this.#p():this.#e=!1}return()=>{this.#u?.remove()}},Xn)}#b(){try{this.#a=V(()=>this.#l(this.#t))}catch(t){this.error(t)}this.#e=!1}#y(){const t=this.#r.pending;t&&(this.#i=V(()=>t(this.#t)),j.enqueue(()=>{var n=this.#g();this.#a=this.#_(()=>(j.ensure(),V(()=>this.#l(n)))),this.#c>0?this.#p():(be(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#g(){var t=this.#t;return this.#e&&(this.#u=he(),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.#r.pending}#_(t){var n=_,r=v,i=R;q(this.#o),C(this.#o),ue(this.#o.ctx);try{return t()}catch(o){return xt(o),null}finally{q(n),C(r),ue(i)}}#p(){const t=this.#r.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Wt(this.#a,this.#f)),this.#i===null&&(this.#i=V(()=>t(this.#t)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#c+=t,this.#c===0&&(this.#e=!1,this.#i&&be(this.#i,()=>{this.#i=null}),this.#f&&(this.#t.before(this.#f),this.#f=null))}update_pending_count(t){this.#w(t),this.#h+=t,this.#d&&Ne(this.#d,this.#h)}get_effect_pending(){return this.#m(),T(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#a&&(I(this.#a),this.#a=null),this.#i&&(I(this.#i),this.#i=null),this.#s&&(I(this.#s),this.#s=null);var i=!1,o=!1;const s=()=>{if(i){Hn();return}i=!0,o&&Mn(),j.ensure(),this.#h=0,this.#s!==null&&be(this.#s,()=>{this.#s=null}),this.#e=this.has_pending_snippet(),this.#a=this.#_(()=>(this.#v=!1,V(()=>this.#l(this.#t)))),this.#c>0?this.#p():this.#e=!1};var l=v;try{C(null),o=!0,n?.(t,s),o=!1}catch(a){de(a,this.#o&&this.#o.parent)}finally{C(l)}r&&Je(()=>{this.#s=this.#_(()=>{j.ensure(),this.#v=!0;try{return V(()=>{r(this.#t,()=>t,()=>s)})}catch(a){return de(a,this.#o.parent),null}finally{this.#v=!1}})})}}function tr(e,t,n,r){const i=$e;if(n.length===0&&e.length===0){r(t.map(i));return}var o=m,s=_,l=nr();function a(){Promise.all(n.map(f=>rr(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(u){(s.f&Y)===0&&de(u,s)}o?.deactivate(),Pe()}).catch(f=>{de(f,s)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{o?.deactivate(),Pe()}}):a()}function nr(){var e=_,t=v,n=R,r=m;return function(o=!0){q(e),C(t),ue(n),o&&r?.activate()}}function Pe(){q(null),C(null),ue(null)}function $e(e){var t=b|O,n=v!==null&&(v.f&b)!==0?v:null;return _===null||n!==null&&(n.f&P)!==0?t|=P:_.f|=le,{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 rr(e,t){let n=_;n===null&&On();var r=n.b,i=void 0,o=Le(E),s=!v,l=new Map;return wr(()=>{var a=bt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===m&&f.committed&&f.deactivate(),Pe()})}catch(h){a.reject(h),Pe()}var f=m;if(s){var u=!r.is_pending();r.update_pending_count(1),f.increment(u),l.get(f)?.reject(fe),l.delete(f),l.set(f,a)}const d=(h,c=void 0)=>{if(f.activate(),c)c!==fe&&(o.f|=J,Ne(o,c));else{(o.f&J)!==0&&(o.f^=J),Ne(o,h);for(const[p,w]of l){if(l.delete(p),p===f)break;w.reject(fe)}}s&&(r.update_pending_count(-1),f.decrement(u))};a.promise.then(d,h=>d(null,h||"unknown"))}),vr(()=>{for(const a of l.values())a.reject(fe)}),new Promise(a=>{function f(u){function d(){u===i?a(o):f(i)}u.then(d,d)}f(i)})}function ir(e){const t=$e(e);return t.equals=Gn,t}function Ct(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)I(t[n])}}function sr(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return t;t=t.parent}return null}function et(e){var t,n=_;q(sr(e));try{e.f&=~Ce,Ct(e),t=Jt(e)}finally{q(n)}return t}function At(e){var t=et(e);if(e.equals(t)||(e.v=t,e.wv=Vt()),!re)if(N!==null)N.set(e,e.v);else{var n=($||(e.f&P)!==0)&&e.deps!==null?H:y;k(e,n)}}let tt=new Set;const X=new Map;let Rt=!1;function Le(e,t){var n={f:0,v:e,reactions:null,equals:Et,rv:0,wv:0};return n}function M(e,t){const n=Le(e);return xr(n),n}function F(e,t,n=!1){v!==null&&(!U||(v.f&yt)!==0)&&kt()&&(v.f&(b|B|Ze|yt))!==0&&!Z?.includes(e)&&Nn();let r=n?ne(t):t;return Ne(e,r)}function Ne(e,t){if(!e.equals(t)){var n=e.v;re?X.set(e,t):X.set(e,n),e.v=t;var r=j.ensure();r.capture(e,n),(e.f&b)!==0&&((e.f&O)!==0&&et(e),k(e,(e.f&P)===0?y:H)),e.wv=Vt(),It(e,O),_!==null&&(_.f&y)!==0&&(_.f&(W|ee))===0&&(L===null?Sr([e]):L.push(e)),!r.is_fork&&tt.size>0&&!Rt&&or()}return t}function or(){Rt=!1;const e=Array.from(tt);for(const t of e)(t.f&y)!==0&&k(t,H),Ee(t)&&ke(t);tt.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 o=n[i],s=o.f,l=(s&O)===0;l&&k(o,t),(s&b)!==0?(s&Ce)===0&&(o.f|=Ce,It(o,H)):l&&((s&B)!==0&&G!==null&&G.add(o),te(o))}}function ne(e){if(typeof e!="object"||e===null||Ae in e)return e;const t=wt(e);if(t!==bn&&t!==yn)return e;var n=new Map,r=_n(e),i=M(0),o=ie,s=l=>{if(ie===o)return l();var a=v,f=ie;C(null),Kt(o);var u=l();return C(a),Kt(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=s(()=>{var d=M(f.value);return n.set(a,d),d}):F(u,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const u=s(()=>M(E));n.set(a,u),me(i)}}else F(f,E),me(i);return!0},get(l,a,f){if(a===Ae)return e;var u=n.get(a),d=a in l;if(u===void 0&&(!d||oe(l,a)?.writable)&&(u=s(()=>{var c=ne(d?l[a]:E),p=M(c);return p}),n.set(a,u)),u!==void 0){var h=T(u);return h===E?void 0:h}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=T(u))}else if(f===void 0){var d=n.get(a),h=d?.v;if(d!==void 0&&h!==E)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(l,a){if(a===Ae)return!0;var f=n.get(a),u=f!==void 0&&f.v!==E||Reflect.has(l,a);if(f!==void 0||_!==null&&(!u||oe(l,a)?.writable)){f===void 0&&(f=s(()=>{var h=u?ne(l[a]):E,c=M(h);return c}),n.set(a,f));var d=T(f);if(d===E)return!1}return u},set(l,a,f,u){var d=n.get(a),h=a in l;if(r&&a==="length")for(var c=f;c<d.v;c+=1){var p=n.get(c+"");p!==void 0?F(p,E):c in l&&(p=s(()=>M(E)),n.set(c+"",p))}if(d===void 0)(!h||oe(l,a)?.writable)&&(d=s(()=>M(void 0)),F(d,ne(f)),n.set(a,d));else{h=d.v!==E;var w=s(()=>ne(f));F(d,w)}var x=Reflect.getOwnPropertyDescriptor(l,a);if(x?.set&&x.set.call(u,f),!h){if(r&&typeof a=="string"){var we=n.get("length"),g=Number(a);Number.isInteger(g)&&g>=we.v&&F(we,g+1)}me(i)}return!0},ownKeys(l){T(i);var a=Reflect.ownKeys(l).filter(d=>{var h=n.get(d);return h===void 0||h.v!==E});for(var[f,u]of n)u.v!==E&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Ln()}})}var Dt,Pt,Lt,Nt;function ar(){if(Dt===void 0){Dt=window,Pt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Lt=oe(t,"firstChild").get,Nt=oe(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 he(e=""){return document.createTextNode(e)}function Me(e){return Lt.call(e)}function Fe(e){return Nt.call(e)}function nt(e,t){return Me(e)}function lr(e,t=!1){{var n=Me(e);return n instanceof Comment&&n.data===""?Fe(n):n}}function fr(e,t=1,n=!1){let r=e;for(;t--;)r=Fe(r);return r}function ur(){return!1}function Mt(e){var t=v,n=_;C(null),q(null);try{return e()}finally{C(t),q(n)}}function cr(e){_===null&&v===null&&Rn(),v!==null&&(v.f&P)!==0&&_===null&&An(),re&&Cn()}function dr(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,r=!0){var i=_;i!==null&&(i.f&z)!==0&&(e|=z);var o={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|O,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ke(o),o.f|=Ge}catch(a){throw I(o),a}else t!==null&&te(o);if(r){var s=o;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&le)===0&&(s=s.first,(e&B)!==0&&(e&ae)!==0&&s!==null&&(s.f|=ae)),s!==null&&(s.parent=i,i!==null&&dr(s,i),v!==null&&(v.f&b)!==0&&(e&ee)===0)){var l=v;(l.effects??=[]).push(s)}}return o}function hr(){return v!==null&&!U}function vr(e){const t=K(Ye,null,!1);return k(t,y),t.teardown=e,t}function _r(e){cr();var t=_.f,n=!v&&(t&W)!==0&&(t&Ge)===0;if(n){var r=R;(r.e??=[]).push(e)}else return Ft(e)}function Ft(e){return K(Se|kn,e,!1)}function pr(e){j.ensure();const t=K(ee|le,e,!0);return(n={})=>new Promise(r=>{n.outro?be(t,()=>{I(t),r(void 0)}):(I(t),r(void 0))})}function gr(e){return K(Se,e,!1)}function wr(e){return K(Ze|le,e,!0)}function mr(e,t=0){return K(Ye|t,e,!0)}function Ue(e,t=[],n=[],r=[],i=!1){tr(r,t,n,o=>{K(i?Se:Ye,()=>e(...o.map(T)),!0)})}function rt(e,t=0){var n=K(B|t,e,!0);return n}function V(e,t=!0){return K(W|le,e,!0,t)}function Ut(e){var t=e.teardown;if(t!==null){const n=re,r=v;Yt(!0),C(null);try{t.call(null)}finally{Yt(n),C(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Mt(()=>{i.abort(fe)});var r=n.next;(n.f&ee)!==0?n.parent=null:I(n,t),n=r}}function br(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&W)===0&&I(t),t=n}}function I(e,t=!0){var n=!1;(t||(e.f&Ke)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(yr(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),ze(e,0),k(e,Y);var r=e.transitions;if(r!==null)for(const o of r)o.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_start=e.nodes_end=e.ac=null}function yr(e,t){for(;e!==null;){var n=e===t?null:Fe(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 be(e,t,n=!0){var r=[];qt(e,r,!0),Er(r,()=>{n&&I(e),t&&t()})}function Er(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function qt(e,t,n){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&ae)!==0||(r.f&W)!==0&&(e.f&B)!==0;qt(r,t,o?n:!1),r=i}}}function kr(e){Bt(e,!0)}function Bt(e,t){if((e.f&z)!==0){e.f^=z,(e.f&y)===0&&(k(e,O),te(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ae)!==0||(n.f&W)!==0;Bt(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Wt(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Fe(n);t.append(n),n=i}}let ve=!1;function Ht(e){ve=e}let re=!1;function Yt(e){re=e}let v=null,U=!1;function C(e){v=e}let _=null;function q(e){_=e}let Z=null;function xr(e){v!==null&&(Z===null?Z=[e]:Z.push(e))}let S=null,D=0,L=null;function Sr(e){L=e}let Gt=1,ye=0,ie=ye;function Kt(e){ie=e}let $=!1;function Vt(){return++Gt}function Ee(e){var t=e.f;if((t&O)!==0)return!0;if((t&H)!==0){var n=e.deps,r=(t&P)!==0;if(t&b&&(e.f&=~Ce),n!==null){var i,o,s=(t&Oe)!==0,l=r&&_!==null&&!$,a=n.length;if((s||l)&&(_===null||(_.f&Y)===0)){var f=e,u=f.parent;for(i=0;i<a;i++)o=n[i],(s||!o?.reactions?.includes(f))&&(o.reactions??=[]).push(f);s&&(f.f^=Oe),l&&u!==null&&(u.f&P)===0&&(f.f^=P)}for(i=0;i<a;i++)if(o=n[i],Ee(o)&&At(o),o.wv>e.wv)return!0}(!r||_!==null&&!$)&&k(e,y)}return!1}function Zt(e,t,n=!0){var r=e.reactions;if(r!==null&&!Z?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&b)!==0?Zt(o,t,!1):t===o&&(n?k(o,O):(o.f&y)!==0&&k(o,H),te(o))}}function Jt(e){var t=S,n=D,r=L,i=v,o=$,s=Z,l=R,a=U,f=ie,u=e.f;S=null,D=0,L=null,$=(u&P)!==0&&(U||!ve||v===null),v=(u&(W|ee))===0?e:null,Z=null,ue(e.ctx),U=!1,ie=++ye,e.ac!==null&&(Mt(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=Ve;var d=e.fn,h=d(),c=e.deps;if(S!==null){var p;if(ze(e,D),c!==null&&D>0)for(c.length=D+S.length,p=0;p<S.length;p++)c[D+p]=S[p];else e.deps=c=S;if(!$||(u&b)!==0&&e.reactions!==null)for(p=D;p<c.length;p++)(c[p].reactions??=[]).push(e)}else c!==null&&D<c.length&&(ze(e,D),c.length=D);if(kt()&&L!==null&&!U&&c!==null&&(e.f&(b|H|O))===0)for(p=0;p<L.length;p++)Zt(L[p],e);return i!==null&&i!==e&&(ye++,L!==null&&(r===null?r=L:r.push(...L))),(e.f&J)!==0&&(e.f^=J),h}catch(w){return xt(w)}finally{e.f^=Ve,S=t,D=n,L=r,v=i,$=o,Z=s,ue(l),U=a,ie=f}}function Tr(e,t){let n=t.reactions;if(n!==null){var r=pn.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&b)!==0&&(S===null||!S.includes(t))&&(k(t,H),(t.f&(P|Oe))===0&&(t.f^=Oe),Ct(t),ze(t,0))}function ze(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Tr(e,n[r])}function ke(e){var t=e.f;if((t&Y)===0){k(e,y);var n=_,r=ve;_=e,ve=!0;try{(t&B)!==0?br(e):zt(e),Ut(e);var i=Jt(e);e.teardown=typeof i=="function"?i:null,e.wv=Gt;var o;gt&&Kn&&(e.f&O)!==0&&e.deps}finally{ve=r,_=n}}}function T(e){var t=e.f,n=(t&b)!==0;if(v!==null&&!U){var r=_!==null&&(_.f&Y)!==0;if(!r&&!Z?.includes(e)){var i=v.deps;if((v.f&Ve)!==0)e.rv<ye&&(e.rv=ye,S===null&&i!==null&&i[D]===e?D++:S===null?S=[e]:(!$||!S.includes(e))&&S.push(e));else{(v.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[v]:o.includes(v)||o.push(v)}}}else if(n&&e.deps===null&&e.effects===null){var s=e,l=s.parent;l!==null&&(l.f&P)===0&&(s.f^=P)}if(re){if(X.has(e))return X.get(e);if(n){s=e;var a=s.v;return((s.f&y)===0&&s.reactions!==null||Qt(s))&&(a=et(s)),X.set(s,a),a}}else if(n){if(s=e,N?.has(s))return N.get(s);Ee(s)&&At(s)}if(N?.has(e))return N.get(e);if((e.f&J)!==0)throw e.v;return e.v}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&b)!==0&&Qt(t))return!0;return!1}function it(e){var t=U;try{return U=!0,e()}finally{U=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 Xt=new Set,st=new Set;function Rr(e){for(var t=0;t<e.length;t++)Xt.add(e[t]);for(var n of st)n(e)}let $t=null;function je(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;$t=e;var s=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&&(s=a)}if(o=i[s]||e.target,o!==t){wn(e,"currentTarget",{configurable:!0,get(){return o||n}});var u=v,d=_;C(null),q(null);try{for(var h,c=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var w=o["__"+r];w!=null&&(!o.disabled||e.target===o)&&w.call(o,e)}catch(x){h?c.push(x):h=x}if(e.cancelBubble||p===t||p===null)break;o=p}if(h){for(let x of c)queueMicrotask(()=>{throw x});throw h}}finally{e.__root=t,delete e.currentTarget,C(u),q(d)}}}function Ir(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ot(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function xe(e,t){var n=(t&qn)!==0,r=(t&Bn)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=Ir(o?e:"<!>"+e),n||(i=Me(i)));var s=r||Pt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Me(s),a=s.lastChild;ot(l,a)}else ot(s,s);return s}}function Dr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=he();return e.append(t,n),ot(t,n),e}function _e(e,t){e!==null&&e.before(t)}function Pr(e,t){return Lr(e,t)}const pe=new Map;function Lr(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0}){ar();var l=new Set,a=d=>{for(var h=0;h<d.length;h++){var c=d[h];if(!l.has(c)){l.add(c);var p=Ar(c);t.addEventListener(c,je,{passive:p});var w=pe.get(c);w===void 0?(document.addEventListener(c,je,{passive:p}),pe.set(c,1)):pe.set(c,w+1)}}};a(gn(Xt)),st.add(a);var f=void 0,u=pr(()=>{var d=n??t.appendChild(he());return $n(d,{pending:()=>{}},h=>{if(o){Re({});var c=R;c.c=o}i&&(r.$$events=i),f=e(h,r)||{},o&&Ie()}),()=>{for(var h of l){t.removeEventListener(h,je);var c=pe.get(h);--c===0?(document.removeEventListener(h,je),pe.delete(h)):pe.set(h,c)}st.delete(a),d!==n&&d.parentNode?.removeChild(d)}});return Nr.set(f,u),f}let Nr=new WeakMap;class Mr{anchor;#e=new Map;#t=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#l=()=>{var t=m;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)kr(r);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,s]of this.#e){if(this.#e.delete(o),o===t)break;const l=this.#n.get(s);l&&(I(l.effect),this.#n.delete(s))}for(const[o,s]of this.#t){if(o===n)continue;const l=()=>{if(Array.from(this.#e.values()).includes(o)){var f=document.createDocumentFragment();Wt(s,f),f.append(he()),this.#n.set(o,{effect:s,fragment:f})}else I(s);this.#t.delete(o)};this.#r||!r?be(s,l,!1):l()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(I(i.effect),this.#n.delete(r))};ensure(t,n){var r=m,i=ur();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var o=document.createDocumentFragment(),s=he();o.append(s),this.#n.set(t,{effect:V(()=>n(s)),fragment:o})}else this.#t.set(t,V(()=>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.#n)l===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#l),r.ondiscard(this.#o)}else this.#l()}}function Fr(e,t,n=!1){var r=new Mr(e),i=n?ae:0;function o(s,l){r.ensure(s,l)}rt(()=>{var s=!1;t((l,a=!0)=>{s=!0,o(a,l)}),s||o(!1,null)},i)}function Ur(e,t){var n;n=document.head.appendChild(he());try{rt(()=>t(n),Ke)}finally{}}function at(e,t){gr(()=>{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
|
|
1
|
+
(function(){"use strict";const gt=!1;var _n=Array.isArray,pn=Array.prototype.indexOf,gn=Array.from,wn=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,bn=Object.prototype,yn=Array.prototype,wt=Object.getPrototypeOf,mt=Object.isExtensible;function En(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,W=16,H=32,ee=64,Se=128,N=512,y=1024,O=2048,Y=4096,U=8192,G=16384,Ge=32768,le=65536,yt=1<<17,Ke=1<<18,fe=1<<19,kn=1<<20,te=32768,Ve=1<<21,Ze=1<<22,Q=1<<23,Te=Symbol("$state"),xn=Symbol("legacy props"),Sn=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Tn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function On(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function An(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function In(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Pn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Dn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Mn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Fn=1,Un=4,zn=8,jn=16,qn=1,Bn=2,E=Symbol(),Wn="http://www.w3.org/1999/xhtml";function Hn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Et(e){return e===this.v}function Yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Gn(e){return!Yn(e,this.v)}let Kn=!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 Ce(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 Vn(){var e=de;de=[],En(e)}function Je(e){if(de.length===0){var t=de;queueMicrotask(()=>{t===de&&Vn()})}de.push(e)}function xt(e){var t=_;if(t===null)return v.f|=Q,e;if((t.f&Ge)===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 Ae=new Set;let w=null,I=null,z=[],Qe=null,Xe=!1;class j{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){z=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(w=null,St(n.render_effects),St(n.effects),this.#l?.resolve()),I=null}#i(t,n){t.f^=y;for(var r=t.first;r!==null;){var i=r.f,s=(i&(H|ee))!==0,o=s&&(i&y)!==0,l=o||(i&U)!==0||this.skipped_effects.has(r);if((r.f&Se)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=y:(i&He)!==0?n.effects.push(r):Ee(r)&&((r.f&W)!==0&&n.block_effects.push(r),ke(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.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#s(t){for(const n of t)((n.f&O)!==0?this.#o:this.#a).push(n),this.#f(n.deps),k(n,y)}#f(t){if(t!==null)for(const n of t)(n.f&m)===0||(n.f&te)===0||(n.f^=te,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),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(this.activate(),z.length>0){if(Zn(),w!==null&&w!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#u(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#c()}#c(){if(Ae.size>1){this.previous.clear();var t=I,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ae){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 c of o)Tt(c,l,a,f);if(z.length>0){w=s,s.apply();for(const c of z)s.#i(c,r);s.deactivate()}z=i}}w=null,I=t}this.committed=!0,Ae.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)k(t,O),ne(t);for(const t of this.#a)k(t,Y),ne(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#l??=bt()).promise}static ensure(){if(w===null){const t=w=new j;Ae.add(w),j.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Je(t)}apply(){}}function Zn(){var e=$;Xe=!0;try{var t=0;for(Fe(!0);z.length>0;){var n=j.ensure();if(t++>1e3){var r,i;Jn()}n.process(z),X.clear()}}finally{Xe=!1,Fe(e),Qe=null}}function Jn(){try{In()}catch(e){he(e,Qe)}}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|U))===0&&Ee(r)&&(K=new Set,ke(r),r.deps===null&&r.first===null&&r.nodes_start===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|U))!==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|U))===0&&ke(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&(Ze|W))!==0&&(s&O)===0&&Ot(i,t,r)&&(k(i,O),ne(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 ne(e){for(var t=Qe=e;t.parent!==null;){t=t.parent;var n=t.f;if(Xe&&t===_&&(n&W)!==0&&(n&Ke)===0)return;if((n&(ee|H))!==0){if((n&y)===0)return;t.f^=y}}z.push(t)}function Qn(e){let t=0,n=Ie(0),r;return()=>{Ne()&&(T(n),wr(()=>(t===0&&(r=it(()=>e(()=>me(n)))),t+=1,()=>{Je(()=>{t-=1,t===0&&(r?.(),r=void 0,me(n))})})))}}var Xn=le|fe|Se;function $n(e,t,n){new er(e,t,n)}class er{parent;#e=!1;#t;#n=null;#r;#l;#o;#a=null;#i=null;#s=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=Qn(()=>(this.#h=Ie(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#l=r,this.parent=_.b,this.#e=!!this.#r.pending,this.#o=rt(()=>{_.b=this;{var i=this.#g();try{this.#a=Z(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#e=!1}return()=>{this.#u?.remove()}},Xn)}#b(){try{this.#a=Z(()=>this.#l(this.#t))}catch(t){this.error(t)}this.#e=!1}#y(){const t=this.#r.pending;t&&(this.#i=Z(()=>t(this.#t)),j.enqueue(()=>{var n=this.#g();this.#a=this.#_(()=>(j.ensure(),Z(()=>this.#l(n)))),this.#d>0?this.#p():(be(this.#i,()=>{this.#i=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.#r.pending}#_(t){var n=_,r=v,i=R;B(this.#o),C(this.#o),ce(this.#o.ctx);try{return t()}catch(s){return xt(s),null}finally{B(n),C(r),ce(i)}}#p(){const t=this.#r.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Wt(this.#a,this.#f)),this.#i===null&&(this.#i=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.#i&&be(this.#i,()=>{this.#i=null}),this.#f&&(this.#t.before(this.#f),this.#f=null))}update_pending_count(t){this.#w(t),this.#c+=t,this.#h&&Pe(this.#h,this.#c)}get_effect_pending(){return this.#m(),T(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#a&&(P(this.#a),this.#a=null),this.#i&&(P(this.#i),this.#i=null),this.#s&&(P(this.#s),this.#s=null);var i=!1,s=!1;const o=()=>{if(i){Hn();return}i=!0,s&&Mn(),j.ensure(),this.#c=0,this.#s!==null&&be(this.#s,()=>{this.#s=null}),this.#e=this.has_pending_snippet(),this.#a=this.#_(()=>(this.#v=!1,Z(()=>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.#o&&this.#o.parent)}finally{C(l)}r&&Je(()=>{this.#s=this.#_(()=>{j.ensure(),this.#v=!0;try{return Z(()=>{r(this.#t,()=>t,()=>o)})}catch(a){return he(a,this.#o.parent),null}finally{this.#v=!1}})})}}function tr(e,t,n,r){const i=$e;if(n.length===0&&e.length===0){r(t.map(i));return}var s=w,o=_,l=nr();function a(){Promise.all(n.map(f=>rr(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(c){(o.f&G)===0&&he(c,o)}s?.deactivate(),Re()}).catch(f=>{he(f,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),Re()}}):a()}function nr(){var e=_,t=v,n=R,r=w;return function(s=!0){B(e),C(t),ce(n),s&&r?.activate()}}function Re(){B(null),C(null),ce(null)}function $e(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 rr(e,t){let n=_;n===null&&On();var r=n.b,i=void 0,s=Ie(E),o=!v,l=new Map;return gr(()=>{var a=bt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===w&&f.committed&&f.deactivate(),Re()})}catch(u){a.reject(u),Re()}var f=w;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,Pe(s,d));else{(s.f&Q)!==0&&(s.f^=Q),Pe(s,u);for(const[g,b]of l){if(l.delete(g),g===f)break;b.reject(ue)}}o&&(r.update_pending_count(-1),f.decrement(c))};a.promise.then(h,u=>h(null,u||"unknown"))}),hr(()=>{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 ir(e){const t=$e(e);return t.equals=Gn,t}function Ct(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function sr(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 et(e){var t,n=_;B(sr(e));try{e.f&=~te,Ct(e),t=Zt(e)}finally{B(n)}return t}function At(e){var t=et(e);if(e.equals(t)||(e.v=t,e.wv=Kt()),!ie)if(I!==null)Ne()&&I.set(e,e.v);else{var n=(e.f&N)===0?Y:y;k(e,n)}}let tt=new Set;const X=new Map;let Rt=!1;function Ie(e,t){var n={f:0,v:e,reactions:null,equals:Et,rv:0,wv:0};return n}function M(e,t){const n=Ie(e);return kr(n),n}function F(e,t,n=!1){v!==null&&(!q||(v.f&yt)!==0)&&kt()&&(v.f&(m|W|Ze|yt))!==0&&!J?.includes(e)&&Nn();let r=n?re(t):t;return Pe(e,r)}function Pe(e,t){if(!e.equals(t)){var n=e.v;ie?X.set(e,t):X.set(e,n),e.v=t;var r=j.ensure();r.capture(e,n),(e.f&m)!==0&&((e.f&O)!==0&&et(e),k(e,(e.f&N)!==0?y:Y)),e.wv=Kt(),It(e,O),_!==null&&(_.f&y)!==0&&(_.f&(H|ee))===0&&(L===null?xr([e]):L.push(e)),!r.is_fork&&tt.size>0&&!Rt&&or()}return t}function or(){Rt=!1;var e=$;Fe(!0);const t=Array.from(tt);try{for(const n of t)(n.f&y)!==0&&k(n,Y),Ee(n)&&ke(n)}finally{Fe(e)}tt.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&O)===0;if(l&&k(s,t),(o&m)!==0){var a=s;I?.delete(a),(o&te)===0&&(o&N&&(s.f|=te),It(a,Y))}else l&&((o&W)!==0&&K!==null&&K.add(s),ne(s))}}function re(e){if(typeof e!="object"||e===null||Te in e)return e;const t=wt(e);if(t!==bn&&t!==yn)return e;var n=new Map,r=_n(e),i=M(0),s=se,o=l=>{if(se===s)return l();var a=v,f=se;C(null),Gt(s);var c=l();return C(a),Gt(f),c};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)&&Dn();var c=n.get(a);return c===void 0?c=o(()=>{var h=M(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(()=>M(E));n.set(a,c),me(i)}}else F(f,E),me(i);return!0},get(l,a,f){if(a===Te)return e;var c=n.get(a),h=a in l;if(c===void 0&&(!h||ae(l,a)?.writable)&&(c=o(()=>{var d=re(h?l[a]:E),g=M(d);return g}),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===Te)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?re(l[a]):E,d=M(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 g=n.get(d+"");g!==void 0?F(g,E):d in l&&(g=o(()=>M(E)),n.set(d+"",g))}if(h===void 0)(!u||ae(l,a)?.writable)&&(h=o(()=>M(void 0)),F(h,re(f)),n.set(a,h));else{u=h.v!==E;var b=o(()=>re(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(){Ln()}})}var Pt,Dt,Lt,Nt;function ar(){if(Pt===void 0){Pt=window,Dt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Lt=ae(t,"firstChild").get,Nt=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 De(e){return Lt.call(e)}function Le(e){return Nt.call(e)}function nt(e,t){return De(e)}function lr(e,t=!1){{var n=De(e);return n instanceof Comment&&n.data===""?Le(n):n}}function fr(e,t=1,n=!1){let r=e;for(;t--;)r=Le(r);return r}function ur(){return!1}function Mt(e){var t=v,n=_;C(null),B(null);try{return e()}finally{C(t),B(n)}}function cr(e){_===null&&(v===null&&Rn(),An()),ie&&Cn()}function dr(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&U)!==0&&(e|=U);var i={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|O|N,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ke(i),i.f|=Ge}catch(l){throw P(i),l}else t!==null&&ne(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&fe)===0&&(s=s.first,(e&W)!==0&&(e&le)!==0&&s!==null&&(s.f|=le)),s!==null&&(s.parent=r,r!==null&&dr(s,r),v!==null&&(v.f&m)!==0&&(e&ee)===0)){var o=v;(o.effects??=[]).push(s)}return i}function Ne(){return v!==null&&!q}function hr(e){const t=V(Ye,null,!1);return k(t,y),t.teardown=e,t}function vr(e){cr();var t=_.f,n=!v&&(t&H)!==0&&(t&Ge)===0;if(n){var r=R;(r.e??=[]).push(e)}else return Ft(e)}function Ft(e){return V(He|kn,e,!1)}function _r(e){j.ensure();const t=V(ee|fe,e,!0);return(n={})=>new Promise(r=>{n.outro?be(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function pr(e){return V(He,e,!1)}function gr(e){return V(Ze|fe,e,!0)}function wr(e,t=0){return V(Ye|t,e,!0)}function Me(e,t=[],n=[],r=[]){tr(r,t,n,i=>{V(Ye,()=>e(...i.map(T)),!0)})}function rt(e,t=0){var n=V(W|t,e,!0);return n}function Z(e){return V(H|fe,e,!0)}function Ut(e){var t=e.teardown;if(t!==null){const n=ie,r=v;Ht(!0),C(null);try{t.call(null)}finally{Ht(n),C(r)}}}function zt(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&ee)!==0?n.parent=null:P(n,t),n=r}}function mr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&H)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&Ke)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(br(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),Ue(e,0),k(e,G);var r=e.transitions;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_start=e.nodes_end=e.ac=null}function br(e,t){for(;e!==null;){var n=e===t?null:Le(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 be(e,t,n=!0){var r=[];qt(e,r,!0),yr(r,()=>{n&&P(e),t&&t()})}function yr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function qt(e,t,n){if((e.f&U)===0){if(e.f^=U,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&le)!==0||(r.f&H)!==0&&(e.f&W)!==0;qt(r,t,s?n:!1),r=i}}}function Er(e){Bt(e,!0)}function Bt(e,t){if((e.f&U)!==0){e.f^=U,(e.f&y)===0&&(k(e,O),ne(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&le)!==0||(n.f&H)!==0;Bt(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Wt(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Le(n);t.append(n),n=i}}let $=!1;function Fe(e){$=e}let ie=!1;function Ht(e){ie=e}let v=null,q=!1;function C(e){v=e}let _=null;function B(e){_=e}let J=null;function kr(e){v!==null&&(J===null?J=[e]:J.push(e))}let S=null,D=0,L=null;function xr(e){L=e}let Yt=1,ye=0,se=ye;function Gt(e){se=e}function Kt(){return++Yt}function Ee(e){var t=e.f;if((t&O)!==0)return!0;if(t&m&&(e.f&=~te),(t&Y)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Ee(s)&&At(s),s.wv>e.wv)return!0}(t&N)!==0&&I===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,O):(s.f&y)!==0&&k(s,Y),ne(s))}}function Zt(e){var t=S,n=D,r=L,i=v,s=J,o=R,l=q,a=se,f=e.f;S=null,D=0,L=null,v=(f&(H|ee))===0?e:null,J=null,ce(e.ctx),q=!1,se=++ye,e.ac!==null&&(Mt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=Ve;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($&&Ne()&&(e.f&N)!==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()&&L!==null&&!q&&u!==null&&(e.f&(m|Y|O))===0)for(d=0;d<L.length;d++)Vt(L[d],e);return i!==null&&i!==e&&(ye++,L!==null&&(r===null?r=L:r.push(...L))),(e.f&Q)!==0&&(e.f^=Q),h}catch(g){return xt(g)}finally{e.f^=Ve,S=t,D=n,L=r,v=i,J=s,ce(o),q=l,se=a}}function Sr(e,t){let n=t.reactions;if(n!==null){var r=pn.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,Y),(t.f&N)!==0&&(t.f^=N,t.f&=~te),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 ke(e){var t=e.f;if((t&G)===0){k(e,y);var n=_,r=$;_=e,$=!0;try{(t&W)!==0?mr(e):zt(e),Ut(e);var i=Zt(e);e.teardown=typeof i=="function"?i:null,e.wv=Yt;var s;gt&&Kn&&(e.f&O)!==0&&e.deps}finally{$=r,_=n}}}function T(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!q){var r=_!==null&&(_.f&G)!==0;if(!r&&!J?.includes(e)){var i=v.deps;if((v.f&Ve)!==0)e.rv<ye&&(e.rv=ye,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=et(o)),X.set(o,l),l}}else if(n){if(o=e,I?.has(o))return I.get(o);Ee(o)&&At(o),$&&Ne()&&(o.f&N)===0&&Jt(o)}else if(I?.has(e))return I.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function Jt(e){if(e.deps!==null){e.f^=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&N)===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 it(e){var t=q;try{return q=!0,e()}finally{q=t}}const Tr=-7169;function k(e,t){e.f=e.f&Tr|t}const Or=["touchstart","touchmove"];function Cr(e){return Or.includes(e)}const Xt=new Set,st=new Set;function Ar(e){for(var t=0;t<e.length;t++)Xt.add(e[t]);for(var n of st)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){wn(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,h=_;C(null),B(null);try{for(var u,d=[];s!==null;){var g=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||g===t||g===null)break;s=g}if(u){for(let x of d)queueMicrotask(()=>{throw x});throw u}}finally{e.__root=t,delete e.currentTarget,C(c),B(h)}}}function Rr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ot(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function xe(e,t){var n=(t&qn)!==0,r=(t&Bn)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=Rr(s?e:"<!>"+e),n||(i=De(i)));var o=r||Dt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=De(o),a=o.lastChild;ot(l,a)}else ot(o,o);return o}}function Ir(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ve();return e.append(t,n),ot(t,n),e}function _e(e,t){e!==null&&e.before(t)}function Pr(e,t){return Dr(e,t)}const pe=new Map;function Dr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){ar();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 g=Cr(d);t.addEventListener(d,ze,{passive:g});var b=pe.get(d);b===void 0?(document.addEventListener(d,ze,{passive:g}),pe.set(d,1)):pe.set(d,b+1)}}};a(gn(Xt)),st.add(a);var f=void 0,c=_r(()=>{var h=n??t.appendChild(ve());return $n(h,{pending:()=>{}},u=>{if(s){Oe({});var d=R;d.c=s}i&&(r.$$events=i),f=e(u,r)||{},s&&Ce()}),()=>{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)}st.delete(a),h!==n&&h.parentNode?.removeChild(h)}});return Lr.set(f,c),f}let Lr=new WeakMap;class Nr{anchor;#e=new Map;#t=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#l=()=>{var t=w;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)Er(r);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.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.#n.get(o);l&&(P(l.effect),this.#n.delete(o))}for(const[s,o]of this.#t){if(s===n)continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Wt(o,f),f.append(ve()),this.#n.set(s,{effect:o,fragment:f})}else P(o);this.#t.delete(s)};this.#r||!r?be(o,l,!1):l()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(P(i.effect),this.#n.delete(r))};ensure(t,n){var r=w,i=ur();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=ve();s.append(o),this.#n.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.#n)l===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#l),r.ondiscard(this.#o)}else this.#l()}}function Mr(e,t,n=!1){var r=new Nr(e),i=n?le:0;function s(o,l){r.ensure(o,l)}rt(()=>{var o=!1;t((l,a=!0)=>{o=!0,s(a,l)}),o||s(!1,null)},i)}function Fr(e,t){var n;n=document.head.appendChild(ve());try{rt(()=>t(n),Ke)}finally{}}function at(e,t){pr(()=>{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 Ur(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=Ur(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[Sn]=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===Wn}}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=mn(i);for(var o in r)r[o].set&&n.push(o);i=wt(i)}return n}let je=!1;function Wr(e){var t=je;try{return je=!1,[e(),je]}finally{je=t}}function lt(e,t,n,r){var i=(n&zn)!==0,s=(n&jn)!==0,o=r,l=!0,a=()=>(l&&(l=!1,o=s?it(r):r),o),f;if(i){var c=Te in e||xn in e;f=ae(e,t)?.set??(c&&t in e?p=>e[t]=p:void 0)}var h,u=!1;i?[h,u]=Wr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),f&&(Pn(),f(h)));var d;if(d=()=>{var p=e[t];return p===void 0?a():(l=!0,p)},(n&Un)===0)return d;if(f){var g=e.$$legacy;return(function(p,A){return arguments.length>0?((!A||g||u)&&f(A?d():p),p):d()})}var b=!1,x=((n&Fn)!==0?$e:ir)(()=>(b=!1,d()));i&&T(x);var we=_;return(function(p,A){if(arguments.length>0){const oe=A?T(x):i?re(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&&Tn(),vr(()=>{const t=it(e);if(typeof t=="function")return t})}const Hr="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Hr);var Yr=xe('<div><iframe id="chat-frame" title="Chat" class="bot svelte-yhk8rr" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),Gr=xe(`<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
|
<script
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<br class="svelte-yhk8rr"/>
|
|
13
13
|
src="https://server.com/webclient/embed/bundle.js"> </script>
|
|
14
14
|
</code>
|
|
15
|
-
</pre>`,1);const
|
|
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, 43em);max-height:var(--window-max-height, calc(100vh - 2em));width:var(--window-width, 25em);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, 43em));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
|
|
23
|
+
pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function Vr(e,t){Oe(t,!0),at(e,Kr),rn(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=Ir(),r=lr(n);{var i=o=>{var l=Yr();let a;var f=nt(l);Me(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=Gr();_e(o,l)};Mr(r,o=>{t.server?o(i):o(s,!1)})}_e(e,n),Ce()}var Zr=xe('<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
|
|
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){Oe(t,!0),at(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=nt(r);Me(()=>{ge(r,"aria-expanded",t.open?"true":"false"),ge(i,"src",`${t.assetsUrl}/fab.svg`)}),_e(e,r),Ce()}Ar(["click","keydown"]);let sn=!1;function Xr(e){sn=e}function $r(){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 ei={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 ft(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 ft(this.converter,qe({},this.attributes,i))},withConverter:function(i){return ft(qe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var on=ft(ei,{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})},ut=[];let ct=ln();function dt(){ct=!0,fn("open"),ut.forEach(function(e){e.call(window,!0)})}function Be(){ct=!1,fn("closed"),ut.forEach(function(e){e.call(window,!1)})}function un(){ct?Be():dt()}function ti(){ht({type:"RESTART_CHAT"})}function ni(e){ht({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function ri(e){ht({type:"TRIGGER_STORY",story:e})}function ht(e){document.getElementById("chat-frame")?.contentWindow?.postMessage(e,"*")}function cn(e,t){switch(e){case"ON_CHAT_WINDOW_STATE_CHANGE":ut.push(t);break;default:throw new Error("Unsupported event "+e)}}const ii=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:Be,enterGuestMessage:ni,isChatbotLoaded:$r,openChatWindow:dt,restartChat:ti,subscribe:cn,toggleChatWindow:un,triggerStory:ri},Symbol.toStringTag,{value:"Module"}));function si(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}const oi=()=>{si()&&document.querySelectorAll("html, body").forEach(e=>{e.classList.add("iOS-device")})},ai=e=>{"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)=>{window.addEventListener("message",s=>{const o=s.data;switch(o.type){case"webclient.chat.started":e();break;case"webclient.chat.ended":t();break;case"webclient.window.expand":n(o.devices,o.initial);break;case"webclient.window.close":r();break;case"webclient.change.url":i(o.url);break;case"google.tag.event":ai(o.payload);break}},!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=xe('<link rel="stylesheet"/>'),ci=xe("<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),at(e,di);let n=lt(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),r=lt(t,"linkHandling",3,"default"),i=lt(t,"chatStarted",7,!1);const s="chatbot-style";let o=M(!1),l=M(!1);oi();let a=M(re(ln()));cn("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,_t=p==null||p==="all",pt=p==="desktop"&&oe>=768,wi=p==="mobile"&&oe<768,mi=_t||pt||wi;(A?T(a)!==!1:!0)&&mi&&dt()}function u(){Be()}function d(p){const A=window.innerWidth,oe=window.location.hostname,_t=new URL(p).hostname,pt=oe===_t;A<768&&Be(),r()==="new-tab"?window.open(p,"_blank"):r()==="existing-tab"||pt?document.location.href=p:window.open(p,"_blank")}function g(){F(l,!0)}li(f,c,h,u,d),rn(async()=>{F(o,await fi(s),!0)});var b=ci();Fr("1n46o8q",p=>{var A=ui();ge(A,"id",s),Me(()=>ge(A,"href",`${n()}/custom.css`)),_e(p,A)});var x=nt(b);Qr(x,{get assetsUrl(){return n()},get open(){return T(a)},get onToggle(){return un}});var we=fr(x,2);Vr(we,{get server(){return t.server},get referrer(){return t.referrer},get open(){return T(a)},onLoad:g}),Me(()=>tn(b,1,`bubble-chat ${T(o)&&T(l)?"chatbot-ready":""}`,"svelte-1n46o8q")),_e(e,b),Ce()}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)},vt=document.querySelector("script#chatbot"),dn=pi(vt),gi=vt?.getAttribute("link-handling")?vt.getAttribute("link-handling"):"default";window.chatbot=ii;const hn=()=>{console.log("Chatbot is loading from",dn),Pr(hi,{target:document.body,props:{server:dn,referrer:window.location.href,linkHandling:gi}}),Xr(!0)},vn=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(hn,500):setTimeout(()=>{vn(e+1)},500)};vn();const We=document.getElementById("chatbot");We&&"src"in We&&typeof We.src=="string"&&We.src.indexOf("caller=bookmarklet")>0&&setTimeout(hn,500)})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botfabrik/engine-webclient",
|
|
3
|
-
"version": "4.102.
|
|
3
|
+
"version": "4.102.5",
|
|
4
4
|
"description": "Webclient for Botfabriks Bot Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"dev:embed": "tsx --watch ./run-embed-local.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@botfabrik/engine-domain": "^4.102.
|
|
35
|
-
"@botfabrik/engine-transcript-export": "^4.102.
|
|
36
|
-
"@botfabrik/engine-utils": "^4.102.
|
|
34
|
+
"@botfabrik/engine-domain": "^4.102.5",
|
|
35
|
+
"@botfabrik/engine-transcript-export": "^4.102.5",
|
|
36
|
+
"@botfabrik/engine-utils": "^4.102.5",
|
|
37
37
|
"@google-cloud/speech": "^7.2.1",
|
|
38
38
|
"@node-saml/passport-saml": "^5.1.0",
|
|
39
39
|
"accept-language-parser": "^1.5.0",
|
|
40
40
|
"express": "^5.1.0",
|
|
41
41
|
"flat": "^6.0.1",
|
|
42
|
-
"jose": "^6.1.
|
|
42
|
+
"jose": "^6.1.2",
|
|
43
43
|
"passport": "^0.7.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"tsx": "^4.20.6",
|
|
55
55
|
"typescript": "5.9.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a546468fd80f096feffbcbd2b94a4a4285ae5931"
|
|
58
58
|
}
|