@htmlbricks/hb-uploader 0.66.3 → 0.66.4

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(At){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hr=1,zr=2,Nt="[",Rt="[!",Ct="[?",Ot="]",Te={},N=Symbol(),Mt="http://www.w3.org/1999/xhtml",Ur=!1;var Vr=Array.isArray,Yr=Array.prototype.indexOf,xe=Array.prototype.includes,Wr=Array.from,Ye=Object.keys,We=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Gr=Object.getOwnPropertyDescriptors,Jr=Object.prototype,Kr=Array.prototype,Lt=Object.getPrototypeOf,Pt=Object.isExtensible;const Xr=()=>{};function Zr(e){for(var t=0;t<e.length;t++)e[t]()}function Dt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const A=2,Se=4,Ge=8,It=1<<24,ne=16,W=32,se=64,lt=128,F=512,S=1024,C=2048,G=4096,J=8192,U=16384,ie=32768,Ft=1<<25,Ae=65536,jt=1<<17,Qr=1<<18,ge=1<<19,en=1<<20,be=65536,at=1<<21,ft=1<<22,oe=1<<23,ut=Symbol("$state"),tn=Symbol("legacy props"),rn=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},nn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ct=3,Je=8;function sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ln(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function an(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function un(){throw new Error("https://svelte.dev/e/hydration_failed")}function cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function _n(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function le(e){m=e}let T;function K(e){if(e===null)throw Ke(),Te;return T=e}function Xe(){return K(he(T))}function De(e){if(m){if(he(T)!==null)throw Ke(),Te;T=e}}function qt(e=1){if(m){for(var t=e,r=T;t--;)r=he(r);T=r}}function Bt(e=!0){for(var t=0,r=T;;){if(r.nodeType===Je){var n=r.data;if(n===Ot){if(t===0)return r;t-=1}else(n===Nt||n===Rt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var s=he(r);e&&r.remove(),r=s}}function pn(e){if(!e||e.nodeType!==Je)throw Ke(),Te;return e.data}function Ht(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bn(e){return!gn(e,this.v)}let wn=!1,j=null;function Ne(e){j=e}function zt(e,t=!1,r){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function Ut(e){var t=j,r=t.e;if(r!==null){t.e=null;for(var n of r)vr(n)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Vt(){return!0}let we=[];function Yt(){var e=we;we=[],Zr(e)}function me(e){if(we.length===0&&!Ie){var t=we;queueMicrotask(()=>{t===we&&Yt()})}we.push(e)}function mn(){for(;we.length>0;)Yt()}function Wt(e){var t=g;if(t===null)return p.f|=oe,e;if((t.f&ie)===0&&(t.f&Se)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&lt)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const yn=-7169;function x(e,t){e.f=e.f&yn|t}function ht(e){(e.f&F)!==0||e.deps===null?x(e,S):x(e,G)}function Gt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&be)===0||(t.f^=be,Gt(t.deps))}function Jt(e,t,r){(e.f&C)!==0?t.add(e):(e.f&G)!==0&&r.add(e),Gt(e.deps),x(e,S)}const fe=new Set;let $=null,V=null,dt=null,Ie=!1,vt=!1,Re=null,Ze=null;var Kt=0;let $n=1;class Q{id=$n++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#s.size>0}#v(){for(const n of this.#f)for(const s of n.#s.keys()){for(var t=!1,r=s;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)x(n,C),this.schedule(n);for(n of r.m)x(n,G),this.schedule(n)}}#d(){if(Kt++>1e3&&(fe.delete(this),En()),!this.#h()){for(const o of this.#o)this.#l.delete(o),x(o,C),this.schedule(o);for(const o of this.#l)x(o,G),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=Re=[],n=[],s=Ze=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw tr(o),a}if($=null,s.length>0){var i=Q.ensure();for(const o of s)i.schedule(o)}if(Re=null,Ze=null,this.#h()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)er(o,a)}else{this.#t.size===0&&fe.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),Xt(n),Xt(r),this.#i?.resolve()}var l=$;if(this.#n.length>0){const o=l??=this;o.#n.push(...this.#n.filter(a=>!o.#n.includes(a)))}l!==null&&(fe.add(l),l.#d()),fe.has(this)||this.#p()}#u(t,r,n){t.f^=S;for(var s=t.first;s!==null;){var i=s.f,l=(i&(W|se))!==0,o=l&&(i&S)!==0,a=o||(i&J)!==0||this.#a.has(s);if(!a&&s.fn!==null){l?s.f^=S:(i&Se)!==0?r.push(s):Ue(s)&&((i&ne)!==0&&this.#l.add(s),Ce(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Jt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==N&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,[t.v,n]),V?.set(t,t.v))}activate(){$=this}deactivate(){$=null,V=null}flush(){try{vt=!0,$=this,this.#d()}finally{Kt=0,dt=null,Re=null,Ze=null,vt=!1,$=null,V=null,ue.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),fe.delete(this)}#p(){for(const f of fe){var t=f.id<this.id,r=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&h!==n)f.current.set(u,[h,c]);else continue}r.push(u)}var s=[...f.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&f.discard();else if(r.length>0){f.activate();var i=new Set,l=new Map;for(var o of r)Zt(o,s,i,l);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of fe)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let s=this.#s.get(r)??0;this.#s.set(r,s+1)}}decrement(t,r,n){let s=this.#t.get(r)??0;if(s===1?this.#t.delete(r):this.#t.set(r,s-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||n||(this.#c=!0,me(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Dt()).promise}static ensure(){if($===null){const t=$=new Q;vt||(fe.add($),Ie||me(()=>{$===t&&t.flush()}))}return $}apply(){{V=null;return}}schedule(t){if(dt=t,t.b?.is_pending&&(t.f&(Se|Ge|It))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Re!==null&&r===g&&(p===null||(p.f&A)===0))return;if((n&(se|W))!==0){if((n&S)===0)return;r.f^=S}}this.#n.push(r)}}function Qe(e){var t=Ie;Ie=!0;try{for(var r;;){if(mn(),$===null)return r;$.flush()}}finally{Ie=t}}function En(){try{fn()}catch(e){ae(e,dt)}}let ee=null;function Xt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(U|J))===0&&Ue(n)&&(ee=new Set,Ce(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&br(n),ee?.size>0)){ue.clear();for(const s of ee){if((s.f&(U|J))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(U|J))===0&&Ce(a)}}ee.clear()}}ee=null}}function Zt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Zt(s,t,r,n):(i&(ft|ne))!==0&&(i&C)===0&&Qt(s,t,n)&&(x(s,C),_t(s))}}function Qt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(xe.call(t,s))return!0;if((s.f&A)!==0&&Qt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function _t(e){$.schedule(e)}function er(e,t){if(!((e.f&W)!==0&&(e.f&S)!==0)){(e.f&C)!==0?t.d.push(e):(e.f&G)!==0&&t.m.push(e),x(e,S);for(var r=e.first;r!==null;)er(r,t),r=r.next}}function tr(e){x(e,S);for(var t=e.first;t!==null;)tr(t),t=t.next}function Tn(e){let t=0,r=Fe(0),n;return()=>{yt()&&(w(r),_r(()=>(t===0&&(n=Zn(()=>e(()=>je(r)))),t+=1,()=>{me(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var xn=Ae|ge;function kn(e,t,r,n){new Sn(e,t,r,n)}class Sn{parent;is_pending=!1;transform_error;#e;#r=m?T:null;#t;#s;#i;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=Tn(()=>(this.#u=Fe(this.#c),()=>{this.#u=null}));constructor(t,r,n,s){this.#e=t,this.#t=r,this.#s=i=>{var l=g;l.b=this,l.f|=lt,n(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#i=pr(()=>{if(m){const i=this.#r;Xe();const l=i.data===Rt;if(i.data.startsWith(Ct)){const a=JSON.parse(i.data.slice(Ct.length));this.#y(a)}else l?this.#$():this.#p()}else this.#w()},xn),m&&(this.#e=T)}#p(){try{this.#n=te(()=>this.#s(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#l=te(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=te(()=>t(this.#e)),me(()=>{var r=this.#a=document.createDocumentFragment(),n=ce();r.append(n),this.#n=this.#b(()=>te(()=>this.#s(n))),this.#f===0&&(this.#e.before(r),this.#a=null,ze(this.#o,()=>{this.#o=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=te(()=>{this.#s(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();yr(this.#n,t);const r=this.#t.pending;this.#o=te(()=>r(this.#e))}else this.#g($)}catch(r){this.error(r)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Jt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var r=g,n=p,s=j;B(this.#i),P(this.#i),Ne(this.#i.ctx);try{return Q.ensure(),t()}catch(i){return Wt(i),null}finally{B(r),P(n),Ne(s)}}#m(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t,r);return}this.#f+=t,this.#f===0&&(this.#g(r),this.#o&&ze(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#m(t,r),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,me(()=>{this.#h=!1,this.#u&&tt(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(L(this.#n),this.#n=null),this.#o&&(L(this.#o),this.#o=null),this.#l&&(L(this.#l),this.#l=null),m&&(K(this.#r),qt(),K(Bt()));var s=!1,i=!1;const l=()=>{if(s){_n();return}s=!0,i&&vn(),this.#l!==null&&ze(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},o=a=>{try{i=!0,r?.(a,l),i=!1}catch(f){ae(f,this.#i&&this.#i.parent)}n&&(this.#l=this.#b(()=>{try{return te(()=>{var f=g;f.b=this,f.f|=lt,n(this.#e,()=>a,()=>l)})}catch(f){return ae(f,this.#i.parent),null}}))};me(()=>{var a;try{a=this.transform_error(t)}catch(f){ae(f,this.#i&&this.#i.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ae(f,this.#i&&this.#i.parent)):o(a)})}}function An(e,t,r,n){const s=nr;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){n(t.map(s));return}var l=g,o=Nn(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function f(c){o();try{n(c)}catch(_){(l.f&U)===0&&ae(_,l)}et()}if(r.length===0){a.then(()=>f(t.map(s)));return}var u=rr();function h(){Promise.all(r.map(c=>Rn(c))).then(c=>f([...t.map(s),...c])).catch(c=>ae(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),et()}):h()}function Nn(){var e=g,t=p,r=j,n=$;return function(i=!0){B(e),P(t),Ne(r),i&&(e.f&U)===0&&(n?.activate(),n?.apply())}}function et(e=!0){B(null),P(null),Ne(null),e&&$?.deactivate()}function rr(){var e=g,t=e.b,r=$,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(s=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,s)}}function nr(e){var t=A|C,r=p!==null&&(p.f&A)!==0?p:null;return g!==null&&(g.f|=ge),{ctx:j,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function Rn(e,t,r){let n=g;n===null&&sn();var s=void 0,i=Fe(N),l=!p,o=new Map;return Vn(()=>{var a=g,f=Dt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(et)}catch(_){f.reject(_),et()}var u=$;if(l){if((a.f&ie)!==0)var h=rr();if(n.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const _ of o.values())_.reject(Z);o.clear()}o.set(u,f)}const c=(_,d=void 0)=>{if(h){var y=d===Z;h(y)}if(!(d===Z||(a.f&U)!==0)){if(u.activate(),d)i.f|=oe,tt(i,d);else{(i.f&oe)!==0&&(i.f^=oe),tt(i,_);for(const[E,M]of o){if(o.delete(E),E===u)break;M.reject(Z)}}u.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),dr(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function h(){u===s?a(i):f(s)}u.then(h,h)}f(s)})}function Cn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)L(t[r])}}function On(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function pt(e){var t,r=g;B(On(e));try{e.f&=~be,Cn(e),t=Sr(e)}finally{B(r)}return t}function sr(e){var t=e.v,r=pt(e);if(!e.equals(r)&&(e.wv=xr(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){x(e,S);return}de||(V!==null?(yt()||$?.is_fork)&&V.set(e,r):ht(e))}function Mn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=Xr,t.ac=null,Ve(t,0),$t(t))}function ir(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ce(t)}let gt=new Set;const ue=new Map;let or=!1;function Fe(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function q(e,t){const r=Fe(e);return Jn(r),r}function Ln(e,t=!1,r=!0){const n=Fe(e);return t||(n.equals=bn),n}function k(e,t,r=!1){p!==null&&(!Y||(p.f&jt)!==0)&&Vt()&&(p.f&(A|ne|ft|jt))!==0&&(H===null||!xe.call(H,e))&&dn();let n=r?qe(t):t;return tt(e,n,Ze)}function tt(e,t,r=null){if(!e.equals(t)){var n=e.v;de?ue.set(e,t):ue.set(e,n),e.v=t;var s=Q.ensure();if(s.capture(e,n),(e.f&A)!==0){const i=e;(e.f&C)!==0&&pt(i),V===null&&ht(i)}e.wv=xr(),lr(e,C,r),g!==null&&(g.f&S)!==0&&(g.f&(W|se))===0&&(z===null?Kn([e]):z.push(e)),!s.is_fork&&gt.size>0&&!or&&Pn()}return t}function Pn(){or=!1;for(const e of gt)(e.f&S)!==0&&x(e,G),Ue(e)&&Ce(e);gt.clear()}function je(e){k(e,e.v+1)}function lr(e,t,r){var n=e.reactions;if(n!==null)for(var s=n.length,i=0;i<s;i++){var l=n[i],o=l.f,a=(o&C)===0;if(a&&x(l,t),(o&A)!==0){var f=l;V?.delete(f),(o&be)===0&&(o&F&&(l.f|=be),lr(f,G,r))}else if(a){var u=l;(o&ne)!==0&&ee!==null&&ee.add(u),r!==null?r.push(u):_t(u)}}}function qe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=Lt(e);if(t!==Jr&&t!==Kr)return e;var r=new Map,n=Vr(e),s=q(0),i=$e,l=o=>{if($e===i)return o();var a=p,f=$e;P(null),Tr(i);var u=o();return P(a),Tr(f),u};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&cn();var u=r.get(a);return u===void 0?l(()=>{var h=q(f.value);return r.set(a,h),h}):k(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>q(N));r.set(a,u),je(s)}}else k(f,N),je(s);return!0},get(o,a,f){if(a===ut)return e;var u=r.get(a),h=a in o;if(u===void 0&&(!h||ke(o,a)?.writable)&&(u=l(()=>{var _=qe(h?o[a]:N),d=q(_);return d}),r.set(a,u)),u!==void 0){var c=w(u);return c===N?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=w(u))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ut)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||ke(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?qe(o[a]):N,_=q(c);return _}),r.set(a,f));var h=w(f);if(h===N)return!1}return u},set(o,a,f,u){var h=r.get(a),c=a in o;if(n&&a==="length")for(var _=f;_<h.v;_+=1){var d=r.get(_+"");d!==void 0?k(d,N):_ in o&&(d=l(()=>q(N)),r.set(_+"",d))}if(h===void 0)(!c||ke(o,a)?.writable)&&(h=l(()=>q(void 0)),k(h,qe(f)),r.set(a,h));else{c=h.v!==N;var y=l(()=>qe(f));k(h,y)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!c){if(n&&typeof a=="string"){var M=r.get("length"),ve=Number(a);Number.isInteger(ve)&&ve>=M.v&&k(M,ve+1)}je(s)}return!0},ownKeys(o){w(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){hn()}})}var ar,fr,ur,cr;function bt(){if(ar===void 0){ar=window,fr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ur=ke(t,"firstChild").get,cr=ke(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(r)&&(r.__t=void 0)}}function ce(e=""){return document.createTextNode(e)}function Be(e){return ur.call(e)}function he(e){return cr.call(e)}function He(e,t){if(!m)return Be(e);var r=Be(T);return r===null&&(r=T.appendChild(ce())),K(r),r}function Dn(e,t=1,r=!1){let n=m?T:e;for(var s;t--;)s=n,n=he(n);if(!m)return n;if(r){if(n?.nodeType!==ct){var i=ce();return n===null?s?.after(i):n.before(i),K(i),i}hr(n)}return K(n),n}function In(e){e.textContent=""}function Fn(){return!1}function wt(e,t,r){return document.createElementNS(Mt,e,void 0)}function hr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ct;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function mt(e){var t=p,r=g;P(null),B(null);try{return e()}finally{P(t),B(r)}}function jn(e){g===null&&(p===null&&an(),ln()),de&&on()}function qn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function X(e,t){var r=g;r!==null&&(r.f&J)!==0&&(e|=J);var n={ctx:j,deps:null,nodes:null,f:e|C|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=n;if((e&Se)!==0)Re!==null?Re.push(n):Q.ensure().schedule(n);else if(t!==null){try{Ce(n)}catch(l){throw L(n),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ge)===0&&(s=s.first,(e&ne)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=r,r!==null&&qn(s,r),p!==null&&(p.f&A)!==0&&(e&se)===0)){var i=p;(i.effects??=[]).push(s)}return n}function yt(){return p!==null&&!Y}function dr(e){const t=X(Ge,null);return x(t,S),t.teardown=e,t}function Bn(e){jn();var t=g.f,r=!p&&(t&W)!==0&&(t&ie)===0;if(r){var n=j;(n.e??=[]).push(e)}else return vr(e)}function vr(e){return X(Se|en,e)}function Hn(e){Q.ensure();const t=X(se|ge,e);return()=>{L(t)}}function zn(e){Q.ensure();const t=X(se|ge,e);return(r={})=>new Promise(n=>{r.outro?ze(t,()=>{L(t),n(void 0)}):(L(t),n(void 0))})}function Un(e){return X(Se,e)}function Vn(e){return X(ft|ge,e)}function _r(e,t=0){return X(Ge|t,e)}function rt(e,t=[],r=[],n=[]){An(n,t,r,s=>{X(Ge,()=>e(...s.map(w)))})}function pr(e,t=0){var r=X(ne|t,e);return r}function te(e){return X(W|ge,e)}function gr(e){var t=e.teardown;if(t!==null){const r=de,n=p;$r(!0),P(null);try{t.call(null)}finally{$r(r),P(n)}}}function $t(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&mt(()=>{s.abort(Z)});var n=r.next;(r.f&se)!==0?r.parent=null:L(r,t),r=n}}function Yn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&W)===0&&L(t),t=r}}function L(e,t=!0){var r=!1;(t||(e.f&Qr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wn(e.nodes.start,e.nodes.end),r=!0),x(e,Ft),$t(e,t&&!r),Ve(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const i of n)i.stop();gr(e),e.f^=Ft,e.f|=U;var s=e.parent;s!==null&&s.first!==null&&br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function br(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 ze(e,t,r=!0){var n=[];wr(e,n,!0);var s=()=>{r&&L(e),t&&t()},i=n.length;if(i>0){var l=()=>--i||s();for(var o of n)o.out(l)}else s()}function wr(e,t,r){if((e.f&J)===0){e.f^=J;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var s=e.first;s!==null;){var i=s.next,l=(s.f&Ae)!==0||(s.f&W)!==0&&(e.f&ne)!==0;wr(s,t,l?r:!1),s=i}}}function Gn(e){mr(e,!0)}function mr(e,t){if((e.f&J)!==0){e.f^=J,(e.f&S)===0&&(x(e,C),Q.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Ae)!==0||(r.f&W)!==0;mr(r,s?t:!1),r=n}var i=e.nodes&&e.nodes.t;if(i!==null)for(const l of i)(l.is_global||t)&&l.in()}}function yr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var s=r===n?null:he(r);t.append(r),r=s}}let nt=!1,de=!1;function $r(e){de=e}let p=null,Y=!1;function P(e){p=e}let g=null;function B(e){g=e}let H=null;function Jn(e){p!==null&&(H===null?H=[e]:H.push(e))}let D=null,I=0,z=null;function Kn(e){z=e}let Er=1,ye=0,$e=ye;function Tr(e){$e=e}function xr(){return++Er}function Ue(e){var t=e.f;if((t&C)!==0)return!0;if(t&A&&(e.f&=~be),(t&G)!==0){for(var r=e.deps,n=r.length,s=0;s<n;s++){var i=r[s];if(Ue(i)&&sr(i),i.wv>e.wv)return!0}(t&F)!==0&&V===null&&x(e,S)}return!1}function kr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(H!==null&&xe.call(H,e)))for(var s=0;s<n.length;s++){var i=n[s];(i.f&A)!==0?kr(i,t,!1):t===i&&(r?x(i,C):(i.f&S)!==0&&x(i,G),_t(i))}}function Sr(e){var t=D,r=I,n=z,s=p,i=H,l=j,o=Y,a=$e,f=e.f;D=null,I=0,z=null,p=(f&(W|se))===0?e:null,H=null,Ne(e.ctx),Y=!1,$e=++ye,e.ac!==null&&(mt(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=at;var u=e.fn,h=u();e.f|=ie;var c=e.deps,_=$?.is_fork;if(D!==null){var d;if(_||Ve(e,I),c!==null&&I>0)for(c.length=I+D.length,d=0;d<D.length;d++)c[I+d]=D[d];else e.deps=c=D;if(yt()&&(e.f&F)!==0)for(d=I;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!_&&c!==null&&I<c.length&&(Ve(e,I),c.length=I);if(Vt()&&z!==null&&!Y&&c!==null&&(e.f&(A|G|C))===0)for(d=0;d<z.length;d++)kr(z[d],e);if(s!==null&&s!==e){if(ye++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=ye;if(t!==null)for(const y of t)y.rv=ye;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&oe)!==0&&(e.f^=oe),h}catch(y){return Wt(y)}finally{e.f^=at,D=t,I=r,z=n,p=s,H=i,Ne(l),Y=o,$e=a}}function Xn(e,t){let r=t.reactions;if(r!==null){var n=Yr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}if(r===null&&(t.f&A)!==0&&(D===null||!xe.call(D,t))){var i=t;(i.f&F)!==0&&(i.f^=F,i.f&=~be),ht(i),Mn(i),Ve(i,0)}}function Ve(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xn(e,r[n])}function Ce(e){var t=e.f;if((t&U)===0){x(e,S);var r=g,n=nt;g=e,nt=!0;try{(t&(ne|It))!==0?Yn(e):$t(e),gr(e);var s=Sr(e);e.teardown=typeof s=="function"?s:null,e.wv=Er;var i;Ur&&wn&&(e.f&C)!==0&&e.deps}finally{nt=n,g=r}}}function w(e){var t=e.f,r=(t&A)!==0;if(p!==null&&!Y){var n=g!==null&&(g.f&U)!==0;if(!n&&(H===null||!xe.call(H,e))){var s=p.deps;if((p.f&at)!==0)e.rv<ye&&(e.rv=ye,D===null&&s!==null&&s[I]===e?I++:D===null?D=[e]:D.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:xe.call(i,p)||i.push(p)}}}if(de&&ue.has(e))return ue.get(e);if(r){var l=e;if(de){var o=l.v;return((l.f&S)===0&&l.reactions!==null||Nr(l))&&(o=pt(l)),ue.set(l,o),o}var a=(l.f&F)===0&&!Y&&p!==null&&(nt||(p.f&F)!==0),f=(l.f&ie)===0;Ue(l)&&(a&&(l.f|=F),sr(l)),a&&!f&&(ir(l),Ar(l))}if(V?.has(e))return V.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function Ar(e){if(e.f|=F,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&F)===0&&(ir(t),Ar(t))}function Nr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ue.has(t)||(t.f&A)!==0&&Nr(t))return!0;return!1}function Zn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const st=Symbol("events"),Qn=new Set,Rr=new Set;function es(e,t,r,n={}){function s(i){if(n.capture||Et.call(t,i),!i.cancelBubble)return mt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?me(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function ts(e,t,r,n,s){var i={capture:n,passive:s},l=es(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dr(()=>{t.removeEventListener(e,l,i)})}let Cr=null;function Et(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Cr=e;var l=0,o=Cr===e&&e[st];if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e[st]=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){We(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=p,h=g;P(null),B(null);try{for(var c,_=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[st]?.[n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||d===t||d===null)break;i=d}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[st]=t,delete e.currentTarget,P(u),B(h)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ns(e){return rs?.createHTML(e)??e}function ss(e){var t=wt("template");return t.innerHTML=ns(e.replaceAll("<!>","<!---->")),t.content}function Oe(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Tt(e,t){var r=(t&Hr)!==0,n=(t&zr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Oe(T,null),T;s===void 0&&(s=ss(i?e:"<!>"+e),r||(s=Be(s)));var l=n||fr?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=Be(l),a=l.lastChild;Oe(o,a)}else Oe(l,l);return l}}function Or(e=""){if(!m){var t=ce(e+"");return Oe(t,t),t}var r=T;return r.nodeType!==ct?(r.before(r=ce()),K(r)):hr(r),Oe(r,r),r}function Me(e,t){if(m){var r=g;((r.f&ie)===0||r.nodes.end===null)&&(r.nodes.end=T),Xe();return}e!==null&&e.before(t)}const is=["touchstart","touchmove"];function os(e){return is.includes(e)}function Mr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Lr(e,t){return Pr(e,t)}function ls(e,t){bt(),t.intro=t.intro??!1;const r=t.target,n=m,s=T;try{for(var i=Be(r);i&&(i.nodeType!==Je||i.data!==Nt);)i=he(i);if(!i)throw Te;le(!0),K(i);const l=Pr(e,{...t,anchor:i});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&un(),bt(),In(r),le(!1),Lr(e,t)}finally{le(n),K(s)}}const it=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){bt();var a=void 0,f=zn(()=>{var u=r??t.appendChild(ce());kn(u,{pending:()=>{}},_=>{zt({});var d=j;if(i&&(d.c=i),s&&(n.$$events=s),m&&Oe(_,null),a=e(_,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==Je||T.data!==Ot))throw Ke(),Te;Ut()},o);var h=new Set,c=_=>{for(var d=0;d<_.length;d++){var y=_[d];if(!h.has(y)){h.add(y);var E=os(y);for(const Le of[t,document]){var M=it.get(Le);M===void 0&&(M=new Map,it.set(Le,M));var ve=M.get(y);ve===void 0?(Le.addEventListener(y,Et,{passive:E}),M.set(y,1)):M.set(y,ve+1)}}}};return c(Wr(Qn)),Rr.add(c),()=>{for(var _ of h)for(const E of[t,document]){var d=it.get(E),y=d.get(_);--y==0?(E.removeEventListener(_,Et),d.delete(_),d.size===0&&it.delete(E)):d.set(_,y)}Rr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return xt.set(a,f),a}let xt=new WeakMap;function as(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class fs{anchor;#e=new Map;#r=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Gn(n),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#r.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(l);o&&(L(o.effect),this.#t.delete(l))}for(const[i,l]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();yr(l,f),f.append(ce()),this.#t.set(i,{effect:l,fragment:f})}else L(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),ze(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(L(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Fn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ce();i.append(l),this.#t.set(t,{effect:te(()=>r(l)),fragment:i})}else this.#r.set(t,te(()=>r(this.anchor)));if(this.#e.set(n,t),s){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else m&&(this.anchor=T),this.#n(n)}}function us(e,t,r=!1){var n;m&&(n=T,Xe());var s=new fs(e),i=r?Ae:0;function l(o,a){if(m){var f=pn(n);if(o!==parseInt(f.substring(1))){var u=Bt();K(u),s.anchor=u,le(!1),s.ensure(o,a),le(!0);return}}s.ensure(o,a)}pr(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function cs(e,t,r,n,s){m&&Xe();var i=t.$$slots?.[r],l=!1;i===!0&&(i=t[r],l=!0),i===void 0?s!==null&&s(e):i(e,l?()=>n:n)}function hs(e,t){Un(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=wt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ds(e,t,r){var n=""+e;return n}function vs(e,t){return e==null?null:String(e)}function _s(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=ds(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function ps(e,t,r,n){var s=e.__style;if(m||s!==t){var i=vs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const gs=Symbol("is custom element"),bs=Symbol("is html"),ws=nn?"link":"LINK";function Dr(e,t,r,n){var s=ms(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ws)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[rn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var n=p,s=g;let i=m;m&&le(!1),P(null),B(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Fr(e).includes(t):r&&typeof r=="object")?e[t]=r:Dr(e,t,r==null?r:String(r))}finally{P(n),B(s),i&&le(!0)}}function ms(e){return e.__attributes??={[gs]:e.nodeName.includes("-"),[bs]:e.namespaceURI===Mt}}var kt=new Map;function Fr(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Gr(s);for(var l in n)n[l].set&&r.push(l);s=Lt(s)}return r}function St(e,t,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(i=!0,c)};var f=!1,u=nr(()=>(f=!1,a())),h=g;return(function(c,_){if(arguments.length>0){const d=_?w(u):c;return k(u,d),f=!0,s!==void 0&&(s=d),c}return de&&f||(h.f&U)!==0?u.v:w(u)})}function ys(e){return new $s(e)}class $s{#e;#r;constructor(t){var r=new Map,n=(i,l)=>{var o=Ln(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return w(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===tn?!0:(w(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return k(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#r=(t.hydrate?ls:Lr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Qe(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#r[i]},set(l){this.#r[i]=l},enumerable:!0});this.#r.$set=i=>{Object.assign(s,i)},this.#r.$destroy=()=>{as(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...s)=>r.call(this,...s);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(s=>s!==n)}}$destroy(){this.#r.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}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 s=>{const i=wt("slot");n!=="default"&&(i.name=n),Me(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Es(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 s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ot(s,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=ys({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hn(()=>{_r(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ot(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ot(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 ot(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Es(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ts(e,t,r,n,s,i){let l=class extends jr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ye(t).forEach(o=>{We(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ot(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=ke(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{We(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const xs={version:"0.66.3"};var Ee={},qr;function ks(){if(qr)return Ee;qr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(n,s){var i,l,o="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var _=s?.filter(function(d){return d.name===c&&d.defaultValue!==n[c]});_&&(o+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];a(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var l=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var a=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,l){return n.formatDate(s,i,l||this.lang)},n.getDefaultLang=function(){var s,i,l,o="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(s,i,l){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((o=i[l])===null||o===void 0)&&o[s]))return i[l][s];var a="",f=n.getDefaultLang();if(!l||f!==l){var u=i?.[f];u?.[s]&&(a=u[s])}return a},n.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||n.getDefaultLang(),i);return o.format(s)},n})();return Ee.LanguageTranslator=r,Ee}var Ss=ks(),As=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),Ns=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),Rs=Tt('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const Cs={hash:"svelte-cq5tos",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(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jr=1,Br=2,At="[",Nt="[!",Rt="[?",Ot="]",Ee={},N=Symbol(),Ct="http://www.w3.org/1999/xhtml",Hr=!1;var zr=Array.isArray,Ur=Array.prototype.indexOf,Te=Array.prototype.includes,Vr=Array.from,Ve=Object.keys,Ye=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Gr=Object.prototype,Wr=Array.prototype,Mt=Object.getPrototypeOf,Pt=Object.isExtensible;const Kr=()=>{};function Jr(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const A=2,xe=4,Ge=8,Dt=1<<24,ne=16,G=32,se=64,ot=128,F=512,k=1024,O=2048,W=4096,K=8192,U=16384,ie=32768,It=1<<25,ke=65536,Ft=1<<17,Xr=1<<18,ge=1<<19,Zr=1<<20,be=65536,lt=1<<21,at=1<<22,oe=1<<23,ft=Symbol("$state"),Qr=Symbol("legacy props"),en=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},tn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ut=3,We=8;function rn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function on(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ln(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function an(){throw new Error("https://svelte.dev/e/hydration_failed")}function fn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function un(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function cn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function hn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function dn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function le(e){m=e}let T;function J(e){if(e===null)throw Ke(),Ee;return T=e}function Je(){return J(he(T))}function Le(e){if(m){if(he(T)!==null)throw Ke(),Ee;T=e}}function qt(e=1){if(m){for(var t=e,r=T;t--;)r=he(r);T=r}}function jt(e=!0){for(var t=0,r=T;;){if(r.nodeType===We){var n=r.data;if(n===Ot){if(t===0)return r;t-=1}else(n===At||n===Nt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var s=he(r);e&&r.remove(),r=s}}function vn(e){if(!e||e.nodeType!==We)throw Ke(),Ee;return e.data}function Bt(e){return e===this.v}function _n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pn(e){return!_n(e,this.v)}let gn=!1,q=null;function Ae(e){q=e}function Ht(e,t=!1,r){q={p:q,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function zt(e){var t=q,r=t.e;if(r!==null){t.e=null;for(var n of r)dr(n)}return e!==void 0&&(t.x=e),t.i=!0,q=t.p,e??{}}function Ut(){return!0}let we=[];function Vt(){var e=we;we=[],Jr(e)}function me(e){if(we.length===0&&!De){var t=we;queueMicrotask(()=>{t===we&&Vt()})}we.push(e)}function bn(){for(;we.length>0;)Vt()}function Yt(e){var t=g;if(t===null)return p.f|=oe,e;if((t.f&ie)===0&&(t.f&xe)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&ot)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wn=-7169;function S(e,t){e.f=e.f&wn|t}function ct(e){(e.f&F)!==0||e.deps===null?S(e,k):S(e,W)}function Gt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&be)===0||(t.f^=be,Gt(t.deps))}function Wt(e,t,r){(e.f&O)!==0?t.add(e):(e.f&W)!==0&&r.add(e),Gt(e.deps),S(e,k)}const fe=new Set;let $=null,V=null,ht=null,De=!1,dt=!1,Ne=null,Xe=null;var Kt=0;let mn=1;class Q{id=mn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#s.size>0}#v(){for(const n of this.#f)for(const s of n.#s.keys()){for(var t=!1,r=s;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)S(n,O),this.schedule(n);for(n of r.m)S(n,W),this.schedule(n)}}#d(){if(Kt++>1e3&&(fe.delete(this),yn()),!this.#h()){for(const o of this.#o)this.#l.delete(o),S(o,O),this.schedule(o);for(const o of this.#l)S(o,W),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=Ne=[],n=[],s=Xe=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw er(o),a}if($=null,s.length>0){var i=Q.ensure();for(const o of s)i.schedule(o)}if(Ne=null,Xe=null,this.#h()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)Qt(o,a)}else{this.#t.size===0&&fe.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),Jt(n),Jt(r),this.#i?.resolve()}var l=$;if(this.#n.length>0){const o=l??=this;o.#n.push(...this.#n.filter(a=>!o.#n.includes(a)))}l!==null&&(fe.add(l),l.#d()),fe.has(this)||this.#p()}#u(t,r,n){t.f^=k;for(var s=t.first;s!==null;){var i=s.f,l=(i&(G|se))!==0,o=l&&(i&k)!==0,a=o||(i&K)!==0||this.#a.has(s);if(!a&&s.fn!==null){l?s.f^=k:(i&xe)!==0?r.push(s):ze(s)&&((i&ne)!==0&&this.#l.add(s),Re(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Wt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==N&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,[t.v,n]),V?.set(t,t.v))}activate(){$=this}deactivate(){$=null,V=null}flush(){try{dt=!0,$=this,this.#d()}finally{Kt=0,ht=null,Ne=null,Xe=null,dt=!1,$=null,V=null,ue.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),fe.delete(this)}#p(){for(const f of fe){var t=f.id<this.id,r=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&h!==n)f.current.set(u,[h,c]);else continue}r.push(u)}var s=[...f.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&f.discard();else if(r.length>0){f.activate();var i=new Set,l=new Map;for(var o of r)Xt(o,s,i,l);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of fe)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let s=this.#s.get(r)??0;this.#s.set(r,s+1)}}decrement(t,r,n){let s=this.#t.get(r)??0;if(s===1?this.#t.delete(r):this.#t.set(r,s-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||n||(this.#c=!0,me(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Lt()).promise}static ensure(){if($===null){const t=$=new Q;dt||(fe.add($),De||me(()=>{$===t&&t.flush()}))}return $}apply(){{V=null;return}}schedule(t){if(ht=t,t.b?.is_pending&&(t.f&(xe|Ge|Dt))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Ne!==null&&r===g&&(p===null||(p.f&A)===0))return;if((n&(se|G))!==0){if((n&k)===0)return;r.f^=k}}this.#n.push(r)}}function Ze(e){var t=De;De=!0;try{for(var r;;){if(bn(),$===null)return r;$.flush()}}finally{De=t}}function yn(){try{ln()}catch(e){ae(e,ht)}}let ee=null;function Jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(U|K))===0&&ze(n)&&(ee=new Set,Re(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&gr(n),ee?.size>0)){ue.clear();for(const s of ee){if((s.f&(U|K))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(U|K))===0&&Re(a)}}ee.clear()}}ee=null}}function Xt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Xt(s,t,r,n):(i&(at|ne))!==0&&(i&O)===0&&Zt(s,t,n)&&(S(s,O),vt(s))}}function Zt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(Te.call(t,s))return!0;if((s.f&A)!==0&&Zt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function vt(e){$.schedule(e)}function Qt(e,t){if(!((e.f&G)!==0&&(e.f&k)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),S(e,k);for(var r=e.first;r!==null;)Qt(r,t),r=r.next}}function er(e){S(e,k);for(var t=e.first;t!==null;)er(t),t=t.next}function $n(e){let t=0,r=Ie(0),n;return()=>{mt()&&(w(r),vr(()=>(t===0&&(n=Jn(()=>e(()=>Fe(r)))),t+=1,()=>{me(()=>{t-=1,t===0&&(n?.(),n=void 0,Fe(r))})})))}}var En=ke|ge;function Tn(e,t,r,n){new Sn(e,t,r,n)}class Sn{parent;is_pending=!1;transform_error;#e;#r=m?T:null;#t;#s;#i;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=$n(()=>(this.#u=Ie(this.#c),()=>{this.#u=null}));constructor(t,r,n,s){this.#e=t,this.#t=r,this.#s=i=>{var l=g;l.b=this,l.f|=ot,n(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#i=_r(()=>{if(m){const i=this.#r;Je();const l=i.data===Nt;if(i.data.startsWith(Rt)){const a=JSON.parse(i.data.slice(Rt.length));this.#y(a)}else l?this.#$():this.#p()}else this.#w()},En),m&&(this.#e=T)}#p(){try{this.#n=te(()=>this.#s(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#l=te(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=te(()=>t(this.#e)),me(()=>{var r=this.#a=document.createDocumentFragment(),n=ce();r.append(n),this.#n=this.#b(()=>te(()=>this.#s(n))),this.#f===0&&(this.#e.before(r),this.#a=null,He(this.#o,()=>{this.#o=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=te(()=>{this.#s(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();mr(this.#n,t);const r=this.#t.pending;this.#o=te(()=>r(this.#e))}else this.#g($)}catch(r){this.error(r)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Wt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var r=g,n=p,s=q;B(this.#i),L(this.#i),Ae(this.#i.ctx);try{return Q.ensure(),t()}catch(i){return Yt(i),null}finally{B(r),L(n),Ae(s)}}#m(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t,r);return}this.#f+=t,this.#f===0&&(this.#g(r),this.#o&&He(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#m(t,r),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,me(()=>{this.#h=!1,this.#u&&et(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(P(this.#n),this.#n=null),this.#o&&(P(this.#o),this.#o=null),this.#l&&(P(this.#l),this.#l=null),m&&(J(this.#r),qt(),J(jt()));var s=!1,i=!1;const l=()=>{if(s){dn();return}s=!0,i&&hn(),this.#l!==null&&He(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},o=a=>{try{i=!0,r?.(a,l),i=!1}catch(f){ae(f,this.#i&&this.#i.parent)}n&&(this.#l=this.#b(()=>{try{return te(()=>{var f=g;f.b=this,f.f|=ot,n(this.#e,()=>a,()=>l)})}catch(f){return ae(f,this.#i.parent),null}}))};me(()=>{var a;try{a=this.transform_error(t)}catch(f){ae(f,this.#i&&this.#i.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ae(f,this.#i&&this.#i.parent)):o(a)})}}function xn(e,t,r,n){const s=rr;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){n(t.map(s));return}var l=g,o=kn(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function f(c){o();try{n(c)}catch(_){(l.f&U)===0&&ae(_,l)}Qe()}if(r.length===0){a.then(()=>f(t.map(s)));return}var u=tr();function h(){Promise.all(r.map(c=>An(c))).then(c=>f([...t.map(s),...c])).catch(c=>ae(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),Qe()}):h()}function kn(){var e=g,t=p,r=q,n=$;return function(i=!0){B(e),L(t),Ae(r),i&&(e.f&U)===0&&(n?.activate(),n?.apply())}}function Qe(e=!0){B(null),L(null),Ae(null),e&&$?.deactivate()}function tr(){var e=g,t=e.b,r=$,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(s=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,s)}}function rr(e){var t=A|O,r=p!==null&&(p.f&A)!==0?p:null;return g!==null&&(g.f|=ge),{ctx:q,deps:null,effects:null,equals:Bt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function An(e,t,r){let n=g;n===null&&rn();var s=void 0,i=Ie(N),l=!p,o=new Map;return zn(()=>{var a=g,f=Lt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Qe)}catch(_){f.reject(_),Qe()}var u=$;if(l){if((a.f&ie)!==0)var h=tr();if(n.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const _ of o.values())_.reject(Z);o.clear()}o.set(u,f)}const c=(_,v=void 0)=>{if(h){var y=v===Z;h(y)}if(!(v===Z||(a.f&U)!==0)){if(u.activate(),v)i.f|=oe,et(i,v);else{(i.f&oe)!==0&&(i.f^=oe),et(i,_);for(const[E,M]of o){if(o.delete(E),E===u)break;M.reject(Z)}}u.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),hr(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function h(){u===s?a(i):f(s)}u.then(h,h)}f(s)})}function Nn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)P(t[r])}}function Rn(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function _t(e){var t,r=g;B(Rn(e));try{e.f&=~be,Nn(e),t=xr(e)}finally{B(r)}return t}function nr(e){var t=e.v,r=_t(e);if(!e.equals(r)&&(e.wv=Tr(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){S(e,k);return}de||(V!==null?(mt()||$?.is_fork)&&V.set(e,r):ct(e))}function On(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=Kr,t.ac=null,Ue(t,0),yt(t))}function sr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Re(t)}let pt=new Set;const ue=new Map;let ir=!1;function Ie(e,t){var r={f:0,v:e,reactions:null,equals:Bt,rv:0,wv:0};return r}function j(e,t){const r=Ie(e);return Gn(r),r}function Cn(e,t=!1,r=!0){const n=Ie(e);return t||(n.equals=pn),n}function x(e,t,r=!1){p!==null&&(!Y||(p.f&Ft)!==0)&&Ut()&&(p.f&(A|ne|at|Ft))!==0&&(H===null||!Te.call(H,e))&&cn();let n=r?qe(t):t;return et(e,n,Xe)}function et(e,t,r=null){if(!e.equals(t)){var n=e.v;de?ue.set(e,t):ue.set(e,n),e.v=t;var s=Q.ensure();if(s.capture(e,n),(e.f&A)!==0){const i=e;(e.f&O)!==0&&_t(i),V===null&&ct(i)}e.wv=Tr(),or(e,O,r),g!==null&&(g.f&k)!==0&&(g.f&(G|se))===0&&(z===null?Wn([e]):z.push(e)),!s.is_fork&&pt.size>0&&!ir&&Mn()}return t}function Mn(){ir=!1;for(const e of pt)(e.f&k)!==0&&S(e,W),ze(e)&&Re(e);pt.clear()}function Fe(e){x(e,e.v+1)}function or(e,t,r){var n=e.reactions;if(n!==null)for(var s=n.length,i=0;i<s;i++){var l=n[i],o=l.f,a=(o&O)===0;if(a&&S(l,t),(o&A)!==0){var f=l;V?.delete(f),(o&be)===0&&(o&F&&(l.f|=be),or(f,W,r))}else if(a){var u=l;(o&ne)!==0&&ee!==null&&ee.add(u),r!==null?r.push(u):vt(u)}}}function qe(e){if(typeof e!="object"||e===null||ft in e)return e;const t=Mt(e);if(t!==Gr&&t!==Wr)return e;var r=new Map,n=zr(e),s=j(0),i=$e,l=o=>{if($e===i)return o();var a=p,f=$e;L(null),Er(i);var u=o();return L(a),Er(f),u};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&fn();var u=r.get(a);return u===void 0?l(()=>{var h=j(f.value);return r.set(a,h),h}):x(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>j(N));r.set(a,u),Fe(s)}}else x(f,N),Fe(s);return!0},get(o,a,f){if(a===ft)return e;var u=r.get(a),h=a in o;if(u===void 0&&(!h||Se(o,a)?.writable)&&(u=l(()=>{var _=qe(h?o[a]:N),v=j(_);return v}),r.set(a,u)),u!==void 0){var c=w(u);return c===N?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=w(u))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ft)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||Se(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?qe(o[a]):N,_=j(c);return _}),r.set(a,f));var h=w(f);if(h===N)return!1}return u},set(o,a,f,u){var h=r.get(a),c=a in o;if(n&&a==="length")for(var _=f;_<h.v;_+=1){var v=r.get(_+"");v!==void 0?x(v,N):_ in o&&(v=l(()=>j(N)),r.set(_+"",v))}if(h===void 0)(!c||Se(o,a)?.writable)&&(h=l(()=>j(void 0)),x(h,qe(f)),r.set(a,h));else{c=h.v!==N;var y=l(()=>qe(f));x(h,y)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!c){if(n&&typeof a=="string"){var M=r.get("length"),ve=Number(a);Number.isInteger(ve)&&ve>=M.v&&x(M,ve+1)}Fe(s)}return!0},ownKeys(o){w(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){un()}})}var lr,ar,fr,ur;function gt(){if(lr===void 0){lr=window,ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fr=Se(t,"firstChild").get,ur=Se(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(r)&&(r.__t=void 0)}}function ce(e=""){return document.createTextNode(e)}function je(e){return fr.call(e)}function he(e){return ur.call(e)}function Be(e,t){if(!m)return je(e);var r=je(T);return r===null&&(r=T.appendChild(ce())),J(r),r}function Pn(e,t=1,r=!1){let n=m?T:e;for(var s;t--;)s=n,n=he(n);if(!m)return n;if(r){if(n?.nodeType!==ut){var i=ce();return n===null?s?.after(i):n.before(i),J(i),i}cr(n)}return J(n),n}function Ln(e){e.textContent=""}function Dn(){return!1}function bt(e,t,r){return document.createElementNS(Ct,e,void 0)}function cr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ut;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function wt(e){var t=p,r=g;L(null),B(null);try{return e()}finally{L(t),B(r)}}function In(e){g===null&&(p===null&&on(),sn()),de&&nn()}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 X(e,t){var r=g;r!==null&&(r.f&K)!==0&&(e|=K);var n={ctx:q,deps:null,nodes:null,f:e|O|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=n;if((e&xe)!==0)Ne!==null?Ne.push(n):Q.ensure().schedule(n);else if(t!==null){try{Re(n)}catch(l){throw P(n),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ge)===0&&(s=s.first,(e&ne)!==0&&(e&ke)!==0&&s!==null&&(s.f|=ke))}if(s!==null&&(s.parent=r,r!==null&&Fn(s,r),p!==null&&(p.f&A)!==0&&(e&se)===0)){var i=p;(i.effects??=[]).push(s)}return n}function mt(){return p!==null&&!Y}function hr(e){const t=X(Ge,null);return S(t,k),t.teardown=e,t}function qn(e){In();var t=g.f,r=!p&&(t&G)!==0&&(t&ie)===0;if(r){var n=q;(n.e??=[]).push(e)}else return dr(e)}function dr(e){return X(xe|Zr,e)}function jn(e){Q.ensure();const t=X(se|ge,e);return()=>{P(t)}}function Bn(e){Q.ensure();const t=X(se|ge,e);return(r={})=>new Promise(n=>{r.outro?He(t,()=>{P(t),n(void 0)}):(P(t),n(void 0))})}function Hn(e){return X(xe,e)}function zn(e){return X(at|ge,e)}function vr(e,t=0){return X(Ge|t,e)}function tt(e,t=[],r=[],n=[]){xn(n,t,r,s=>{X(Ge,()=>e(...s.map(w)))})}function _r(e,t=0){var r=X(ne|t,e);return r}function te(e){return X(G|ge,e)}function pr(e){var t=e.teardown;if(t!==null){const r=de,n=p;yr(!0),L(null);try{t.call(null)}finally{yr(r),L(n)}}}function yt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&wt(()=>{s.abort(Z)});var n=r.next;(r.f&se)!==0?r.parent=null:P(r,t),r=n}}function Un(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&G)===0&&P(t),t=r}}function P(e,t=!0){var r=!1;(t||(e.f&Xr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Vn(e.nodes.start,e.nodes.end),r=!0),S(e,It),yt(e,t&&!r),Ue(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const i of n)i.stop();pr(e),e.f^=It,e.f|=U;var s=e.parent;s!==null&&s.first!==null&&gr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Vn(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function gr(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 He(e,t,r=!0){var n=[];br(e,n,!0);var s=()=>{r&&P(e),t&&t()},i=n.length;if(i>0){var l=()=>--i||s();for(var o of n)o.out(l)}else s()}function br(e,t,r){if((e.f&K)===0){e.f^=K;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var s=e.first;s!==null;){var i=s.next,l=(s.f&ke)!==0||(s.f&G)!==0&&(e.f&ne)!==0;br(s,t,l?r:!1),s=i}}}function Yn(e){wr(e,!0)}function wr(e,t){if((e.f&K)!==0){e.f^=K,(e.f&k)===0&&(S(e,O),Q.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ke)!==0||(r.f&G)!==0;wr(r,s?t:!1),r=n}var i=e.nodes&&e.nodes.t;if(i!==null)for(const l of i)(l.is_global||t)&&l.in()}}function mr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var s=r===n?null:he(r);t.append(r),r=s}}let rt=!1,de=!1;function yr(e){de=e}let p=null,Y=!1;function L(e){p=e}let g=null;function B(e){g=e}let H=null;function Gn(e){p!==null&&(H===null?H=[e]:H.push(e))}let D=null,I=0,z=null;function Wn(e){z=e}let $r=1,ye=0,$e=ye;function Er(e){$e=e}function Tr(){return++$r}function ze(e){var t=e.f;if((t&O)!==0)return!0;if(t&A&&(e.f&=~be),(t&W)!==0){for(var r=e.deps,n=r.length,s=0;s<n;s++){var i=r[s];if(ze(i)&&nr(i),i.wv>e.wv)return!0}(t&F)!==0&&V===null&&S(e,k)}return!1}function Sr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(H!==null&&Te.call(H,e)))for(var s=0;s<n.length;s++){var i=n[s];(i.f&A)!==0?Sr(i,t,!1):t===i&&(r?S(i,O):(i.f&k)!==0&&S(i,W),vt(i))}}function xr(e){var t=D,r=I,n=z,s=p,i=H,l=q,o=Y,a=$e,f=e.f;D=null,I=0,z=null,p=(f&(G|se))===0?e:null,H=null,Ae(e.ctx),Y=!1,$e=++ye,e.ac!==null&&(wt(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=lt;var u=e.fn,h=u();e.f|=ie;var c=e.deps,_=$?.is_fork;if(D!==null){var v;if(_||Ue(e,I),c!==null&&I>0)for(c.length=I+D.length,v=0;v<D.length;v++)c[I+v]=D[v];else e.deps=c=D;if(mt()&&(e.f&F)!==0)for(v=I;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!_&&c!==null&&I<c.length&&(Ue(e,I),c.length=I);if(Ut()&&z!==null&&!Y&&c!==null&&(e.f&(A|W|O))===0)for(v=0;v<z.length;v++)Sr(z[v],e);if(s!==null&&s!==e){if(ye++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=ye;if(t!==null)for(const y of t)y.rv=ye;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&oe)!==0&&(e.f^=oe),h}catch(y){return Yt(y)}finally{e.f^=lt,D=t,I=r,z=n,p=s,H=i,Ae(l),Y=o,$e=a}}function Kn(e,t){let r=t.reactions;if(r!==null){var n=Ur.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}if(r===null&&(t.f&A)!==0&&(D===null||!Te.call(D,t))){var i=t;(i.f&F)!==0&&(i.f^=F,i.f&=~be),ct(i),On(i),Ue(i,0)}}function Ue(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Kn(e,r[n])}function Re(e){var t=e.f;if((t&U)===0){S(e,k);var r=g,n=rt;g=e,rt=!0;try{(t&(ne|Dt))!==0?Un(e):yt(e),pr(e);var s=xr(e);e.teardown=typeof s=="function"?s:null,e.wv=$r;var i;Hr&&gn&&(e.f&O)!==0&&e.deps}finally{rt=n,g=r}}}function w(e){var t=e.f,r=(t&A)!==0;if(p!==null&&!Y){var n=g!==null&&(g.f&U)!==0;if(!n&&(H===null||!Te.call(H,e))){var s=p.deps;if((p.f&lt)!==0)e.rv<ye&&(e.rv=ye,D===null&&s!==null&&s[I]===e?I++:D===null?D=[e]:D.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:Te.call(i,p)||i.push(p)}}}if(de&&ue.has(e))return ue.get(e);if(r){var l=e;if(de){var o=l.v;return((l.f&k)===0&&l.reactions!==null||Ar(l))&&(o=_t(l)),ue.set(l,o),o}var a=(l.f&F)===0&&!Y&&p!==null&&(rt||(p.f&F)!==0),f=(l.f&ie)===0;ze(l)&&(a&&(l.f|=F),nr(l)),a&&!f&&(sr(l),kr(l))}if(V?.has(e))return V.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function kr(e){if(e.f|=F,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&F)===0&&(sr(t),kr(t))}function Ar(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ue.has(t)||(t.f&A)!==0&&Ar(t))return!0;return!1}function Jn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const nt=Symbol("events"),Xn=new Set,Nr=new Set;function Zn(e,t,r,n={}){function s(i){if(n.capture||$t.call(t,i),!i.cancelBubble)return wt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?me(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Qn(e,t,r,n,s){var i={capture:n,passive:s},l=Zn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&hr(()=>{t.removeEventListener(e,l,i)})}let Rr=null;function $t(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Rr=e;var l=0,o=Rr===e&&e[nt];if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e[nt]=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=p,h=g;L(null),B(null);try{for(var c,_=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[nt]?.[n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[nt]=t,delete e.currentTarget,L(u),B(h)}}}const es=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ts(e){return es?.createHTML(e)??e}function rs(e){var t=bt("template");return t.innerHTML=ts(e.replaceAll("<!>","<!---->")),t.content}function Oe(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Et(e,t){var r=(t&jr)!==0,n=(t&Br)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Oe(T,null),T;s===void 0&&(s=rs(i?e:"<!>"+e),r||(s=je(s)));var l=n||ar?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=je(l),a=l.lastChild;Oe(o,a)}else Oe(l,l);return l}}function Or(e=""){if(!m){var t=ce(e+"");return Oe(t,t),t}var r=T;return r.nodeType!==ut?(r.before(r=ce()),J(r)):cr(r),Oe(r,r),r}function Ce(e,t){if(m){var r=g;((r.f&ie)===0||r.nodes.end===null)&&(r.nodes.end=T),Je();return}e!==null&&e.before(t)}const ns=["touchstart","touchmove"];function ss(e){return ns.includes(e)}function Cr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Mr(e,t){return Pr(e,t)}function is(e,t){gt(),t.intro=t.intro??!1;const r=t.target,n=m,s=T;try{for(var i=je(r);i&&(i.nodeType!==We||i.data!==At);)i=he(i);if(!i)throw Ee;le(!0),J(i);const l=Pr(e,{...t,anchor:i});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Ee&&console.warn("Failed to hydrate: ",l),t.recover===!1&&an(),gt(),Ln(r),le(!1),Mr(e,t)}finally{le(n),J(s)}}const st=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){gt();var a=void 0,f=Bn(()=>{var u=r??t.appendChild(ce());Tn(u,{pending:()=>{}},_=>{Ht({});var v=q;if(i&&(v.c=i),s&&(n.$$events=s),m&&Oe(_,null),a=e(_,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==We||T.data!==Ot))throw Ke(),Ee;zt()},o);var h=new Set,c=_=>{for(var v=0;v<_.length;v++){var y=_[v];if(!h.has(y)){h.add(y);var E=ss(y);for(const Me of[t,document]){var M=st.get(Me);M===void 0&&(M=new Map,st.set(Me,M));var ve=M.get(y);ve===void 0?(Me.addEventListener(y,$t,{passive:E}),M.set(y,1)):M.set(y,ve+1)}}}};return c(Vr(Xn)),Nr.add(c),()=>{for(var _ of h)for(const E of[t,document]){var v=st.get(E),y=v.get(_);--y==0?(E.removeEventListener(_,$t),v.delete(_),v.size===0&&st.delete(E)):v.set(_,y)}Nr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return Tt.set(a,f),a}let Tt=new WeakMap;function os(e,t){const r=Tt.get(e);return r?(Tt.delete(e),r(t)):Promise.resolve()}class ls{anchor;#e=new Map;#r=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Yn(n),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#r.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(l);o&&(P(o.effect),this.#t.delete(l))}for(const[i,l]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();mr(l,f),f.append(ce()),this.#t.set(i,{effect:l,fragment:f})}else P(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),He(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(P(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Dn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ce();i.append(l),this.#t.set(t,{effect:te(()=>r(l)),fragment:i})}else this.#r.set(t,te(()=>r(this.anchor)));if(this.#e.set(n,t),s){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else m&&(this.anchor=T),this.#n(n)}}function as(e,t,r=!1){var n;m&&(n=T,Je());var s=new ls(e),i=r?ke:0;function l(o,a){if(m){var f=vn(n);if(o!==parseInt(f.substring(1))){var u=jt();J(u),s.anchor=u,le(!1),s.ensure(o,a),le(!0);return}}s.ensure(o,a)}_r(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function fs(e,t,r,n,s){m&&Je();var i=t.$$slots?.[r],l=!1;i===!0&&(i=t[r],l=!0),i===void 0?s!==null&&s(e):i(e,l?()=>n:n)}function us(e,t){Hn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=bt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function cs(e,t,r){var n=""+e;return n}function hs(e,t){return e==null?null:String(e)}function ds(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=cs(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function vs(e,t,r,n){var s=e.__style;if(m||s!==t){var i=hs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const _s=Symbol("is custom element"),ps=Symbol("is html"),gs=tn?"link":"LINK";function Lr(e,t,r,n){var s=bs(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===gs)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[en]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ir(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Dr(e,t,r){var n=p,s=g;let i=m;m&&le(!1),L(null),B(null);try{t!=="style"&&(St.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Ir(e).includes(t):r&&typeof r=="object")?e[t]=r:Lr(e,t,r==null?r:String(r))}finally{L(n),B(s),i&&le(!0)}}function bs(e){return e.__attributes??={[_s]:e.nodeName.includes("-"),[ps]:e.namespaceURI===Ct}}var St=new Map;function Ir(e){var t=e.getAttribute("is")||e.nodeName,r=St.get(t);if(r)return r;St.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Yr(s);for(var l in n)n[l].set&&r.push(l);s=Mt(s)}return r}function xt(e,t,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(i=!0,c)};var f=!1,u=rr(()=>(f=!1,a())),h=g;return(function(c,_){if(arguments.length>0){const v=_?w(u):c;return x(u,v),f=!0,s!==void 0&&(s=v),c}return de&&f||(h.f&U)!==0?u.v:w(u)})}function ws(e){return new ms(e)}class ms{#e;#r;constructor(t){var r=new Map,n=(i,l)=>{var o=Cn(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return w(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Qr?!0:(w(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return x(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#r=(t.hydrate?is:Mr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ze(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#r[i]},set(l){this.#r[i]=l},enumerable:!0});this.#r.$set=i=>{Object.assign(s,i)},this.#r.$destroy=()=>{os(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...s)=>r.call(this,...s);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(s=>s!==n)}}$destroy(){this.#r.$destroy()}}let Fr;typeof HTMLElement=="function"&&(Fr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}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 s=>{const i=bt("slot");n!=="default"&&(i.name=n),Ce(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ys(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 s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=it(s,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=ws({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=jn(()=>{vr(()=>{this.$$r=!0;for(const n of Ve(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=it(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=it(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 Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ys(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function $s(e,t,r,n,s,i){let l=class extends Fr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ve(t).forEach(o=>{Ye(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=it(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Se(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ye(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Es={version:"0.66.4"};function Ts(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var Ss=Et('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),xs=Et('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),ks=Et('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const As={hash:"svelte-cq5tos",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-cq5tos-progress-bar-stripes;}
17
17
  @media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-cq5tos {
18
18
  animation: none;}
19
- }:host {font-family:"Roboto", sans-serif;}`};function Br(e,t){zt(t,!0),hs(e,Cs);function r(v){const b=new Headers;if(!v)return b;for(const[O,R]of Object.entries(v))R!=null&&R!==""&&b.set(O,R);return b}function n(v,b){if(v instanceof FormData)return{blob:new Blob,trackProgress:!1};if(typeof v=="string")return{blob:new Blob([v]),trackProgress:!0};if(v instanceof Blob)return{blob:v,trackProgress:!0};if(v instanceof ArrayBuffer)return{blob:new Blob([v]),trackProgress:!0};if(ArrayBuffer.isView(v)){const O=v,R=new Uint8Array(O.byteLength);return R.set(new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),{blob:new Blob([R]),trackProgress:!0}}return b.has("Content-Type")||b.set("Content-Type","application/json"),{blob:new Blob([JSON.stringify(v)]),trackProgress:!0}}function s(v,b){const O=v.size,R=v.stream().getReader();let _e=0;return new ReadableStream({async pull(re){const{done:pe,value:Pe}=await R.read();if(pe){re.close();return}_e+=Pe.byteLength,b(_e,O),re.enqueue(Pe)},cancel(){R.cancel()}})}function i(v,b){t.$$host.dispatchEvent(new CustomEvent(v,{detail:b}))}Ss.addComponent({repoName:"@htmlbricks/hb-dialog",version:xs.version});let l=St(t,"id",7,""),o=St(t,"upload_id",7,void 0),a=St(t,"fetch_data",7,void 0),f=q(0),u=q(0),h=q(!1),c=q(null);Bn(()=>{o()||o(l()+"_dialog"),w(h)||k(h,!1);try{a()&&typeof a()=="string"&&a(JSON.parse(a()))}catch(v){console.error(v)}});async function _(){function v(b){console.error(b),k(c,b?.message||"upload error",!0),i("uploadError",{completed:w(h),id:o(),error:b})}k(u,0);try{if(a()){const b=(a().method||"POST").toUpperCase(),O=r(a().headers),{blob:R,trackProgress:_e}=n(a().data,O);let re;a().data instanceof FormData?re=a().data:_e&&R.size>0?re=s(R,(Pe,Ds)=>{k(f,Ds,!0),k(u,Pe,!0)}):(re=R,_e&&R.size===0&&(k(f,0),k(u,0)));const pe=await fetch(a().url,{method:b,headers:O,body:re});if(!pe.ok){const Pe=await pe.text().catch(()=>"");throw new Error(Pe||pe.statusText||`Request failed (${pe.status})`)}return(a().data instanceof FormData||_e&&R.size===0)&&(k(f,Math.max(w(f),1),!0),k(u,w(f),!0)),i("uploadComplete",{completed:w(h),id:o()})}else return k(c,"No fetch data provided"),v(new Error(w(c)))}catch(b){return console.error("upload error ",b),v(b instanceof Error?b:new Error(String(b)))}}function d(v){k(c,null),v.show&&a()?.url&&_().catch(console.error),i("modalShow",v)}var y={get id(){return l()},set id(v=""){l(v),Qe()},get upload_id(){return o()},set upload_id(v=void 0){o(v),Qe()},get fetch_data(){return a()},set fetch_data(v=void 0){a(v),Qe()}},E=Rs();rt(()=>Ir(E,"id",o())),rt(()=>Ir(E,"show",a()?.url||w(u)&&w(f)?"yes":"no")),_s(E,1,"svelte-cq5tos");var M=He(E),ve=He(M);cs(ve,t,"title",{},v=>{var b=Or("Uploading");Me(v,b)}),De(M);var Le=Dn(M,2),Os=He(Le);{var Ms=v=>{var b=As();Me(v,b)},Ls=v=>{var b=Ns(),O=He(b),R=He(O);De(O),De(b),rt((_e,re,pe)=>{ps(O,`width:${_e??""}%`),Dr(O,"aria-valuenow",re),Mr(R,`${pe??""}%`)},[()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100)]),Me(v,b)},Ps=v=>{var b=Or();rt(()=>Mr(b,w(c))),Me(v,b)};us(Os,v=>{!w(f)&&!w(c)?v(Ms):w(c)?w(c)&&v(Ps,2):v(Ls,1)})}return De(Le),qt(2),De(E),ts("modalShow",E,v=>d(v.detail)),Me(e,E),Ut(y)}customElements.define("hb-uploader",Ts(Br,{id:{},upload_id:{},fetch_data:{}},["title"],[],{mode:"open"})),At.Component=Br,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})})(this.uploader=this.uploader||{});
19
+ }:host {font-family:"Roboto", sans-serif;}`};function qr(e,t){Ht(t,!0),us(e,As);function r(d){const b=new Headers;if(!d)return b;for(const[C,R]of Object.entries(d))R!=null&&R!==""&&b.set(C,R);return b}function n(d,b){if(d instanceof FormData)return{blob:new Blob,trackProgress:!1};if(typeof d=="string")return{blob:new Blob([d]),trackProgress:!0};if(d instanceof Blob)return{blob:d,trackProgress:!0};if(d instanceof ArrayBuffer)return{blob:new Blob([d]),trackProgress:!0};if(ArrayBuffer.isView(d)){const C=d,R=new Uint8Array(C.byteLength);return R.set(new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),{blob:new Blob([R]),trackProgress:!0}}return b.has("Content-Type")||b.set("Content-Type","application/json"),{blob:new Blob([JSON.stringify(d)]),trackProgress:!0}}function s(d,b){const C=d.size,R=d.stream().getReader();let _e=0;return new ReadableStream({async pull(re){const{done:pe,value:Pe}=await R.read();if(pe){re.close();return}_e+=Pe.byteLength,b(_e,C),re.enqueue(Pe)},cancel(){R.cancel()}})}function i(d,b){t.$$host.dispatchEvent(new CustomEvent(d,{detail:b}))}Ts({repoName:"@htmlbricks/hb-dialog",version:Es.version});let l=xt(t,"id",7,""),o=xt(t,"upload_id",7,void 0),a=xt(t,"fetch_data",7,void 0),f=j(0),u=j(0),h=j(!1),c=j(null);qn(()=>{o()||o(l()+"_dialog"),w(h)||x(h,!1);try{a()&&typeof a()=="string"&&a(JSON.parse(a()))}catch(d){console.error(d)}});async function _(){function d(b){console.error(b),x(c,b?.message||"upload error",!0),i("uploadError",{completed:w(h),id:o(),error:b})}x(u,0);try{if(a()){const b=(a().method||"POST").toUpperCase(),C=r(a().headers),{blob:R,trackProgress:_e}=n(a().data,C);let re;a().data instanceof FormData?re=a().data:_e&&R.size>0?re=s(R,(Pe,Ms)=>{x(f,Ms,!0),x(u,Pe,!0)}):(re=R,_e&&R.size===0&&(x(f,0),x(u,0)));const pe=await fetch(a().url,{method:b,headers:C,body:re});if(!pe.ok){const Pe=await pe.text().catch(()=>"");throw new Error(Pe||pe.statusText||`Request failed (${pe.status})`)}return(a().data instanceof FormData||_e&&R.size===0)&&(x(f,Math.max(w(f),1),!0),x(u,w(f),!0)),i("uploadComplete",{completed:w(h),id:o()})}else return x(c,"No fetch data provided"),d(new Error(w(c)))}catch(b){return console.error("upload error ",b),d(b instanceof Error?b:new Error(String(b)))}}function v(d){x(c,null),d.show&&a()?.url&&_().catch(console.error),i("modalShow",d)}var y={get id(){return l()},set id(d=""){l(d),Ze()},get upload_id(){return o()},set upload_id(d=void 0){o(d),Ze()},get fetch_data(){return a()},set fetch_data(d=void 0){a(d),Ze()}},E=ks();tt(()=>Dr(E,"id",o())),tt(()=>Dr(E,"show",a()?.url||w(u)&&w(f)?"yes":"no")),ds(E,1,"svelte-cq5tos");var M=Be(E),ve=Be(M);fs(ve,t,"title",{},d=>{var b=Or("Uploading");Ce(d,b)}),Le(M);var Me=Pn(M,2),Ns=Be(Me);{var Rs=d=>{var b=Ss();Ce(d,b)},Os=d=>{var b=xs(),C=Be(b),R=Be(C);Le(C),Le(b),tt((_e,re,pe)=>{vs(C,`width:${_e??""}%`),Lr(C,"aria-valuenow",re),Cr(R,`${pe??""}%`)},[()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100)]),Ce(d,b)},Cs=d=>{var b=Or();tt(()=>Cr(b,w(c))),Ce(d,b)};as(Ns,d=>{!w(f)&&!w(c)?d(Rs):w(c)?w(c)&&d(Cs,2):d(Os,1)})}return Le(Me),qt(2),Le(E),Qn("modalShow",E,d=>v(d.detail)),Ce(e,E),zt(y)}customElements.define("hb-uploader",$s(qr,{id:{},upload_id:{},fetch_data:{}},["title"],[],{mode:"open"})),kt.Component=qr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this.uploader=this.uploader||{});
20
20
  //# sourceMappingURL=main.iife.js.map