@htmlbricks/hb-downloader 0.65.22 → 0.66.0

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,5 +1,5 @@
1
- (function(Ct){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pr=1,Fr=2,At="[",lt="[!",Nt="]",be={},k=Symbol(),Ir="http://www.w3.org/1999/xhtml",ft=!1;var qr=Array.isArray,Br=Array.prototype.indexOf,Hr=Array.from,Ye=Object.keys,Ve=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,Ur=Object.getOwnPropertyDescriptors,Yr=Object.prototype,Vr=Array.prototype,St=Object.getPrototypeOf,Rt=Object.isExtensible;function Wr(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const T=2,ut=4,ct=8,K=16,X=32,se=64,We=128,q=512,x=1024,R=2048,Z=4096,V=8192,Q=16384,ze=32768,$e=65536,Lt=1<<17,jt=1<<18,de=1<<19,zr=1<<20,he=32768,dt=1<<21,ht=1<<22,oe=1<<23,vt=Symbol("$state"),Gr=Symbol("legacy props"),Jr=Symbol(""),Ee=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Re=8;function Kr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Xr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function en(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tn(){throw new Error("https://svelte.dev/e/hydration_failed")}function rn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function on(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function an(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function ae(e){m=e}let b;function B(e){if(e===null)throw Ge(),be;return b=e}function Je(){return B(te(b))}function Oe(e){if(m){if(te(b)!==null)throw Ge(),be;b=e}}function Mt(e=1){if(m){for(var t=e,r=b;t--;)r=te(r);b=r}}function Dt(e=!0){for(var t=0,r=b;;){if(r.nodeType===Re){var n=r.data;if(n===Nt){if(t===0)return r;t-=1}else(n===At||n===lt)&&(t+=1)}var i=te(r);e&&r.remove(),r=i}}function ln(e){if(!e||e.nodeType!==Re)throw Ge(),be;return e.data}function Pt(e){return e===this.v}function fn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function un(e){return!fn(e,this.v)}let cn=!1,M=null;function Te(e){M=e}function Ft(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function It(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)ir(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function qt(){return!0}let ve=[];function Bt(){var e=ve;ve=[],Wr(e)}function Ke(e){if(ve.length===0&&!Le){var t=ve;queueMicrotask(()=>{t===ve&&Bt()})}ve.push(e)}function dn(){for(;ve.length>0;)Bt()}function Ht(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&ze)===0){if((t.f&We)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&We)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Xe=new Set;let $=null,D=null,P=[],Ze=null,pt=!1,Le=!1;class H{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){P=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):($=null,Yt(r.render_effects),Yt(r.effects),this.#l?.resolve()),D=null}#o(t,r){t.f^=x;for(var n=t.first;n!==null;){var i=n.f,s=(i&(X|se))!==0,o=s&&(i&x)!==0,a=o||(i&V)!==0||this.skipped_effects.has(n);if((n.f&We)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=x:(i&ut)!==0?r.effects.push(n):Ie(n)&&((n.f&K)!==0&&r.block_effects.push(n),qe(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&R)!==0?this.#s:this.#i).push(r),this.#f(r.deps),A(r,x)}#f(t){if(t!==null)for(const r of t)(r.f&T)===0||(r.f&he)===0||(r.f^=he,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,t.v),D?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,D=null)}flush(){if(this.activate(),P.length>0){if(Ut(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Xe.size>1){this.previous.clear();var t=D,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Xe){if(s===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&f!==s.current.get(l))s.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var i=P;P=[];const l=new Set,f=new Map;for(const c of o)Vt(c,a,l,f);if(P.length>0){$=s,s.apply();for(const c of P)s.#o(c,n);s.deactivate()}P=i}}$=null,D=t}this.committed=!0,Xe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)A(t,R),_e(t);for(const t of this.#i)A(t,Z),_e(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ot()).promise}static ensure(){if($===null){const t=$=new H;Xe.add($),Le||H.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Ke(t)}apply(){}}function xe(e){var t=Le;Le=!0;try{for(var r;;){if(dn(),P.length===0&&($?.flush(),P.length===0))return Ze=null,r;Ut()}}finally{Le=t}}function Ut(){var e=fe;pt=!0;var t=null;try{var r=0;for(nt(!0);P.length>0;){var n=H.ensure();if(r++>1e3){var i,s;hn()}n.process(P),le.clear()}}finally{pt=!1,nt(e),Ze=null}}function hn(){try{en()}catch(e){ke(e,Ze)}}let ee=null;function Yt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Q|V))===0&&Ie(n)&&(ee=new Set,qe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?fr(n):n.fn=null),ee?.size>0)){le.clear();for(const i of ee){if((i.f&(Q|V))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)ee.has(o)&&(ee.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(Q|V))===0&&qe(l)}}ee.clear()}}ee=null}}function Vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?Vt(i,t,r,n):(s&(ht|K))!==0&&(s&R)===0&&Wt(i,t,n)&&(A(i,R),_e(i))}}function Wt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&T)!==0&&Wt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function _e(e){for(var t=Ze=e;t.parent!==null;){t=t.parent;var r=t.f;if(pt&&t===p&&(r&K)!==0&&(r&jt)===0)return;if((r&(se|X))!==0){if((r&x)===0)return;t.f^=x}}P.push(t)}function vn(e){let t=0,r=je(0),n;return()=>{tt()&&(v(r),sr(()=>(t===0&&(n=Bn(()=>e(()=>Me(r)))),t+=1,()=>{Ke(()=>{t-=1,t===0&&(n?.(),n=void 0,Me(r))})})))}}var _n=$e|de|We;function pn(e,t,r){new gn(e,t,r)}class gn{parent;#t=!1;#e;#r=m?b:null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#w=vn(()=>(this.#h=je(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=or(()=>{if(p.b=this,m){const s=this.#r;Je(),s.nodeType===Re&&s.data===lt?this.#y():this.#b()}else{var i=this.#g();try{this.#i=re(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},_n),m&&(this.#e=b)}#b(){try{this.#i=re(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#o=re(()=>t(this.#e)),H.enqueue(()=>{var r=this.#g();this.#i=this.#_(()=>(H.ensure(),re(()=>this.#l(r)))),this.#d>0?this.#p():(Pe(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=W(),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.#n.pending}#_(t){var r=p,n=_,i=M;F(this.#s),C(this.#s),Te(this.#s.ctx);try{return t()}catch(s){return Ht(s),null}finally{F(r),C(n),Te(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),dr(this.#i,this.#f)),this.#o===null&&(this.#o=re(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&Pe(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#h&&et(this.#h,this.#c)}get_effect_pending(){return this.#w(),v(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(O(this.#i),this.#i=null),this.#o&&(O(this.#o),this.#o=null),this.#a&&(O(this.#a),this.#a=null),m&&(B(this.#r),Mt(),B(Dt()));var i=!1,s=!1;const o=()=>{if(i){an();return}i=!0,s&&on(),H.ensure(),this.#c=0,this.#a!==null&&Pe(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,re(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var a=_;try{C(null),s=!0,r?.(t,o),s=!1}catch(l){ke(l,this.#s&&this.#s.parent)}finally{C(a)}n&&Ke(()=>{this.#a=this.#_(()=>{H.ensure(),this.#v=!0;try{return re(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ke(l,this.#s.parent),null}finally{this.#v=!1}})})}}function mn(e,t,r,n){const i=zt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=$,o=p,a=wn();function l(){Promise.all(r.map(f=>bn(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(c){(o.f&Q)===0&&ke(c,o)}s?.deactivate(),Qe()}).catch(f=>{ke(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s?.deactivate(),Qe()}}):l()}function wn(){var e=p,t=_,r=M,n=$;return function(s=!0){F(e),C(t),Te(r),s&&n?.activate()}}function Qe(){F(null),C(null),Te(null)}function zt(e){var t=T|R,r=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=de),{ctx:M,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??p,ac:null}}function bn(e,t){let r=p;r===null&&Kr();var n=r.b,i=void 0,s=je(k),o=!_,a=new Map;return Ln(()=>{var l=Ot();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===$&&f.committed&&f.deactivate(),Qe()})}catch(u){l.reject(u),Qe()}var f=$;if(o){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),a.get(f)?.reject(Ee),a.delete(f),a.set(f,l)}const d=(u,h=void 0)=>{if(f.activate(),h)h!==Ee&&(s.f|=oe,et(s,h));else{(s.f&oe)!==0&&(s.f^=oe),et(s,u);for(const[y,U]of a){if(a.delete(y),y===f)break;U.reject(Ee)}}o&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(d,u=>d(null,u||"unknown"))}),nr(()=>{for(const l of a.values())l.reject(Ee)}),new Promise(l=>{function f(c){function d(){c===i?l(s):f(i)}c.then(d,d)}f(i)})}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function yn(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&Q)===0?t:null;t=t.parent}return null}function gt(e){var t,r=p;F(yn(e));try{e.f&=~he,Gt(e),t=mr(e)}finally{F(r)}return t}function Jt(e){var t=gt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=pr()),!pe)if(D!==null)tt()&&D.set(e,t);else{var r=(e.f&q)===0?Z:x;A(e,r)}}let mt=new Set;const le=new Map;let Kt=!1;function je(e,t){var r={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return r}function N(e,t){const r=je(e);return Fn(r),r}function $n(e,t=!1,r=!0){const n=je(e);return t||(n.equals=un),n}function E(e,t,r=!1){_!==null&&(!G||(_.f&Lt)!==0)&&qt()&&(_.f&(T|K|ht|Lt))!==0&&!ne?.includes(e)&&sn();let n=r?Ce(t):t;return et(e,n)}function et(e,t){if(!e.equals(t)){var r=e.v;pe?le.set(e,t):le.set(e,r),e.v=t;var n=H.ensure();n.capture(e,r),(e.f&T)!==0&&((e.f&R)!==0&&gt(e),A(e,(e.f&q)!==0?x:Z)),e.wv=pr(),Xt(e,R),p!==null&&(p.f&x)!==0&&(p.f&(X|se))===0&&(I===null?In([e]):I.push(e)),!n.is_fork&&mt.size>0&&!Kt&&En()}return t}function En(){Kt=!1;var e=fe;nt(!0);const t=Array.from(mt);try{for(const r of t)(r.f&x)!==0&&A(r,Z),Ie(r)&&qe(r)}finally{nt(e)}mt.clear()}function Me(e){E(e,e.v+1)}function Xt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&R)===0;if(a&&A(s,t),(o&T)!==0){var l=s;D?.delete(l),(o&he)===0&&(o&q&&(s.f|=he),Xt(l,Z))}else a&&((o&K)!==0&&ee!==null&&ee.add(s),_e(s))}}function Ce(e){if(typeof e!="object"||e===null||vt in e)return e;const t=St(e);if(t!==Yr&&t!==Vr)return e;var r=new Map,n=qr(e),i=N(0),s=ge,o=a=>{if(ge===s)return a();var l=_,f=ge;C(null),_r(s);var c=a();return C(l),_r(f),c};return n&&r.set("length",N(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&rn();var c=r.get(l);return c===void 0?c=o(()=>{var d=N(f.value);return r.set(l,d),d}):E(c,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const c=o(()=>N(k));r.set(l,c),Me(i)}}else E(f,k),Me(i);return!0},get(a,l,f){if(l===vt)return e;var c=r.get(l),d=l in a;if(c===void 0&&(!d||ye(a,l)?.writable)&&(c=o(()=>{var h=Ce(d?a[l]:k),y=N(h);return y}),r.set(l,c)),c!==void 0){var u=v(c);return u===k?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=v(c))}else if(f===void 0){var d=r.get(l),u=d?.v;if(d!==void 0&&u!==k)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===vt)return!0;var f=r.get(l),c=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||p!==null&&(!c||ye(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?Ce(a[l]):k,h=N(u);return h}),r.set(l,f));var d=v(f);if(d===k)return!1}return c},set(a,l,f,c){var d=r.get(l),u=l in a;if(n&&l==="length")for(var h=f;h<d.v;h+=1){var y=r.get(h+"");y!==void 0?E(y,k):h in a&&(y=o(()=>N(k)),r.set(h+"",y))}if(d===void 0)(!u||ye(a,l)?.writable)&&(d=o(()=>N(void 0)),E(d,Ce(f)),r.set(l,d));else{u=d.v!==k;var U=o(()=>Ce(f));E(d,U)}var ie=Reflect.getOwnPropertyDescriptor(a,l);if(ie?.set&&ie.set.call(c,f),!u){if(n&&typeof l=="string"){var Y=r.get("length"),we=Number(l);Number.isInteger(we)&&we>=Y.v&&E(Y,we+1)}Me(i)}return!0},ownKeys(a){v(i);var l=Reflect.ownKeys(a).filter(d=>{var u=r.get(d);return u===void 0||u.v!==k});for(var[f,c]of r)c.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){nn()}})}var Zt,Qt,er,tr;function wt(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;er=ye(t,"firstChild").get,tr=ye(t,"nextSibling").get,Rt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rt(r)&&(r.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function Ae(e){return er.call(e)}function te(e){return tr.call(e)}function De(e,t){if(!m)return Ae(e);var r=Ae(b);return r===null&&(r=b.appendChild(W())),B(r),r}function rr(e,t=!1){if(!m){var r=Ae(e);return r instanceof Comment&&r.data===""?te(r):r}if(t&&b?.nodeType!==_t){var n=W();return b?.before(n),B(n),n}return b}function Tn(e,t=1,r=!1){let n=m?b:e;for(var i;t--;)i=n,n=te(n);if(!m)return n;if(r&&n?.nodeType!==_t){var s=W();return n===null?i?.after(s):n.before(s),B(s),s}return B(n),n}function kn(e){e.textContent=""}function xn(){return!1}function bt(e){var t=_,r=p;C(null),F(null);try{return e()}finally{C(t),F(r)}}function Cn(e){p===null&&(_===null&&Qr(),Zr()),pe&&Xr()}function An(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function z(e,t,r){var n=p;n!==null&&(n.f&V)!==0&&(e|=V);var i={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|R|q,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{qe(i),i.f|=ze}catch(a){throw O(i),a}else t!==null&&_e(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&K)!==0&&(e&$e)!==0&&s!==null&&(s.f|=$e)),s!==null&&(s.parent=n,n!==null&&An(s,n),_!==null&&(_.f&T)!==0&&(e&se)===0)){var o=_;(o.effects??=[]).push(s)}return i}function tt(){return _!==null&&!G}function nr(e){const t=z(ct,null,!1);return A(t,x),t.teardown=e,t}function Nn(e){Cn();var t=p.f,r=!_&&(t&X)!==0&&(t&ze)===0;if(r){var n=M;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return z(ut|zr,e,!1)}function Sn(e){H.ensure();const t=z(se|de,e,!0);return()=>{O(t)}}function Rn(e){H.ensure();const t=z(se|de,e,!0);return(r={})=>new Promise(n=>{r.outro?Pe(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function On(e){return z(ut,e,!1)}function Ln(e){return z(ht|de,e,!0)}function sr(e,t=0){return z(ct|t,e,!0)}function rt(e,t=[],r=[],n=[]){mn(n,t,r,i=>{z(ct,()=>e(...i.map(v)),!0)})}function or(e,t=0){var r=z(K|t,e,!0);return r}function re(e){return z(X|de,e,!0)}function ar(e){var t=e.teardown;if(t!==null){const r=pe,n=_;hr(!0),C(null);try{t.call(null)}finally{hr(r),C(n)}}}function lr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&bt(()=>{i.abort(Ee)});var n=r.next;(r.f&se)!==0?r.parent=null:O(r,t),r=n}}function jn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&jt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mn(e.nodes_start,e.nodes_end),r=!0),lr(e,t&&!r),it(e,0),A(e,Q);var n=e.transitions;if(n!==null)for(const s of n)s.stop();ar(e);var i=e.parent;i!==null&&i.first!==null&&fr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mn(e,t){for(;e!==null;){var r=e===t?null:te(e);e.remove(),e=r}}function fr(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 Pe(e,t,r=!0){var n=[];ur(e,n,!0),Dn(n,()=>{r&&O(e),t&&t()})}function Dn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ur(e,t,r){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&$e)!==0||(n.f&X)!==0&&(e.f&K)!==0;ur(n,t,s?r:!1),n=i}}}function Pn(e){cr(e,!0)}function cr(e,t){if((e.f&V)!==0){e.f^=V,(e.f&x)===0&&(A(e,R),_e(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&$e)!==0||(r.f&X)!==0;cr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function dr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:te(r);t.append(r),r=i}}let fe=!1;function nt(e){fe=e}let pe=!1;function hr(e){pe=e}let _=null,G=!1;function C(e){_=e}let p=null;function F(e){p=e}let ne=null;function Fn(e){_!==null&&(ne===null?ne=[e]:ne.push(e))}let S=null,L=0,I=null;function In(e){I=e}let vr=1,Fe=0,ge=Fe;function _r(e){ge=e}function pr(){return++vr}function Ie(e){var t=e.f;if((t&R)!==0)return!0;if(t&T&&(e.f&=~he),(t&Z)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Ie(s)&&Jt(s),s.wv>e.wv)return!0}(t&q)!==0&&D===null&&A(e,x)}return!1}function gr(e,t,r=!0){var n=e.reactions;if(n!==null&&!ne?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&T)!==0?gr(s,t,!1):t===s&&(r?A(s,R):(s.f&x)!==0&&A(s,Z),_e(s))}}function mr(e){var t=S,r=L,n=I,i=_,s=ne,o=M,a=G,l=ge,f=e.f;S=null,L=0,I=null,_=(f&(X|se))===0?e:null,ne=null,Te(e.ctx),G=!1,ge=++Fe,e.ac!==null&&(bt(()=>{e.ac.abort(Ee)}),e.ac=null);try{e.f|=dt;var c=e.fn,d=c(),u=e.deps;if(S!==null){var h;if(it(e,L),u!==null&&L>0)for(u.length=L+S.length,h=0;h<S.length;h++)u[L+h]=S[h];else e.deps=u=S;if(fe&&tt()&&(e.f&q)!==0)for(h=L;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&L<u.length&&(it(e,L),u.length=L);if(qt()&&I!==null&&!G&&u!==null&&(e.f&(T|Z|R))===0)for(h=0;h<I.length;h++)gr(I[h],e);return i!==null&&i!==e&&(Fe++,I!==null&&(n===null?n=I:n.push(...I))),(e.f&oe)!==0&&(e.f^=oe),d}catch(y){return Ht(y)}finally{e.f^=dt,S=t,L=r,I=n,_=i,ne=s,Te(o),G=a,ge=l}}function qn(e,t){let r=t.reactions;if(r!==null){var n=Br.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&T)!==0&&(S===null||!S.includes(t))&&(A(t,Z),(t.f&q)!==0&&(t.f^=q,t.f&=~he),Gt(t),it(t,0))}function it(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)qn(e,r[n])}function qe(e){var t=e.f;if((t&Q)===0){A(e,x);var r=p,n=fe;p=e,fe=!0;try{(t&K)!==0?jn(e):lr(e),ar(e);var i=mr(e);e.teardown=typeof i=="function"?i:null,e.wv=vr;var s;ft&&cn&&(e.f&R)!==0&&e.deps}finally{fe=n,p=r}}}function v(e){var t=e.f,r=(t&T)!==0;if(_!==null&&!G){var n=p!==null&&(p.f&Q)!==0;if(!n&&!ne?.includes(e)){var i=_.deps;if((_.f&dt)!==0)e.rv<Fe&&(e.rv=Fe,S===null&&i!==null&&i[L]===e?L++:S===null?S=[e]:S.includes(e)||S.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(pe){if(le.has(e))return le.get(e);if(r){var o=e,a=o.v;return((o.f&x)===0&&o.reactions!==null||br(o))&&(a=gt(o)),le.set(o,a),a}}else r&&!D?.has(e)&&(o=e,Ie(o)&&Jt(o),fe&&tt()&&(o.f&q)===0&&wr(o));if(D?.has(e))return D.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function wr(e){if(e.deps!==null){e.f^=q;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&q)===0&&wr(t)}}function br(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&T)!==0&&br(t))return!0;return!1}function Bn(e){var t=G;try{return G=!0,e()}finally{G=t}}const Hn=-7169;function A(e,t){e.f=e.f&Hn|t}const Un=new Set,yr=new Set;function Yn(e,t,r,n={}){function i(s){if(n.capture||Be.call(t,s),!s.cancelBubble)return bt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ke(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Vn(e,t,r,n,i){var s={capture:n,passive:i},o=Yn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&nr(()=>{t.removeEventListener(e,o,s)})}let $r=null;function Be(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;$r=e;var o=0,a=$r===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Ve(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=_,d=p;C(null),F(null);try{for(var u,h=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var U=s["__"+n];U!=null&&(!s.disabled||e.target===s)&&U.call(s,e)}catch(ie){u?h.push(ie):u=ie}if(e.cancelBubble||y===t||y===null)break;s=y}if(u){for(let ie of h)queueMicrotask(()=>{throw ie});throw u}}finally{e.__root=t,delete e.currentTarget,C(c),F(d)}}}function Wn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ue(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function yt(e,t){var r=(t&Pr)!==0,n=(t&Fr)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return ue(b,null),b;i===void 0&&(i=Wn(s?e:"<!>"+e),r||(i=Ae(i)));var o=n||Qt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ae(o),l=o.lastChild;ue(a,l)}else ue(o,o);return o}}function Er(e=""){if(!m){var t=W(e+"");return ue(t,t),t}var r=b;return r.nodeType!==_t&&(r.before(r=W()),B(r)),ue(r,r),r}function Tr(){if(m)return ue(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),ue(t,r),e}function ce(e,t){if(m){var r=p;((r.f&ze)===0||r.nodes_end===null)&&(r.nodes_end=b),Je();return}e!==null&&e.before(t)}const zn=["touchstart","touchmove"];function Gn(e){return zn.includes(e)}function kr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return Cr(e,t)}function Jn(e,t){wt(),t.intro=t.intro??!1;const r=t.target,n=m,i=b;try{for(var s=Ae(r);s&&(s.nodeType!==Re||s.data!==At);)s=te(s);if(!s)throw be;ae(!0),B(s);const o=Cr(e,{...t,anchor:s});return ae(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==be&&console.warn("Failed to hydrate: ",o),t.recover===!1&&tn(),wt(),kn(r),ae(!1),xr(e,t)}finally{ae(n),B(i)}}const Ne=new Map;function Cr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){wt();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!a.has(h)){a.add(h);var y=Gn(h);t.addEventListener(h,Be,{passive:y});var U=Ne.get(h);U===void 0?(document.addEventListener(h,Be,{passive:y}),Ne.set(h,1)):Ne.set(h,U+1)}}};l(Hr(Un)),yr.add(l);var f=void 0,c=Rn(()=>{var d=r??t.appendChild(W());return pn(d,{pending:()=>{}},u=>{if(s){Ft({});var h=M;h.c=s}if(i&&(n.$$events=i),m&&ue(u,null),f=e(u,n)||{},m&&(p.nodes_end=b,b===null||b.nodeType!==Re||b.data!==Nt))throw Ge(),be;s&&It()}),()=>{for(var u of a){t.removeEventListener(u,Be);var h=Ne.get(u);--h===0?(document.removeEventListener(u,Be),Ne.delete(u)):Ne.set(u,h)}yr.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return $t.set(f,c),f}let $t=new WeakMap;function Kn(e,t){const r=$t.get(e);return r?($t.delete(e),r(t)):Promise.resolve()}class Xn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Pn(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(o);a&&(O(a.effect),this.#r.delete(o))}for(const[s,o]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();dr(o,f),f.append(W()),this.#r.set(s,{effect:o,fragment:f})}else O(o);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),Pe(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(O(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=xn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=W();s.append(o),this.#r.set(t,{effect:re(()=>r(o)),fragment:s})}else this.#e.set(t,re(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else m&&(this.anchor=b),this.#s()}}function Et(e,t,r=!1){m&&Je();var n=new Xn(e),i=r?$e:0;function s(o,a){if(m){const f=ln(e)===lt;if(o===f){var l=Dt();B(l),n.anchor=l,ae(!1),n.ensure(o,a),ae(!0);return}}n.ensure(o,a)}or(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function Zn(e,t,r,n,i){m&&Je();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function Qn(e,t){On(()=>{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 ei(e,t,r){var n=""+e;return n}function ti(e,t){return e==null?null:String(e)}function ri(e,t,r,n,i,s){var o=e.__className;if(m||o!==r||o===void 0){var a=ei(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function Ar(e,t,r,n){var i=e.__style;if(m||i!==t){var s=ti(t);(!m||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ni=Symbol("is custom element"),ii=Symbol("is html");function Nr(e,t,r,n){var i=si(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Jr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Sr(e,t,r){var n=_,i=p;let s=m;m&&ae(!1),C(null),F(null);try{t!=="style"&&(Tt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Rr(e).includes(t):r&&typeof r=="object")?e[t]=r:Nr(e,t,r==null?r:String(r))}finally{C(n),F(i),s&&ae(!0)}}function si(e){return e.__attributes??={[ni]:e.nodeName.includes("-"),[ii]:e.namespaceURI===Ir}}var Tt=new Map;function Rr(e){var t=e.getAttribute("is")||e.nodeName,r=Tt.get(t);if(r)return r;Tt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Ur(i);for(var o in n)n[o].set&&r.push(o);i=St(i)}return r}function He(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(s=!0,u)};var f=!1,c=zt(()=>(f=!1,l())),d=p;return(function(u,h){if(arguments.length>0){const y=h?v(c):u;return E(c,y),f=!0,i!==void 0&&(i=y),u}return pe&&f||(d.f&Q)!==0?c.v:v(c)})}function oi(e){return new ai(e)}class ai{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=$n(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return v(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Gr?!0:(v(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return E(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Jn:xr)(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)&&xe(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ve(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Kn(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 Or;typeof HTMLElement=="function"&&(Or=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),ce(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=li(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]=st(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=oi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Sn(()=>{sr(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=st(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]=st(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 Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function st(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 li(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function fi(e,t,r,n,i,s){let o=class extends Or{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=st(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=ye(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const ui={version:"0.65.22"};var me={},Lr;function ci(){if(Lr)return me;Lr=1,Object.defineProperty(me,"__esModule",{value:!0}),me.LanguageTranslator=void 0,me.getChildStyleToPass=e,me.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var h=i?.filter(function(y){return y.name===u&&y.defaultValue!==n[u]});h&&(a+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var d=c[f];l(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}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 o=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}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,o){return n.formatDate(i,s,o||this.lang)},n.getDefaultLang=function(){var i,s,o,a="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",f=n.getDefaultLang();if(!o||f!==o){var c=s?.[f];c?.[i]&&(l=c[i])}return l},n.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),s);return a.format(i)},n})();return me.LanguageTranslator=r,me}var di=ci(),hi=yt('<div class="progress svelte-vj77ev"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-vj77ev" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),vi=yt('<div class="progress svelte-vj77ev"><div class="progress-bar svelte-vj77ev" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),_i=yt('<hb-dialog><span slot="title" class="svelte-vj77ev"><!></span> <div slot="body-content" class="svelte-vj77ev"><!></div> <span slot="modal-footer" class="svelte-vj77ev"></span></hb-dialog>',2);const pi={hash:"svelte-vj77ev",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 Dr=1,Pr=2,At="[",lt="[!",Nt="]",me={},k=Symbol(),Fr="http://www.w3.org/1999/xhtml",ft=!1;var Ir=Array.isArray,qr=Array.prototype.indexOf,Br=Array.from,Ye=Object.keys,Ve=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Hr=Object.getOwnPropertyDescriptors,Ur=Object.prototype,Yr=Array.prototype,Rt=Object.getPrototypeOf,St=Object.isExtensible;function Vr(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const T=2,ut=4,ct=8,K=16,X=32,ie=64,We=128,B=512,x=1024,S=2048,Z=4096,V=8192,Q=16384,ze=32768,be=65536,Lt=1<<17,jt=1<<18,ce=1<<19,Wr=1<<20,de=32768,dt=1<<21,ht=1<<22,se=1<<23,vt=Symbol("$state"),zr=Symbol("legacy props"),Gr=Symbol(""),ye=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Ne=8;function Jr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Kr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function on(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function oe(e){m=e}let b;function H(e){if(e===null)throw Ge(),me;return b=e}function Je(){return H(te(b))}function Re(e){if(m){if(te(b)!==null)throw Ge(),me;b=e}}function Mt(e=1){if(m){for(var t=e,r=b;t--;)r=te(r);b=r}}function Dt(e=!0){for(var t=0,r=b;;){if(r.nodeType===Ne){var n=r.data;if(n===Nt){if(t===0)return r;t-=1}else(n===At||n===lt)&&(t+=1)}var i=te(r);e&&r.remove(),r=i}}function an(e){if(!e||e.nodeType!==Ne)throw Ge(),me;return e.data}function Pt(e){return e===this.v}function ln(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function fn(e){return!ln(e,this.v)}let un=!1,D=null;function $e(e){D=e}function Ft(e,t=!1,r){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function It(e){var t=D,r=t.e;if(r!==null){t.e=null;for(var n of r)ir(n)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function qt(){return!0}let he=[];function Bt(){var e=he;he=[],Vr(e)}function Ke(e){if(he.length===0&&!Se){var t=he;queueMicrotask(()=>{t===he&&Bt()})}he.push(e)}function cn(){for(;he.length>0;)Bt()}function Ht(e){var t=p;if(t===null)return _.f|=se,e;if((t.f&ze)===0){if((t.f&We)===0)throw e;t.b.error(e)}else Ee(e,t)}function Ee(e,t){for(;t!==null;){if((t.f&We)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Xe=new Set;let $=null,P=null,F=[],Ze=null,pt=!1,Se=!1;class U{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){F=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):($=null,Yt(r.render_effects),Yt(r.effects),this.#l?.resolve()),P=null}#o(t,r){t.f^=x;for(var n=t.first;n!==null;){var i=n.f,s=(i&(X|ie))!==0,o=s&&(i&x)!==0,a=o||(i&V)!==0||this.skipped_effects.has(n);if((n.f&We)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=x:(i&ut)!==0?r.effects.push(n):Fe(n)&&((n.f&K)!==0&&r.block_effects.push(n),Ie(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&S)!==0?this.#s:this.#i).push(r),this.#f(r.deps),A(r,x)}#f(t){if(t!==null)for(const r of t)(r.f&T)===0||(r.f&de)===0||(r.f^=de,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&se)===0&&(this.current.set(t,t.v),P?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,P=null)}flush(){if(this.activate(),F.length>0){if(Ut(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Xe.size>1){this.previous.clear();var t=P,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Xe){if(s===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&f!==s.current.get(l))s.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var i=F;F=[];const l=new Set,f=new Map;for(const u of o)Vt(u,a,l,f);if(F.length>0){$=s,s.apply();for(const u of F)s.#o(u,n);s.deactivate()}F=i}}$=null,P=t}this.committed=!0,Xe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)A(t,S),ve(t);for(const t of this.#i)A(t,Z),ve(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ot()).promise}static ensure(){if($===null){const t=$=new U;Xe.add($),Se||U.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Ke(t)}apply(){}}function Te(e){var t=Se;Se=!0;try{for(var r;;){if(cn(),F.length===0&&($?.flush(),F.length===0))return Ze=null,r;Ut()}}finally{Se=t}}function Ut(){var e=le;pt=!0;var t=null;try{var r=0;for(nt(!0);F.length>0;){var n=U.ensure();if(r++>1e3){var i,s;dn()}n.process(F),ae.clear()}}finally{pt=!1,nt(e),Ze=null}}function dn(){try{Qr()}catch(e){Ee(e,Ze)}}let ee=null;function Yt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Q|V))===0&&Fe(n)&&(ee=new Set,Ie(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?fr(n):n.fn=null),ee?.size>0)){ae.clear();for(const i of ee){if((i.f&(Q|V))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)ee.has(o)&&(ee.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(Q|V))===0&&Ie(l)}}ee.clear()}}ee=null}}function Vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?Vt(i,t,r,n):(s&(ht|K))!==0&&(s&S)===0&&Wt(i,t,n)&&(A(i,S),ve(i))}}function Wt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&T)!==0&&Wt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ve(e){for(var t=Ze=e;t.parent!==null;){t=t.parent;var r=t.f;if(pt&&t===p&&(r&K)!==0&&(r&jt)===0)return;if((r&(ie|X))!==0){if((r&x)===0)return;t.f^=x}}F.push(t)}function hn(e){let t=0,r=Oe(0),n;return()=>{tt()&&(v(r),sr(()=>(t===0&&(n=qn(()=>e(()=>Le(r)))),t+=1,()=>{Ke(()=>{t-=1,t===0&&(n?.(),n=void 0,Le(r))})})))}}var vn=be|ce|We;function _n(e,t,r){new pn(e,t,r)}class pn{parent;#t=!1;#e;#r=m?b:null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#w=hn(()=>(this.#h=Oe(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=or(()=>{if(p.b=this,m){const s=this.#r;Je(),s.nodeType===Ne&&s.data===lt?this.#y():this.#b()}else{var i=this.#g();try{this.#i=re(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},vn),m&&(this.#e=b)}#b(){try{this.#i=re(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#o=re(()=>t(this.#e)),U.enqueue(()=>{var r=this.#g();this.#i=this.#_(()=>(U.ensure(),re(()=>this.#l(r)))),this.#d>0?this.#p():(De(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=W(),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.#n.pending}#_(t){var r=p,n=_,i=D;I(this.#s),C(this.#s),$e(this.#s.ctx);try{return t()}catch(s){return Ht(s),null}finally{I(r),C(n),$e(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),dr(this.#i,this.#f)),this.#o===null&&(this.#o=re(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&De(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#h&&et(this.#h,this.#c)}get_effect_pending(){return this.#w(),v(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(O(this.#i),this.#i=null),this.#o&&(O(this.#o),this.#o=null),this.#a&&(O(this.#a),this.#a=null),m&&(H(this.#r),Mt(),H(Dt()));var i=!1,s=!1;const o=()=>{if(i){on();return}i=!0,s&&sn(),U.ensure(),this.#c=0,this.#a!==null&&De(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,re(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var a=_;try{C(null),s=!0,r?.(t,o),s=!1}catch(l){Ee(l,this.#s&&this.#s.parent)}finally{C(a)}n&&Ke(()=>{this.#a=this.#_(()=>{U.ensure(),this.#v=!0;try{return re(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return Ee(l,this.#s.parent),null}finally{this.#v=!1}})})}}function gn(e,t,r,n){const i=zt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=$,o=p,a=mn();function l(){Promise.all(r.map(f=>wn(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(u){(o.f&Q)===0&&Ee(u,o)}s?.deactivate(),Qe()}).catch(f=>{Ee(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s?.deactivate(),Qe()}}):l()}function mn(){var e=p,t=_,r=D,n=$;return function(s=!0){I(e),C(t),$e(r),s&&n?.activate()}}function Qe(){I(null),C(null),$e(null)}function zt(e){var t=T|S,r=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=ce),{ctx:D,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??p,ac:null}}function wn(e,t){let r=p;r===null&&Jr();var n=r.b,i=void 0,s=Oe(k),o=!_,a=new Map;return On(()=>{var l=Ot();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===$&&f.committed&&f.deactivate(),Qe()})}catch(c){l.reject(c),Qe()}var f=$;if(o){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(ye),a.delete(f),a.set(f,l)}const h=(c,d=void 0)=>{if(f.activate(),d)d!==ye&&(s.f|=se,et(s,d));else{(s.f&se)!==0&&(s.f^=se),et(s,c);for(const[y,Y]of a){if(a.delete(y),y===f)break;Y.reject(ye)}}o&&(n.update_pending_count(-1),f.decrement(u))};l.promise.then(h,c=>h(null,c||"unknown"))}),nr(()=>{for(const l of a.values())l.reject(ye)}),new Promise(l=>{function f(u){function h(){u===i?l(s):f(i)}u.then(h,h)}f(i)})}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function bn(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&Q)===0?t:null;t=t.parent}return null}function gt(e){var t,r=p;I(bn(e));try{e.f&=~de,Gt(e),t=mr(e)}finally{I(r)}return t}function Jt(e){var t=gt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=pr()),!_e)if(P!==null)tt()&&P.set(e,t);else{var r=(e.f&B)===0?Z:x;A(e,r)}}let mt=new Set;const ae=new Map;let Kt=!1;function Oe(e,t){var r={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return r}function L(e,t){const r=Oe(e);return Pn(r),r}function yn(e,t=!1,r=!0){const n=Oe(e);return t||(n.equals=fn),n}function E(e,t,r=!1){_!==null&&(!G||(_.f&Lt)!==0)&&qt()&&(_.f&(T|K|ht|Lt))!==0&&!ne?.includes(e)&&nn();let n=r?je(t):t;return et(e,n)}function et(e,t){if(!e.equals(t)){var r=e.v;_e?ae.set(e,t):ae.set(e,r),e.v=t;var n=U.ensure();n.capture(e,r),(e.f&T)!==0&&((e.f&S)!==0&&gt(e),A(e,(e.f&B)!==0?x:Z)),e.wv=pr(),Xt(e,S),p!==null&&(p.f&x)!==0&&(p.f&(X|ie))===0&&(q===null?Fn([e]):q.push(e)),!n.is_fork&&mt.size>0&&!Kt&&$n()}return t}function $n(){Kt=!1;var e=le;nt(!0);const t=Array.from(mt);try{for(const r of t)(r.f&x)!==0&&A(r,Z),Fe(r)&&Ie(r)}finally{nt(e)}mt.clear()}function Le(e){E(e,e.v+1)}function Xt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&S)===0;if(a&&A(s,t),(o&T)!==0){var l=s;P?.delete(l),(o&de)===0&&(o&B&&(s.f|=de),Xt(l,Z))}else a&&((o&K)!==0&&ee!==null&&ee.add(s),ve(s))}}function je(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Rt(e);if(t!==Ur&&t!==Yr)return e;var r=new Map,n=Ir(e),i=L(0),s=pe,o=a=>{if(pe===s)return a();var l=_,f=pe;C(null),_r(s);var u=a();return C(l),_r(f),u};return n&&r.set("length",L(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&tn();var u=r.get(l);return u===void 0?u=o(()=>{var h=L(f.value);return r.set(l,h),h}):E(u,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const u=o(()=>L(k));r.set(l,u),Le(i)}}else E(f,k),Le(i);return!0},get(a,l,f){if(l===vt)return e;var u=r.get(l),h=l in a;if(u===void 0&&(!h||we(a,l)?.writable)&&(u=o(()=>{var d=je(h?a[l]:k),y=L(d);return y}),r.set(l,u)),u!==void 0){var c=v(u);return c===k?void 0:c}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=v(u))}else if(f===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==k)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,l){if(l===vt)return!0;var f=r.get(l),u=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||p!==null&&(!u||we(a,l)?.writable)){f===void 0&&(f=o(()=>{var c=u?je(a[l]):k,d=L(c);return d}),r.set(l,f));var h=v(f);if(h===k)return!1}return u},set(a,l,f,u){var h=r.get(l),c=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var y=r.get(d+"");y!==void 0?E(y,k):d in a&&(y=o(()=>L(k)),r.set(d+"",y))}if(h===void 0)(!c||we(a,l)?.writable)&&(h=o(()=>L(void 0)),E(h,je(f)),r.set(l,h));else{c=h.v!==k;var Y=o(()=>je(f));E(h,Y)}var R=Reflect.getOwnPropertyDescriptor(a,l);if(R?.set&&R.set.call(u,f),!c){if(n&&typeof l=="string"){var Ce=r.get("length"),He=Number(l);Number.isInteger(He)&&He>=Ce.v&&E(Ce,He+1)}Le(i)}return!0},ownKeys(a){v(i);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==k});for(var[f,u]of r)u.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){rn()}})}var Zt,Qt,er,tr;function wt(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;er=we(t,"firstChild").get,tr=we(t,"nextSibling").get,St(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),St(r)&&(r.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function ke(e){return er.call(e)}function te(e){return tr.call(e)}function Me(e,t){if(!m)return ke(e);var r=ke(b);return r===null&&(r=b.appendChild(W())),H(r),r}function rr(e,t=!1){if(!m){var r=ke(e);return r instanceof Comment&&r.data===""?te(r):r}if(t&&b?.nodeType!==_t){var n=W();return b?.before(n),H(n),n}return b}function En(e,t=1,r=!1){let n=m?b:e;for(var i;t--;)i=n,n=te(n);if(!m)return n;if(r&&n?.nodeType!==_t){var s=W();return n===null?i?.after(s):n.before(s),H(s),s}return H(n),n}function Tn(e){e.textContent=""}function kn(){return!1}function bt(e){var t=_,r=p;C(null),I(null);try{return e()}finally{C(t),I(r)}}function xn(e){p===null&&(_===null&&Zr(),Xr()),_e&&Kr()}function Cn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function z(e,t,r){var n=p;n!==null&&(n.f&V)!==0&&(e|=V);var i={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|S|B,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ie(i),i.f|=ze}catch(a){throw O(i),a}else t!==null&&ve(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ce)===0&&(s=s.first,(e&K)!==0&&(e&be)!==0&&s!==null&&(s.f|=be)),s!==null&&(s.parent=n,n!==null&&Cn(s,n),_!==null&&(_.f&T)!==0&&(e&ie)===0)){var o=_;(o.effects??=[]).push(s)}return i}function tt(){return _!==null&&!G}function nr(e){const t=z(ct,null,!1);return A(t,x),t.teardown=e,t}function An(e){xn();var t=p.f,r=!_&&(t&X)!==0&&(t&ze)===0;if(r){var n=D;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return z(ut|Wr,e,!1)}function Nn(e){U.ensure();const t=z(ie|ce,e,!0);return()=>{O(t)}}function Rn(e){U.ensure();const t=z(ie|ce,e,!0);return(r={})=>new Promise(n=>{r.outro?De(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function Sn(e){return z(ut,e,!1)}function On(e){return z(ht|ce,e,!0)}function sr(e,t=0){return z(ct|t,e,!0)}function rt(e,t=[],r=[],n=[]){gn(n,t,r,i=>{z(ct,()=>e(...i.map(v)),!0)})}function or(e,t=0){var r=z(K|t,e,!0);return r}function re(e){return z(X|ce,e,!0)}function ar(e){var t=e.teardown;if(t!==null){const r=_e,n=_;hr(!0),C(null);try{t.call(null)}finally{hr(r),C(n)}}}function lr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&bt(()=>{i.abort(ye)});var n=r.next;(r.f&ie)!==0?r.parent=null:O(r,t),r=n}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&jt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(jn(e.nodes_start,e.nodes_end),r=!0),lr(e,t&&!r),it(e,0),A(e,Q);var n=e.transitions;if(n!==null)for(const s of n)s.stop();ar(e);var i=e.parent;i!==null&&i.first!==null&&fr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function jn(e,t){for(;e!==null;){var r=e===t?null:te(e);e.remove(),e=r}}function fr(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 De(e,t,r=!0){var n=[];ur(e,n,!0),Mn(n,()=>{r&&O(e),t&&t()})}function Mn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ur(e,t,r){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&be)!==0||(n.f&X)!==0&&(e.f&K)!==0;ur(n,t,s?r:!1),n=i}}}function Dn(e){cr(e,!0)}function cr(e,t){if((e.f&V)!==0){e.f^=V,(e.f&x)===0&&(A(e,S),ve(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&be)!==0||(r.f&X)!==0;cr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function dr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:te(r);t.append(r),r=i}}let le=!1;function nt(e){le=e}let _e=!1;function hr(e){_e=e}let _=null,G=!1;function C(e){_=e}let p=null;function I(e){p=e}let ne=null;function Pn(e){_!==null&&(ne===null?ne=[e]:ne.push(e))}let N=null,j=0,q=null;function Fn(e){q=e}let vr=1,Pe=0,pe=Pe;function _r(e){pe=e}function pr(){return++vr}function Fe(e){var t=e.f;if((t&S)!==0)return!0;if(t&T&&(e.f&=~de),(t&Z)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Fe(s)&&Jt(s),s.wv>e.wv)return!0}(t&B)!==0&&P===null&&A(e,x)}return!1}function gr(e,t,r=!0){var n=e.reactions;if(n!==null&&!ne?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&T)!==0?gr(s,t,!1):t===s&&(r?A(s,S):(s.f&x)!==0&&A(s,Z),ve(s))}}function mr(e){var t=N,r=j,n=q,i=_,s=ne,o=D,a=G,l=pe,f=e.f;N=null,j=0,q=null,_=(f&(X|ie))===0?e:null,ne=null,$e(e.ctx),G=!1,pe=++Pe,e.ac!==null&&(bt(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=dt;var u=e.fn,h=u(),c=e.deps;if(N!==null){var d;if(it(e,j),c!==null&&j>0)for(c.length=j+N.length,d=0;d<N.length;d++)c[j+d]=N[d];else e.deps=c=N;if(le&&tt()&&(e.f&B)!==0)for(d=j;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&j<c.length&&(it(e,j),c.length=j);if(qt()&&q!==null&&!G&&c!==null&&(e.f&(T|Z|S))===0)for(d=0;d<q.length;d++)gr(q[d],e);return i!==null&&i!==e&&(Pe++,q!==null&&(n===null?n=q:n.push(...q))),(e.f&se)!==0&&(e.f^=se),h}catch(y){return Ht(y)}finally{e.f^=dt,N=t,j=r,q=n,_=i,ne=s,$e(o),G=a,pe=l}}function In(e,t){let r=t.reactions;if(r!==null){var n=qr.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&T)!==0&&(N===null||!N.includes(t))&&(A(t,Z),(t.f&B)!==0&&(t.f^=B,t.f&=~de),Gt(t),it(t,0))}function it(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)In(e,r[n])}function Ie(e){var t=e.f;if((t&Q)===0){A(e,x);var r=p,n=le;p=e,le=!0;try{(t&K)!==0?Ln(e):lr(e),ar(e);var i=mr(e);e.teardown=typeof i=="function"?i:null,e.wv=vr;var s;ft&&un&&(e.f&S)!==0&&e.deps}finally{le=n,p=r}}}function v(e){var t=e.f,r=(t&T)!==0;if(_!==null&&!G){var n=p!==null&&(p.f&Q)!==0;if(!n&&!ne?.includes(e)){var i=_.deps;if((_.f&dt)!==0)e.rv<Pe&&(e.rv=Pe,N===null&&i!==null&&i[j]===e?j++:N===null?N=[e]:N.includes(e)||N.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(_e){if(ae.has(e))return ae.get(e);if(r){var o=e,a=o.v;return((o.f&x)===0&&o.reactions!==null||br(o))&&(a=gt(o)),ae.set(o,a),a}}else r&&!P?.has(e)&&(o=e,Fe(o)&&Jt(o),le&&tt()&&(o.f&B)===0&&wr(o));if(P?.has(e))return P.get(e);if((e.f&se)!==0)throw e.v;return e.v}function wr(e){if(e.deps!==null){e.f^=B;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&B)===0&&wr(t)}}function br(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&T)!==0&&br(t))return!0;return!1}function qn(e){var t=G;try{return G=!0,e()}finally{G=t}}const Bn=-7169;function A(e,t){e.f=e.f&Bn|t}const Hn=new Set,yr=new Set;function Un(e,t,r,n={}){function i(s){if(n.capture||qe.call(t,s),!s.cancelBubble)return bt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ke(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Yn(e,t,r,n,i){var s={capture:n,passive:i},o=Un(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&nr(()=>{t.removeEventListener(e,o,s)})}let $r=null;function qe(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;$r=e;var o=0,a=$r===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Ve(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,h=p;C(null),I(null);try{for(var c,d=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var Y=s["__"+n];Y!=null&&(!s.disabled||e.target===s)&&Y.call(s,e)}catch(R){c?d.push(R):c=R}if(e.cancelBubble||y===t||y===null)break;s=y}if(c){for(let R of d)queueMicrotask(()=>{throw R});throw c}}finally{e.__root=t,delete e.currentTarget,C(u),I(h)}}}function Vn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function yt(e,t){var r=(t&Dr)!==0,n=(t&Pr)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return fe(b,null),b;i===void 0&&(i=Vn(s?e:"<!>"+e),r||(i=ke(i)));var o=n||Qt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=ke(o),l=o.lastChild;fe(a,l)}else fe(o,o);return o}}function Er(e=""){if(!m){var t=W(e+"");return fe(t,t),t}var r=b;return r.nodeType!==_t&&(r.before(r=W()),H(r)),fe(r,r),r}function Tr(){if(m)return fe(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),fe(t,r),e}function ue(e,t){if(m){var r=p;((r.f&ze)===0||r.nodes_end===null)&&(r.nodes_end=b),Je();return}e!==null&&e.before(t)}const Wn=["touchstart","touchmove"];function zn(e){return Wn.includes(e)}function kr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return Cr(e,t)}function Gn(e,t){wt(),t.intro=t.intro??!1;const r=t.target,n=m,i=b;try{for(var s=ke(r);s&&(s.nodeType!==Ne||s.data!==At);)s=te(s);if(!s)throw me;oe(!0),H(s);const o=Cr(e,{...t,anchor:s});return oe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==me&&console.warn("Failed to hydrate: ",o),t.recover===!1&&en(),wt(),Tn(r),oe(!1),xr(e,t)}finally{oe(n),H(i)}}const xe=new Map;function Cr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){wt();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!a.has(d)){a.add(d);var y=zn(d);t.addEventListener(d,qe,{passive:y});var Y=xe.get(d);Y===void 0?(document.addEventListener(d,qe,{passive:y}),xe.set(d,1)):xe.set(d,Y+1)}}};l(Br(Hn)),yr.add(l);var f=void 0,u=Rn(()=>{var h=r??t.appendChild(W());return _n(h,{pending:()=>{}},c=>{if(s){Ft({});var d=D;d.c=s}if(i&&(n.$$events=i),m&&fe(c,null),f=e(c,n)||{},m&&(p.nodes_end=b,b===null||b.nodeType!==Ne||b.data!==Nt))throw Ge(),me;s&&It()}),()=>{for(var c of a){t.removeEventListener(c,qe);var d=xe.get(c);--d===0?(document.removeEventListener(c,qe),xe.delete(c)):xe.set(c,d)}yr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return $t.set(f,u),f}let $t=new WeakMap;function Jn(e,t){const r=$t.get(e);return r?($t.delete(e),r(t)):Promise.resolve()}class Kn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Dn(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(o);a&&(O(a.effect),this.#r.delete(o))}for(const[s,o]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();dr(o,f),f.append(W()),this.#r.set(s,{effect:o,fragment:f})}else O(o);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),De(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(O(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=kn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=W();s.append(o),this.#r.set(t,{effect:re(()=>r(o)),fragment:s})}else this.#e.set(t,re(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else m&&(this.anchor=b),this.#s()}}function Et(e,t,r=!1){m&&Je();var n=new Kn(e),i=r?be:0;function s(o,a){if(m){const f=an(e)===lt;if(o===f){var l=Dt();H(l),n.anchor=l,oe(!1),n.ensure(o,a),oe(!0);return}}n.ensure(o,a)}or(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function Xn(e,t,r,n,i){m&&Je();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function Zn(e,t){Sn(()=>{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 ei(e,t){return e==null?null:String(e)}function ti(e,t,r,n,i,s){var o=e.__className;if(m||o!==r||o===void 0){var a=Qn(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function ri(e,t,r,n){var i=e.__style;if(m||i!==t){var s=ei(t);(!m||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ni=Symbol("is custom element"),ii=Symbol("is html");function Ar(e,t,r,n){var i=si(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Gr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Nr(e,t,r){var n=_,i=p;let s=m;m&&oe(!1),C(null),I(null);try{t!=="style"&&(Tt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Rr(e).includes(t):r&&typeof r=="object")?e[t]=r:Ar(e,t,r==null?r:String(r))}finally{C(n),I(i),s&&oe(!0)}}function si(e){return e.__attributes??={[ni]:e.nodeName.includes("-"),[ii]:e.namespaceURI===Fr}}var Tt=new Map;function Rr(e){var t=e.getAttribute("is")||e.nodeName,r=Tt.get(t);if(r)return r;Tt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Hr(i);for(var o in n)n[o].set&&r.push(o);i=Rt(i)}return r}function Be(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=zt(()=>(f=!1,l())),h=p;return(function(c,d){if(arguments.length>0){const y=d?v(u):c;return E(u,y),f=!0,i!==void 0&&(i=y),c}return _e&&f||(h.f&Q)!==0?u.v:v(u)})}function oi(e){return new ai(e)}class ai{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=yn(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return v(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===zr?!0:(v(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return E(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Gn:xr)(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)&&Te(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ve(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Jn(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 Sr;typeof HTMLElement=="function"&&(Sr=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),ue(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=li(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]=st(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=oi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Nn(()=>{sr(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=st(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]=st(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 Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function st(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 li(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function fi(e,t,r,n,i,s){let o=class extends Sr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=st(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var u=we(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const ui={version:"0.66.0"};var ge={},Or;function ci(){if(Or)return ge;Or=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.LanguageTranslator=void 0,ge.getChildStyleToPass=e,ge.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var d=i?.filter(function(y){return y.name===c&&y.defaultValue!==n[c]});d&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];l(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}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 o=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}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,o){return n.formatDate(i,s,o||this.lang)},n.getDefaultLang=function(){var i,s,o,a="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",f=n.getDefaultLang();if(!o||f!==o){var u=s?.[f];u?.[i]&&(l=u[i])}return l},n.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),s);return a.format(i)},n})();return ge.LanguageTranslator=r,ge}var di=ci(),hi=yt('<div class="progress svelte-vj77ev"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-vj77ev" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),vi=yt('<div class="progress svelte-vj77ev"><div class="progress-bar svelte-vj77ev" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),_i=yt('<hb-dialog><span slot="title" class="svelte-vj77ev"><!></span> <div slot="body-content" class="svelte-vj77ev"><!></div> <span slot="modal-footer" class="svelte-vj77ev"></span></hb-dialog>',2);const pi={hash:"svelte-vj77ev",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");
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
@@ -16,5 +16,5 @@
16
16
  animation: 1s linear infinite svelte-vj77ev-progress-bar-stripes;}
17
17
  @media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-vj77ev {
18
18
  animation: none;}
19
- }:host {font-family:"Roboto", sans-serif;}`};function jr(e,t){Ft(t,!0),Qn(e,pi);function r(g,w){t.$$host.dispatchEvent(new CustomEvent(g,{detail:w}))}di.addComponent({repoName:"@htmlbricks/hb-dialog",version:ui.version});let n=He(t,"id",7,""),i=He(t,"downloadid",7,""),s=He(t,"uri",7,""),o=He(t,"headers",7,void 0),a=He(t,"targetfilename",7,void 0);Ce({});let l=N(""),f=N(0),c=N(0),d=N(null),u=N(!1),h=N(null);Nn(()=>{try{o()&&typeof o()=="string"&&o(JSON.parse(o()))}catch{}!a()&&s()&&a(s().split("/")[s().split("/").length-1].split("?")[0])});function y(){function g(w){console.error(`error downloading uri: ${s()}`,w),w&&E(h,w,!0),E(d,null),r("downloadError",{downloaded:v(u),id:i(),error:w})}E(c,0),E(d,new XMLHttpRequest,!0);try{if(v(d).open("GET",s(),!0),o())for(const w of Object.keys(o()))v(d).setRequestHeader(w,o()[w]);v(d).responseType="blob",v(d).onload=function(){if(!v(d))return;if(v(d).status>299||v(d).status<200)return g("request error");let w=a();const ot=v(d).getResponseHeader("Content-Disposition");if(ot){const J=ot.match(/filename="([^"]+)"/);J&&J[1]&&(w=J[1])}else console.warn("no content disposition, try adding header 'Access-Control-Expose-Headers: Content-Disposition'");const kt=(window.URL||window.webkitURL).createObjectURL(this.response),j=document.createElement("a");return j.href=kt,j.target="_blank",j.download=w,document.body.appendChild(j),j.click(),document.body.removeChild(j),console.log("loadEnd"),i(""),s(""),E(d,null),E(u,!0),E(h,null),r("downloadComplete",{downloaded:v(u),id:i()||"default"})},v(d).onerror=w=>g(w),v(d).onprogress=function(w){E(f,w?.total||0,!0),E(c,w?.loaded||0,!0)},v(d).onloadend=function(w){},v(d).send()}catch(w){return console.error("download err ",w),g(w)}}function U(g){g.show?(i(g.id),y()):(s(""),i(""),E(h,null),v(d)&&v(d).abort(),E(d,null)),r("modalShow",g)}var ie={get id(){return n()},set id(g=""){n(g),xe()},get downloadid(){return i()},set downloadid(g=""){i(g),xe()},get uri(){return s()},set uri(g=""){s(g),xe()},get headers(){return o()},set headers(g=void 0){o(g),xe()},get targetfilename(){return a()},set targetfilename(g=void 0){a(g),xe()}},Y=_i();Ar(Y,v(l)),rt(()=>Sr(Y,"id",i())),rt(()=>Sr(Y,"show",s()?"yes":"no")),ri(Y,1,"svelte-vj77ev");var we=De(Y),gi=De(we);Zn(gi,t,"title",{},g=>{var w=Er("Downloading");ce(g,w)}),Oe(we);var Mr=Tn(we,2),mi=De(Mr);{var wi=g=>{var w=hi();ce(g,w)},bi=g=>{var w=Tr(),ot=rr(w);{var Dr=j=>{var J=vi(),Se=De(J),xt=De(Se);Oe(Se),Oe(J),rt((Ue,at,yi)=>{Ar(Se,`width:${Ue??""}%`),Nr(Se,"aria-valuenow",at),kr(xt,`${yi??""}%`)},[()=>Math.round(v(c)/v(f)*100),()=>Math.round(v(c)/v(f)*100),()=>Math.round(v(c)/v(f)*100)]),ce(j,J)},kt=j=>{var J=Tr(),Se=rr(J);{var xt=Ue=>{var at=Er();rt(()=>kr(at,v(h))),ce(Ue,at)};Et(Se,Ue=>{v(h)&&Ue(xt)},!0)}ce(j,J)};Et(ot,j=>{v(h)?j(kt,!1):j(Dr)},!0)}ce(g,w)};Et(mi,g=>{!v(f)&&!v(h)?g(wi):g(bi,!1)})}return Oe(Mr),Mt(2),Oe(Y),Vn("modalShow",Y,g=>U(g.detail)),ce(e,Y),It(ie)}customElements.define("hb-downloader",fi(jr,{id:{},downloadid:{},uri:{},headers:{},targetfilename:{}},["title"],[],!0)),Ct.Component=jr,Object.defineProperty(Ct,Symbol.toStringTag,{value:"Module"})})(this.downloader=this.downloader||{});
19
+ }:host {font-family:"Roboto", sans-serif;}`};function Lr(e,t){Ft(t,!0),Zn(e,pi);function r(g,w){t.$$host.dispatchEvent(new CustomEvent(g,{detail:w}))}di.addComponent({repoName:"@htmlbricks/hb-dialog",version:ui.version});let n=Be(t,"id",7,""),i=Be(t,"downloadid",7,""),s=Be(t,"uri",7,""),o=Be(t,"headers",7,void 0),a=Be(t,"targetfilename",7,void 0),l=L(0),f=L(0),u=L(null),h=L(!1),c=L(null);An(()=>{try{o()&&typeof o()=="string"&&o(JSON.parse(o()))}catch{}!a()&&s()&&a(s().split("/")[s().split("/").length-1].split("?")[0])});function d(){function g(w){console.error(`error downloading uri: ${s()}`,w),w&&E(c,w,!0),E(u,null),r("downloadError",{downloaded:v(h),id:i(),error:w})}E(f,0),E(u,new XMLHttpRequest,!0);try{if(v(u).open("GET",s(),!0),o())for(const w of Object.keys(o()))v(u).setRequestHeader(w,o()[w]);v(u).responseType="blob",v(u).onload=function(){if(!v(u))return;if(v(u).status>299||v(u).status<200)return g("request error");let w=a();const ot=v(u).getResponseHeader("Content-Disposition");if(ot){const J=ot.match(/filename="([^"]+)"/);J&&J[1]&&(w=J[1])}else console.warn("no content disposition, try adding header 'Access-Control-Expose-Headers: Content-Disposition'");const kt=(window.URL||window.webkitURL).createObjectURL(this.response),M=document.createElement("a");return M.href=kt,M.target="_blank",M.download=w,document.body.appendChild(M),M.click(),document.body.removeChild(M),console.log("loadEnd"),i(""),s(""),E(u,null),E(h,!0),E(c,null),r("downloadComplete",{downloaded:v(h),id:i()||"default"})},v(u).onerror=w=>g(w),v(u).onprogress=function(w){E(l,w?.total||0,!0),E(f,w?.loaded||0,!0)},v(u).onloadend=function(w){},v(u).send()}catch(w){return console.error("download err ",w),g(w)}}function y(g){g.show?(i(g.id),d()):(s(""),i(""),E(c,null),v(u)&&v(u).abort(),E(u,null)),r("modalShow",g)}var Y={get id(){return n()},set id(g=""){n(g),Te()},get downloadid(){return i()},set downloadid(g=""){i(g),Te()},get uri(){return s()},set uri(g=""){s(g),Te()},get headers(){return o()},set headers(g=void 0){o(g),Te()},get targetfilename(){return a()},set targetfilename(g=void 0){a(g),Te()}},R=_i();rt(()=>Nr(R,"id",i())),rt(()=>Nr(R,"show",s()?"yes":"no")),ti(R,1,"svelte-vj77ev");var Ce=Me(R),He=Me(Ce);Xn(He,t,"title",{},g=>{var w=Er("Downloading");ue(g,w)}),Re(Ce);var jr=En(Ce,2),gi=Me(jr);{var mi=g=>{var w=hi();ue(g,w)},wi=g=>{var w=Tr(),ot=rr(w);{var Mr=M=>{var J=vi(),Ae=Me(J),xt=Me(Ae);Re(Ae),Re(J),rt((Ue,at,bi)=>{ri(Ae,`width:${Ue??""}%`),Ar(Ae,"aria-valuenow",at),kr(xt,`${bi??""}%`)},[()=>Math.round(v(f)/v(l)*100),()=>Math.round(v(f)/v(l)*100),()=>Math.round(v(f)/v(l)*100)]),ue(M,J)},kt=M=>{var J=Tr(),Ae=rr(J);{var xt=Ue=>{var at=Er();rt(()=>kr(at,v(c))),ue(Ue,at)};Et(Ae,Ue=>{v(c)&&Ue(xt)},!0)}ue(M,J)};Et(ot,M=>{v(c)?M(kt,!1):M(Mr)},!0)}ue(g,w)};Et(gi,g=>{!v(l)&&!v(c)?g(mi):g(wi,!1)})}return Re(jr),Mt(2),Re(R),Yn("modalShow",R,g=>y(g.detail)),ue(e,R),It(Y)}customElements.define("hb-downloader",fi(Lr,{id:{},downloadid:{},uri:{},headers:{},targetfilename:{}},["title"],[],!0)),Ct.Component=Lr,Object.defineProperty(Ct,Symbol.toStringTag,{value:"Module"})})(this.downloader=this.downloader||{});
20
20
  //# sourceMappingURL=main.iife.js.map