@htmlbricks/hb-uploader 0.65.20 → 0.65.23

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(Sn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ys=1,ws=2,Rn="[",Jt="[!",Tn="]",qe={},k=Symbol(),Es="http://www.w3.org/1999/xhtml",Wt=!1;var Ss=Array.isArray,Rs=Array.prototype.indexOf,Ts=Array.from,gt=Object.keys,bt=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,$s=Object.getOwnPropertyDescriptors,Os=Object.prototype,As=Array.prototype,$n=Object.getPrototypeOf,On=Object.isExtensible;function xs(e){for(var t=0;t<e.length;t++)e[t]()}function An(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const N=2,Kt=4,Yt=8,fe=16,ce=32,we=64,yt=128,ee=512,L=1024,q=2048,de=4096,ie=8192,he=16384,wt=32768,He=65536,xn=1<<17,Cn=1<<18,Ce=1<<19,Cs=1<<20,Ne=32768,Xt=1<<21,Gt=1<<22,Ee=1<<23,Zt=Symbol("$state"),Ns=Symbol("legacy props"),Ps=Symbol(""),ze=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Qt=3,tt=8;function ks(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ls(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ds(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Us(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function js(){throw new Error("https://svelte.dev/e/hydration_failed")}function Bs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ms(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Is(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Et(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Hs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let E=!1;function Se(e){E=e}let R;function te(e){if(e===null)throw Et(),qe;return R=e}function St(){return te(_e(R))}function nt(e){if(E){if(_e(R)!==null)throw Et(),qe;R=e}}function Nn(e=1){if(E){for(var t=e,n=R;t--;)n=_e(n);R=n}}function Pn(e=!0){for(var t=0,n=R;;){if(n.nodeType===tt){var r=n.data;if(r===Tn){if(t===0)return n;t-=1}else(r===Rn||r===Jt)&&(t+=1)}var s=_e(n);e&&n.remove(),n=s}}function zs(e){if(!e||e.nodeType!==tt)throw Et(),qe;return e.data}function kn(e){return e===this.v}function Vs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Js(e){return!Vs(e,this.v)}let Ws=!1,K=null;function Ve(e){K=e}function Ln(e,t=!1,n){K={p:K,i:!1,c:null,e:null,s:e,x:null,l:null}}function Fn(e){var t=K,n=t.e;if(n!==null){t.e=null;for(var r of n)er(r)}return e!==void 0&&(t.x=e),t.i=!0,K=t.p,e??{}}function Dn(){return!0}let Pe=[];function Un(){var e=Pe;Pe=[],xs(e)}function Rt(e){if(Pe.length===0&&!rt){var t=Pe;queueMicrotask(()=>{t===Pe&&Un()})}Pe.push(e)}function Ks(){for(;Pe.length>0;)Un()}function jn(e){var t=w;if(t===null)return y.f|=Ee,e;if((t.f&wt)===0){if((t.f&yt)===0)throw e;t.b.error(e)}else Je(e,t)}function Je(e,t){for(;t!==null;){if((t.f&yt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Tt=new Set;let O=null,Y=null,X=[],$t=null,en=!1,rt=!1;class ne{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#l=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){X=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#f(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects)):(O=null,Mn(n.render_effects),Mn(n.effects),this.#l?.resolve()),Y=null}#o(t,n){t.f^=L;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ce|we))!==0,o=i&&(s&L)!==0,a=o||(s&ie)!==0||this.skipped_effects.has(r);if((r.f&yt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!a&&r.fn!==null){i?r.f^=L:(s&Kt)!==0?n.effects.push(r):ut(r)&&((r.f&fe)!==0&&n.block_effects.push(r),ft(r));var u=r.first;if(u!==null){r=u;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)l===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects),n=n.parent),r=l.next,l=l.parent}}#a(t){for(const n of t)((n.f&q)!==0?this.#i:this.#s).push(n),this.#u(n.deps),U(n,L)}#u(t){if(t!==null)for(const n of t)(n.f&N)===0||(n.f&Ne)===0||(n.f^=Ne,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Ee)===0&&(this.current.set(t,t.v),Y?.set(t,t.v))}activate(){O=this,this.apply()}deactivate(){O===this&&(O=null,Y=null)}flush(){if(this.activate(),X.length>0){if(Bn(),O!==null&&O!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Tt.size>1){this.previous.clear();var t=Y,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Tt){if(i===this){n=!1;continue}const o=[];for(const[u,l]of this.current){if(i.current.has(u))if(n&&l!==i.current.get(u))i.current.set(u,l);else continue;o.push(u)}if(o.length===0)continue;const a=[...i.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){var s=X;X=[];const u=new Set,l=new Map;for(const f of o)qn(f,a,u,l);if(X.length>0){O=i,i.apply();for(const f of X)i.#o(f,r);i.deactivate()}X=s}}O=null,Y=t}this.committed=!0,Tt.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)U(t,q),ke(t);for(const t of this.#s)U(t,de),ke(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=An()).promise}static ensure(){if(O===null){const t=O=new ne;Tt.add(O),rt||ne.enqueue(()=>{O===t&&t.flush()})}return O}static enqueue(t){Rt(t)}apply(){}}function Ot(e){var t=rt;rt=!0;try{for(var n;;){if(Ks(),X.length===0&&(O?.flush(),X.length===0))return $t=null,n;Bn()}}finally{rt=t}}function Bn(){var e=Te;en=!0;var t=null;try{var n=0;for(Pt(!0);X.length>0;){var r=ne.ensure();if(n++>1e3){var s,i;Ys()}r.process(X),Re.clear()}}finally{en=!1,Pt(e),$t=null}}function Ys(){try{Us()}catch(e){Je(e,$t)}}let pe=null;function Mn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(he|ie))===0&&ut(r)&&(pe=new Set,ft(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ir(r):r.fn=null),pe?.size>0)){Re.clear();for(const s of pe){if((s.f&(he|ie))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)pe.has(o)&&(pe.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const u=i[a];(u.f&(he|ie))===0&&ft(u)}}pe.clear()}}pe=null}}function qn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?qn(s,t,n,r):(i&(Gt|fe))!==0&&(i&q)===0&&In(s,t,r)&&(U(s,q),ke(s))}}function In(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&N)!==0&&In(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ke(e){for(var t=$t=e;t.parent!==null;){t=t.parent;var n=t.f;if(en&&t===w&&(n&fe)!==0&&(n&Cn)===0)return;if((n&(we|ce))!==0){if((n&L)===0)return;t.f^=L}}X.push(t)}function Xs(e){let t=0,n=st(0),r;return()=>{Ct()&&(S(n),tr(()=>(t===0&&(r=Si(()=>e(()=>it(n)))),t+=1,()=>{Rt(()=>{t-=1,t===0&&(r?.(),r=void 0,it(n))})})))}}var Gs=He|Ce|yt;function Zs(e,t,n){new Qs(e,t,n)}class Qs{parent;#t=!1;#e;#n=E?R:null;#r;#l;#i;#s=null;#o=null;#a=null;#u=null;#f=null;#c=0;#d=0;#p=!1;#h=null;#b=Xs(()=>(this.#h=st(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#l=r,this.parent=w.b,this.#t=!!this.#r.pending,this.#i=nr(()=>{if(w.b=this,E){const i=this.#n;St(),i.nodeType===tt&&i.data===Jt?this.#w():this.#y()}else{var s=this.#m();try{this.#s=ve(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#v():this.#t=!1}return()=>{this.#f?.remove()}},Gs),E&&(this.#e=R)}#y(){try{this.#s=ve(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#r.pending;t&&(this.#o=ve(()=>t(this.#e)),ne.enqueue(()=>{var n=this.#m();this.#s=this.#_(()=>(ne.ensure(),ve(()=>this.#l(n)))),this.#d>0?this.#v():(at(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#f=oe(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=w,r=y,s=K;G(this.#i),D(this.#i),Ve(this.#i.ctx);try{return t()}catch(i){return jn(i),null}finally{G(n),D(r),Ve(s)}}#v(){const t=this.#r.pending;this.#s!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),lr(this.#s,this.#u)),this.#o===null&&(this.#o=ve(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&at(this.#o,()=>{this.#o=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&xt(this.#h,this.#c)}get_effect_pending(){return this.#b(),S(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#p||!n&&!r)throw t;this.#s&&(H(this.#s),this.#s=null),this.#o&&(H(this.#o),this.#o=null),this.#a&&(H(this.#a),this.#a=null),E&&(te(this.#n),Nn(),te(Pn()));var s=!1,i=!1;const o=()=>{if(s){Hs();return}s=!0,i&&Is(),ne.ensure(),this.#c=0,this.#a!==null&&at(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#p=!1,ve(()=>this.#l(this.#e)))),this.#d>0?this.#v():this.#t=!1};var a=y;try{D(null),i=!0,n?.(t,o),i=!1}catch(u){Je(u,this.#i&&this.#i.parent)}finally{D(a)}r&&Rt(()=>{this.#a=this.#_(()=>{ne.ensure(),this.#p=!0;try{return ve(()=>{r(this.#e,()=>t,()=>o)})}catch(u){return Je(u,this.#i.parent),null}finally{this.#p=!1}})})}}function ei(e,t,n,r){const s=Hn;if(n.length===0&&e.length===0){r(t.map(s));return}var i=O,o=w,a=ti();function u(){Promise.all(n.map(l=>ni(l))).then(l=>{a();try{r([...t.map(s),...l])}catch(f){(o.f&he)===0&&Je(f,o)}i?.deactivate(),At()}).catch(l=>{Je(l,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return u()}finally{i?.deactivate(),At()}}):u()}function ti(){var e=w,t=y,n=K,r=O;return function(i=!0){G(e),D(t),Ve(n),i&&r?.activate()}}function At(){G(null),D(null),Ve(null)}function Hn(e){var t=N|q,n=y!==null&&(y.f&N)!==0?y:null;return w!==null&&(w.f|=Ce),{ctx:K,deps:null,effects:null,equals:kn,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:n??w,ac:null}}function ni(e,t){let n=w;n===null&&ks();var r=n.b,s=void 0,i=st(k),o=!y,a=new Map;return _i(()=>{var u=An();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{l===O&&l.committed&&l.deactivate(),At()})}catch(p){u.reject(p),At()}var l=O;if(o){var f=!r.is_pending();r.update_pending_count(1),l.increment(f),a.get(l)?.reject(ze),a.delete(l),a.set(l,u)}const h=(p,v=void 0)=>{if(l.activate(),v)v!==ze&&(i.f|=Ee,xt(i,v));else{(i.f&Ee)!==0&&(i.f^=Ee),xt(i,p);for(const[d,m]of a){if(a.delete(d),d===l)break;m.reject(ze)}}o&&(r.update_pending_count(-1),l.decrement(f))};u.promise.then(h,p=>h(null,p||"unknown"))}),Qn(()=>{for(const u of a.values())u.reject(ze)}),new Promise(u=>{function l(f){function h(){f===s?u(i):l(s)}f.then(h,h)}l(s)})}function zn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function ri(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return(t.f&he)===0?t:null;t=t.parent}return null}function tn(e){var t,n=w;G(ri(e));try{e.f&=~Ne,zn(e),t=pr(e)}finally{G(n)}return t}function Vn(e){var t=tn(e);if(e.equals(t)||(O?.is_fork||(e.v=t),e.wv=dr()),!Le)if(Y!==null)Ct()&&Y.set(e,t);else{var n=(e.f&ee)===0?de:L;U(e,n)}}let nn=new Set;const Re=new Map;let Jn=!1;function st(e,t){var n={f:0,v:e,reactions:null,equals:kn,rv:0,wv:0};return n}function I(e,t){const n=st(e);return yi(n),n}function si(e,t=!1,n=!0){const r=st(e);return t||(r.equals=Js),r}function F(e,t,n=!1){y!==null&&(!le||(y.f&xn)!==0)&&Dn()&&(y.f&(N|fe|Gt|xn))!==0&&!me?.includes(e)&&qs();let r=n?We(t):t;return xt(e,r)}function xt(e,t){if(!e.equals(t)){var n=e.v;Le?Re.set(e,t):Re.set(e,n),e.v=t;var r=ne.ensure();r.capture(e,n),(e.f&N)!==0&&((e.f&q)!==0&&tn(e),U(e,(e.f&ee)!==0?L:de)),e.wv=dr(),Wn(e,q),w!==null&&(w.f&L)!==0&&(w.f&(ce|we))===0&&(Z===null?wi([e]):Z.push(e)),!r.is_fork&&nn.size>0&&!Jn&&ii()}return t}function ii(){Jn=!1;var e=Te;Pt(!0);const t=Array.from(nn);try{for(const n of t)(n.f&L)!==0&&U(n,de),ut(n)&&ft(n)}finally{Pt(e)}nn.clear()}function it(e){F(e,e.v+1)}function Wn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],o=i.f,a=(o&q)===0;if(a&&U(i,t),(o&N)!==0){var u=i;Y?.delete(u),(o&Ne)===0&&(o&ee&&(i.f|=Ne),Wn(u,de))}else a&&((o&fe)!==0&&pe!==null&&pe.add(i),ke(i))}}function We(e){if(typeof e!="object"||e===null||Zt in e)return e;const t=$n(e);if(t!==Os&&t!==As)return e;var n=new Map,r=Ss(e),s=I(0),i=Fe,o=a=>{if(Fe===i)return a();var u=y,l=Fe;D(null),cr(i);var f=a();return D(u),cr(l),f};return r&&n.set("length",I(e.length)),new Proxy(e,{defineProperty(a,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Bs();var f=n.get(u);return f===void 0?f=o(()=>{var h=I(l.value);return n.set(u,h),h}):F(f,l.value,!0),!0},deleteProperty(a,u){var l=n.get(u);if(l===void 0){if(u in a){const f=o(()=>I(k));n.set(u,f),it(s)}}else F(l,k),it(s);return!0},get(a,u,l){if(u===Zt)return e;var f=n.get(u),h=u in a;if(f===void 0&&(!h||Ie(a,u)?.writable)&&(f=o(()=>{var v=We(h?a[u]:k),d=I(v);return d}),n.set(u,f)),f!==void 0){var p=S(f);return p===k?void 0:p}return Reflect.get(a,u,l)},getOwnPropertyDescriptor(a,u){var l=Reflect.getOwnPropertyDescriptor(a,u);if(l&&"value"in l){var f=n.get(u);f&&(l.value=S(f))}else if(l===void 0){var h=n.get(u),p=h?.v;if(h!==void 0&&p!==k)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return l},has(a,u){if(u===Zt)return!0;var l=n.get(u),f=l!==void 0&&l.v!==k||Reflect.has(a,u);if(l!==void 0||w!==null&&(!f||Ie(a,u)?.writable)){l===void 0&&(l=o(()=>{var p=f?We(a[u]):k,v=I(p);return v}),n.set(u,l));var h=S(l);if(h===k)return!1}return f},set(a,u,l,f){var h=n.get(u),p=u in a;if(r&&u==="length")for(var v=l;v<h.v;v+=1){var d=n.get(v+"");d!==void 0?F(d,k):v in a&&(d=o(()=>I(k)),n.set(v+"",d))}if(h===void 0)(!p||Ie(a,u)?.writable)&&(h=o(()=>I(void 0)),F(h,We(l)),n.set(u,h));else{p=h.v!==k;var m=o(()=>We(l));F(h,m)}var _=Reflect.getOwnPropertyDescriptor(a,u);if(_?.set&&_.set.call(f,l),!p){if(r&&typeof u=="string"){var T=n.get("length"),C=Number(u);Number.isInteger(C)&&C>=T.v&&F(T,C+1)}it(s)}return!0},ownKeys(a){S(s);var u=Reflect.ownKeys(a).filter(h=>{var p=n.get(h);return p===void 0||p.v!==k});for(var[l,f]of n)f.v!==k&&!(l in a)&&u.push(l);return u},setPrototypeOf(){Ms()}})}var Kn,Yn,Xn,Gn;function rn(){if(Kn===void 0){Kn=window,Yn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Xn=Ie(t,"firstChild").get,Gn=Ie(t,"nextSibling").get,On(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),On(n)&&(n.__t=void 0)}}function oe(e=""){return document.createTextNode(e)}function Ke(e){return Xn.call(e)}function _e(e){return Gn.call(e)}function ot(e,t){if(!E)return Ke(e);var n=Ke(R);return n===null&&(n=R.appendChild(oe())),te(n),n}function Zn(e,t=!1){if(!E){var n=Ke(e);return n instanceof Comment&&n.data===""?_e(n):n}if(t&&R?.nodeType!==Qt){var r=oe();return R?.before(r),te(r),r}return R}function oi(e,t=1,n=!1){let r=E?R:e;for(var s;t--;)s=r,r=_e(r);if(!E)return r;if(n&&r?.nodeType!==Qt){var i=oe();return r===null?s?.after(i):r.before(i),te(i),i}return te(r),r}function ai(e){e.textContent=""}function li(){return!1}function sn(e){var t=y,n=w;D(null),G(null);try{return e()}finally{D(t),G(n)}}function ui(e){w===null&&(y===null&&Ds(),Fs()),Le&&Ls()}function fi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ae(e,t,n){var r=w;r!==null&&(r.f&ie)!==0&&(e|=ie);var s={ctx:K,deps:null,nodes_start:null,nodes_end:null,f:e|q|ee,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ft(s),s.f|=wt}catch(a){throw H(s),a}else t!==null&&ke(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Ce)===0&&(i=i.first,(e&fe)!==0&&(e&He)!==0&&i!==null&&(i.f|=He)),i!==null&&(i.parent=r,r!==null&&fi(i,r),y!==null&&(y.f&N)!==0&&(e&we)===0)){var o=y;(o.effects??=[]).push(i)}return s}function Ct(){return y!==null&&!le}function Qn(e){const t=ae(Yt,null,!1);return U(t,L),t.teardown=e,t}function ci(e){ui();var t=w.f,n=!y&&(t&ce)!==0&&(t&wt)===0;if(n){var r=K;(r.e??=[]).push(e)}else return er(e)}function er(e){return ae(Kt|Cs,e,!1)}function di(e){ne.ensure();const t=ae(we|Ce,e,!0);return()=>{H(t)}}function hi(e){ne.ensure();const t=ae(we|Ce,e,!0);return(n={})=>new Promise(r=>{n.outro?at(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function pi(e){return ae(Kt,e,!1)}function _i(e){return ae(Gt|Ce,e,!0)}function tr(e,t=0){return ae(Yt|t,e,!0)}function Nt(e,t=[],n=[],r=[]){ei(r,t,n,s=>{ae(Yt,()=>e(...s.map(S)),!0)})}function nr(e,t=0){var n=ae(fe|t,e,!0);return n}function ve(e){return ae(ce|Ce,e,!0)}function rr(e){var t=e.teardown;if(t!==null){const n=Le,r=y;ur(!0),D(null);try{t.call(null)}finally{ur(n),D(r)}}}function sr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&sn(()=>{s.abort(ze)});var r=n.next;(n.f&we)!==0?n.parent=null:H(n,t),n=r}}function vi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ce)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Cn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(mi(e.nodes_start,e.nodes_end),n=!0),sr(e,t&&!n),kt(e,0),U(e,he);var r=e.transitions;if(r!==null)for(const i of r)i.stop();rr(e);var s=e.parent;s!==null&&s.first!==null&&ir(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function mi(e,t){for(;e!==null;){var n=e===t?null:_e(e);e.remove(),e=n}}function ir(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function at(e,t,n=!0){var r=[];or(e,r,!0),gi(r,()=>{n&&H(e),t&&t()})}function gi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function or(e,t,n){if((e.f&ie)===0){if(e.f^=ie,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&He)!==0||(r.f&ce)!==0&&(e.f&fe)!==0;or(r,t,i?n:!1),r=s}}}function bi(e){ar(e,!0)}function ar(e,t){if((e.f&ie)!==0){e.f^=ie,(e.f&L)===0&&(U(e,q),ke(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&He)!==0||(n.f&ce)!==0;ar(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function lr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:_e(n);t.append(n),n=s}}let Te=!1;function Pt(e){Te=e}let Le=!1;function ur(e){Le=e}let y=null,le=!1;function D(e){y=e}let w=null;function G(e){w=e}let me=null;function yi(e){y!==null&&(me===null?me=[e]:me.push(e))}let M=null,J=0,Z=null;function wi(e){Z=e}let fr=1,lt=0,Fe=lt;function cr(e){Fe=e}function dr(){return++fr}function ut(e){var t=e.f;if((t&q)!==0)return!0;if(t&N&&(e.f&=~Ne),(t&de)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(ut(i)&&Vn(i),i.wv>e.wv)return!0}(t&ee)!==0&&Y===null&&U(e,L)}return!1}function hr(e,t,n=!0){var r=e.reactions;if(r!==null&&!me?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&N)!==0?hr(i,t,!1):t===i&&(n?U(i,q):(i.f&L)!==0&&U(i,de),ke(i))}}function pr(e){var t=M,n=J,r=Z,s=y,i=me,o=K,a=le,u=Fe,l=e.f;M=null,J=0,Z=null,y=(l&(ce|we))===0?e:null,me=null,Ve(e.ctx),le=!1,Fe=++lt,e.ac!==null&&(sn(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=Xt;var f=e.fn,h=f(),p=e.deps;if(M!==null){var v;if(kt(e,J),p!==null&&J>0)for(p.length=J+M.length,v=0;v<M.length;v++)p[J+v]=M[v];else e.deps=p=M;if(Te&&Ct()&&(e.f&ee)!==0)for(v=J;v<p.length;v++)(p[v].reactions??=[]).push(e)}else p!==null&&J<p.length&&(kt(e,J),p.length=J);if(Dn()&&Z!==null&&!le&&p!==null&&(e.f&(N|de|q))===0)for(v=0;v<Z.length;v++)hr(Z[v],e);return s!==null&&s!==e&&(lt++,Z!==null&&(r===null?r=Z:r.push(...Z))),(e.f&Ee)!==0&&(e.f^=Ee),h}catch(d){return jn(d)}finally{e.f^=Xt,M=t,J=n,Z=r,y=s,me=i,Ve(o),le=a,Fe=u}}function Ei(e,t){let n=t.reactions;if(n!==null){var r=Rs.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&N)!==0&&(M===null||!M.includes(t))&&(U(t,de),(t.f&ee)!==0&&(t.f^=ee,t.f&=~Ne),zn(t),kt(t,0))}function kt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ei(e,n[r])}function ft(e){var t=e.f;if((t&he)===0){U(e,L);var n=w,r=Te;w=e,Te=!0;try{(t&fe)!==0?vi(e):sr(e),rr(e);var s=pr(e);e.teardown=typeof s=="function"?s:null,e.wv=fr;var i;Wt&&Ws&&(e.f&q)!==0&&e.deps}finally{Te=r,w=n}}}function S(e){var t=e.f,n=(t&N)!==0;if(y!==null&&!le){var r=w!==null&&(w.f&he)!==0;if(!r&&!me?.includes(e)){var s=y.deps;if((y.f&Xt)!==0)e.rv<lt&&(e.rv=lt,M===null&&s!==null&&s[J]===e?J++:M===null?M=[e]:M.includes(e)||M.push(e));else{(y.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[y]:i.includes(y)||i.push(y)}}}if(Le){if(Re.has(e))return Re.get(e);if(n){var o=e,a=o.v;return((o.f&L)===0&&o.reactions!==null||vr(o))&&(a=tn(o)),Re.set(o,a),a}}else n&&!Y?.has(e)&&(o=e,ut(o)&&Vn(o),Te&&Ct()&&(o.f&ee)===0&&_r(o));if(Y?.has(e))return Y.get(e);if((e.f&Ee)!==0)throw e.v;return e.v}function _r(e){if(e.deps!==null){e.f^=ee;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&ee)===0&&_r(t)}}function vr(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||(t.f&N)!==0&&vr(t))return!0;return!1}function Si(e){var t=le;try{return le=!0,e()}finally{le=t}}const Ri=-7169;function U(e,t){e.f=e.f&Ri|t}const Ti=new Set,mr=new Set;function $i(e,t,n,r={}){function s(i){if(r.capture||ct.call(t,i),!i.cancelBubble)return sn(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Rt(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Oi(e,t,n,r,s){var i={capture:r,passive:s},o=$i(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qn(()=>{t.removeEventListener(e,o,i)})}let gr=null;function ct(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;gr=e;var o=0,a=gr===e&&e.__root;if(a){var u=s.indexOf(a);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=s.indexOf(t);if(l===-1)return;u<=l&&(o=u)}if(i=s[o]||e.target,i!==t){bt(e,"currentTarget",{configurable:!0,get(){return i||n}});var f=y,h=w;D(null),G(null);try{for(var p,v=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var m=i["__"+r];m!=null&&(!i.disabled||e.target===i)&&m.call(i,e)}catch(_){p?v.push(_):p=_}if(e.cancelBubble||d===t||d===null)break;i=d}if(p){for(let _ of v)queueMicrotask(()=>{throw _});throw p}}finally{e.__root=t,delete e.currentTarget,D(f),G(h)}}}function Ai(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function $e(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function on(e,t){var n=(t&ys)!==0,r=(t&ws)!==0,s,i=!e.startsWith("<!>");return()=>{if(E)return $e(R,null),R;s===void 0&&(s=Ai(i?e:"<!>"+e),n||(s=Ke(s)));var o=r||Yn?document.importNode(s,!0):s.cloneNode(!0);if(n){var a=Ke(o),u=o.lastChild;$e(a,u)}else $e(o,o);return o}}function br(e=""){if(!E){var t=oe(e+"");return $e(t,t),t}var n=R;return n.nodeType!==Qt&&(n.before(n=oe()),te(n)),$e(n,n),n}function yr(){if(E)return $e(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),n=oe();return e.append(t,n),$e(t,n),e}function Oe(e,t){if(E){var n=w;((n.f&wt)===0||n.nodes_end===null)&&(n.nodes_end=R),St();return}e!==null&&e.before(t)}const xi=["touchstart","touchmove"];function Ci(e){return xi.includes(e)}function wr(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Er(e,t){return Sr(e,t)}function Ni(e,t){rn(),t.intro=t.intro??!1;const n=t.target,r=E,s=R;try{for(var i=Ke(n);i&&(i.nodeType!==tt||i.data!==Rn);)i=_e(i);if(!i)throw qe;Se(!0),te(i);const o=Sr(e,{...t,anchor:i});return Se(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==qe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&js(),rn(),ai(n),Se(!1),Er(e,t)}finally{Se(r),te(s)}}const Ye=new Map;function Sr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0}){rn();var a=new Set,u=h=>{for(var p=0;p<h.length;p++){var v=h[p];if(!a.has(v)){a.add(v);var d=Ci(v);t.addEventListener(v,ct,{passive:d});var m=Ye.get(v);m===void 0?(document.addEventListener(v,ct,{passive:d}),Ye.set(v,1)):Ye.set(v,m+1)}}};u(Ts(Ti)),mr.add(u);var l=void 0,f=hi(()=>{var h=n??t.appendChild(oe());return Zs(h,{pending:()=>{}},p=>{if(i){Ln({});var v=K;v.c=i}if(s&&(r.$$events=s),E&&$e(p,null),l=e(p,r)||{},E&&(w.nodes_end=R,R===null||R.nodeType!==tt||R.data!==Tn))throw Et(),qe;i&&Fn()}),()=>{for(var p of a){t.removeEventListener(p,ct);var v=Ye.get(p);--v===0?(document.removeEventListener(p,ct),Ye.delete(p)):Ye.set(p,v)}mr.delete(u),h!==n&&h.parentNode?.removeChild(h)}});return an.set(l,f),l}let an=new WeakMap;function Pi(e,t){const n=an.get(e);return n?(an.delete(e),n(t)):Promise.resolve()}class ki{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#i=()=>{var t=O;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)bi(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#n.get(o);a&&(H(a.effect),this.#n.delete(o))}for(const[i,o]of this.#e){if(i===n||this.#r.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var l=document.createDocumentFragment();lr(o,l),l.append(oe()),this.#n.set(i,{effect:o,fragment:l})}else H(o);this.#r.delete(i),this.#e.delete(i)};this.#l||!r?(this.#r.add(i),at(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(H(s.effect),this.#n.delete(r))};ensure(t,n){var r=O,s=li();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),o=oe();i.append(o),this.#n.set(t,{effect:ve(()=>n(o)),fragment:i})}else this.#e.set(t,ve(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[a,u]of this.#e)a===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[a,u]of this.#n)a===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#i),r.ondiscard(this.#s)}else E&&(this.anchor=R),this.#i()}}function ln(e,t,n=!1){E&&St();var r=new ki(e),s=n?He:0;function i(o,a){if(E){const l=zs(e)===Jt;if(o===l){var u=Pn();te(u),r.anchor=u,Se(!1),r.ensure(o,a),Se(!0);return}}r.ensure(o,a)}nr(()=>{var o=!1;t((a,u=!0)=>{o=!0,i(u,a)}),o||i(!1,null)},s)}function Li(e,t,n,r,s){E&&St();var i=t.$$slots?.[n],o=!1;i===!0&&(i=t[n],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>r:r)}function Fi(e,t){pi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Di(e,t,n){var r=""+e;return r}function Ui(e,t){return e==null?null:String(e)}function ji(e,t,n,r,s,i){var o=e.__className;if(E||o!==n||o===void 0){var a=Di(n);(!E||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return i}function Rr(e,t,n,r){var s=e.__style;if(E||s!==t){var i=Ui(t);(!E||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Bi=Symbol("is custom element"),Mi=Symbol("is html");function Tr(e,t,n,r){var s=qi(e);E&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Ps]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $r(e,t,n){var r=y,s=w;let i=E;E&&Se(!1),D(null),G(null);try{t!=="style"&&(un.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Or(e).includes(t):n&&typeof n=="object")?e[t]=n:Tr(e,t,n==null?n:String(n))}finally{D(r),G(s),i&&Se(!0)}}function qi(e){return e.__attributes??={[Bi]:e.nodeName.includes("-"),[Mi]:e.namespaceURI===Es}}var un=new Map;function Or(e){var t=e.getAttribute("is")||e.nodeName,n=un.get(t);if(n)return n;un.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=$s(s);for(var o in r)r[o].set&&n.push(o);s=$n(s)}return n}function fn(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var u;u=()=>{var p=e[t];return p===void 0?o():(i=!0,p)};var l=!1,f=Hn(()=>(l=!1,u())),h=w;return(function(p,v){if(arguments.length>0){const d=v?S(f):p;return F(f,d),l=!0,s!==void 0&&(s=d),p}return Le&&l||(h.f&he)!==0?f.v:S(f)})}function Ii(e){return new Hi(e)}class Hi{#t;#e;constructor(t){var n=new Map,r=(i,o)=>{var a=si(o,!1,!1);return n.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return S(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===Ns?!0:(S(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return F(n.get(o)??r(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Ni:Er)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ot(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||bt(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Pi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Ar;typeof HTMLElement=="function"&&(Ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Oe(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=zi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Lt(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=di(()=>{tr(()=>{this.$$r=!0;for(const r of gt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Lt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Lt(e,n,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 gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Lt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="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 zi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Vi(e,t,n,r,s,i){let o=class extends Ar{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return gt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return gt(t).forEach(a=>{bt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=Lt(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var f=Ie(l,a)?.get;f?l[a]=u:l.$set({[a]:u})}}})}),r.forEach(a=>{bt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Ji={version:"0.65.20"};function xr(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wi}=Object.prototype,{getPrototypeOf:cn}=Object,{iterator:Ft,toStringTag:Cr}=Symbol,Dt=(e=>t=>{const n=Wi.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),re=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ut=e=>t=>typeof t===e,{isArray:Xe}=Array,Ge=Ut("undefined");function dt(e){return e!==null&&!Ge(e)&&e.constructor!==null&&!Ge(e.constructor)&&z(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nr=re("ArrayBuffer");function Ki(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nr(e.buffer),t}const Yi=Ut("string"),z=Ut("function"),Pr=Ut("number"),ht=e=>e!==null&&typeof e=="object",Xi=e=>e===!0||e===!1,jt=e=>{if(Dt(e)!=="object")return!1;const t=cn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cr in e)&&!(Ft in e)},Gi=e=>{if(!ht(e)||dt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zi=re("Date"),Qi=re("File"),eo=re("Blob"),to=re("FileList"),no=e=>ht(e)&&z(e.pipe),ro=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||z(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&z(e.toString)&&e.toString()==="[object FormData]"))},so=re("URLSearchParams"),[io,oo,ao,lo]=["ReadableStream","Request","Response","Headers"].map(re),uo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Xe(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(dt(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function kr(e,t){if(dt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const De=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lr=e=>!Ge(e)&&e!==De;function dn(){const{caseless:e,skipUndefined:t}=Lr(this)&&this||{},n={},r=(s,i)=>{const o=e&&kr(n,i)||i;jt(n[o])&&jt(s)?n[o]=dn(n[o],s):jt(s)?n[o]=dn({},s):Xe(s)?n[o]=s.slice():(!t||!Ge(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&pt(arguments[s],r);return n}const fo=(e,t,n,{allOwnKeys:r}={})=>(pt(t,(s,i)=>{n&&z(s)?e[i]=xr(s,n):e[i]=s},{allOwnKeys:r}),e),co=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ho=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},po=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&cn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_o=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vo=e=>{if(!e)return null;if(Xe(e))return e;let t=e.length;if(!Pr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cn(Uint8Array)),go=(e,t)=>{const r=(e&&e[Ft]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},bo=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yo=re("HTMLFormElement"),wo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Fr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=re("RegExp"),Dr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pt(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},So=e=>{Dr(e,(t,n)=>{if(z(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(z(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ro=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Xe(e)?r(e):r(String(e).split(t)),n},To=()=>{},$o=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Oo(e){return!!(e&&z(e.append)&&e[Cr]==="FormData"&&e[Ft])}const Ao=e=>{const t=new Array(10),n=(r,s)=>{if(ht(r)){if(t.indexOf(r)>=0)return;if(dt(r))return r;if(!("toJSON"in r)){t[s]=r;const i=Xe(r)?[]:{};return pt(r,(o,a)=>{const u=n(o,s+1);!Ge(u)&&(i[a]=u)}),t[s]=void 0,i}}return r};return n(e,0)},xo=re("AsyncFunction"),Co=e=>e&&(ht(e)||z(e))&&z(e.then)&&z(e.catch),Ur=((e,t)=>e?setImmediate:t?((n,r)=>(De.addEventListener("message",({source:s,data:i})=>{s===De&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),De.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",z(De.postMessage)),No=typeof queueMicrotask<"u"?queueMicrotask.bind(De):typeof process<"u"&&process.nextTick||Ur,c={isArray:Xe,isArrayBuffer:Nr,isBuffer:dt,isFormData:ro,isArrayBufferView:Ki,isString:Yi,isNumber:Pr,isBoolean:Xi,isObject:ht,isPlainObject:jt,isEmptyObject:Gi,isReadableStream:io,isRequest:oo,isResponse:ao,isHeaders:lo,isUndefined:Ge,isDate:Zi,isFile:Qi,isBlob:eo,isRegExp:Eo,isFunction:z,isStream:no,isURLSearchParams:so,isTypedArray:mo,isFileList:to,forEach:pt,merge:dn,extend:fo,trim:uo,stripBOM:co,inherits:ho,toFlatObject:po,kindOf:Dt,kindOfTest:re,endsWith:_o,toArray:vo,forEachEntry:go,matchAll:bo,isHTMLForm:yo,hasOwnProperty:Fr,hasOwnProp:Fr,reduceDescriptors:Dr,freezeMethods:So,toObjectSet:Ro,toCamelCase:wo,noop:To,toFiniteNumber:$o,findKey:kr,global:De,isContextDefined:Lr,isSpecCompliantForm:Oo,toJSONObject:Ao,isAsyncFn:xo,isThenable:Co,setImmediate:Ur,asap:No,isIterable:e=>e!=null&&z(e[Ft])};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}});const jr=g.prototype,Br={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Br[e]={value:e}}),Object.defineProperties(g,Br),Object.defineProperty(jr,"isAxiosError",{value:!0}),g.from=(e,t,n,r,s,i)=>{const o=Object.create(jr);c.toFlatObject(e,o,function(f){return f!==Error.prototype},l=>l!=="isAxiosError");const a=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return g.call(o,a,u,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Po=null;function hn(e){return c.isPlainObject(e)||c.isArray(e)}function Mr(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function qr(e,t,n){return e?e.concat(t).map(function(s,i){return s=Mr(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function ko(e){return c.isArray(e)&&!e.some(hn)}const Lo=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Bt(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!c.isUndefined(_[m])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(c.isDate(d))return d.toISOString();if(c.isBoolean(d))return d.toString();if(!u&&c.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(d)||c.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,_){let T=d;if(d&&!_&&typeof d=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(c.isArray(d)&&ko(d)||(c.isFileList(d)||c.endsWith(m,"[]"))&&(T=c.toArray(d)))return m=Mr(m),T.forEach(function(x,B){!(c.isUndefined(x)||x===null)&&t.append(o===!0?qr([m],B,i):o===null?m:m+"[]",l(x))}),!1}return hn(d)?!0:(t.append(qr(_,m,i),l(d)),!1)}const h=[],p=Object.assign(Lo,{defaultVisitor:f,convertValue:l,isVisitable:hn});function v(d,m){if(!c.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(d),c.forEach(d,function(T,C){(!(c.isUndefined(T)||T===null)&&s.call(t,T,c.isString(C)?C.trim():C,m,p))===!0&&v(T,m?m.concat(C):[C])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ir(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pn(e,t){this._pairs=[],e&&Bt(e,this,t)}const Hr=pn.prototype;Hr.append=function(t,n){this._pairs.push([t,n])},Hr.toString=function(t){const n=t?function(r){return t.call(this,r,Ir)}:Ir;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zr(e,t,n){if(!t)return e;const r=n&&n.encode||Fo;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=c.isURLSearchParams(t)?t.toString():new pn(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Vr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Do={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_n=typeof window<"u"&&typeof document<"u",vn=typeof navigator=="object"&&navigator||void 0,Uo=_n&&(!vn||["ReactNative","NativeScript","NS"].indexOf(vn.product)<0),jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bo=_n&&window.location.href||"http://localhost",j={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_n,hasStandardBrowserEnv:Uo,hasStandardBrowserWebWorkerEnv:jo,navigator:vn,origin:Bo},Symbol.toStringTag,{value:"Module"})),...Do};function Mo(e,t){return Bt(e,new j.classes.URLSearchParams,{visitor:function(n,r,s,i){return j.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function qo(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Io(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Wr(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=i>=n.length;return o=!o&&c.isArray(s)?s.length:o,u?(c.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&c.isArray(s[o])&&(s[o]=Io(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(qo(r),s,n,0)}),n}return null}function Ho(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _t={transitional:Jr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Wr(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mo(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Bt(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ho(t)):t}],transformResponse:[function(t){const n=this.transitional||_t.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{_t.headers[e]={}});const zo=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vo=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==qe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&js(),rn(),ai(n),Se(!1),Er(e,t)}finally{Se(r),te(s)}}const Ye=new Map;function Sr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0}){rn();var a=new Set,u=h=>{for(var p=0;p<h.length;p++){var v=h[p];if(!a.has(v)){a.add(v);var d=Ci(v);t.addEventListener(v,ct,{passive:d});var m=Ye.get(v);m===void 0?(document.addEventListener(v,ct,{passive:d}),Ye.set(v,1)):Ye.set(v,m+1)}}};u(Ts(Ti)),mr.add(u);var l=void 0,f=hi(()=>{var h=n??t.appendChild(oe());return Zs(h,{pending:()=>{}},p=>{if(i){Ln({});var v=K;v.c=i}if(s&&(r.$$events=s),E&&$e(p,null),l=e(p,r)||{},E&&(w.nodes_end=R,R===null||R.nodeType!==tt||R.data!==Tn))throw Et(),qe;i&&Fn()}),()=>{for(var p of a){t.removeEventListener(p,ct);var v=Ye.get(p);--v===0?(document.removeEventListener(p,ct),Ye.delete(p)):Ye.set(p,v)}mr.delete(u),h!==n&&h.parentNode?.removeChild(h)}});return an.set(l,f),l}let an=new WeakMap;function Pi(e,t){const n=an.get(e);return n?(an.delete(e),n(t)):Promise.resolve()}class ki{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#i=()=>{var t=O;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)bi(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#n.get(o);a&&(H(a.effect),this.#n.delete(o))}for(const[i,o]of this.#e){if(i===n||this.#r.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var l=document.createDocumentFragment();lr(o,l),l.append(oe()),this.#n.set(i,{effect:o,fragment:l})}else H(o);this.#r.delete(i),this.#e.delete(i)};this.#l||!r?(this.#r.add(i),at(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(H(s.effect),this.#n.delete(r))};ensure(t,n){var r=O,s=li();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),o=oe();i.append(o),this.#n.set(t,{effect:ve(()=>n(o)),fragment:i})}else this.#e.set(t,ve(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[a,u]of this.#e)a===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[a,u]of this.#n)a===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#i),r.ondiscard(this.#s)}else E&&(this.anchor=R),this.#i()}}function ln(e,t,n=!1){E&&St();var r=new ki(e),s=n?He:0;function i(o,a){if(E){const l=zs(e)===Jt;if(o===l){var u=Pn();te(u),r.anchor=u,Se(!1),r.ensure(o,a),Se(!0);return}}r.ensure(o,a)}nr(()=>{var o=!1;t((a,u=!0)=>{o=!0,i(u,a)}),o||i(!1,null)},s)}function Li(e,t,n,r,s){E&&St();var i=t.$$slots?.[n],o=!1;i===!0&&(i=t[n],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>r:r)}function Fi(e,t){pi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Di(e,t,n){var r=""+e;return r}function Ui(e,t){return e==null?null:String(e)}function ji(e,t,n,r,s,i){var o=e.__className;if(E||o!==n||o===void 0){var a=Di(n);(!E||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return i}function Rr(e,t,n,r){var s=e.__style;if(E||s!==t){var i=Ui(t);(!E||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Bi=Symbol("is custom element"),Mi=Symbol("is html");function Tr(e,t,n,r){var s=qi(e);E&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Ps]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $r(e,t,n){var r=y,s=w;let i=E;E&&Se(!1),D(null),G(null);try{t!=="style"&&(un.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Or(e).includes(t):n&&typeof n=="object")?e[t]=n:Tr(e,t,n==null?n:String(n))}finally{D(r),G(s),i&&Se(!0)}}function qi(e){return e.__attributes??={[Bi]:e.nodeName.includes("-"),[Mi]:e.namespaceURI===Es}}var un=new Map;function Or(e){var t=e.getAttribute("is")||e.nodeName,n=un.get(t);if(n)return n;un.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=$s(s);for(var o in r)r[o].set&&n.push(o);s=$n(s)}return n}function fn(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var u;u=()=>{var p=e[t];return p===void 0?o():(i=!0,p)};var l=!1,f=Hn(()=>(l=!1,u())),h=w;return(function(p,v){if(arguments.length>0){const d=v?S(f):p;return F(f,d),l=!0,s!==void 0&&(s=d),p}return Le&&l||(h.f&he)!==0?f.v:S(f)})}function Ii(e){return new Hi(e)}class Hi{#t;#e;constructor(t){var n=new Map,r=(i,o)=>{var a=si(o,!1,!1);return n.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return S(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===Ns?!0:(S(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return F(n.get(o)??r(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Ni:Er)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ot(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||bt(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Pi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Ar;typeof HTMLElement=="function"&&(Ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Oe(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=zi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Lt(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=di(()=>{tr(()=>{this.$$r=!0;for(const r of gt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Lt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Lt(e,n,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 gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Lt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="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 zi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Vi(e,t,n,r,s,i){let o=class extends Ar{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return gt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return gt(t).forEach(a=>{bt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=Lt(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var f=Ie(l,a)?.get;f?l[a]=u:l.$set({[a]:u})}}})}),r.forEach(a=>{bt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Ji={version:"0.65.23"};function xr(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wi}=Object.prototype,{getPrototypeOf:cn}=Object,{iterator:Ft,toStringTag:Cr}=Symbol,Dt=(e=>t=>{const n=Wi.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),re=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ut=e=>t=>typeof t===e,{isArray:Xe}=Array,Ge=Ut("undefined");function dt(e){return e!==null&&!Ge(e)&&e.constructor!==null&&!Ge(e.constructor)&&z(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nr=re("ArrayBuffer");function Ki(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nr(e.buffer),t}const Yi=Ut("string"),z=Ut("function"),Pr=Ut("number"),ht=e=>e!==null&&typeof e=="object",Xi=e=>e===!0||e===!1,jt=e=>{if(Dt(e)!=="object")return!1;const t=cn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cr in e)&&!(Ft in e)},Gi=e=>{if(!ht(e)||dt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zi=re("Date"),Qi=re("File"),eo=re("Blob"),to=re("FileList"),no=e=>ht(e)&&z(e.pipe),ro=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||z(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&z(e.toString)&&e.toString()==="[object FormData]"))},so=re("URLSearchParams"),[io,oo,ao,lo]=["ReadableStream","Request","Response","Headers"].map(re),uo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Xe(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(dt(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function kr(e,t){if(dt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const De=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lr=e=>!Ge(e)&&e!==De;function dn(){const{caseless:e,skipUndefined:t}=Lr(this)&&this||{},n={},r=(s,i)=>{const o=e&&kr(n,i)||i;jt(n[o])&&jt(s)?n[o]=dn(n[o],s):jt(s)?n[o]=dn({},s):Xe(s)?n[o]=s.slice():(!t||!Ge(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&pt(arguments[s],r);return n}const fo=(e,t,n,{allOwnKeys:r}={})=>(pt(t,(s,i)=>{n&&z(s)?e[i]=xr(s,n):e[i]=s},{allOwnKeys:r}),e),co=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ho=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},po=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&cn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_o=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vo=e=>{if(!e)return null;if(Xe(e))return e;let t=e.length;if(!Pr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cn(Uint8Array)),go=(e,t)=>{const r=(e&&e[Ft]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},bo=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yo=re("HTMLFormElement"),wo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Fr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=re("RegExp"),Dr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pt(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},So=e=>{Dr(e,(t,n)=>{if(z(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(z(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ro=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Xe(e)?r(e):r(String(e).split(t)),n},To=()=>{},$o=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Oo(e){return!!(e&&z(e.append)&&e[Cr]==="FormData"&&e[Ft])}const Ao=e=>{const t=new Array(10),n=(r,s)=>{if(ht(r)){if(t.indexOf(r)>=0)return;if(dt(r))return r;if(!("toJSON"in r)){t[s]=r;const i=Xe(r)?[]:{};return pt(r,(o,a)=>{const u=n(o,s+1);!Ge(u)&&(i[a]=u)}),t[s]=void 0,i}}return r};return n(e,0)},xo=re("AsyncFunction"),Co=e=>e&&(ht(e)||z(e))&&z(e.then)&&z(e.catch),Ur=((e,t)=>e?setImmediate:t?((n,r)=>(De.addEventListener("message",({source:s,data:i})=>{s===De&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),De.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",z(De.postMessage)),No=typeof queueMicrotask<"u"?queueMicrotask.bind(De):typeof process<"u"&&process.nextTick||Ur,c={isArray:Xe,isArrayBuffer:Nr,isBuffer:dt,isFormData:ro,isArrayBufferView:Ki,isString:Yi,isNumber:Pr,isBoolean:Xi,isObject:ht,isPlainObject:jt,isEmptyObject:Gi,isReadableStream:io,isRequest:oo,isResponse:ao,isHeaders:lo,isUndefined:Ge,isDate:Zi,isFile:Qi,isBlob:eo,isRegExp:Eo,isFunction:z,isStream:no,isURLSearchParams:so,isTypedArray:mo,isFileList:to,forEach:pt,merge:dn,extend:fo,trim:uo,stripBOM:co,inherits:ho,toFlatObject:po,kindOf:Dt,kindOfTest:re,endsWith:_o,toArray:vo,forEachEntry:go,matchAll:bo,isHTMLForm:yo,hasOwnProperty:Fr,hasOwnProp:Fr,reduceDescriptors:Dr,freezeMethods:So,toObjectSet:Ro,toCamelCase:wo,noop:To,toFiniteNumber:$o,findKey:kr,global:De,isContextDefined:Lr,isSpecCompliantForm:Oo,toJSONObject:Ao,isAsyncFn:xo,isThenable:Co,setImmediate:Ur,asap:No,isIterable:e=>e!=null&&z(e[Ft])};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}});const jr=g.prototype,Br={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Br[e]={value:e}}),Object.defineProperties(g,Br),Object.defineProperty(jr,"isAxiosError",{value:!0}),g.from=(e,t,n,r,s,i)=>{const o=Object.create(jr);c.toFlatObject(e,o,function(f){return f!==Error.prototype},l=>l!=="isAxiosError");const a=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return g.call(o,a,u,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Po=null;function hn(e){return c.isPlainObject(e)||c.isArray(e)}function Mr(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function qr(e,t,n){return e?e.concat(t).map(function(s,i){return s=Mr(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function ko(e){return c.isArray(e)&&!e.some(hn)}const Lo=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Bt(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!c.isUndefined(_[m])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(c.isDate(d))return d.toISOString();if(c.isBoolean(d))return d.toString();if(!u&&c.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(d)||c.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,_){let T=d;if(d&&!_&&typeof d=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(c.isArray(d)&&ko(d)||(c.isFileList(d)||c.endsWith(m,"[]"))&&(T=c.toArray(d)))return m=Mr(m),T.forEach(function(x,B){!(c.isUndefined(x)||x===null)&&t.append(o===!0?qr([m],B,i):o===null?m:m+"[]",l(x))}),!1}return hn(d)?!0:(t.append(qr(_,m,i),l(d)),!1)}const h=[],p=Object.assign(Lo,{defaultVisitor:f,convertValue:l,isVisitable:hn});function v(d,m){if(!c.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(d),c.forEach(d,function(T,C){(!(c.isUndefined(T)||T===null)&&s.call(t,T,c.isString(C)?C.trim():C,m,p))===!0&&v(T,m?m.concat(C):[C])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ir(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pn(e,t){this._pairs=[],e&&Bt(e,this,t)}const Hr=pn.prototype;Hr.append=function(t,n){this._pairs.push([t,n])},Hr.toString=function(t){const n=t?function(r){return t.call(this,r,Ir)}:Ir;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zr(e,t,n){if(!t)return e;const r=n&&n.encode||Fo;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=c.isURLSearchParams(t)?t.toString():new pn(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Vr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Do={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_n=typeof window<"u"&&typeof document<"u",vn=typeof navigator=="object"&&navigator||void 0,Uo=_n&&(!vn||["ReactNative","NativeScript","NS"].indexOf(vn.product)<0),jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bo=_n&&window.location.href||"http://localhost",j={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_n,hasStandardBrowserEnv:Uo,hasStandardBrowserWebWorkerEnv:jo,navigator:vn,origin:Bo},Symbol.toStringTag,{value:"Module"})),...Do};function Mo(e,t){return Bt(e,new j.classes.URLSearchParams,{visitor:function(n,r,s,i){return j.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function qo(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Io(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Wr(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=i>=n.length;return o=!o&&c.isArray(s)?s.length:o,u?(c.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&c.isArray(s[o])&&(s[o]=Io(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(qo(r),s,n,0)}),n}return null}function Ho(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _t={transitional:Jr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Wr(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mo(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Bt(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ho(t)):t}],transformResponse:[function(t){const n=this.transitional||_t.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{_t.headers[e]={}});const zo=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vo=e=>{const t={};let n,r,s;return e&&e.split(`
3
3
  `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&zo[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Kr=Symbol("internals");function vt(e){return e&&String(e).trim().toLowerCase()}function Mt(e){return e===!1||e==null?e:c.isArray(e)?e.map(Mt):String(e)}function Jo(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wo=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mn(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Ko(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Yo(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let V=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,u,l){const f=vt(u);if(!f)throw new Error("header name must be a non-empty string");const h=c.findKey(s,f);(!h||s[h]===void 0||l===!0||l===void 0&&s[h]!==!1)&&(s[h||u]=Mt(a))}const o=(a,u)=>c.forEach(a,(l,f)=>i(l,f,u));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!Wo(t))o(Vo(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},u,l;for(const f of t){if(!c.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[l=f[0]]=(u=a[l])?c.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=vt(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Jo(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vt(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||mn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=vt(o),o){const a=c.findKey(r,o);a&&(!n||mn(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||mn(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,i)=>{const o=c.findKey(r,i);if(o){n[o]=Mt(s),delete n[i];return}const a=t?Ko(i):String(i).trim();a!==i&&delete n[i],n[a]=Mt(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
4
4
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Kr]=this[Kr]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=vt(o);r[a]||(Yo(s,o),r[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(V.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),c.freezeMethods(V);function gn(e,t){const n=this||_t,r=t||n,s=V.from(r.headers);let i=r.data;return c.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Yr(e){return!!(e&&e.__CANCEL__)}function Ze(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(Ze,g,{__CANCEL__:!0});function Xr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Xo(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Go(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),f=r[i];o||(o=l),n[s]=u,r[s]=l;let h=i,p=0;for(;h!==s;)p+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const v=f&&l-f;return v?Math.round(p*1e3/v):void 0}}function Zo(e,t){let n=0,r=1e3/t,s,i;const o=(l,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const f=Date.now(),h=f-n;h>=r?o(l,f):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const qt=(e,t,n=3)=>{let r=0;const s=Go(50,250);return Zo(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,u=o-r,l=s(u),f=o<=a;r=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a&&f?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Gr=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Zr=e=>(...t)=>c.asap(()=>e(...t)),Qo=j.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,j.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,ea=j.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ta(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function na(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qr(e,t,n){let r=!ta(t);return e&&(r||n==!1)?na(e,t):t}const es=e=>e instanceof V?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(l,f,h,p){return c.isPlainObject(l)&&c.isPlainObject(f)?c.merge.call({caseless:p},l,f):c.isPlainObject(f)?c.merge({},f):c.isArray(f)?f.slice():f}function s(l,f,h,p){if(c.isUndefined(f)){if(!c.isUndefined(l))return r(void 0,l,h,p)}else return r(l,f,h,p)}function i(l,f){if(!c.isUndefined(f))return r(void 0,f)}function o(l,f){if(c.isUndefined(f)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,h){if(h in t)return r(l,f);if(h in e)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,f,h)=>s(es(l),es(f),h,!0)};return c.forEach(Object.keys({...e,...t}),function(f){const h=u[f]||s,p=h(e[f],t[f],f);c.isUndefined(p)&&h!==a||(n[f]=p)}),n}const ts=e=>{const t=Ue({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=V.from(o),t.url=zr(Qr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const u=n.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([f,h])=>{l.includes(f.toLowerCase())&&o.set(f,h)})}}if(j.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&Qo(t.url))){const u=s&&i&&ea.read(i);u&&o.set(s,u)}return t},ra=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=ts(e);let i=s.data;const o=V.from(s.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:l}=s,f,h,p,v,d;function m(){v&&v(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function T(){if(!_)return;const x=V.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:x,config:e,request:_};Xr(function(P){n(P),m()},function(P){r(P),m()},b),_=null}"onloadend"in _?_.onloadend=T:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(T)},_.onabort=function(){_&&(r(new g("Request aborted",g.ECONNABORTED,e,_)),_=null)},_.onerror=function(B){const b=B&&B.message?B.message:"Network Error",$=new g(b,g.ERR_NETWORK,e,_);$.event=B||null,r($),_=null},_.ontimeout=function(){let B=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const b=s.transitional||Jr;s.timeoutErrorMessage&&(B=s.timeoutErrorMessage),r(new g(B,b.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,_)),_=null},i===void 0&&o.setContentType(null),"setRequestHeader"in _&&c.forEach(o.toJSON(),function(B,b){_.setRequestHeader(b,B)}),c.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),a&&a!=="json"&&(_.responseType=s.responseType),l&&([p,d]=qt(l,!0),_.addEventListener("progress",p)),u&&_.upload&&([h,v]=qt(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(f=x=>{_&&(r(!x||x.type?new Ze(null,e,_):x),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const C=Xo(s.url);if(C&&j.protocols.indexOf(C)===-1){r(new g("Unsupported protocol "+C+":",g.ERR_BAD_REQUEST,e));return}_.send(i||null)})},sa=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,a();const f=l instanceof Error?l:this.reason;r.abort(f instanceof g?f:new Ze(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,i(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>c.asap(a),u}},ia=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},oa=async function*(e,t){for await(const n of aa(e))yield*ia(n,t)},aa=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ns=(e,t,n,r)=>{const s=oa(e,t);let i=0,o,a=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:f}=await s.next();if(l){a(),u.close();return}let h=f.byteLength;if(n){let p=i+=h;n(p)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}},cancel(u){return a(u),s.return()}},{highWaterMark:2})},rs=64*1024,{isFunction:It}=c,la=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:ss,TextEncoder:is}=c.global,os=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ua=e=>{e=c.merge.call({skipUndefined:!0},la,e);const{fetch:t,Request:n,Response:r}=e,s=t?It(t):typeof fetch=="function",i=It(n),o=It(r);if(!s)return!1;const a=s&&It(ss),u=s&&(typeof is=="function"?(d=>m=>d.encode(m))(new is):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=i&&a&&os(()=>{let d=!1;const m=new n(j.origin,{body:new ss,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),f=o&&a&&os(()=>c.isReadableStream(new r("").body)),h={stream:f&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!h[d]&&(h[d]=(m,_)=>{let T=m&&m[d];if(T)return T.call(m);throw new g(`Response type '${d}' is not supported`,g.ERR_NOT_SUPPORT,_)})});const p=async d=>{if(d==null)return 0;if(c.isBlob(d))return d.size;if(c.isSpecCompliantForm(d))return(await new n(j.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(c.isArrayBufferView(d)||c.isArrayBuffer(d))return d.byteLength;if(c.isURLSearchParams(d)&&(d=d+""),c.isString(d))return(await u(d)).byteLength},v=async(d,m)=>{const _=c.toFiniteNumber(d.getContentLength());return _??p(m)};return async d=>{let{url:m,method:_,data:T,signal:C,cancelToken:x,timeout:B,onDownloadProgress:b,onUploadProgress:$,responseType:P,headers:mt,withCredentials:Qe="same-origin",fetchOptions:ge}=ts(d),be=t||fetch;P=P?(P+"").toLowerCase():"text";let se=sa([C,x&&x.toAbortSignal()],B),ye=null;const W=se&&se.unsubscribe&&(()=>{se.unsubscribe()});let Me;try{if($&&l&&_!=="get"&&_!=="head"&&(Me=await v(mt,T))!==0){let xe=new n(m,{method:"POST",body:T,duplex:"half"}),et;if(c.isFormData(T)&&(et=xe.headers.get("content-type"))&&mt.setContentType(et),xe.body){const[En,Vt]=Gr(Me,qt(Zr($)));T=ns(xe.body,rs,En,Vt)}}c.isString(Qe)||(Qe=Qe?"include":"omit");const Q=i&&"credentials"in n.prototype,vs={...ge,signal:se,method:_.toUpperCase(),headers:mt.normalize().toJSON(),body:T,duplex:"half",credentials:Q?Qe:void 0};ye=i&&new n(m,vs);let Ae=await(i?be(ye,ge):be(m,vs));const ms=f&&(P==="stream"||P==="response");if(f&&(b||ms&&W)){const xe={};["status","statusText","headers"].forEach(gs=>{xe[gs]=Ae[gs]});const et=c.toFiniteNumber(Ae.headers.get("content-length")),[En,Vt]=b&&Gr(et,qt(Zr(b),!0))||[];Ae=new r(ns(Ae.body,rs,En,()=>{Vt&&Vt(),W&&W()}),xe)}P=P||"text";let Sa=await h[c.findKey(h,P)||"text"](Ae,d);return!ms&&W&&W(),await new Promise((xe,et)=>{Xr(xe,et,{data:Sa,headers:V.from(Ae.headers),status:Ae.status,statusText:Ae.statusText,config:d,request:ye})})}catch(Q){throw W&&W(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,d,ye),{cause:Q.cause||Q}):g.from(Q,Q&&Q.code,d,ye)}}},fa=new Map,as=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,a=o,u,l,f=fa;for(;a--;)u=i[a],l=f.get(u),l===void 0&&f.set(u,l=a?new Map:ua(t)),f=l;return l};as();const bn={http:Po,xhr:ra,fetch:{get:as}};c.forEach(bn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ls=e=>`- ${e}`,ca=e=>c.isFunction(e)||e===null||e===!1;function da(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let a;if(s=r,!ca(r)&&(s=bn[(a=String(r)).toLowerCase()],s===void 0))throw new g(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
5
5
  `+o.map(ls).join(`
package/manifest.json CHANGED
@@ -134,7 +134,7 @@
134
134
  }
135
135
  }
136
136
  },
137
- "description": "",
137
+ "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.",
138
138
  "storybookArgs": {
139
139
  "fetch_data": {
140
140
  "control": {
@@ -237,12 +237,13 @@
237
237
  ],
238
238
  "readmePath": "README.md",
239
239
  "name": "hb-uploader",
240
- "category": "basic",
240
+ "category": "utilities",
241
241
  "tags": [
242
- "basic"
242
+ "utilities",
243
+ "files"
243
244
  ],
244
245
  "size": {},
245
246
  "iifePath": "main.iife.js",
246
247
  "repoName": "@htmlbricks/hb-uploader",
247
- "version": "0.65.20"
248
+ "version": "0.65.23"
248
249
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-uploader",
3
- "version": "0.65.20",
3
+ "version": "0.65.23",
4
4
  "contributors": [],
5
- "description": "",
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": [
7
7
  {
8
8
  "type": "Apache-2.0",