@htmlbricks/hb-dialog-loader 0.61.51 → 0.61.53

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/main.iife.js CHANGED
@@ -1,19 +1,18 @@
1
- (function(ft){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const mr=2,br="[",$r="]",ge={},x=Symbol(),yr="http://www.w3.org/1999/xhtml",ct=!1;var vt=Array.isArray,Er=Array.prototype.indexOf,Tr=Array.from,Oe=Object.keys,ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,Nr=Object.prototype,Ar=Array.prototype,dt=Object.getPrototypeOf,ht=Object.isExtensible;function _t(e){for(var t=0;t<e.length;t++)e[t]()}function Or(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const R=2,qe=4,Fe=8,we=16,H=32,U=64,pt=128,C=256,Re=512,A=1024,M=2048,V=4096,le=8192,K=16384,Ye=32768,Rr=65536,gt=1<<17,Sr=1<<18,ue=1<<19,kr=1<<20,Be=1<<21,We=1<<22,J=1<<23,He=Symbol("$state"),Cr=Symbol("legacy props"),Pr=Symbol(""),Ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wt=3,mt=8;function Lr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Dr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ir(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ve(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function fe(e){$=e}let E;function Z(e){if(e===null)throw Ve(),ge;return E=e}function Ge(){return Z(ve(E))}function me(e){if($){if(ve(E)!==null)throw Ve(),ge;E=e}}function Hr(e=1){if($){for(var t=e,r=E;t--;)r=ve(r);E=r}}function bt(e){return e===this.v}function Ur(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vr(e){return!Ur(e,this.v)}let Gr=!1,D=null;function Se(e){D=e}function $t(e,t=!1,r){D={p:D,c:null,e:null,s:e,x:null,l:null}}function yt(e){var t=D,r=t.e;if(r!==null){t.e=null;for(var n of r)qt(n)}return e!==void 0&&(t.x=e),D=t.p,e??{}}function Et(){return!0}const Xr=new WeakMap;function zr(e){var t=p;if(t===null)return g.f|=J,e;if((t.f&Ye)===0){if((t.f&pt)===0)throw!t.parent&&e instanceof Error&&Tt(e),e;t.b.error(e)}else Xe(e,t)}function Xe(e,t){for(;t!==null;){if((t.f&pt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Tt(e),e}function Tt(e){const t=Xr.get(e);t&&(ae(e,"message",{value:t.message}),ae(e,"stack",{value:t.stack}))}let be=[],ze=[];function xt(){var e=be;be=[],_t(e)}function Kr(){var e=ze;ze=[],_t(e)}function Jr(e){be.length===0&&queueMicrotask(xt),be.push(e)}function Zr(){be.length>0&&xt(),ze.length>0&&Kr()}function Qr(){const e=p.b;return e===null&&Lr(),e}function Nt(e){var t=R|M,r=g!==null&&(g.f&R)!==0?g:null;return p===null||r!==null&&(r.f&C)!==0?t|=C:p.f|=ue,{ctx:D,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??p,ac:null}}function en(e,t){let r=p;r===null&&Mr();var n=r.b,i=void 0,s=Qe(x),a=null,o=!g;return pn(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;i=a?.then(u,u)??Promise.resolve(l),a=i;var f=N,v=n.is_pending();o&&(n.update_pending_count(1),v||f.increment());const c=(d,h=void 0)=>{a=null,v||f.activate(),h?h!==Ue&&(s.f|=J,et(s,h)):((s.f&J)!==0&&(s.f^=J),et(s,d)),o&&(n.update_pending_count(-1),v||f.decrement()),Rt()};if(i.then(c,d=>c(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function v(){f===i?l(s):u(i)}f.then(v,v)}u(i)})}function At(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)X(t[r])}}function tn(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return t;t=t.parent}return null}function Ke(e){var t,r=p;q(tn(e));try{At(e),t=Kt(e)}finally{q(r)}return t}function Ot(e){var t=Ke(e);if(e.equals(t)||(e.v=t,e.wv=Xt()),!re){var r=(z||(e.f&C)!==0)&&e.deps!==null?V:A;k(e,r)}}function rn(e,t,r){const n=Nt;if(t.length===0){r(e.map(n));return}var i=N,s=p,a=nn(),o=Qr();Promise.all(t.map(l=>en(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(u){(s.f&K)===0&&Xe(u,s)}i?.deactivate(),Rt()}).catch(l=>{o.error(l)})}function nn(){var e=p,t=g,r=D,n=N;return function(){q(e),P(t),Se(r),n?.activate()}}function Rt(){q(null),P(null),Se(null)}const Je=new Set;let N=null,St=new Set,ke=[];function kt(){const e=ke.shift();ke.length>0&&queueMicrotask(kt),e()}let Q=[],Ce=null,Ze=!1,Pe=!1;class ee{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#v=[];skipped_effects=new Set;process(t){Q=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#d();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],N=null,Pt(r),Pt(n),N===null?N=this:Je.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)he(i);for(const i of this.#a)he(i);this.#i=[],this.#a=[]}#h(t){t.f^=A;for(var r=t.first;r!==null;){var n=r.f,i=(n&(H|U))!==0,s=i&&(n&A)!==0,a=s||(n&le)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=A;else if((n&qe)!==0)this.#n.push(r);else if((n&A)===0)if((n&We)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else De(r)&&((r.f&we)!==0&&this.#o.push(r),he(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&M)!==0?this.#c:this.#v).push(r),k(r,A);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){N=this}deactivate(){N=null;for(const t of St)if(St.delete(t),t(),N!==null)break}neuter(){this.#f=!0}flush(){Q.length>0?Ct():this.#d(),N===this&&(this.#r===0&&Je.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)k(t,M),$e(t);for(const t of this.#v)k(t,V),$e(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Or()).promise}static ensure(){if(N===null){const t=N=new ee;Je.add(N),Pe||ee.enqueue(()=>{N===t&&t.flush()})}return N}static enqueue(t){ke.length===0&&queueMicrotask(kt),ke.unshift(t)}}function Le(e){var t=Pe;Pe=!0;try{for(var r;;){if(Zr(),Q.length===0&&(N?.flush(),Q.length===0))return Ce=null,r;Ct()}}finally{Pe=t}}function Ct(){var e=de;Ze=!0;try{var t=0;for(Ht(!0);Q.length>0;){var r=ee.ensure();if(t++>1e3){var n,i;sn()}r.process(Q),G.clear()}}finally{Ze=!1,Ht(e),Ce=null}}function sn(){try{qr()}catch(e){Xe(e,Ce)}}let te=null;function Pt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(K|le))===0&&De(n)&&(te=[],he(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Bt(n):n.fn=null),te?.length>0)){G.clear();for(const i of te)he(i);te=[]}}te=null}}function $e(e){for(var t=Ce=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ze&&t===p&&(r&we)!==0)return;if((r&(U|H))!==0){if((r&A)===0)return;t.f^=A}}Q.push(t)}const G=new Map;function Qe(e,t){var r={f:0,v:e,reactions:null,equals:bt,rv:0,wv:0};return r}function j(e,t){const r=Qe(e);return En(r),r}function an(e,t=!1,r=!0){const n=Qe(e);return t||(n.equals=Vr),n}function Y(e,t,r=!1){g!==null&&(!ne||(g.f&gt)!==0)&&Et()&&(g.f&(R|we|We|gt))!==0&&!W?.includes(e)&&Wr();let n=r?ce(t):t;return et(e,n)}function et(e,t){if(!e.equals(t)){var r=e.v;re?G.set(e,t):G.set(e,r),e.v=t;var n=ee.ensure();n.capture(e,r),(e.f&R)!==0&&((e.f&M)!==0&&Ke(e),k(e,(e.f&C)===0?A:V)),e.wv=Xt(),Lt(e,M),p!==null&&(p.f&A)!==0&&(p.f&(H|U))===0&&(L===null?Tn([e]):L.push(e))}return t}function tt(e){Y(e,e.v+1)}function Lt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&M)===0;o&&k(s,t),(a&R)!==0?Lt(s,V):o&&((a&we)!==0&&te!==null&&te.push(s),$e(s))}}function ce(e){if(typeof e!="object"||e===null||He in e)return e;const t=dt(e);if(t!==Nr&&t!==Ar)return e;var r=new Map,n=vt(e),i=j(0),s=ie,a=o=>{if(ie===s)return o();var l=g,u=ie;P(null),Gt(s);var f=o();return P(l),Gt(u),f};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Yr();var f=r.get(l);return f===void 0?f=a(()=>{var v=j(u.value);return r.set(l,v),v}):Y(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>j(x));r.set(l,f),tt(i)}}else Y(u,x),tt(i);return!0},get(o,l,u){if(l===He)return e;var f=r.get(l),v=l in o;if(f===void 0&&(!v||oe(o,l)?.writable)&&(f=a(()=>{var d=ce(v?o[l]:x),h=j(d);return h}),r.set(l,f)),f!==void 0){var c=F(f);return c===x?void 0:c}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=F(f))}else if(u===void 0){var v=r.get(l),c=v?.v;if(v!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(o,l){if(l===He)return!0;var u=r.get(l),f=u!==void 0&&u.v!==x||Reflect.has(o,l);if(u!==void 0||p!==null&&(!f||oe(o,l)?.writable)){u===void 0&&(u=a(()=>{var c=f?ce(o[l]):x,d=j(c);return d}),r.set(l,u));var v=F(u);if(v===x)return!1}return f},set(o,l,u,f){var v=r.get(l),c=l in o;if(n&&l==="length")for(var d=u;d<v.v;d+=1){var h=r.get(d+"");h!==void 0?Y(h,x):d in o&&(h=a(()=>j(x)),r.set(d+"",h))}if(v===void 0)(!c||oe(o,l)?.writable)&&(v=a(()=>j(void 0)),Y(v,ce(u)),r.set(l,v));else{c=v.v!==x;var w=a(()=>ce(u));Y(v,w)}var m=Reflect.getOwnPropertyDescriptor(o,l);if(m?.set&&m.set.call(f,u),!c){if(n&&typeof l=="string"){var T=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=T.v&&Y(T,y+1)}tt(i)}return!0},ownKeys(o){F(i);var l=Reflect.ownKeys(o).filter(v=>{var c=r.get(v);return c===void 0||c.v!==x});for(var[u,f]of r)f.v!==x&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Br()}})}var Mt,Dt,It,jt;function rt(){if(Mt===void 0){Mt=window,Dt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;It=oe(t,"firstChild").get,jt=oe(t,"nextSibling").get,ht(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ht(r)&&(r.__t=void 0)}}function ye(e=""){return document.createTextNode(e)}function Me(e){return It.call(e)}function ve(e){return jt.call(e)}function Ee(e,t){if(!$)return Me(e);var r=Me(E);return r===null&&(r=E.appendChild(ye())),Z(r),r}function on(e,t=1,r=!1){let n=$?E:e;for(var i;t--;)i=n,n=ve(n);if(!$)return n;if(r&&n?.nodeType!==wt){var s=ye();return n===null?i?.after(s):n.before(s),Z(s),s}return Z(n),n}function ln(e){e.textContent=""}function nt(e){var t=g,r=p;P(null),q(null);try{return e()}finally{P(t),q(r)}}function un(e){p===null&&g===null&&jr(),g!==null&&(g.f&C)!==0&&p===null&&Ir(),re&&Dr()}function fn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r,n=!0){var i=p;i!==null&&(i.f&le)!==0&&(e|=le);var s={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|M,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(r)try{he(s),s.f|=Ye}catch(l){throw X(s),l}else t!==null&&$e(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ue)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&fn(a,i),g!==null&&(g.f&R)!==0&&(e&U)===0)){var o=g;(o.effects??=[]).push(a)}}return s}function cn(e){const t=B(Fe,null,!1);return k(t,A),t.teardown=e,t}function vn(e){un();var t=p.f,r=!g&&(t&H)!==0&&(t&Ye)===0;if(r){var n=D;(n.e??=[]).push(e)}else return qt(e)}function qt(e){return B(qe|kr,e,!1)}function dn(e){ee.ensure();const t=B(U|ue,e,!0);return()=>{X(t)}}function hn(e){ee.ensure();const t=B(U|ue,e,!0);return(r={})=>new Promise(n=>{r.outro?$n(t,()=>{X(t),n(void 0)}):(X(t),n(void 0))})}function _n(e){return B(qe,e,!1)}function pn(e){return B(We|ue,e,!0)}function gn(e,t=0){return B(Fe|t,e,!0)}function it(e,t=[],r=[]){rn(t,r,n=>{B(Fe,()=>e(...n.map(F)),!0)})}function wn(e,t=!0){return B(H|ue,e,!0,t)}function Ft(e){var t=e.teardown;if(t!==null){const r=re,n=g;Ut(!0),P(null);try{t.call(null)}finally{Ut(r),P(n)}}}function Yt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&nt(()=>{i.abort(Ue)});var n=r.next;(r.f&U)!==0?r.parent=null:X(r,t),r=n}}function mn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&X(t),t=r}}function X(e,t=!0){var r=!1;(t||(e.f&Sr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(bn(e.nodes_start,e.nodes_end),r=!0),Yt(e,t&&!r),Ie(e,0),k(e,K);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Ft(e);var i=e.parent;i!==null&&i.first!==null&&Bt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function bn(e,t){for(;e!==null;){var r=e===t?null:ve(e);e.remove(),e=r}}function Bt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function $n(e,t){var r=[];Wt(e,r,!0),yn(r,()=>{X(e),t&&t()})}function yn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Wt(e,t,r){if((e.f&le)===0){if(e.f^=le,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Rr)!==0||(n.f&H)!==0;Wt(n,t,s?r:!1),n=i}}}let de=!1;function Ht(e){de=e}let re=!1;function Ut(e){re=e}let g=null,ne=!1;function P(e){g=e}let p=null;function q(e){p=e}let W=null;function En(e){g!==null&&(W===null?W=[e]:W.push(e))}let O=null,S=0,L=null;function Tn(e){L=e}let Vt=1,Te=0,ie=Te;function Gt(e){ie=e}let z=!1;function Xt(){return++Vt}function De(e){var t=e.f;if((t&M)!==0)return!0;if((t&V)!==0){var r=e.deps,n=(t&C)!==0;if(r!==null){var i,s,a=(t&Re)!==0,o=n&&p!==null&&!z,l=r.length;if((a||o)&&(p===null||(p.f&K)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Re),o&&f!==null&&(f.f&C)===0&&(u.f^=C)}for(i=0;i<l;i++)if(s=r[i],De(s)&&Ot(s),s.wv>e.wv)return!0}(!n||p!==null&&!z)&&k(e,A)}return!1}function zt(e,t,r=!0){var n=e.reactions;if(n!==null&&!W?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&R)!==0?zt(s,t,!1):t===s&&(r?k(s,M):(s.f&A)!==0&&k(s,V),$e(s))}}function Kt(e){var t=O,r=S,n=L,i=g,s=z,a=W,o=D,l=ne,u=ie,f=e.f;O=null,S=0,L=null,z=(f&C)!==0&&(ne||!de||g===null),g=(f&(H|U))===0?e:null,W=null,Se(e.ctx),ne=!1,ie=++Te,e.ac!==null&&(nt(()=>{e.ac.abort(Ue)}),e.ac=null);try{e.f|=Be;var v=e.fn,c=v(),d=e.deps;if(O!==null){var h;if(Ie(e,S),d!==null&&S>0)for(d.length=S+O.length,h=0;h<O.length;h++)d[S+h]=O[h];else e.deps=d=O;if(!z||(f&R)!==0&&e.reactions!==null)for(h=S;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Ie(e,S),d.length=S);if(Et()&&L!==null&&!ne&&d!==null&&(e.f&(R|V|M))===0)for(h=0;h<L.length;h++)zt(L[h],e);return i!==null&&i!==e&&(Te++,L!==null&&(n===null?n=L:n.push(...L))),(e.f&J)!==0&&(e.f^=J),c}catch(w){return zr(w)}finally{e.f^=Be,O=t,S=r,L=n,g=i,z=s,W=a,Se(o),ne=l,ie=u}}function xn(e,t){let r=t.reactions;if(r!==null){var n=Er.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&R)!==0&&(O===null||!O.includes(t))&&(k(t,V),(t.f&(C|Re))===0&&(t.f^=Re),At(t),Ie(t,0))}function Ie(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)xn(e,r[n])}function he(e){var t=e.f;if((t&K)===0){k(e,A);var r=p,n=de;p=e,de=!0;try{(t&we)!==0?mn(e):Yt(e),Ft(e);var i=Kt(e);e.teardown=typeof i=="function"?i:null,e.wv=Vt;var s;ct&&Gr&&(e.f&M)!==0&&e.deps}finally{de=n,p=r}}}function F(e){var t=e.f,r=(t&R)!==0;if(g!==null&&!ne){var n=p!==null&&(p.f&K)!==0;if(!n&&!W?.includes(e)){var i=g.deps;if((g.f&Be)!==0)e.rv<Te&&(e.rv=Te,O===null&&i!==null&&i[S]===e?S++:O===null?O=[e]:(!z||!O.includes(e))&&O.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&C)===0&&(a.f^=C)}if(re){if(G.has(e))return G.get(e);if(r){a=e;var l=a.v;return((a.f&A)===0&&a.reactions!==null||Jt(a))&&(l=Ke(a)),G.set(a,l),l}}else r&&(a=e,De(a)&&Ot(a));if((e.f&J)!==0)throw e.v;return e.v}function Jt(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(G.has(t)||(t.f&R)!==0&&Jt(t))return!0;return!1}const Nn=-7169;function k(e,t){e.f=e.f&Nn|t}const An=new Set,Zt=new Set;function On(e,t,r,n={}){function i(s){if(n.capture||xe.call(t,s),!s.cancelBubble)return nt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Jr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Rn(e,t,r,n,i){var s={capture:n,passive:i},a=On(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cn(()=>{t.removeEventListener(e,a,s)})}let Qt=null;function xe(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Qt=e;var a=0,o=Qt===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){ae(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=g,v=p;P(null),q(null);try{for(var c,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+n];if(w!=null&&(!s.disabled||e.target===s))if(vt(w)){var[m,...T]=w;m.apply(s,[e,...T])}else w.call(s,e)}catch(y){c?d.push(y):c=y}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let y of d)queueMicrotask(()=>{throw y});throw c}}finally{e.__root=t,delete e.currentTarget,P(f),q(v)}}}function Sn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function kn(e,t){var r=(t&mr)!==0,n,i=!e.startsWith("<!>");return()=>{if($)return Ne(E,null),E;n===void 0&&(n=Sn(i?e:"<!>"+e),n=Me(n));var s=r||Dt?document.importNode(n,!0):n.cloneNode(!0);return Ne(s,s),s}}function Cn(e=""){if(!$){var t=ye(e+"");return Ne(t,t),t}var r=E;return r.nodeType!==wt&&(r.before(r=ye()),Z(r)),Ne(r,r),r}function st(e,t){if($){p.nodes_end=E,Ge();return}e!==null&&e.before(t)}const Pn=["touchstart","touchmove"];function Ln(e){return Pn.includes(e)}function er(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function tr(e,t){return rr(e,t)}function Mn(e,t){rt(),t.intro=t.intro??!1;const r=t.target,n=$,i=E;try{for(var s=Me(r);s&&(s.nodeType!==mt||s.data!==br);)s=ve(s);if(!s)throw ge;fe(!0),Z(s),Ge();const a=rr(e,{...t,anchor:s});if(E===null||E.nodeType!==mt||E.data!==$r)throw Ve(),ge;return fe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Fr(),rt(),ln(r),fe(!1),tr(e,t)}finally{fe(n),Z(i)}}const _e=new Map;function rr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){rt();var o=new Set,l=v=>{for(var c=0;c<v.length;c++){var d=v[c];if(!o.has(d)){o.add(d);var h=Ln(d);t.addEventListener(d,xe,{passive:h});var w=_e.get(d);w===void 0?(document.addEventListener(d,xe,{passive:h}),_e.set(d,1)):_e.set(d,w+1)}}};l(Tr(An)),Zt.add(l);var u=void 0,f=hn(()=>{var v=r??t.appendChild(ye());return wn(()=>{if(s){$t({});var c=D;c.c=s}i&&(n.$$events=i),$&&Ne(v,null),u=e(v,n)||{},$&&(p.nodes_end=E),s&&yt()}),()=>{for(var c of o){t.removeEventListener(c,xe);var d=_e.get(c);--d===0?(document.removeEventListener(c,xe),_e.delete(c)):_e.set(c,d)}Zt.delete(l),v!==r&&v.parentNode?.removeChild(v)}});return at.set(u,f),u}let at=new WeakMap;function Dn(e,t){const r=at.get(e);return r?(at.delete(e),r(t)):Promise.resolve()}function In(e,t,r,n,i){$&&Ge();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function jn(e,t){_n(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function qn(e,t,r){var n=""+e;return n}function Fn(e,t){return e==null?null:String(e)}function Yn(e,t,r,n,i,s){var a=e.__className;if($||a!==r||a===void 0){var o=qn(r);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function nr(e,t,r,n){var i=e.__style;if($||i!==t){var s=Fn(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Bn=Symbol("is custom element"),Wn=Symbol("is html");function ir(e,t,r,n){var i=Un(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Pr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&sr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Hn(e,t,r){var n=g,i=p;let s=$;$&&fe(!1),P(null),q(null);try{t!=="style"&&(ot.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?sr(e).includes(t):r&&typeof r=="object")?e[t]=r:ir(e,t,r==null?r:String(r))}finally{P(n),q(i),s&&fe(!0)}}function Un(e){return e.__attributes??={[Bn]:e.nodeName.includes("-"),[Wn]:e.namespaceURI===yr}}var ot=new Map;function sr(e){var t=e.getAttribute("is")||e.nodeName,r=ot.get(t);if(r)return r;ot.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=xr(i);for(var a in n)n[a].set&&r.push(a);i=dt(i)}return r}function lt(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=Nt(()=>(u=!1,l())),v=p;return(function(c,d){if(arguments.length>0){const h=d?F(f):c;return Y(f,h),u=!0,i!==void 0&&(i=h),c}return re&&u||(v.f&K)!==0?f.v:F(f)})}function Vn(e){return new Gn(e)}class Gn{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=an(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return F(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Cr?!0:(F(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return Y(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Mn:tr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Le(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ae(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Dn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let ar;typeof HTMLElement=="function"&&(ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),st(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Xn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=je(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Vn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=dn(()=>{gn(()=>{this.$$r=!0;for(const n of Oe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=je(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=je(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Oe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function je(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Xn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function zn(e,t,r,n,i,s){let a=class extends ar{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Oe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Oe(t).forEach(o=>{ae(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=je(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=oe(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{ae(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const Kn={version:"0.61.51"};function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={},or;function Zn(){if(or)return se;or=1,Object.defineProperty(se,"__esModule",{value:!0}),se.LanguageTranslator=void 0,se.getChildStyleToPass=e,se.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var l=function(c){var d=i?.filter(function(h){return h.name===c&&h.defaultValue!==n[c]});d&&(o+="".concat(c,":").concat(n[c],";"))},u=0,f=Object.keys(n);u<f.length;u++){var v=f[u];l(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o,l,u="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(u=(l=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",u=n.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(l=f[i])}return l},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return se.LanguageTranslator=r,se}var Qn=Zn(),pe={},ut,lr;function ei(){if(lr)return ut;lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
3
- `,u="/",f="*",v="",c="comment",d="declaration";ut=function(w,m){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];m=m||{};var T=1,y=1;function vr(b){var _=b.match(t);_&&(T+=_.length);var I=b.lastIndexOf(l);y=~I?b.length-I:y+b.length}function dr(){var b={line:T,column:y};return function(_){return _.position=new hr(b),pr(),_}}function hr(b){this.start=b,this.end={line:T,column:y},this.source=m.source}hr.prototype.content=w;function _r(b){var _=new Error(m.source+":"+T+":"+y+": "+b);if(_.reason=b,_.filename=m.source,_.line=T,_.column=y,_.source=w,!m.silent)throw _}function Ae(b){var _=b.exec(w);if(_){var I=_[0];return vr(I),w=w.slice(I.length),_}}function pr(){Ae(r)}function gr(b){var _;for(b=b||[];_=wr();)_!==!1&&b.push(_);return b}function wr(){var b=dr();if(!(u!=w.charAt(0)||f!=w.charAt(1))){for(var _=2;v!=w.charAt(_)&&(f!=w.charAt(_)||u!=w.charAt(_+1));)++_;if(_+=2,v===w.charAt(_-1))return _r("End of comment missing");var I=w.slice(2,_-2);return y+=2,vr(I),w=w.slice(_),y+=2,b({type:c,comment:I})}}function si(){var b=dr(),_=Ae(n);if(_){if(wr(),!Ae(i))return _r("property missing ':'");var I=Ae(s),oi=b({type:d,property:h(_[0].replace(e,v)),value:I?h(I[0].replace(e,v)):v});return Ae(a),oi}}function ai(){var b=[];gr(b);for(var _;_=si();)_!==!1&&(b.push(_),gr(b));return b}return pr(),ai()};function h(w){return w?w.replace(o,v):v}return ut}var ur;function ti(){if(ur)return pe;ur=1;var e=pe&&pe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=r;var t=e(ei());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,f=l.value;o?i(u,f,l):f&&(s=s||{},s[u]=f)}}),s}return pe}var ri=ti();const fr=Jn(ri);fr.default;var ni=kn('<hb-dialog><span slot="title" class="svelte-qxv4dk"><!></span> <div slot="body-content" class="svelte-qxv4dk"><div class="progress svelte-qxv4dk"><div class="progress-bar svelte-qxv4dk" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div></div> <span slot="modal-footer" class="svelte-qxv4dk"></span></hb-dialog>',2);const ii={hash:"svelte-qxv4dk",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(ct){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const pn=2,ht="[",dt="[!",vt="]",we={},m=Symbol(),gn="http://www.w3.org/1999/xhtml",_t=!1;var wn=Array.isArray,bn=Array.prototype.indexOf,yn=Array.from,Re=Object.keys,Oe=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,$n=Object.prototype,En=Array.prototype,pt=Object.getPrototypeOf,gt=Object.isExtensible;function Tn(e){for(var t=0;t<e.length;t++)e[t]()}function wt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const $=2,Le=4,Ge=8,B=16,K=32,J=64,De=128,D=512,T=1024,N=2048,Y=4096,X=8192,Z=16384,Ke=32768,Pe=65536,bt=1<<17,yt=1<<18,ne=1<<19,xn=1<<20,be=32768,Je=1<<21,Xe=1<<22,Q=1<<23,Ze=Symbol("$state"),kn=Symbol("legacy props"),Nn=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},mt=3,Me=8;function An(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Cn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function On(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ln(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function jn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function In(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function ce(e){g=e}let b;function H(e){if(e===null)throw Qe(),we;return b=e}function et(){return H(te(b))}function ye(e){if(g){if(te(b)!==null)throw Qe(),we;b=e}}function $t(e=1){if(g){for(var t=e,n=b;t--;)n=te(n);b=n}}function Fn(e=!0){for(var t=0,n=b;;){if(n.nodeType===Me){var r=n.data;if(r===vt){if(t===0)return n;t-=1}else(r===ht||r===dt)&&(t+=1)}var i=te(n);e&&n.remove(),n=i}}function Et(e){return e===this.v}function qn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zn(e){return!qn(e,this.v)}let Bn=!1,C=null;function he(e){C=e}function Tt(e,t=!1,n){C={p:C,i:!1,c:null,e:null,s:e,x:null,l:null}}function xt(e){var t=C,n=t.e;if(n!==null){t.e=null;for(var r of n)Yt(r)}return e!==void 0&&(t.x=e),t.i=!0,C=t.p,e??{}}function kt(){return!0}let re=[];function Nt(){var e=re;re=[],Tn(e)}function je(e){if(re.length===0&&!me){var t=re;queueMicrotask(()=>{t===re&&Nt()})}re.push(e)}function Yn(){for(;re.length>0;)Nt()}function At(e){var t=_;if(t===null)return v.f|=Q,e;if((t.f&Ke)===0){if((t.f&De)===0)throw e;t.b.error(e)}else de(e,t)}function de(e,t){for(;t!==null;){if((t.f&De)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ie=new Set;let y=null,A=null,I=[],Fe=null,tt=!1,me=!1;class P{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#f=0;#s=0;#a=null;#l=[];#i=[];skipped_effects=new Set;is_fork=!1;process(t){I=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#o(),this.#s>0||this.is_fork?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(y=null,Ct(n.render_effects),Ct(n.effects),this.#a?.resolve()),A=null}#n(t,n){t.f^=T;for(var r=t.first;r!==null;){var i=r.f,s=(i&(K|J))!==0,l=s&&(i&T)!==0,o=l||(i&X)!==0||this.skipped_effects.has(r);if((r.f&De)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){s?r.f^=T:(i&Le)!==0?n.effects.push(r):ke(r)&&((r.f&B)!==0&&n.block_effects.push(r),Ne(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#r(t){for(const n of t)((n.f&N)!==0?this.#l:this.#i).push(n),k(n,T)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,t.v),A?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y=null,A=null}flush(){if(this.activate(),I.length>0){if(St(),y!==null&&y!==this)return}else this.#f===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#o(){if(this.#s===0){for(const t of this.#t)t();this.#t.clear()}this.#f===0&&this.#u()}#u(){if(Ie.size>1){this.previous.clear();var t=A,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ie){if(i===this){n=!1;continue}const s=[];for(const[o,f]of this.current){if(i.current.has(o))if(n&&f!==i.current.get(o))i.current.set(o,f);else continue;s.push(o)}if(s.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){const o=new Set,f=new Map;for(const a of s)Rt(a,l,o,f);if(I.length>0){y=i,i.apply();for(const a of I)i.#n(a,r);I=[],i.deactivate()}}}y=null,A=t}this.committed=!0,Ie.delete(this)}increment(t){this.#f+=1,t&&(this.#s+=1)}decrement(t){this.#f-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#l)k(t,N),ve(t);for(const t of this.#i)k(t,Y),ve(t);this.#l=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=wt()).promise}static ensure(){if(y===null){const t=y=new P;Ie.add(y),me||P.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){je(t)}apply(){}}function qe(e){var t=me;me=!0;try{for(var n;;){if(Yn(),I.length===0&&(y?.flush(),I.length===0))return Fe=null,n;St()}}finally{me=t}}function St(){var e=se;tt=!0;try{var t=0;for(Kt(!0);I.length>0;){var n=P.ensure();if(t++>1e3){var r,i;Hn()}n.process(I),ee.clear()}}finally{tt=!1,Kt(e),Fe=null}}function Hn(){try{On()}catch(e){de(e,Fe)}}let V=null;function Ct(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Z|X))===0&&ke(r)&&(V=new Set,Ne(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Wt(r):r.fn=null),V?.size>0)){ee.clear();for(const i of V){if((i.f&(Z|X))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)V.has(l)&&(V.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(Z|X))===0&&Ne(f)}}V.clear()}}V=null}}function Rt(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&$)!==0?Rt(i,t,n,r):(s&(Xe|B))!==0&&(s&N)===0&&Ot(i,t,r)&&(k(i,N),ve(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&$)!==0&&Ot(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ve(e){for(var t=Fe=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt&&t===_&&(n&B)!==0&&(n&yt)===0)return;if((n&(J|K))!==0){if((n&T)===0)return;t.f^=T}}I.push(t)}function Vn(e){let t=0,n=$e(0),r;return()=>{He()&&(L(n),Ht(()=>(t===0&&(r=wr(()=>e(()=>Ee(n)))),t+=1,()=>{je(()=>{t-=1,t===0&&(r?.(),r=void 0,Ee(n))})})))}}var Un=Pe|ne|De;function Wn(e,t,n){new Gn(e,t,n)}class Gn{parent;#t=!1;#e;#f=g?b:null;#s;#a;#l;#i=null;#n=null;#r=null;#o=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#b=Vn(()=>(this.#h=$e(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#a=r,this.parent=_.b,this.#t=!!this.#s.pending,this.#l=ur(()=>{if(_.b=this,g){const s=this.#f;et(),s.nodeType===Me&&s.data===dt?this.#m():this.#y()}else{var i=this.#g();try{this.#i=ie(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Un),g&&(this.#e=b)}#y(){try{this.#i=ie(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#m(){const t=this.#s.pending;t&&(this.#n=ie(()=>t(this.#e)),P.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(P.ensure(),ie(()=>this.#a(n)))),this.#c>0?this.#p():(Ve(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=pe(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(t){var n=_,r=v,i=C;R(this.#l),E(this.#l),he(this.#l.ctx);try{return t()}catch(s){return At(s),null}finally{R(n),E(r),he(i)}}#p(){const t=this.#s.pending;this.#i!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),vr(this.#i,this.#o)),this.#n===null&&(this.#n=ie(()=>t(this.#e)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#n&&Ve(this.#n,()=>{this.#n=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#w(t),this.#d+=t,this.#h&&Be(this.#h,this.#d)}get_effect_pending(){return this.#b(),L(this.#h)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#v||!n&&!r)throw t;this.#i&&(M(this.#i),this.#i=null),this.#n&&(M(this.#n),this.#n=null),this.#r&&(M(this.#r),this.#r=null),g&&(H(this.#f),$t(),H(Fn()));var i=!1,s=!1;const l=()=>{if(i){In();return}i=!0,s&&jn(),P.ensure(),this.#d=0,this.#r!==null&&Ve(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,ie(()=>this.#a(this.#e)))),this.#c>0?this.#p():this.#t=!1};var o=v;try{E(null),s=!0,n?.(t,l),s=!1}catch(f){de(f,this.#l&&this.#l.parent)}finally{E(o)}r&&je(()=>{this.#r=this.#_(()=>{P.ensure(),this.#v=!0;try{return ie(()=>{r(this.#e,()=>t,()=>l)})}catch(f){return de(f,this.#l.parent),null}finally{this.#v=!1}})})}}function Kn(e,t,n,r){const i=Lt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=y,l=_,o=Jn();function f(){Promise.all(n.map(a=>Xn(a))).then(a=>{o();try{r([...t.map(i),...a])}catch(c){(l.f&Z)===0&&de(c,l)}s?.deactivate(),ze()}).catch(a=>{de(a,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{s?.deactivate(),ze()}}):f()}function Jn(){var e=_,t=v,n=C,r=y;return function(s=!0){R(e),E(t),he(n),s&&r?.activate()}}function ze(){R(null),E(null),he(null)}function Lt(e){var t=$|N,n=v!==null&&(v.f&$)!==0?v:null;return _!==null&&(_.f|=ne),{ctx:C,deps:null,effects:null,equals:Et,f:t,fn:e,reactions:null,rv:0,v:m,wv:0,parent:n??_,ac:null}}function Xn(e,t){let n=_;n===null&&An();var r=n.b,i=void 0,s=$e(m),l=!v,o=new Map;return ar(()=>{var f=wt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===y&&a.committed&&a.deactivate(),ze()})}catch(u){f.reject(u),ze()}var a=y;if(l){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),o.get(a)?.reject(ue),o.delete(a),o.set(a,f)}const d=(u,h=void 0)=>{if(a.activate(),h)h!==ue&&(s.f|=Q,Be(s,h));else{(s.f&Q)!==0&&(s.f^=Q),Be(s,u);for(const[p,j]of o){if(o.delete(p),p===a)break;j.reject(ue)}}l&&(r.update_pending_count(-1),a.decrement(c))};f.promise.then(d,u=>d(null,u||"unknown"))}),Bt(()=>{for(const f of o.values())f.reject(ue)}),new Promise(f=>{function a(c){function d(){c===i?f(s):a(i)}c.then(d,d)}a(i)})}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)M(t[n])}}function Zn(e){for(var t=e.parent;t!==null;){if((t.f&$)===0)return t;t=t.parent}return null}function nt(e){var t,n=_;R(Zn(e));try{e.f&=~be,Dt(e),t=tn(e)}finally{R(n)}return t}function Pt(e){var t=nt(e);if(e.equals(t)||(e.v=t,e.wv=Qt()),!le)if(A!==null)He()&&A.set(e,e.v);else{var n=(e.f&D)===0?Y:T;k(e,n)}}let rt=new Set;const ee=new Map;let Mt=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:Et,rv:0,wv:0};return n}function F(e,t){const n=$e(e);return _r(n),n}function Qn(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=zn),r}function U(e,t,n=!1){v!==null&&(!z||(v.f&bt)!==0)&&kt()&&(v.f&($|B|Xe|bt))!==0&&!W?.includes(e)&&Mn();let r=n?_e(t):t;return Be(e,r)}function Be(e,t){if(!e.equals(t)){var n=e.v;le?ee.set(e,t):ee.set(e,n),e.v=t;var r=P.ensure();r.capture(e,n),(e.f&$)!==0&&((e.f&N)!==0&&nt(e),k(e,(e.f&D)!==0?T:Y)),e.wv=Qt(),jt(e,N),_!==null&&(_.f&T)!==0&&(_.f&(K|J))===0&&(O===null?pr([e]):O.push(e)),!r.is_fork&&rt.size>0&&!Mt&&er()}return t}function er(){Mt=!1;const e=Array.from(rt);for(const t of e)(t.f&T)!==0&&k(t,Y),ke(t)&&Ne(t);rt.clear()}function Ee(e){U(e,e.v+1)}function jt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,o=(l&N)===0;if(o&&k(s,t),(l&$)!==0){var f=s;A?.delete(f),(l&be)===0&&(l&D&&(s.f|=be),jt(f,Y))}else o&&((l&B)!==0&&V!==null&&V.add(s),ve(s))}}function _e(e){if(typeof e!="object"||e===null||Ze in e)return e;const t=pt(e);if(t!==$n&&t!==En)return e;var n=new Map,r=wn(e),i=F(0),s=oe,l=o=>{if(oe===s)return o();var f=v,a=oe;E(null),Zt(s);var c=o();return E(f),Zt(a),c};return r&&n.set("length",F(e.length)),new Proxy(e,{defineProperty(o,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Dn();var c=n.get(f);return c===void 0?c=l(()=>{var d=F(a.value);return n.set(f,d),d}):U(c,a.value,!0),!0},deleteProperty(o,f){var a=n.get(f);if(a===void 0){if(f in o){const c=l(()=>F(m));n.set(f,c),Ee(i)}}else U(a,m),Ee(i);return!0},get(o,f,a){if(f===Ze)return e;var c=n.get(f),d=f in o;if(c===void 0&&(!d||ae(o,f)?.writable)&&(c=l(()=>{var h=_e(d?o[f]:m),p=F(h);return p}),n.set(f,c)),c!==void 0){var u=L(c);return u===m?void 0:u}return Reflect.get(o,f,a)},getOwnPropertyDescriptor(o,f){var a=Reflect.getOwnPropertyDescriptor(o,f);if(a&&"value"in a){var c=n.get(f);c&&(a.value=L(c))}else if(a===void 0){var d=n.get(f),u=d?.v;if(d!==void 0&&u!==m)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(o,f){if(f===Ze)return!0;var a=n.get(f),c=a!==void 0&&a.v!==m||Reflect.has(o,f);if(a!==void 0||_!==null&&(!c||ae(o,f)?.writable)){a===void 0&&(a=l(()=>{var u=c?_e(o[f]):m,h=F(u);return h}),n.set(f,a));var d=L(a);if(d===m)return!1}return c},set(o,f,a,c){var d=n.get(f),u=f in o;if(r&&f==="length")for(var h=a;h<d.v;h+=1){var p=n.get(h+"");p!==void 0?U(p,m):h in o&&(p=l(()=>F(m)),n.set(h+"",p))}if(d===void 0)(!u||ae(o,f)?.writable)&&(d=l(()=>F(void 0)),U(d,_e(a)),n.set(f,d));else{u=d.v!==m;var j=l(()=>_e(a));U(d,j)}var w=Reflect.getOwnPropertyDescriptor(o,f);if(w?.set&&w.set.call(c,a),!u){if(r&&typeof f=="string"){var G=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=G.v&&U(G,Ce+1)}Ee(i)}return!0},ownKeys(o){L(i);var f=Reflect.ownKeys(o).filter(d=>{var u=n.get(d);return u===void 0||u.v!==m});for(var[a,c]of n)c.v!==m&&!(a in o)&&f.push(a);return f},setPrototypeOf(){Pn()}})}var It,Ft,qt,zt;function it(){if(It===void 0){It=window,Ft=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;qt=ae(t,"firstChild").get,zt=ae(t,"nextSibling").get,gt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gt(n)&&(n.__t=void 0)}}function pe(e=""){return document.createTextNode(e)}function Ye(e){return qt.call(e)}function te(e){return zt.call(e)}function Te(e,t){if(!g)return Ye(e);var n=Ye(b);return n===null&&(n=b.appendChild(pe())),H(n),n}function tr(e,t=1,n=!1){let r=g?b:e;for(var i;t--;)i=r,r=te(r);if(!g)return r;if(n&&r?.nodeType!==mt){var s=pe();return r===null?i?.after(s):r.before(s),H(s),s}return H(r),r}function nr(e){e.textContent=""}function st(e){var t=v,n=_;E(null),R(null);try{return e()}finally{E(t),R(n)}}function rr(e){_===null&&(v===null&&Rn(),Cn()),le&&Sn()}function ir(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t,n,r=!0){var i=_;i!==null&&(i.f&X)!==0&&(e|=X);var s={ctx:C,deps:null,nodes_start:null,nodes_end:null,f:e|N|D,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{Ne(s),s.f|=Ke}catch(f){throw M(s),f}else t!==null&&ve(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&ne)===0&&(l=l.first,(e&B)!==0&&(e&Pe)!==0&&l!==null&&(l.f|=Pe)),l!==null&&(l.parent=i,i!==null&&ir(l,i),v!==null&&(v.f&$)!==0&&(e&J)===0)){var o=v;(o.effects??=[]).push(l)}}return s}function He(){return v!==null&&!z}function Bt(e){const t=q(Ge,null,!1);return k(t,T),t.teardown=e,t}function sr(e){rr();var t=_.f,n=!v&&(t&K)!==0&&(t&Ke)===0;if(n){var r=C;(r.e??=[]).push(e)}else return Yt(e)}function Yt(e){return q(Le|xn,e,!1)}function lr(e){P.ensure();const t=q(J|ne,e,!0);return()=>{M(t)}}function or(e){P.ensure();const t=q(J|ne,e,!0);return(n={})=>new Promise(r=>{n.outro?Ve(t,()=>{M(t),r(void 0)}):(M(t),r(void 0))})}function fr(e){return q(Le,e,!1)}function ar(e){return q(Xe|ne,e,!0)}function Ht(e,t=0){return q(Ge|t,e,!0)}function lt(e,t=[],n=[],r=[],i=!1){Kn(r,t,n,s=>{q(i?Le:Ge,()=>e(...s.map(L)),!0)})}function ur(e,t=0){var n=q(B|t,e,!0);return n}function ie(e,t=!0){return q(K|ne,e,!0,t)}function Vt(e){var t=e.teardown;if(t!==null){const n=le,r=v;Jt(!0),E(null);try{t.call(null)}finally{Jt(n),E(r)}}}function Ut(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&st(()=>{i.abort(ue)});var r=n.next;(n.f&J)!==0?n.parent=null:M(n,t),n=r}}function cr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&K)===0&&M(t),t=n}}function M(e,t=!0){var n=!1;(t||(e.f&yt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(hr(e.nodes_start,e.nodes_end),n=!0),Ut(e,t&&!n),Ue(e,0),k(e,Z);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Vt(e);var i=e.parent;i!==null&&i.first!==null&&Wt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function hr(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function Wt(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 Ve(e,t,n=!0){var r=[];Gt(e,r,!0),dr(r,()=>{n&&M(e),t&&t()})}function dr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Gt(e,t,n){if((e.f&X)===0){if(e.f^=X,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Pe)!==0||(r.f&K)!==0&&(e.f&B)!==0;Gt(r,t,s?n:!1),r=i}}}function vr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:te(n);t.append(n),n=i}}let se=!1;function Kt(e){se=e}let le=!1;function Jt(e){le=e}let v=null,z=!1;function E(e){v=e}let _=null;function R(e){_=e}let W=null;function _r(e){v!==null&&(W===null?W=[e]:W.push(e))}let x=null,S=0,O=null;function pr(e){O=e}let Xt=1,xe=0,oe=xe;function Zt(e){oe=e}function Qt(){return++Xt}function ke(e){var t=e.f;if((t&N)!==0)return!0;if(t&$&&(e.f&=~be),(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(ke(s)&&Pt(s),s.wv>e.wv)return!0}(t&D)!==0&&A===null&&k(e,T)}return!1}function en(e,t,n=!0){var r=e.reactions;if(r!==null&&!W?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&$)!==0?en(s,t,!1):t===s&&(n?k(s,N):(s.f&T)!==0&&k(s,Y),ve(s))}}function tn(e){var t=x,n=S,r=O,i=v,s=W,l=C,o=z,f=oe,a=e.f;x=null,S=0,O=null,v=(a&(K|J))===0?e:null,W=null,he(e.ctx),z=!1,oe=++xe,e.ac!==null&&(st(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=Je;var c=e.fn,d=c(),u=e.deps;if(x!==null){var h;if(Ue(e,S),u!==null&&S>0)for(u.length=S+x.length,h=0;h<x.length;h++)u[S+h]=x[h];else e.deps=u=x;if(se&&He()&&(e.f&D)!==0)for(h=S;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&S<u.length&&(Ue(e,S),u.length=S);if(kt()&&O!==null&&!z&&u!==null&&(e.f&($|Y|N))===0)for(h=0;h<O.length;h++)en(O[h],e);return i!==null&&i!==e&&(xe++,O!==null&&(r===null?r=O:r.push(...O))),(e.f&Q)!==0&&(e.f^=Q),d}catch(p){return At(p)}finally{e.f^=Je,x=t,S=n,O=r,v=i,W=s,he(l),z=o,oe=f}}function gr(e,t){let n=t.reactions;if(n!==null){var r=bn.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&$)!==0&&(x===null||!x.includes(t))&&(k(t,Y),(t.f&D)!==0&&(t.f^=D,t.f&=~be),Dt(t),Ue(t,0))}function Ue(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)gr(e,n[r])}function Ne(e){var t=e.f;if((t&Z)===0){k(e,T);var n=_,r=se;_=e,se=!0;try{(t&B)!==0?cr(e):Ut(e),Vt(e);var i=tn(e);e.teardown=typeof i=="function"?i:null,e.wv=Xt;var s;_t&&Bn&&(e.f&N)!==0&&e.deps}finally{se=r,_=n}}}function L(e){var t=e.f,n=(t&$)!==0;if(v!==null&&!z){var r=_!==null&&(_.f&Z)!==0;if(!r&&!W?.includes(e)){var i=v.deps;if((v.f&Je)!==0)e.rv<xe&&(e.rv=xe,x===null&&i!==null&&i[S]===e?S++:x===null?x=[e]:x.includes(e)||x.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(le){if(ee.has(e))return ee.get(e);if(n){var l=e,o=l.v;return((l.f&T)===0&&l.reactions!==null||rn(l))&&(o=nt(l)),ee.set(l,o),o}}else if(n){if(l=e,A?.has(l))return A.get(l);ke(l)&&Pt(l),se&&He()&&(l.f&D)===0&&nn(l)}else if(A?.has(e))return A.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function nn(e){if(e.deps!==null){e.f^=D;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&$)!==0&&(t.f&D)===0&&nn(t)}}function rn(e){if(e.v===m)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&$)!==0&&rn(t))return!0;return!1}function wr(e){var t=z;try{return z=!0,e()}finally{z=t}}const br=-7169;function k(e,t){e.f=e.f&br|t}const yr=new Set,sn=new Set;function mr(e,t,n,r={}){function i(s){if(r.capture||Ae.call(t,s),!s.cancelBubble)return st(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?je(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $r(e,t,n,r,i){var s={capture:r,passive:i},l=mr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Bt(()=>{t.removeEventListener(e,l,s)})}let ln=null;function Ae(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ln=e;var l=0,o=ln===e&&e.__root;if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(s=i[l]||e.target,s!==t){Oe(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,d=_;E(null),R(null);try{for(var u,h=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var j=s["__"+r];j!=null&&(!s.disabled||e.target===s)&&j.call(s,e)}catch(w){u?h.push(w):u=w}if(e.cancelBubble||p===t||p===null)break;s=p}if(u){for(let w of h)queueMicrotask(()=>{throw w});throw u}}finally{e.__root=t,delete e.currentTarget,E(c),R(d)}}}function Er(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Se(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Tr(e,t){var n=(t&pn)!==0,r,i=!e.startsWith("<!>");return()=>{if(g)return Se(b,null),b;r===void 0&&(r=Er(i?e:"<!>"+e),r=Ye(r));var s=n||Ft?document.importNode(r,!0):r.cloneNode(!0);return Se(s,s),s}}function xr(e=""){if(!g){var t=pe(e+"");return Se(t,t),t}var n=b;return n.nodeType!==mt&&(n.before(n=pe()),H(n)),Se(n,n),n}function ot(e,t){if(g){_.nodes_end=b,et();return}e!==null&&e.before(t)}const kr=["touchstart","touchmove"];function Nr(e){return kr.includes(e)}function on(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function fn(e,t){return an(e,t)}function Ar(e,t){it(),t.intro=t.intro??!1;const n=t.target,r=g,i=b;try{for(var s=Ye(n);s&&(s.nodeType!==Me||s.data!==ht);)s=te(s);if(!s)throw we;ce(!0),H(s);const l=an(e,{...t,anchor:s});return ce(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==we&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Ln(),it(),nr(n),ce(!1),fn(e,t)}finally{ce(r),H(i)}}const ge=new Map;function an(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){it();var o=new Set,f=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!o.has(h)){o.add(h);var p=Nr(h);t.addEventListener(h,Ae,{passive:p});var j=ge.get(h);j===void 0?(document.addEventListener(h,Ae,{passive:p}),ge.set(h,1)):ge.set(h,j+1)}}};f(yn(yr)),sn.add(f);var a=void 0,c=or(()=>{var d=n??t.appendChild(pe());return Wn(d,{pending:()=>{}},u=>{if(s){Tt({});var h=C;h.c=s}if(i&&(r.$$events=i),g&&Se(u,null),a=e(u,r)||{},g&&(_.nodes_end=b,b===null||b.nodeType!==Me||b.data!==vt))throw Qe(),we;s&&xt()}),()=>{for(var u of o){t.removeEventListener(u,Ae);var h=ge.get(u);--h===0?(document.removeEventListener(u,Ae),ge.delete(u)):ge.set(u,h)}sn.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return ft.set(a,c),a}let ft=new WeakMap;function Sr(e,t){const n=ft.get(e);return n?(ft.delete(e),n(t)):Promise.resolve()}function Cr(e,t,n,r,i){g&&et();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function Rr(e,t){fr(()=>{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)}})}function Or(e,t,n){var r=""+e;return r}function Lr(e,t){return e==null?null:String(e)}function Dr(e,t,n,r,i,s){var l=e.__className;if(g||l!==n||l===void 0){var o=Or(n);(!g||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}function un(e,t,n,r){var i=e.__style;if(g||i!==t){var s=Lr(t);(!g||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Pr=Symbol("is custom element"),Mr=Symbol("is html");function cn(e,t,n,r){var i=Ir(e);g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Nn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&hn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function jr(e,t,n){var r=v,i=_;let s=g;g&&ce(!1),E(null),R(null);try{t!=="style"&&(at.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?hn(e).includes(t):n&&typeof n=="object")?e[t]=n:cn(e,t,n==null?n:String(n))}finally{E(r),R(i),s&&ce(!0)}}function Ir(e){return e.__attributes??={[Pr]:e.nodeName.includes("-"),[Mr]:e.namespaceURI===gn}}var at=new Map;function hn(e){var t=e.getAttribute("is")||e.nodeName,n=at.get(t);if(n)return n;at.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=mn(i);for(var l in r)r[l].set&&n.push(l);i=pt(i)}return n}function ut(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var f;f=()=>{var u=e[t];return u===void 0?l():(s=!0,u)};var a=!1,c=Lt(()=>(a=!1,f())),d=_;return(function(u,h){if(arguments.length>0){const p=h?L(c):u;return U(c,p),a=!0,i!==void 0&&(i=p),u}return le&&a||(d.f&Z)!==0?c.v:L(c)})}function Fr(e){return new qr(e)}class qr{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var o=Qn(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return L(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===kn?!0:(L(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return U(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#e=(t.hydrate?Ar:fn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&qe(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Oe(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Sr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let dn;typeof HTMLElement=="function"&&(dn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),ot(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=zr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=We(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Fr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=lr(()=>{Ht(()=>{this.$$r=!0;for(const r of Re(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=We(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=We(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Re(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function We(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function zr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Br(e,t,n,r,i,s){let l=class extends dn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Re(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Re(t).forEach(o=>{Oe(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=We(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var c=ae(a,o)?.get;c?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{Oe(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Yr={version:"0.61.53"};var fe={},vn;function Hr(){if(vn)return fe;vn=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.LanguageTranslator=void 0,fe.getChildStyleToPass=e,fe.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var f=function(u){var h=i?.filter(function(p){return p.name===u&&p.defaultValue!==r[u]});h&&(o+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var d=c[a];f(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var f="",a=r.getDefaultLang();if(!l||a!==l){var c=s?.[a];c?.[i]&&(f=c[i])}return f},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return fe.LanguageTranslator=n,fe}var Vr=Hr(),Ur=Tr('<hb-dialog><span slot="title" class="svelte-zfk11q"><!></span> <div slot="body-content" class="svelte-zfk11q"><div class="progress svelte-zfk11q"><div class="progress-bar svelte-zfk11q" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div></div> <span slot="modal-footer" class="svelte-zfk11q"></span></hb-dialog>',2);const Wr={hash:"svelte-zfk11q",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
3
  /*!
5
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
5
  * Copyright 2011-2021 The Bootstrap Authors
7
6
  * Copyright 2011-2021 Twitter, Inc.
8
7
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
9
8
  */
10
- @keyframes svelte-qxv4dk-progress-bar-stripes {
9
+ @keyframes svelte-zfk11q-progress-bar-stripes {
11
10
  0% {
12
11
  background-position-x: var(--bs-progress-height);
13
12
  }
14
- }.progress.svelte-qxv4dk {--bs-progress-height: 1rem;--bs-progress-font-size: 0.75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius);}.progress-bar.svelte-qxv4dk {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition);}
15
- @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-qxv4dk {transition:none;}
13
+ }.progress.svelte-zfk11q {--bs-progress-height: 1rem;--bs-progress-font-size: 0.75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius);}.progress-bar.svelte-zfk11q {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition);}
14
+ @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-zfk11q {transition:none;}
16
15
  }
17
16
  @media (prefers-reduced-motion: reduce) {
18
- }:host {font-family:"Roboto", sans-serif;}`};function cr(e,t){$t(t,!0),jn(e,ii),ce({});let r=j("");function n(m,T){t.$$host.dispatchEvent(new CustomEvent(m,{detail:T}))}Qn.addComponent({repoName:"@htmlbricks/hb-dialog",version:Kn.version});let i=lt(t,"id",7,""),s=lt(t,"title",7,"loading"),a=lt(t,"percentage",7,0);vn(()=>{typeof a()=="string"&&a(parseInt(a()))});function o(m){n("modalShow",m)}var l={get id(){return i()},set id(m=""){i(m),Le()},get title(){return s()},set title(m="loading"){s(m),Le()},get percentage(){return a()},set percentage(m=0){a(m),Le()}},u=ni();nr(u,F(r)),it(()=>Hn(u,"show",a()?"yes":"no")),Yn(u,1,"svelte-qxv4dk");var f=Ee(u),v=Ee(f);In(v,t,"title",{},m=>{var T=Cn();it(()=>er(T,s())),st(m,T)}),me(f);var c=on(f,2),d=Ee(c),h=Ee(d),w=Ee(h);return me(h),me(d),me(c),Hr(2),me(u),it((m,T,y)=>{nr(h,`width:${m??""}%`),ir(h,"aria-valuenow",T),er(w,`${y??""}%`)},[()=>Math.round(a()),()=>Math.round(a()),()=>Math.round(a())]),Rn("modalShow",u,m=>o(m.detail)),st(e,u),yt(l)}customElements.define("hb-dialog-loader",zn(cr,{id:{},title:{},percentage:{}},["title"],[],!0)),ft.Component=cr,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})})(this["dialog-loader"]=this["dialog-loader"]||{});
17
+ }:host {font-family:"Roboto", sans-serif;}`};function _n(e,t){Tt(t,!0),Rr(e,Wr),_e({});let n=F("");function r(w,G){t.$$host.dispatchEvent(new CustomEvent(w,{detail:G}))}Vr.addComponent({repoName:"@htmlbricks/hb-dialog",version:Yr.version});let i=ut(t,"id",7,""),s=ut(t,"title",7,"loading"),l=ut(t,"percentage",7,0);sr(()=>{typeof l()=="string"&&l(parseInt(l()))});function o(w){r("modalShow",w)}var f={get id(){return i()},set id(w=""){i(w),qe()},get title(){return s()},set title(w="loading"){s(w),qe()},get percentage(){return l()},set percentage(w=0){l(w),qe()}},a=Ur();un(a,L(n)),lt(()=>jr(a,"show",l()?"yes":"no")),Dr(a,1,"svelte-zfk11q");var c=Te(a),d=Te(c);Cr(d,t,"title",{},w=>{var G=xr();lt(()=>on(G,s())),ot(w,G)}),ye(c);var u=tr(c,2),h=Te(u),p=Te(h),j=Te(p);return ye(p),ye(h),ye(u),$t(2),ye(a),lt((w,G,Ce)=>{un(p,`width:${w??""}%`),cn(p,"aria-valuenow",G),on(j,`${Ce??""}%`)},[()=>Math.round(l()),()=>Math.round(l()),()=>Math.round(l())]),$r("modalShow",a,w=>o(w.detail)),ot(e,a),xt(f)}customElements.define("hb-dialog-loader",Br(_n,{id:{},title:{},percentage:{}},["title"],[],!0)),ct.Component=_n,Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"})})(this["dialog-loader"]=this["dialog-loader"]||{});
19
18
  //# sourceMappingURL=main.iife.js.map