@htmlbricks/hb-downloader 0.66.5 → 0.66.6
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 +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(St){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Fr=1,Hr=2,xt="[",Nt="[!",kt="[?",At="]",me={},A=Symbol(),Rt="http://www.w3.org/1999/xhtml",qr=!1;var Br=Array.isArray,Ur=Array.prototype.indexOf,ye=Array.prototype.includes,Yr=Array.from,Ye=Object.keys,Ve=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Vr=Object.getOwnPropertyDescriptors,zr=Object.prototype,Gr=Array.prototype,Ct=Object.getPrototypeOf,Ot=Object.isExtensible;const Kr=()=>{};function Wr(e){for(var t=0;t<e.length;t++)e[t]()}function Mt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const k=2,Ee=4,ze=8,jt=1<<24,ee=16,V=32,te=64,st=128,P=512,N=1024,R=2048,z=4096,G=8192,B=16384,re=32768,Lt=1<<25,Te=65536,Dt=1<<17,Jr=1<<18,de=1<<19,Xr=1<<20,ve=65536,it=1<<21,lt=1<<22,ne=1<<23,ot=Symbol("$state"),Zr=Symbol("legacy props"),Qr=Symbol(""),J=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},en=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),at=3,Ge=8;function tn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function sn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ln(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function on(){throw new Error("https://svelte.dev/e/hydration_failed")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function cn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function hn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function se(e){m=e}let T;function K(e){if(e===null)throw Ke(),me;return T=e}function We(){return K(fe(T))}function Oe(e){if(m){if(fe(T)!==null)throw Ke(),me;T=e}}function Pt(e=1){if(m){for(var t=e,r=T;t--;)r=fe(r);T=r}}function It(e=!0){for(var t=0,r=T;;){if(r.nodeType===Ge){var n=r.data;if(n===At){if(t===0)return r;t-=1}else(n===xt||n===Nt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var s=fe(r);e&&r.remove(),r=s}}function dn(e){if(!e||e.nodeType!==Ge)throw Ke(),me;return e.data}function Ft(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function _n(e){return!vn(e,this.v)}let pn=!1,I=null;function Se(e){I=e}function Ht(e,t=!1,r){I={p:I,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function qt(e){var t=I,r=t.e;if(r!==null){t.e=null;for(var n of r)cr(n)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Bt(){return!0}let _e=[];function Ut(){var e=_e;_e=[],Wr(e)}function pe(e){if(_e.length===0&&!Me){var t=_e;queueMicrotask(()=>{t===_e&&Ut()})}_e.push(e)}function gn(){for(;_e.length>0;)Ut()}function Yt(e){var t=g;if(t===null)return p.f|=ne,e;if((t.f&re)===0&&(t.f&Ee)===0)throw e;ie(e,t)}function ie(e,t){for(;t!==null;){if((t.f&st)!==0){if((t.f&re)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const bn=-7169;function S(e,t){e.f=e.f&bn|t}function ft(e){(e.f&P)!==0||e.deps===null?S(e,N):S(e,z)}function Vt(e){if(e!==null)for(const t of e)(t.f&k)===0||(t.f&ve)===0||(t.f^=ve,Vt(t.deps))}function zt(e,t,r){(e.f&R)!==0?t.add(e):(e.f&z)!==0&&r.add(e),Vt(e.deps),S(e,N)}const le=new Set;let $=null,U=null,ut=null,Me=!1,ct=!1,xe=null,Je=null;var Gt=0;let wn=1;class X{id=wn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#l=new Set;#o=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,R),this.schedule(n);for(n of r.m)S(n,z),this.schedule(n)}}#d(){if(Gt++>1e3&&(le.delete(this),mn()),!this.#h()){for(const o of this.#l)this.#o.delete(o),S(o,R),this.schedule(o);for(const o of this.#o)S(o,z),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=xe=[],n=[],s=Je=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw Zt(o),a}if($=null,s.length>0){var i=X.ensure();for(const o of s)i.schedule(o)}if(xe=null,Je=null,this.#h()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)Xt(o,a)}else{this.#t.size===0&&le.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),Kt(n),Kt(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&&(le.add(l),l.#d()),le.has(this)||this.#p()}#u(t,r,n){t.f^=N;for(var s=t.first;s!==null;){var i=s.f,l=(i&(V|te))!==0,o=l&&(i&N)!==0,a=o||(i&G)!==0||this.#a.has(s);if(!a&&s.fn!==null){l?s.f^=N:(i&Ee)!==0?r.push(s):He(s)&&((i&ee)!==0&&this.#o.add(s),ke(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)zt(t[r],this.#l,this.#o)}capture(t,r,n=!1){r!==A&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&ne)===0&&(this.current.set(t,[t.v,n]),U?.set(t,t.v))}activate(){$=this}deactivate(){$=null,U=null}flush(){try{ct=!0,$=this,this.#d()}finally{Gt=0,ut=null,xe=null,Je=null,ct=!1,$=null,U=null,oe.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),le.delete(this)}#p(){for(const f of le){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)Wt(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 le)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,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#o.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Mt()).promise}static ensure(){if($===null){const t=$=new X;ct||(le.add($),Me||pe(()=>{$===t&&t.flush()}))}return $}apply(){{U=null;return}}schedule(t){if(ut=t,t.b?.is_pending&&(t.f&(Ee|ze|jt))!==0&&(t.f&re)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(xe!==null&&r===g&&(p===null||(p.f&k)===0))return;if((n&(te|V))!==0){if((n&N)===0)return;r.f^=N}}this.#n.push(r)}}function Ne(e){var t=Me;Me=!0;try{for(var r;;){if(gn(),$===null)return r;$.flush()}}finally{Me=t}}function mn(){try{ln()}catch(e){ie(e,ut)}}let Z=null;function Kt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(B|G))===0&&He(n)&&(Z=new Set,ke(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&_r(n),Z?.size>0)){oe.clear();for(const s of Z){if((s.f&(B|G))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)Z.has(l)&&(Z.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(B|G))===0&&ke(a)}}Z.clear()}}Z=null}}function Wt(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&k)!==0?Wt(s,t,r,n):(i&(lt|ee))!==0&&(i&R)===0&&Jt(s,t,n)&&(S(s,R),ht(s))}}function Jt(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(ye.call(t,s))return!0;if((s.f&k)!==0&&Jt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function ht(e){$.schedule(e)}function Xt(e,t){if(!((e.f&V)!==0&&(e.f&N)!==0)){(e.f&R)!==0?t.d.push(e):(e.f&z)!==0&&t.m.push(e),S(e,N);for(var r=e.first;r!==null;)Xt(r,t),r=r.next}}function Zt(e){S(e,N);for(var t=e.first;t!==null;)Zt(t),t=t.next}function yn(e){let t=0,r=je(0),n;return()=>{bt()&&(_(r),hr(()=>(t===0&&(n=Wn(()=>e(()=>Le(r)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(n?.(),n=void 0,Le(r))})})))}}var $n=Te|de;function En(e,t,r,n){new Tn(e,t,r,n)}class Tn{parent;is_pending=!1;transform_error;#e;#r=m?T:null;#t;#s;#i;#n=null;#l=null;#o=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=yn(()=>(this.#u=je(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|=st,n(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#i=dr(()=>{if(m){const i=this.#r;We();const l=i.data===Nt;if(i.data.startsWith(kt)){const a=JSON.parse(i.data.slice(kt.length));this.#y(a)}else l?this.#$():this.#p()}else this.#w()},$n),m&&(this.#e=T)}#p(){try{this.#n=Q(()=>this.#s(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#o=Q(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=Q(()=>t(this.#e)),pe(()=>{var r=this.#a=document.createDocumentFragment(),n=ae();r.append(n),this.#n=this.#b(()=>Q(()=>this.#s(n))),this.#f===0&&(this.#e.before(r),this.#a=null,Fe(this.#l,()=>{this.#l=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=Q(()=>{this.#s(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();br(this.#n,t);const r=this.#t.pending;this.#l=Q(()=>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){zt(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=I;F(this.#i),M(this.#i),Se(this.#i.ctx);try{return X.ensure(),t()}catch(i){return Yt(i),null}finally{F(r),M(n),Se(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.#l&&Fe(this.#l,()=>{this.#l=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,pe(()=>{this.#h=!1,this.#u&&Ze(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),_(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(O(this.#n),this.#n=null),this.#l&&(O(this.#l),this.#l=null),this.#o&&(O(this.#o),this.#o=null),m&&(K(this.#r),Pt(),K(It()));var s=!1,i=!1;const l=()=>{if(s){hn();return}s=!0,i&&cn(),this.#o!==null&&Fe(this.#o,()=>{this.#o=null}),this.#b(()=>{this.#w()})},o=a=>{try{i=!0,r?.(a,l),i=!1}catch(f){ie(f,this.#i&&this.#i.parent)}n&&(this.#o=this.#b(()=>{try{return Q(()=>{var f=g;f.b=this,f.f|=st,n(this.#e,()=>a,()=>l)})}catch(f){return ie(f,this.#i.parent),null}}))};pe(()=>{var a;try{a=this.transform_error(t)}catch(f){ie(f,this.#i&&this.#i.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ie(f,this.#i&&this.#i.parent)):o(a)})}}function Sn(e,t,r,n){const s=er;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){n(t.map(s));return}var l=g,o=xn(),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(v){(l.f&B)===0&&ie(v,l)}Xe()}if(r.length===0){a.then(()=>f(t.map(s)));return}var u=Qt();function h(){Promise.all(r.map(c=>Nn(c))).then(c=>f([...t.map(s),...c])).catch(c=>ie(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),Xe()}):h()}function xn(){var e=g,t=p,r=I,n=$;return function(i=!0){F(e),M(t),Se(r),i&&(e.f&B)===0&&(n?.activate(),n?.apply())}}function Xe(e=!0){F(null),M(null),Se(null),e&&$?.deactivate()}function Qt(){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 er(e){var t=k|R,r=p!==null&&(p.f&k)!==0?p:null;return g!==null&&(g.f|=de),{ctx:I,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:A,wv:0,parent:r??g,ac:null}}function Nn(e,t,r){let n=g;n===null&&tn();var s=void 0,i=je(A),l=!p,o=new Map;return Bn(()=>{var a=g,f=Mt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Xe)}catch(v){f.reject(v),Xe()}var u=$;if(l){if((a.f&re)!==0)var h=Qt();if(n.b.is_rendered())o.get(u)?.reject(J),o.delete(u);else{for(const v of o.values())v.reject(J);o.clear()}o.set(u,f)}const c=(v,d=void 0)=>{if(h){var y=d===J;h(y)}if(!(d===J||(a.f&B)!==0)){if(u.activate(),d)i.f|=ne,Ze(i,d);else{(i.f&ne)!==0&&(i.f^=ne),Ze(i,v);for(const[E,C]of o){if(o.delete(E),E===u)break;C.reject(J)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),ur(()=>{for(const a of o.values())a.reject(J)}),new Promise(a=>{function f(u){function h(){u===s?a(i):f(s)}u.then(h,h)}f(s)})}function kn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function An(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return(t.f&B)===0?t:null;t=t.parent}return null}function dt(e){var t,r=g;F(An(e));try{e.f&=~ve,kn(e),t=Tr(e)}finally{F(r)}return t}function tr(e){var t=e.v,r=dt(e);if(!e.equals(r)&&(e.wv=$r(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){S(e,N);return}ue||(U!==null?(bt()||$?.is_fork)&&U.set(e,r):ft(e))}function Rn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(J),t.teardown=Kr,t.ac=null,qe(t,0),wt(t))}function rr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ke(t)}let vt=new Set;const oe=new Map;let nr=!1;function je(e,t){var r={f:0,v:e,reactions:null,equals:Ft,rv:0,wv:0};return r}function L(e,t){const r=je(e);return zn(r),r}function Cn(e,t=!1,r=!0){const n=je(e);return t||(n.equals=_n),n}function x(e,t,r=!1){p!==null&&(!Y||(p.f&Dt)!==0)&&Bt()&&(p.f&(k|ee|lt|Dt))!==0&&(H===null||!ye.call(H,e))&&un();let n=r?De(t):t;return Ze(e,n,Je)}function Ze(e,t,r=null){if(!e.equals(t)){var n=e.v;ue?oe.set(e,t):oe.set(e,n),e.v=t;var s=X.ensure();if(s.capture(e,n),(e.f&k)!==0){const i=e;(e.f&R)!==0&&dt(i),U===null&&ft(i)}e.wv=$r(),sr(e,R,r),g!==null&&(g.f&N)!==0&&(g.f&(V|te))===0&&(q===null?Gn([e]):q.push(e)),!s.is_fork&&vt.size>0&&!nr&&On()}return t}function On(){nr=!1;for(const e of vt)(e.f&N)!==0&&S(e,z),He(e)&&ke(e);vt.clear()}function Le(e){x(e,e.v+1)}function sr(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&R)===0;if(a&&S(l,t),(o&k)!==0){var f=l;U?.delete(f),(o&ve)===0&&(o&P&&(l.f|=ve),sr(f,z,r))}else if(a){var u=l;(o&ee)!==0&&Z!==null&&Z.add(u),r!==null?r.push(u):ht(u)}}}function De(e){if(typeof e!="object"||e===null||ot in e)return e;const t=Ct(e);if(t!==zr&&t!==Gr)return e;var r=new Map,n=Br(e),s=L(0),i=be,l=o=>{if(be===i)return o();var a=p,f=be;M(null),yr(i);var u=o();return M(a),yr(f),u};return n&&r.set("length",L(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&an();var u=r.get(a);return u===void 0?l(()=>{var h=L(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(()=>L(A));r.set(a,u),Le(s)}}else x(f,A),Le(s);return!0},get(o,a,f){if(a===ot)return e;var u=r.get(a),h=a in o;if(u===void 0&&(!h||$e(o,a)?.writable)&&(u=l(()=>{var v=De(h?o[a]:A),d=L(v);return d}),r.set(a,u)),u!==void 0){var c=_(u);return c===A?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=_(u))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ot)return!0;var f=r.get(a),u=f!==void 0&&f.v!==A||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||$e(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?De(o[a]):A,v=L(c);return v}),r.set(a,f));var h=_(f);if(h===A)return!1}return u},set(o,a,f,u){var h=r.get(a),c=a in o;if(n&&a==="length")for(var v=f;v<h.v;v+=1){var d=r.get(v+"");d!==void 0?x(d,A):v in o&&(d=l(()=>L(A)),r.set(v+"",d))}if(h===void 0)(!c||$e(o,a)?.writable)&&(h=l(()=>L(void 0)),x(h,De(f)),r.set(a,h));else{c=h.v!==A;var y=l(()=>De(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 C=r.get("length"),ce=Number(a);Number.isInteger(ce)&&ce>=C.v&&x(C,ce+1)}Le(s)}return!0},ownKeys(o){_(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==A});for(var[f,u]of r)u.v!==A&&!(f in o)&&a.push(f);return a},setPrototypeOf(){fn()}})}var ir,lr,or,ar;function _t(){if(ir===void 0){ir=window,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;or=$e(t,"firstChild").get,ar=$e(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(r)&&(r.__t=void 0)}}function ae(e=""){return document.createTextNode(e)}function Pe(e){return or.call(e)}function fe(e){return ar.call(e)}function Ie(e,t){if(!m)return Pe(e);var r=Pe(T);return r===null&&(r=T.appendChild(ae())),K(r),r}function Mn(e,t=1,r=!1){let n=m?T:e;for(var s;t--;)s=n,n=fe(n);if(!m)return n;if(r){if(n?.nodeType!==at){var i=ae();return n===null?s?.after(i):n.before(i),K(i),i}fr(n)}return K(n),n}function jn(e){e.textContent=""}function Ln(){return!1}function pt(e,t,r){return document.createElementNS(Rt,e,void 0)}function fr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===at;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function gt(e){var t=p,r=g;M(null),F(null);try{return e()}finally{M(t),F(r)}}function Dn(e){g===null&&(p===null&&sn(),nn()),ue&&rn()}function Pn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function W(e,t){var r=g;r!==null&&(r.f&G)!==0&&(e|=G);var n={ctx:I,deps:null,nodes:null,f:e|R|P,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&Ee)!==0)xe!==null?xe.push(n):X.ensure().schedule(n);else if(t!==null){try{ke(n)}catch(l){throw O(n),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&ee)!==0&&(e&Te)!==0&&s!==null&&(s.f|=Te))}if(s!==null&&(s.parent=r,r!==null&&Pn(s,r),p!==null&&(p.f&k)!==0&&(e&te)===0)){var i=p;(i.effects??=[]).push(s)}return n}function bt(){return p!==null&&!Y}function ur(e){const t=W(ze,null);return S(t,N),t.teardown=e,t}function In(e){Dn();var t=g.f,r=!p&&(t&V)!==0&&(t&re)===0;if(r){var n=I;(n.e??=[]).push(e)}else return cr(e)}function cr(e){return W(Ee|Xr,e)}function Fn(e){X.ensure();const t=W(te|de,e);return()=>{O(t)}}function Hn(e){X.ensure();const t=W(te|de,e);return(r={})=>new Promise(n=>{r.outro?Fe(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function qn(e){return W(Ee,e)}function Bn(e){return W(lt|de,e)}function hr(e,t=0){return W(ze|t,e)}function Qe(e,t=[],r=[],n=[]){Sn(n,t,r,s=>{W(ze,()=>e(...s.map(_)))})}function dr(e,t=0){var r=W(ee|t,e);return r}function Q(e){return W(V|de,e)}function vr(e){var t=e.teardown;if(t!==null){const r=ue,n=p;wr(!0),M(null);try{t.call(null)}finally{wr(r),M(n)}}}function wt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&>(()=>{s.abort(J)});var n=r.next;(r.f&te)!==0?r.parent=null:O(r,t),r=n}}function Un(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&V)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&Jr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Yn(e.nodes.start,e.nodes.end),r=!0),S(e,Lt),wt(e,t&&!r),qe(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const i of n)i.stop();vr(e),e.f^=Lt,e.f|=B;var s=e.parent;s!==null&&s.first!==null&&_r(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Yn(e,t){for(;e!==null;){var r=e===t?null:fe(e);e.remove(),e=r}}function _r(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 Fe(e,t,r=!0){var n=[];pr(e,n,!0);var s=()=>{r&&O(e),t&&t()},i=n.length;if(i>0){var l=()=>--i||s();for(var o of n)o.out(l)}else s()}function pr(e,t,r){if((e.f&G)===0){e.f^=G;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&Te)!==0||(s.f&V)!==0&&(e.f&ee)!==0;pr(s,t,l?r:!1),s=i}}}function Vn(e){gr(e,!0)}function gr(e,t){if((e.f&G)!==0){e.f^=G,(e.f&N)===0&&(S(e,R),X.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Te)!==0||(r.f&V)!==0;gr(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 br(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var s=r===n?null:fe(r);t.append(r),r=s}}let et=!1,ue=!1;function wr(e){ue=e}let p=null,Y=!1;function M(e){p=e}let g=null;function F(e){g=e}let H=null;function zn(e){p!==null&&(H===null?H=[e]:H.push(e))}let j=null,D=0,q=null;function Gn(e){q=e}let mr=1,ge=0,be=ge;function yr(e){be=e}function $r(){return++mr}function He(e){var t=e.f;if((t&R)!==0)return!0;if(t&k&&(e.f&=~ve),(t&z)!==0){for(var r=e.deps,n=r.length,s=0;s<n;s++){var i=r[s];if(He(i)&&tr(i),i.wv>e.wv)return!0}(t&P)!==0&&U===null&&S(e,N)}return!1}function Er(e,t,r=!0){var n=e.reactions;if(n!==null&&!(H!==null&&ye.call(H,e)))for(var s=0;s<n.length;s++){var i=n[s];(i.f&k)!==0?Er(i,t,!1):t===i&&(r?S(i,R):(i.f&N)!==0&&S(i,z),ht(i))}}function Tr(e){var t=j,r=D,n=q,s=p,i=H,l=I,o=Y,a=be,f=e.f;j=null,D=0,q=null,p=(f&(V|te))===0?e:null,H=null,Se(e.ctx),Y=!1,be=++ge,e.ac!==null&&(gt(()=>{e.ac.abort(J)}),e.ac=null);try{e.f|=it;var u=e.fn,h=u();e.f|=re;var c=e.deps,v=$?.is_fork;if(j!==null){var d;if(v||qe(e,D),c!==null&&D>0)for(c.length=D+j.length,d=0;d<j.length;d++)c[D+d]=j[d];else e.deps=c=j;if(bt()&&(e.f&P)!==0)for(d=D;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!v&&c!==null&&D<c.length&&(qe(e,D),c.length=D);if(Bt()&&q!==null&&!Y&&c!==null&&(e.f&(k|z|R))===0)for(d=0;d<q.length;d++)Er(q[d],e);if(s!==null&&s!==e){if(ge++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=ge;if(t!==null)for(const y of t)y.rv=ge;q!==null&&(n===null?n=q:n.push(...q))}return(e.f&ne)!==0&&(e.f^=ne),h}catch(y){return Yt(y)}finally{e.f^=it,j=t,D=r,q=n,p=s,H=i,Se(l),Y=o,be=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&k)!==0&&(j===null||!ye.call(j,t))){var i=t;(i.f&P)!==0&&(i.f^=P,i.f&=~ve),ft(i),Rn(i),qe(i,0)}}function qe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Kn(e,r[n])}function ke(e){var t=e.f;if((t&B)===0){S(e,N);var r=g,n=et;g=e,et=!0;try{(t&(ee|jt))!==0?Un(e):wt(e),vr(e);var s=Tr(e);e.teardown=typeof s=="function"?s:null,e.wv=mr;var i;qr&&pn&&(e.f&R)!==0&&e.deps}finally{et=n,g=r}}}function _(e){var t=e.f,r=(t&k)!==0;if(p!==null&&!Y){var n=g!==null&&(g.f&B)!==0;if(!n&&(H===null||!ye.call(H,e))){var s=p.deps;if((p.f&it)!==0)e.rv<ge&&(e.rv=ge,j===null&&s!==null&&s[D]===e?D++:j===null?j=[e]:j.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:ye.call(i,p)||i.push(p)}}}if(ue&&oe.has(e))return oe.get(e);if(r){var l=e;if(ue){var o=l.v;return((l.f&N)===0&&l.reactions!==null||xr(l))&&(o=dt(l)),oe.set(l,o),o}var a=(l.f&P)===0&&!Y&&p!==null&&(et||(p.f&P)!==0),f=(l.f&re)===0;He(l)&&(a&&(l.f|=P),tr(l)),a&&!f&&(rr(l),Sr(l))}if(U?.has(e))return U.get(e);if((e.f&ne)!==0)throw e.v;return e.v}function Sr(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&P)===0&&(rr(t),Sr(t))}function xr(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&k)!==0&&xr(t))return!0;return!1}function Wn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const tt=Symbol("events"),Jn=new Set,Nr=new Set;function Xn(e,t,r,n={}){function s(i){if(n.capture||mt.call(t,i),!i.cancelBubble)return gt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pe(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Zn(e,t,r,n,s){var i={capture:n,passive:s},l=Xn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ur(()=>{t.removeEventListener(e,l,i)})}let kr=null;function mt(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;kr=e;var l=0,o=kr===e&&e[tt];if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e[tt]=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){Ve(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=p,h=g;M(null),F(null);try{for(var c,v=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[tt]?.[n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){c?v.push(E):c=E}if(e.cancelBubble||d===t||d===null)break;i=d}if(c){for(let E of v)queueMicrotask(()=>{throw E});throw c}}finally{e[tt]=t,delete e.currentTarget,M(u),F(h)}}}const Qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function es(e){return Qn?.createHTML(e)??e}function ts(e){var t=pt("template");return t.innerHTML=es(e.replaceAll("<!>","<!---->")),t.content}function Ae(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function yt(e,t){var r=(t&Fr)!==0,n=(t&Hr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Ae(T,null),T;s===void 0&&(s=ts(i?e:"<!>"+e),r||(s=Pe(s)));var l=n||lr?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=Pe(l),a=l.lastChild;Ae(o,a)}else Ae(l,l);return l}}function Ar(e=""){if(!m){var t=ae(e+"");return Ae(t,t),t}var r=T;return r.nodeType!==at?(r.before(r=ae()),K(r)):fr(r),Ae(r,r),r}function Re(e,t){if(m){var r=g;((r.f&re)===0||r.nodes.end===null)&&(r.nodes.end=T),We();return}e!==null&&e.before(t)}const rs=["touchstart","touchmove"];function ns(e){return rs.includes(e)}function Rr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Cr(e,t){return Or(e,t)}function ss(e,t){_t(),t.intro=t.intro??!1;const r=t.target,n=m,s=T;try{for(var i=Pe(r);i&&(i.nodeType!==Ge||i.data!==xt);)i=fe(i);if(!i)throw me;se(!0),K(i);const l=Or(e,{...t,anchor:i});return se(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==me&&console.warn("Failed to hydrate: ",l),t.recover===!1&&on(),_t(),jn(r),se(!1),Cr(e,t)}finally{se(n),K(s)}}const rt=new Map;function Or(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){_t();var a=void 0,f=Hn(()=>{var u=r??t.appendChild(ae());En(u,{pending:()=>{}},v=>{Ht({});var d=I;if(i&&(d.c=i),s&&(n.$$events=s),m&&Ae(v,null),a=e(v,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==Ge||T.data!==At))throw Ke(),me;qt()},o);var h=new Set,c=v=>{for(var d=0;d<v.length;d++){var y=v[d];if(!h.has(y)){h.add(y);var E=ns(y);for(const Ce of[t,document]){var C=rt.get(Ce);C===void 0&&(C=new Map,rt.set(Ce,C));var ce=C.get(y);ce===void 0?(Ce.addEventListener(y,mt,{passive:E}),C.set(y,1)):C.set(y,ce+1)}}}};return c(Yr(Jn)),Nr.add(c),()=>{for(var v of h)for(const E of[t,document]){var d=rt.get(E),y=d.get(v);--y==0?(E.removeEventListener(v,mt),d.delete(v),d.size===0&&rt.delete(E)):d.set(v,y)}Nr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return $t.set(a,f),a}let $t=new WeakMap;function is(e,t){const r=$t.get(e);return r?($t.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)Vn(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&&(O(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();br(l,f),f.append(ae()),this.#t.set(i,{effect:l,fragment:f})}else O(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),Fe(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(O(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Ln();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ae();i.append(l),this.#t.set(t,{effect:Q(()=>r(l)),fragment:i})}else this.#r.set(t,Q(()=>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.#l)}else m&&(this.anchor=T),this.#n(n)}}function os(e,t,r=!1){var n;m&&(n=T,We());var s=new ls(e),i=r?Te:0;function l(o,a){if(m){var f=dn(n);if(o!==parseInt(f.substring(1))){var u=It();K(u),s.anchor=u,se(!1),s.ensure(o,a),se(!0);return}}s.ensure(o,a)}dr(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function as(e,t,r,n,s){m&&We();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 fs(e,t){qn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=pt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function us(e,t,r){var n=""+e;return n}function cs(e,t){return e==null?null:String(e)}function hs(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=us(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function ds(e,t,r,n){var s=e.__style;if(m||s!==t){var i=cs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const vs=Symbol("is custom element"),_s=Symbol("is html"),ps=en?"link":"LINK";function Mr(e,t,r,n){var s=gs(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ps)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Qr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Lr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function jr(e,t,r){var n=p,s=g;let i=m;m&&se(!1),M(null),F(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Lr(e).includes(t):r&&typeof r=="object")?e[t]=r:Mr(e,t,r==null?r:String(r))}finally{M(n),F(s),i&&se(!0)}}function gs(e){return e.__attributes??={[vs]:e.nodeName.includes("-"),[_s]:e.namespaceURI===Rt}}var Et=new Map;function Lr(e){var t=e.getAttribute("is")||e.nodeName,r=Et.get(t);if(r)return r;Et.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Vr(s);for(var l in n)n[l].set&&r.push(l);s=Ct(s)}return r}function Be(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=er(()=>(f=!1,a())),h=g;return(function(c,v){if(arguments.length>0){const d=v?_(u):c;return x(u,d),f=!0,s!==void 0&&(s=d),c}return ue&&f||(h.f&B)!==0?u.v:_(u)})}function bs(e){return new ws(e)}class ws{#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 _(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Zr?!0:(_(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?ss:Cr)(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)&&Ne(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Ve(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=()=>{is(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 Dr;typeof HTMLElement=="function"&&(Dr=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=pt("slot");n!=="default"&&(i.name=n),Re(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ms(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]=nt(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=bs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Fn(()=>{hr(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=nt(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]=nt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function nt(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 ms(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ys(e,t,r,n,s,i){let l=class extends Dr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ye(t).forEach(o=>{Ve(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=nt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=$e(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ve(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const $s={version:"0.66.5"};function Es(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 Ts=yt('<div class="progress svelte-vj77ev"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-vj77ev" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),Ss=yt('<div class="progress svelte-vj77ev"><div class="progress-bar svelte-vj77ev" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),xs=yt('<hb-dialog><span slot="title" class="svelte-vj77ev"><!></span> <div slot="body-content" class="svelte-vj77ev"><!></div> <span slot="modal-footer" class="svelte-vj77ev"></span></hb-dialog>',2);const Ns={hash:"svelte-vj77ev",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==me&&console.warn("Failed to hydrate: ",l),t.recover===!1&&on(),_t(),jn(r),se(!1),Cr(e,t)}finally{se(n),K(s)}}const rt=new Map;function Or(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){_t();var a=void 0,f=Hn(()=>{var u=r??t.appendChild(ae());En(u,{pending:()=>{}},v=>{Ht({});var d=I;if(i&&(d.c=i),s&&(n.$$events=s),m&&Ae(v,null),a=e(v,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==Ge||T.data!==At))throw Ke(),me;qt()},o);var h=new Set,c=v=>{for(var d=0;d<v.length;d++){var y=v[d];if(!h.has(y)){h.add(y);var E=ns(y);for(const Ce of[t,document]){var C=rt.get(Ce);C===void 0&&(C=new Map,rt.set(Ce,C));var ce=C.get(y);ce===void 0?(Ce.addEventListener(y,mt,{passive:E}),C.set(y,1)):C.set(y,ce+1)}}}};return c(Yr(Jn)),Nr.add(c),()=>{for(var v of h)for(const E of[t,document]){var d=rt.get(E),y=d.get(v);--y==0?(E.removeEventListener(v,mt),d.delete(v),d.size===0&&rt.delete(E)):d.set(v,y)}Nr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return $t.set(a,f),a}let $t=new WeakMap;function is(e,t){const r=$t.get(e);return r?($t.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)Vn(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&&(O(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();br(l,f),f.append(ae()),this.#t.set(i,{effect:l,fragment:f})}else O(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),Fe(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(O(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Ln();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ae();i.append(l),this.#t.set(t,{effect:Q(()=>r(l)),fragment:i})}else this.#r.set(t,Q(()=>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.#l)}else m&&(this.anchor=T),this.#n(n)}}function os(e,t,r=!1){var n;m&&(n=T,We());var s=new ls(e),i=r?Te:0;function l(o,a){if(m){var f=dn(n);if(o!==parseInt(f.substring(1))){var u=It();K(u),s.anchor=u,se(!1),s.ensure(o,a),se(!0);return}}s.ensure(o,a)}dr(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function as(e,t,r,n,s){m&&We();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 fs(e,t){qn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=pt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function us(e,t,r){var n=""+e;return n}function cs(e,t){return e==null?null:String(e)}function hs(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=us(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function ds(e,t,r,n){var s=e.__style;if(m||s!==t){var i=cs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const vs=Symbol("is custom element"),_s=Symbol("is html"),ps=en?"link":"LINK";function Mr(e,t,r,n){var s=gs(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ps)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Qr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Lr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function jr(e,t,r){var n=p,s=g;let i=m;m&&se(!1),M(null),F(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Lr(e).includes(t):r&&typeof r=="object")?e[t]=r:Mr(e,t,r==null?r:String(r))}finally{M(n),F(s),i&&se(!0)}}function gs(e){return e.__attributes??={[vs]:e.nodeName.includes("-"),[_s]:e.namespaceURI===Rt}}var Et=new Map;function Lr(e){var t=e.getAttribute("is")||e.nodeName,r=Et.get(t);if(r)return r;Et.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Vr(s);for(var l in n)n[l].set&&r.push(l);s=Ct(s)}return r}function Be(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=er(()=>(f=!1,a())),h=g;return(function(c,v){if(arguments.length>0){const d=v?_(u):c;return x(u,d),f=!0,s!==void 0&&(s=d),c}return ue&&f||(h.f&B)!==0?u.v:_(u)})}function bs(e){return new ws(e)}class ws{#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 _(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Zr?!0:(_(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?ss:Cr)(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)&&Ne(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Ve(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=()=>{is(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 Dr;typeof HTMLElement=="function"&&(Dr=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=pt("slot");n!=="default"&&(i.name=n),Re(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ms(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]=nt(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=bs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Fn(()=>{hr(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=nt(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]=nt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function nt(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 ms(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ys(e,t,r,n,s,i){let l=class extends Dr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ye(t).forEach(o=>{Ve(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=nt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=$e(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ve(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const $s={version:"0.66.6"};function Es(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 Ts=yt('<div class="progress svelte-vj77ev"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-vj77ev" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),Ss=yt('<div class="progress svelte-vj77ev"><div class="progress-bar svelte-vj77ev" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),xs=yt('<hb-dialog><span slot="title" class="svelte-vj77ev"><!></span> <div slot="body-content" class="svelte-vj77ev"><!></div> <span slot="modal-footer" class="svelte-vj77ev"></span></hb-dialog>',2);const Ns={hash:"svelte-vj77ev",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
package/manifest.json
CHANGED
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
|
-
"iifeIntegrity": "sha384-
|
|
181
|
+
"iifeIntegrity": "sha384-pbfDxWbonGeC7+TTfpFyjHERS/ArhadEy5R/4jo8/I4+72zkGvBMHKArCPVvbDSJ",
|
|
182
182
|
"screenshots": [],
|
|
183
183
|
"licenses": [
|
|
184
184
|
{
|
|
@@ -198,5 +198,5 @@
|
|
|
198
198
|
"size": {},
|
|
199
199
|
"iifePath": "main.iife.js",
|
|
200
200
|
"repoName": "@htmlbricks/hb-downloader",
|
|
201
|
-
"version": "0.66.
|
|
201
|
+
"version": "0.66.6"
|
|
202
202
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-downloader",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.6",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Opens `hb-dialog` while `uri` is set and downloads the resource with `XMLHttpRequest` as a blob: optional JSON `headers`, inferred or explicit `targetfilename`, `Content-Disposition` parsing when exposed by CORS, progress bar from `onprogress`, then triggers a browser file save. Dispatches `downloadComplete` or `downloadError` (with `downloadid`) and propagates `modalShow`; clears/aborts when the dialog closes.",
|
|
6
6
|
"licenses": [
|