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