@htmlbricks/hb-uploader 0.66.4 → 0.66.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
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");
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.5"};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
package/manifest.json CHANGED
@@ -189,8 +189,7 @@
189
189
  }
190
190
  }
191
191
  ],
192
- "iifeIntegrity": "sha384-qAhZP5JTMMbR0ZxEKwLnKJwk7sPjHuIdyr3hUV/tp09oCkDP7dRKPh/gjS58dkKf",
193
- "iifeIntegrityType": "sha384",
192
+ "iifeIntegrity": "sha384-lpugiLtHx9w+Fg8bu95FY7vnfv+hh3ALHgSauGHpCOsIoeHgpHs+PbzC0wW+XjYR",
194
193
  "screenshots": [],
195
194
  "licenses": [
196
195
  {
@@ -210,5 +209,5 @@
210
209
  "size": {},
211
210
  "iifePath": "main.iife.js",
212
211
  "repoName": "@htmlbricks/hb-uploader",
213
- "version": "0.66.4"
212
+ "version": "0.66.5"
214
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-uploader",
3
- "version": "0.66.4",
3
+ "version": "0.66.5",
4
4
  "contributors": [],
5
5
  "description": "File download/upload UI driven by `fetch_data` (`url`, `data`), with optional `upload_id`, `total`, and `loaded` for progress. Title slot; fires `downloadError`, `downloadComplete`, and `modalShow` for host handling.",
6
6
  "licenses": [