@htmlbricks/hb-order-list 0.66.5 → 0.66.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(ln){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Er=1,Sr=2,Mr=16,kr=2,an="[",At="[!",un="[?",Nt="]",Ve={},U=Symbol(),on="http://www.w3.org/1999/xhtml",Tr=!1;var fn=Array.isArray,Dr=Array.prototype.indexOf,Be=Array.prototype.includes,_t=Array.from,pt=Object.keys,mt=Object.defineProperty,We=Object.getOwnPropertyDescriptor,jr=Object.getOwnPropertyDescriptors,Or=Object.prototype,Ar=Array.prototype,cn=Object.getPrototypeOf,dn=Object.isExtensible;const Nr=()=>{};function Cr(e){for(var t=0;t<e.length;t++)e[t]()}function hn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const F=2,Je=4,gt=8,vn=1<<24,xe=16,le=32,Ee=64,Ct=128,Z=512,I=1024,V=2048,fe=4096,G=8192,X=16384,Se=32768,_n=1<<25,rt=65536,pn=1<<17,Rr=1<<18,Le=1<<19,Lr=1<<20,pe=1<<25,Ie=65536,Rt=1<<21,Lt=1<<22,Me=1<<23,It=Symbol("$state"),Ir=Symbol("legacy props"),me=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Yt=3,it=8;function Yr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Pr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Fr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function zr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ur(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function yt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Gr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let N=!1;function Ye(e){N=e}let O;function Q(e){if(e===null)throw yt(),Ve;return O=e}function Pt(){return Q($e(O))}function ce(e){if(N){if($e(O)!==null)throw yt(),Ve;O=e}}function Ft(e=1){if(N){for(var t=e,n=O;t--;)n=$e(n);O=n}}function Ht(e=!0){for(var t=0,n=O;;){if(n.nodeType===it){var r=n.data;if(r===Nt){if(t===0)return n;t-=1}else(r===an||r===At||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=$e(n);e&&n.remove(),n=i}}function Kr(e){if(!e||e.nodeType!==it)throw yt(),Ve;return e.data}function mn(e){return e===this.v}function Zr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function gn(e){return!Zr(e,this.v)}let Xr=!1,ee=null;function Ge(e){ee=e}function yn(e,t=!1,n){ee={p:ee,i:!1,c:null,e:null,s:e,x:null,r:M,l:null}}function wn(e){var t=ee,n=t.e;if(n!==null){t.e=null;for(var r of n)Vn(r)}return e!==void 0&&(t.x=e),t.i=!0,ee=t.p,e??{}}function $n(){return!0}let Pe=[];function bn(){var e=Pe;Pe=[],Cr(e)}function Ke(e){if(Pe.length===0&&!st){var t=Pe;queueMicrotask(()=>{t===Pe&&bn()})}Pe.push(e)}function Qr(){for(;Pe.length>0;)bn()}function xn(e){var t=M;if(t===null)return S.f|=Me,e;if((t.f&Se)===0&&(t.f&Je)===0)throw e;ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Ct)!==0){if((t.f&Se)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ei=-7169;function L(e,t){e.f=e.f&ei|t}function qt(e){(e.f&Z)!==0||e.deps===null?L(e,I):L(e,fe)}function En(e){if(e!==null)for(const t of e)(t.f&F)===0||(t.f&Ie)===0||(t.f^=Ie,En(t.deps))}function Sn(e,t,n){(e.f&V)!==0?t.add(e):(e.f&fe)!==0&&n.add(e),En(e.deps),L(e,I)}const Te=new Set;let j=null,ae=null,zt=null,st=!1,Ut=!1,Ze=null,wt=null;var Mn=0;let ti=1;class ge{id=ti++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#u=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#a=new Map;is_fork=!1;#c=!1;#o=new Set;#d(){return this.is_fork||this.#u.size>0}#v(){for(const r of this.#o)for(const i of r.#u.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)L(r,V),this.schedule(r);for(r of n.m)L(r,fe),this.schedule(r)}}#h(){if(Mn++>1e3&&(Te.delete(this),ni()),!this.#d()){for(const l of this.#r)this.#i.delete(l),L(l,V),this.schedule(l);for(const l of this.#i)L(l,fe),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=Ze=[],r=[],i=wt=[];for(const l of t)try{this.#f(l,n,r)}catch(o){throw On(l),o}if(j=null,i.length>0){var s=ge.ensure();for(const l of i)s.schedule(l)}if(Ze=null,wt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,o]of this.#a)jn(l,o)}else{this.#s.size===0&&Te.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),kn(r),kn(n),this.#l?.resolve()}var a=j;if(this.#t.length>0){const l=a??=this;l.#t.push(...this.#t.filter(o=>!l.#t.includes(o)))}a!==null&&(Te.add(a),a.#h()),Te.has(this)||this.#p()}#f(t,n,r){t.f^=I;for(var i=t.first;i!==null;){var s=i.f,a=(s&(le|Ee))!==0,l=a&&(s&I)!==0,o=l||(s&G)!==0||this.#a.has(i);if(!o&&i.fn!==null){a?i.f^=I:(s&Je)!==0?n.push(i):ot(i)&&((s&xe)!==0&&this.#i.add(i),et(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)Sn(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==U&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Me)===0&&(this.current.set(t,[t.v,r]),ae?.set(t,t.v))}activate(){j=this}deactivate(){j=null,ae=null}flush(){try{Ut=!0,j=this,this.#h()}finally{Mn=0,zt=null,Ze=null,wt=null,Ut=!1,j=null,ae=null,De.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Te.delete(this)}#p(){for(const u of Te){var t=u.id<this.id,n=[];for(const[c,[d,h]]of this.current){if(u.current.has(c)){var r=u.current.get(c)[0];if(t&&d!==r)u.current.set(c,[d,h]);else continue}n.push(c)}var i=[...u.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,a=new Map;for(var l of n)Tn(l,i,s,a);if(u.#t.length>0){u.apply();for(var o of u.#t)u.#f(o,[],[]);u.#t=[]}u.deactivate()}}for(const u of Te)u.#o.has(this)&&(u.#o.delete(this),u.#o.size===0&&!u.#d()&&(u.activate(),u.#h()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#u.get(n)??0;this.#u.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#u.get(n)??0;s===1?this.#u.delete(n):this.#u.set(n,s-1)}this.#c||r||(this.#c=!0,Ke(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=hn()).promise}static ensure(){if(j===null){const t=j=new ge;Ut||(Te.add(j),st||Ke(()=>{j===t&&t.flush()}))}return j}apply(){{ae=null;return}}schedule(t){if(zt=t,t.b?.is_pending&&(t.f&(Je|gt|vn))!==0&&(t.f&Se)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ze!==null&&n===M&&(S===null||(S.f&F)===0))return;if((r&(Ee|le))!==0){if((r&I)===0)return;n.f^=I}}this.#t.push(n)}}function Vt(e){var t=st;st=!0;try{for(var n;;){if(Qr(),j===null)return n;j.flush()}}finally{st=t}}function ni(){try{zr()}catch(e){ke(e,zt)}}let ye=null;function kn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(X|G))===0&&ot(r)&&(ye=new Set,et(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Kn(r),ye?.size>0)){De.clear();for(const i of ye){if((i.f&(X|G))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ye.has(a)&&(ye.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(X|G))===0&&et(o)}}ye.clear()}}ye=null}}function Tn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&F)!==0?Tn(i,t,n,r):(s&(Lt|xe))!==0&&(s&V)===0&&Dn(i,t,r)&&(L(i,V),Bt(i))}}function Dn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Be.call(t,i))return!0;if((i.f&F)!==0&&Dn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Bt(e){j.schedule(e)}function jn(e,t){if(!((e.f&le)!==0&&(e.f&I)!==0)){(e.f&V)!==0?t.d.push(e):(e.f&fe)!==0&&t.m.push(e),L(e,I);for(var n=e.first;n!==null;)jn(n,t),n=n.next}}function On(e){L(e,I);for(var t=e.first;t!==null;)On(t),t=t.next}function ri(e){let t=0,n=Fe(0),r;return()=>{Xt()&&(H(n),Bn(()=>(t===0&&(r=Ti(()=>e(()=>lt(n)))),t+=1,()=>{Ke(()=>{t-=1,t===0&&(r?.(),r=void 0,lt(n))})})))}}var ii=rt|Le;function si(e,t,n,r){new li(e,t,n,r)}class li{parent;is_pending=!1;transform_error;#e;#n=N?O:null;#s;#u;#l;#t=null;#r=null;#i=null;#a=null;#c=0;#o=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=ri(()=>(this.#f=Fe(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#u=s=>{var a=M;a.b=this,a.f|=Ct,r(s)},this.parent=M.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=Jn(()=>{if(N){const s=this.#n;Pt();const a=s.data===At;if(s.data.startsWith(un)){const o=JSON.parse(s.data.slice(un.length));this.#$(o)}else a?this.#b():this.#p()}else this.#y()},ii),N&&(this.#e=O)}#p(){try{this.#t=he(()=>this.#u(this.#e))}catch(t){this.error(t)}}#$(t){const n=this.#s.failed;n&&(this.#i=he(()=>{n(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=he(()=>t(this.#e)),Ke(()=>{var n=this.#a=document.createDocumentFragment(),r=Oe();n.append(r),this.#t=this.#g(()=>he(()=>this.#u(r))),this.#o===0&&(this.#e.before(n),this.#a=null,Qe(this.#r,()=>{this.#r=null}),this.#m(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#o=0,this.#c=0,this.#t=he(()=>{this.#u(this.#e)}),this.#o>0){var t=this.#a=document.createDocumentFragment();er(this.#t,t);const n=this.#s.pending;this.#r=he(()=>n(this.#e))}else this.#m(j)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Sn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#g(t){var n=M,r=S,i=ee;ve(this.#l),ne(this.#l),Ge(this.#l.ctx);try{return ge.ensure(),t()}catch(s){return xn(s),null}finally{ve(n),ne(r),Ge(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#o+=t,this.#o===0&&(this.#m(n),this.#r&&Qe(this.#r,()=>{this.#r=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,Ke(()=>{this.#d=!1,this.#f&&Xe(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),H(this.#f)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(te(this.#t),this.#t=null),this.#r&&(te(this.#r),this.#r=null),this.#i&&(te(this.#i),this.#i=null),N&&(Q(this.#n),Ft(),Q(Ht()));var i=!1,s=!1;const a=()=>{if(i){Gr();return}i=!0,s&&Jr(),this.#i!==null&&Qe(this.#i,()=>{this.#i=null}),this.#g(()=>{this.#y()})},l=o=>{try{s=!0,n?.(o,a),s=!1}catch(u){ke(u,this.#l&&this.#l.parent)}r&&(this.#i=this.#g(()=>{try{return he(()=>{var u=M;u.b=this,u.f|=Ct,r(this.#e,()=>o,()=>a)})}catch(u){return ke(u,this.#l.parent),null}}))};Ke(()=>{var o;try{o=this.transform_error(t)}catch(u){ke(u,this.#l&&this.#l.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(l,u=>ke(u,this.#l&&this.#l.parent)):l(o)})}}function ai(e,t,n,r){const i=bt;var s=e.filter(h=>!h.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=M,l=ui(),o=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function u(h){l();try{r(h)}catch(m){(a.f&X)===0&&ke(m,a)}$t()}if(n.length===0){o.then(()=>u(t.map(i)));return}var c=An();function d(){Promise.all(n.map(h=>oi(h))).then(h=>u([...t.map(i),...h])).catch(h=>ke(h,a)).finally(()=>c())}o?o.then(()=>{l(),d(),$t()}):d()}function ui(){var e=M,t=S,n=ee,r=j;return function(s=!0){ve(e),ne(t),Ge(n),s&&(e.f&X)===0&&(r?.activate(),r?.apply())}}function $t(e=!0){ve(null),ne(null),Ge(null),e&&j?.deactivate()}function An(){var e=M,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function bt(e){var t=F|V,n=S!==null&&(S.f&F)!==0?S:null;return M!==null&&(M.f|=Le),{ctx:ee,deps:null,effects:null,equals:mn,f:t,fn:e,reactions:null,rv:0,v:U,wv:0,parent:n??M,ac:null}}function oi(e,t,n){let r=M;r===null&&Yr();var i=void 0,s=Fe(U),a=!S,l=new Map;return xi(()=>{var o=M,u=hn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally($t)}catch(m){u.reject(m),$t()}var c=j;if(a){if((o.f&Se)!==0)var d=An();if(r.b.is_rendered())l.get(c)?.reject(me),l.delete(c);else{for(const m of l.values())m.reject(me);l.clear()}l.set(c,u)}const h=(m,f=void 0)=>{if(d){var x=f===me;d(x)}if(!(f===me||(o.f&X)!==0)){if(c.activate(),f)s.f|=Me,Xe(s,f);else{(s.f&Me)!==0&&(s.f^=Me),Xe(s,m);for(const[k,T]of l){if(l.delete(k),k===c)break;T.reject(me)}}c.deactivate()}};u.promise.then(h,m=>h(null,m||"unknown"))}),gi(()=>{for(const o of l.values())o.reject(me)}),new Promise(o=>{function u(c){function d(){c===i?o(s):u(i)}c.then(d,d)}u(i)})}function Wt(e){const t=bt(e);return nr(t),t}function fi(e){const t=bt(e);return t.equals=gn,t}function ci(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)te(t[n])}}function di(e){for(var t=e.parent;t!==null;){if((t.f&F)===0)return(t.f&X)===0?t:null;t=t.parent}return null}function Jt(e){var t,n=M;ve(di(e));try{e.f&=~Ie,ci(e),t=ar(e)}finally{ve(n)}return t}function Nn(e){var t=e.v,n=Jt(e);if(!e.equals(n)&&(e.wv=sr(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){L(e,I);return}Ae||(ae!==null?(Xt()||j?.is_fork)&&ae.set(e,n):qt(e))}function hi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(me),t.teardown=Nr,t.ac=null,ft(t,0),Qt(t))}function Cn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&et(t)}let Gt=new Set;const De=new Map;let Rn=!1;function Fe(e,t){var n={f:0,v:e,reactions:null,equals:mn,rv:0,wv:0};return n}function je(e,t){const n=Fe(e);return nr(n),n}function Ln(e,t=!1,n=!0){const r=Fe(e);return t||(r.equals=gn),r}function we(e,t,n=!1){S!==null&&(!ue||(S.f&pn)!==0)&&$n()&&(S.f&(F|xe|Lt|pn))!==0&&(re===null||!Be.call(re,e))&&Wr();let r=n?at(t):t;return Xe(e,r,wt)}function Xe(e,t,n=null){if(!e.equals(t)){var r=e.v;Ae?De.set(e,t):De.set(e,r),e.v=t;var i=ge.ensure();if(i.capture(e,r),(e.f&F)!==0){const s=e;(e.f&V)!==0&&Jt(s),ae===null&&qt(s)}e.wv=sr(),In(e,V,n),M!==null&&(M.f&I)!==0&&(M.f&(le|Ee))===0&&(ie===null?Mi([e]):ie.push(e)),!i.is_fork&&Gt.size>0&&!Rn&&vi()}return t}function vi(){Rn=!1;for(const e of Gt)(e.f&I)!==0&&L(e,fe),ot(e)&&et(e);Gt.clear()}function lt(e){we(e,e.v+1)}function In(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],l=a.f,o=(l&V)===0;if(o&&L(a,t),(l&F)!==0){var u=a;ae?.delete(u),(l&Ie)===0&&(l&Z&&(a.f|=Ie),In(u,fe,n))}else if(o){var c=a;(l&xe)!==0&&ye!==null&&ye.add(c),n!==null?n.push(c):Bt(c)}}}function at(e){if(typeof e!="object"||e===null||It in e)return e;const t=cn(e);if(t!==Or&&t!==Ar)return e;var n=new Map,r=fn(e),i=je(0),s=qe,a=l=>{if(qe===s)return l();var o=S,u=qe;ne(null),ir(s);var c=l();return ne(o),ir(u),c};return r&&n.set("length",je(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Vr();var c=n.get(o);return c===void 0?a(()=>{var d=je(u.value);return n.set(o,d),d}):we(c,u.value,!0),!0},deleteProperty(l,o){var u=n.get(o);if(u===void 0){if(o in l){const c=a(()=>je(U));n.set(o,c),lt(i)}}else we(u,U),lt(i);return!0},get(l,o,u){if(o===It)return e;var c=n.get(o),d=o in l;if(c===void 0&&(!d||We(l,o)?.writable)&&(c=a(()=>{var m=at(d?l[o]:U),f=je(m);return f}),n.set(o,c)),c!==void 0){var h=H(c);return h===U?void 0:h}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var c=n.get(o);c&&(u.value=H(c))}else if(u===void 0){var d=n.get(o),h=d?.v;if(d!==void 0&&h!==U)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(l,o){if(o===It)return!0;var u=n.get(o),c=u!==void 0&&u.v!==U||Reflect.has(l,o);if(u!==void 0||M!==null&&(!c||We(l,o)?.writable)){u===void 0&&(u=a(()=>{var h=c?at(l[o]):U,m=je(h);return m}),n.set(o,u));var d=H(u);if(d===U)return!1}return c},set(l,o,u,c){var d=n.get(o),h=o in l;if(r&&o==="length")for(var m=u;m<d.v;m+=1){var f=n.get(m+"");f!==void 0?we(f,U):m in l&&(f=a(()=>je(U)),n.set(m+"",f))}if(d===void 0)(!h||We(l,o)?.writable)&&(d=a(()=>je(void 0)),we(d,at(u)),n.set(o,d));else{h=d.v!==U;var x=a(()=>at(u));we(d,x)}var k=Reflect.getOwnPropertyDescriptor(l,o);if(k?.set&&k.set.call(c,u),!h){if(r&&typeof o=="string"){var T=n.get("length"),y=Number(o);Number.isInteger(y)&&y>=T.v&&we(T,y+1)}lt(i)}return!0},ownKeys(l){H(i);var o=Reflect.ownKeys(l).filter(d=>{var h=n.get(d);return h===void 0||h.v!==U});for(var[u,c]of n)c.v!==U&&!(u in l)&&o.push(u);return o},setPrototypeOf(){Br()}})}var Yn,Pn,Fn,Hn;function Kt(){if(Yn===void 0){Yn=window,Pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fn=We(t,"firstChild").get,Hn=We(t,"nextSibling").get,dn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),dn(n)&&(n.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function ut(e){return Fn.call(e)}function $e(e){return Hn.call(e)}function be(e,t){if(!N)return ut(e);var n=ut(O);if(n===null)n=O.appendChild(Oe());else if(t&&n.nodeType!==Yt){var r=Oe();return n?.before(r),Q(r),r}return t&&zn(n),Q(n),n}function xt(e,t=1,n=!1){let r=N?O:e;for(var i;t--;)i=r,r=$e(r);if(!N)return r;if(n){if(r?.nodeType!==Yt){var s=Oe();return r===null?i?.after(s):r.before(s),Q(s),s}zn(r)}return Q(r),r}function qn(e){e.textContent=""}function _i(){return!1}function Zt(e,t,n){return document.createElementNS(on,e,void 0)}function zn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Yt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Un(e){var t=S,n=M;ne(null),ve(null);try{return e()}finally{ne(t),ve(n)}}function pi(e){M===null&&(S===null&&qr(),Hr()),Ae&&Fr()}function mi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function de(e,t){var n=M;n!==null&&(n.f&G)!==0&&(e|=G);var r={ctx:ee,deps:null,nodes:null,f:e|V|Z,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Je)!==0)Ze!==null?Ze.push(r):ge.ensure().schedule(r);else if(t!==null){try{et(r)}catch(a){throw te(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Le)===0&&(i=i.first,(e&xe)!==0&&(e&rt)!==0&&i!==null&&(i.f|=rt))}if(i!==null&&(i.parent=n,n!==null&&mi(i,n),S!==null&&(S.f&F)!==0&&(e&Ee)===0)){var s=S;(s.effects??=[]).push(i)}return r}function Xt(){return S!==null&&!ue}function gi(e){const t=de(gt,null);return L(t,I),t.teardown=e,t}function yi(e){pi();var t=M.f,n=!S&&(t&le)!==0&&(t&Se)===0;if(n){var r=ee;(r.e??=[]).push(e)}else return Vn(e)}function Vn(e){return de(Je|Lr,e)}function wi(e){ge.ensure();const t=de(Ee|Le,e);return()=>{te(t)}}function $i(e){ge.ensure();const t=de(Ee|Le,e);return(n={})=>new Promise(r=>{n.outro?Qe(t,()=>{te(t),r(void 0)}):(te(t),r(void 0))})}function bi(e){return de(Je,e)}function xi(e){return de(Lt|Le,e)}function Bn(e,t=0){return de(gt|t,e)}function Wn(e,t=[],n=[],r=[]){ai(r,t,n,i=>{de(gt,()=>e(...i.map(H)))})}function Jn(e,t=0){var n=de(xe|t,e);return n}function he(e){return de(le|Le,e)}function Gn(e){var t=e.teardown;if(t!==null){const n=Ae,r=S;tr(!0),ne(null);try{t.call(null)}finally{tr(n),ne(r)}}}function Qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Un(()=>{i.abort(me)});var r=n.next;(n.f&Ee)!==0?n.parent=null:te(n,t),n=r}}function Ei(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&le)===0&&te(t),t=n}}function te(e,t=!0){var n=!1;(t||(e.f&Rr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Si(e.nodes.start,e.nodes.end),n=!0),L(e,_n),Qt(e,t&&!n),ft(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Gn(e),e.f^=_n,e.f|=X;var i=e.parent;i!==null&&i.first!==null&&Kn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Si(e,t){for(;e!==null;){var n=e===t?null:$e(e);e.remove(),e=n}}function Kn(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 Qe(e,t,n=!0){var r=[];Zn(e,r,!0);var i=()=>{n&&te(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var l of r)l.out(a)}else i()}function Zn(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&rt)!==0||(i.f&le)!==0&&(e.f&xe)!==0;Zn(i,t,a?n:!1),i=s}}}function Xn(e){Qn(e,!0)}function Qn(e,t){if((e.f&G)!==0){e.f^=G,(e.f&I)===0&&(L(e,V),ge.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&rt)!==0||(n.f&le)!==0;Qn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function er(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:$e(n);t.append(n),n=i}}let Et=!1,Ae=!1;function tr(e){Ae=e}let S=null,ue=!1;function ne(e){S=e}let M=null;function ve(e){M=e}let re=null;function nr(e){S!==null&&(re===null?re=[e]:re.push(e))}let W=null,K=0,ie=null;function Mi(e){ie=e}let rr=1,He=0,qe=He;function ir(e){qe=e}function sr(){return++rr}function ot(e){var t=e.f;if((t&V)!==0)return!0;if(t&F&&(e.f&=~Ie),(t&fe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(ot(s)&&Nn(s),s.wv>e.wv)return!0}(t&Z)!==0&&ae===null&&L(e,I)}return!1}function lr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(re!==null&&Be.call(re,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&F)!==0?lr(s,t,!1):t===s&&(n?L(s,V):(s.f&I)!==0&&L(s,fe),Bt(s))}}function ar(e){var t=W,n=K,r=ie,i=S,s=re,a=ee,l=ue,o=qe,u=e.f;W=null,K=0,ie=null,S=(u&(le|Ee))===0?e:null,re=null,Ge(e.ctx),ue=!1,qe=++He,e.ac!==null&&(Un(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=Rt;var c=e.fn,d=c();e.f|=Se;var h=e.deps,m=j?.is_fork;if(W!==null){var f;if(m||ft(e,K),h!==null&&K>0)for(h.length=K+W.length,f=0;f<W.length;f++)h[K+f]=W[f];else e.deps=h=W;if(Xt()&&(e.f&Z)!==0)for(f=K;f<h.length;f++)(h[f].reactions??=[]).push(e)}else!m&&h!==null&&K<h.length&&(ft(e,K),h.length=K);if($n()&&ie!==null&&!ue&&h!==null&&(e.f&(F|fe|V))===0)for(f=0;f<ie.length;f++)lr(ie[f],e);if(i!==null&&i!==e){if(He++,i.deps!==null)for(let x=0;x<n;x+=1)i.deps[x].rv=He;if(t!==null)for(const x of t)x.rv=He;ie!==null&&(r===null?r=ie:r.push(...ie))}return(e.f&Me)!==0&&(e.f^=Me),d}catch(x){return xn(x)}finally{e.f^=Rt,W=t,K=n,ie=r,S=i,re=s,Ge(a),ue=l,qe=o}}function ki(e,t){let n=t.reactions;if(n!==null){var r=Dr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&F)!==0&&(W===null||!Be.call(W,t))){var s=t;(s.f&Z)!==0&&(s.f^=Z,s.f&=~Ie),qt(s),hi(s),ft(s,0)}}function ft(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ki(e,n[r])}function et(e){var t=e.f;if((t&X)===0){L(e,I);var n=M,r=Et;M=e,Et=!0;try{(t&(xe|vn))!==0?Ei(e):Qt(e),Gn(e);var i=ar(e);e.teardown=typeof i=="function"?i:null,e.wv=rr;var s;Tr&&Xr&&(e.f&V)!==0&&e.deps}finally{Et=r,M=n}}}function H(e){var t=e.f,n=(t&F)!==0;if(S!==null&&!ue){var r=M!==null&&(M.f&X)!==0;if(!r&&(re===null||!Be.call(re,e))){var i=S.deps;if((S.f&Rt)!==0)e.rv<He&&(e.rv=He,W===null&&i!==null&&i[K]===e?K++:W===null?W=[e]:W.push(e));else{(S.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[S]:Be.call(s,S)||s.push(S)}}}if(Ae&&De.has(e))return De.get(e);if(n){var a=e;if(Ae){var l=a.v;return((a.f&I)===0&&a.reactions!==null||or(a))&&(l=Jt(a)),De.set(a,l),l}var o=(a.f&Z)===0&&!ue&&S!==null&&(Et||(S.f&Z)!==0),u=(a.f&Se)===0;ot(a)&&(o&&(a.f|=Z),Nn(a)),o&&!u&&(Cn(a),ur(a))}if(ae?.has(e))return ae.get(e);if((e.f&Me)!==0)throw e.v;return e.v}function ur(e){if(e.f|=Z,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&F)!==0&&(t.f&Z)===0&&(Cn(t),ur(t))}function or(e){if(e.v===U)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(De.has(t)||(t.f&F)!==0&&or(t))return!0;return!1}function Ti(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const St=Symbol("events"),Di=new Set,fr=new Set;let cr=null;function dr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;cr=e;var a=0,l=cr===e&&e[St];if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e[St]=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){mt(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=S,d=M;ne(null),ve(null);try{for(var h,m=[];s!==null;){var f=s.assignedSlot||s.parentNode||s.host||null;try{var x=s[St]?.[r];x!=null&&(!s.disabled||e.target===s)&&x.call(s,e)}catch(k){h?m.push(k):h=k}if(e.cancelBubble||f===t||f===null)break;s=f}if(h){for(let k of m)queueMicrotask(()=>{throw k});throw h}}finally{e[St]=t,delete e.currentTarget,ne(c),ve(d)}}}const ji=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Oi(e){return ji?.createHTML(e)??e}function Ai(e){var t=Zt("template");return t.innerHTML=Oi(e.replaceAll("<!>","<!---->")),t.content}function en(e,t){var n=M;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function hr(e,t){var n=(t&kr)!==0,r,i=!e.startsWith("<!>");return()=>{if(N)return en(O,null),O;r===void 0&&(r=Ai(i?e:"<!>"+e),r=ut(r));var s=n||Pn?document.importNode(r,!0):r.cloneNode(!0);return en(s,s),s}}function tn(e,t){if(N){var n=M;((n.f&Se)===0||n.nodes.end===null)&&(n.nodes.end=O),Pt();return}e!==null&&e.before(t)}const Ni=["touchstart","touchmove"];function Ci(e){return Ni.includes(e)}function nn(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function vr(e,t){return _r(e,t)}function Ri(e,t){Kt(),t.intro=t.intro??!1;const n=t.target,r=N,i=O;try{for(var s=ut(n);s&&(s.nodeType!==it||s.data!==an);)s=$e(s);if(!s)throw Ve;Ye(!0),Q(s);const a=_r(e,{...t,anchor:s});return Ye(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ve&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Ur(),Kt(),qn(n),Ye(!1),vr(e,t)}finally{Ye(r),Q(i)}}const Mt=new Map;function _r(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){Kt();var o=void 0,u=$i(()=>{var c=n??t.appendChild(Oe());si(c,{pending:()=>{}},m=>{yn({});var f=ee;if(s&&(f.c=s),i&&(r.$$events=i),N&&en(m,null),o=e(m,r)||{},N&&(M.nodes.end=O,O===null||O.nodeType!==it||O.data!==Nt))throw yt(),Ve;wn()},l);var d=new Set,h=m=>{for(var f=0;f<m.length;f++){var x=m[f];if(!d.has(x)){d.add(x);var k=Ci(x);for(const C of[t,document]){var T=Mt.get(C);T===void 0&&(T=new Map,Mt.set(C,T));var y=T.get(x);y===void 0?(C.addEventListener(x,dr,{passive:k}),T.set(x,1)):T.set(x,y+1)}}}};return h(_t(Di)),fr.add(h),()=>{for(var m of d)for(const k of[t,document]){var f=Mt.get(k),x=f.get(m);--x==0?(k.removeEventListener(m,dr),f.delete(m),f.size===0&&Mt.delete(k)):f.set(m,x)}fr.delete(h),c!==n&&c.parentNode?.removeChild(c)}});return rn.set(o,u),o}let rn=new WeakMap;function Li(e,t){const n=rn.get(e);return n?(rn.delete(e),n(t)):Promise.resolve()}function Ii(e,t,n){for(var r=[],i=t.length,s,a=t.length,l=0;l<i;l++){let d=t[l];Qe(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var h=e.outrogroups;sn(e,_t(s.done)),h.delete(s),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=r.length===0&&n!==null;if(o){var u=n,c=u.parentNode;qn(c),c.append(u),e.items.clear()}sn(e,t,!o)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function sn(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const l of a)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=pe;const a=document.createDocumentFragment();er(s,a)}else te(t[i],n)}}var pr;function Yi(e,t,n,r,i,s=null){var a=e,l=new Map;{var o=e;a=N?Q(ut(o)):o.appendChild(Oe())}N&&Pt();var u=null,c=fi(()=>{var y=n();return fn(y)?y:y==null?[]:_t(y)}),d,h=new Map,m=!0;function f(y){(T.effect.f&X)===0&&(T.pending.delete(y),T.fallback=u,Pi(T,d,a,t,r),u!==null&&(d.length===0?(u.f&pe)===0?Xn(u):(u.f^=pe,dt(u,null,a)):Qe(u,()=>{u=null})))}function x(y){T.pending.delete(y)}var k=Jn(()=>{d=H(c);var y=d.length;let C=!1;if(N){var oe=Kr(a)===At;oe!==(y===0)&&(a=Ht(),Q(a),Ye(!1),C=!0)}for(var q=new Set,Y=j,_e=_i(),P=0;P<y;P+=1){N&&O.nodeType===it&&O.data===Nt&&(a=O,C=!0,Ye(!1));var Ce=d[P],A=r(Ce,P),E=m?null:l.get(A);E?(E.v&&Xe(E.v,Ce),E.i&&Xe(E.i,P),_e&&Y.unskip_effect(E.e)):(E=Fi(l,m?a:pr??=Oe(),Ce,A,P,i,t,n),m||(E.e.f|=pe),l.set(A,E)),q.add(A)}if(y===0&&s&&!u&&(m?u=he(()=>s(a)):(u=he(()=>s(pr??=Oe())),u.f|=pe)),y>q.size&&Pr(),N&&y>0&&Q(Ht()),!m)if(h.set(Y,q),_e){for(const[tt,jt]of l)q.has(tt)||Y.skip_effect(jt.e);Y.oncommit(f),Y.ondiscard(x)}else f(Y);C&&Ye(!0),H(c)}),T={effect:k,items:l,pending:h,outrogroups:null,fallback:u};m=!1,N&&(a=O)}function ct(e){for(;e!==null&&(e.f&le)===0;)e=e.next;return e}function Pi(e,t,n,r,i){var s=t.length,a=e.items,l=ct(e.effect.first),o,u=null,c=[],d=[],h,m,f,x;for(x=0;x<s;x+=1){if(h=t[x],m=i(h,x),f=a.get(m).e,e.outrogroups!==null)for(const P of e.outrogroups)P.pending.delete(f),P.done.delete(f);if((f.f&G)!==0&&Xn(f),(f.f&pe)!==0)if(f.f^=pe,f===l)dt(f,null,n);else{var k=u?u.next:l;f===e.effect.last&&(e.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),Ne(e,u,f),Ne(e,f,k),dt(f,k,n),u=f,c=[],d=[],l=ct(u.next);continue}if(f!==l){if(o!==void 0&&o.has(f)){if(c.length<d.length){var T=d[0],y;u=T.prev;var C=c[0],oe=c[c.length-1];for(y=0;y<c.length;y+=1)dt(c[y],T,n);for(y=0;y<d.length;y+=1)o.delete(d[y]);Ne(e,C.prev,oe.next),Ne(e,u,C),Ne(e,oe,T),l=T,u=oe,x-=1,c=[],d=[]}else o.delete(f),dt(f,l,n),Ne(e,f.prev,f.next),Ne(e,f,u===null?e.effect.first:u.next),Ne(e,u,f),u=f;continue}for(c=[],d=[];l!==null&&l!==f;)(o??=new Set).add(l),d.push(l),l=ct(l.next);if(l===null)continue}(f.f&pe)===0&&c.push(f),u=f,l=ct(f.next)}if(e.outrogroups!==null){for(const P of e.outrogroups)P.pending.size===0&&(sn(e,_t(P.done)),e.outrogroups?.delete(P));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||o!==void 0){var q=[];if(o!==void 0)for(f of o)(f.f&G)===0&&q.push(f);for(;l!==null;)(l.f&G)===0&&l!==e.fallback&&q.push(l),l=ct(l.next);var Y=q.length;if(Y>0){var _e=s===0?n:null;Ii(e,q,_e)}}}function Fi(e,t,n,r,i,s,a,l){var o=(a&Er)!==0?(a&Mr)===0?Ln(n,!1,!1):Fe(n):null,u=(a&Sr)!==0?Fe(i):null;return{v:o,i:u,e:he(()=>(s(t,o??n,u??i,l),()=>{e.delete(r)}))}}function dt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&pe)===0?t.nodes.start:n;r!==null;){var a=$e(r);if(s.before(r),r===i)return;r=a}}function Ne(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Hi(e,t){bi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Zt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const qi=Symbol("is custom element"),zi=Symbol("is html");function Ui(e,t,n,r){var i=Vi(e);if(N){i[t]=e.getAttribute(t);return}i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Bi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Vi(e){return e.__attributes??={[qi]:e.nodeName.includes("-"),[zi]:e.namespaceURI===on}}var mr=new Map;function Bi(e){var t=e.getAttribute("is")||e.nodeName,n=mr.get(t);if(n)return n;mr.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=jr(i);for(var a in r)r[a].set&&n.push(a);i=cn(i)}return n}function gr(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var h=e[t];return h===void 0?a():(s=!0,h)};var u=!1,c=bt(()=>(u=!1,o())),d=M;return(function(h,m){if(arguments.length>0){const f=m?H(c):h;return we(c,f),u=!0,i!==void 0&&(i=f),h}return Ae&&u||(d.f&X)!==0?c.v:H(c)})}function Wi(e){return new Ji(e)}class Ji{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var l=Ln(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return H(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Ir?!0:(H(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return we(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#n=(t.hydrate?Ri:vr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Vt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||mt(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Li(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let yr;typeof HTMLElement=="function"&&(yr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}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 i=>{const s=Zt("slot");r!=="default"&&(s.name=r),tn(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Gi(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 i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=kt(i,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=Wi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wi(()=>{Bn(()=>{this.$$r=!0;for(const r of pt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=kt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=kt(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 pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function kt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Gi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ki(e,t,n,r,i,s){let a=class extends yr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return pt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return pt(t).forEach(l=>{mt(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=kt(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var c=We(u,l)?.get;c?u[l]=o:u.$set({[l]:o})}}})}),r.forEach(l=>{mt(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var Tt={exports:{}},Zi=Tt.exports,wr;function $r(){return wr||(wr=1,(function(e,t){(function(n,r){e.exports=r()})(Zi,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",o="hour",u="day",c="week",d="month",h="quarter",m="year",f="date",x="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var p=["th","st","nd","rd"],v=w%100;return"["+w+(p[(v-20)%10]||p[v]||p[0])+"]"}},C=function(w,p,v){var g=String(w);return!g||g.length>=p?w:""+Array(p+1-g.length).join(v)+w},oe={s:C,z:function(w){var p=-w.utcOffset(),v=Math.abs(p),g=Math.floor(v/60),_=v%60;return(p<=0?"+":"-")+C(g,2,"0")+":"+C(_,2,"0")},m:function w(p,v){if(p.date()<v.date())return-w(v,p);var g=12*(v.year()-p.year())+(v.month()-p.month()),_=p.clone().add(g,d),$=v-_<0,b=p.clone().add(g+($?-1:1),d);return+(-(g+(v-_)/($?_-b:b-_))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:d,y:m,w:c,d:u,D:f,h:o,m:l,s:a,ms:s,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},q="en",Y={};Y[q]=y;var _e="$isDayjsObject",P=function(w){return w instanceof tt||!(!w||!w[_e])},Ce=function w(p,v,g){var _;if(!p)return q;if(typeof p=="string"){var $=p.toLowerCase();Y[$]&&(_=$),v&&(Y[$]=v,_=$);var b=p.split("-");if(!_&&b.length>1)return w(b[0])}else{var D=p.name;Y[D]=p,_=D}return!g&&_&&(q=_),_||!g&&q},A=function(w,p){if(P(w))return w.clone();var v=typeof p=="object"?p:{};return v.date=w,v.args=arguments,new tt(v)},E=oe;E.l=Ce,E.i=P,E.w=function(w,p){return A(w,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var tt=(function(){function w(v){this.$L=Ce(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[_e]=!0}var p=w.prototype;return p.parse=function(v){this.$d=(function(g){var _=g.date,$=g.utc;if(_===null)return new Date(NaN);if(E.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var b=_.match(k);if(b){var D=b[2]-1||0,R=(b[7]||"0").substring(0,3);return $?new Date(Date.UTC(b[1],D,b[3]||1,b[4]||0,b[5]||0,b[6]||0,R)):new Date(b[1],D,b[3]||1,b[4]||0,b[5]||0,b[6]||0,R)}}return new Date(_)})(v),this.init()},p.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},p.$utils=function(){return E},p.isValid=function(){return this.$d.toString()!==x},p.isSame=function(v,g){var _=A(v);return this.startOf(g)<=_&&_<=this.endOf(g)},p.isAfter=function(v,g){return A(v)<this.startOf(g)},p.isBefore=function(v,g){return this.endOf(g)<A(v)},p.$g=function(v,g,_){return E.u(v)?this[g]:this.set(_,v)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(v,g){var _=this,$=!!E.u(g)||g,b=E.p(v),D=function(Ue,J){var Re=E.w(_.$u?Date.UTC(_.$y,J,Ue):new Date(_.$y,J,Ue),_);return $?Re:Re.endOf(u)},R=function(Ue,J){return E.w(_.toDate()[Ue].apply(_.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(J)),_)},z=this.$W,B=this.$M,se=this.$D,nt="set"+(this.$u?"UTC":"");switch(b){case m:return $?D(1,0):D(31,11);case d:return $?D(1,B):D(0,B+1);case c:var ze=this.$locale().weekStart||0,ht=(z<ze?z+7:z)-ze;return D($?se-ht:se+(6-ht),B);case u:case f:return R(nt+"Hours",0);case o:return R(nt+"Minutes",1);case l:return R(nt+"Seconds",2);case a:return R(nt+"Milliseconds",3);default:return this.clone()}},p.endOf=function(v){return this.startOf(v,!1)},p.$set=function(v,g){var _,$=E.p(v),b="set"+(this.$u?"UTC":""),D=(_={},_[u]=b+"Date",_[f]=b+"Date",_[d]=b+"Month",_[m]=b+"FullYear",_[o]=b+"Hours",_[l]=b+"Minutes",_[a]=b+"Seconds",_[s]=b+"Milliseconds",_)[$],R=$===u?this.$D+(g-this.$W):g;if($===d||$===m){var z=this.clone().set(f,1);z.$d[D](R),z.init(),this.$d=z.set(f,Math.min(this.$D,z.daysInMonth())).$d}else D&&this.$d[D](R);return this.init(),this},p.set=function(v,g){return this.clone().$set(v,g)},p.get=function(v){return this[E.p(v)]()},p.add=function(v,g){var _,$=this;v=Number(v);var b=E.p(g),D=function(B){var se=A($);return E.w(se.date(se.date()+Math.round(B*v)),$)};if(b===d)return this.set(d,this.$M+v);if(b===m)return this.set(m,this.$y+v);if(b===u)return D(1);if(b===c)return D(7);var R=(_={},_[l]=r,_[o]=i,_[a]=n,_)[b]||1,z=this.$d.getTime()+v*R;return E.w(z,this)},p.subtract=function(v,g){return this.add(-1*v,g)},p.format=function(v){var g=this,_=this.$locale();if(!this.isValid())return _.invalidDate||x;var $=v||"YYYY-MM-DDTHH:mm:ssZ",b=E.z(this),D=this.$H,R=this.$m,z=this.$M,B=_.weekdays,se=_.months,nt=_.meridiem,ze=function(J,Re,vt,Ot){return J&&(J[Re]||J(g,$))||vt[Re].slice(0,Ot)},ht=function(J){return E.s(D%12||12,J,"0")},Ue=nt||function(J,Re,vt){var Ot=J<12?"AM":"PM";return vt?Ot.toLowerCase():Ot};return $.replace(T,(function(J,Re){return Re||(function(vt){switch(vt){case"YY":return String(g.$y).slice(-2);case"YYYY":return E.s(g.$y,4,"0");case"M":return z+1;case"MM":return E.s(z+1,2,"0");case"MMM":return ze(_.monthsShort,z,se,3);case"MMMM":return ze(se,z);case"D":return g.$D;case"DD":return E.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return ze(_.weekdaysMin,g.$W,B,2);case"ddd":return ze(_.weekdaysShort,g.$W,B,3);case"dddd":return B[g.$W];case"H":return String(D);case"HH":return E.s(D,2,"0");case"h":return ht(1);case"hh":return ht(2);case"a":return Ue(D,R,!0);case"A":return Ue(D,R,!1);case"m":return String(R);case"mm":return E.s(R,2,"0");case"s":return String(g.$s);case"ss":return E.s(g.$s,2,"0");case"SSS":return E.s(g.$ms,3,"0");case"Z":return b}return null})(J)||b.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(v,g,_){var $,b=this,D=E.p(g),R=A(v),z=(R.utcOffset()-this.utcOffset())*r,B=this-R,se=function(){return E.m(b,R)};switch(D){case m:$=se()/12;break;case d:$=se();break;case h:$=se()/3;break;case c:$=(B-z)/6048e5;break;case u:$=(B-z)/864e5;break;case o:$=B/i;break;case l:$=B/r;break;case a:$=B/n;break;default:$=B}return _?$:E.a($)},p.daysInMonth=function(){return this.endOf(d).$D},p.$locale=function(){return Y[this.$L]},p.locale=function(v,g){if(!v)return this.$L;var _=this.clone(),$=Ce(v,g,!0);return $&&(_.$L=$),_},p.clone=function(){return E.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},w})(),jt=tt.prototype;return A.prototype=jt,[["$ms",s],["$s",a],["$m",l],["$H",o],["$W",u],["$M",d],["$y",m],["$D",f]].forEach((function(w){jt[w[1]]=function(p){return this.$g(p,w[0],w[1])}})),A.extend=function(w,p){return w.$i||(w(p,tt,A),w.$i=!0),A},A.locale=Ce,A.isDayjs=P,A.unix=function(w){return A(1e3*w)},A.en=Y[q],A.Ls=Y,A.p={},A}))})(Tt)),Tt.exports}$r();var Dt={exports:{}},Xi=Dt.exports,br;function Qi(){return br||(br=1,(function(e,t){(function(n,r){e.exports=r($r())})(Xi,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return i.default.locale(s,null,!0),s}))})(Dt)),Dt.exports}Qi();var es=hr('<div class="o_item row svelte-1y1ji7r"><div class="col-9 svelte-1y1ji7r"><img part="item_image" class="o_item_image svelte-1y1ji7r" alt=""/> <span class="o_item_desc svelte-1y1ji7r"> </span></div> <div class="col-3 text-center svelte-1y1ji7r">quantity</div></div>'),ts=hr('<div class="container svelte-1y1ji7r"><div class="row svelte-1y1ji7r" id="o_header"><div class="col-10 svelte-1y1ji7r"><span id="o_number" class="svelte-1y1ji7r"> </span></div> <div id="o_tracking" class="col-2 svelte-1y1ji7r">tracking</div></div> <div id="o_items" class="svelte-1y1ji7r"></div> <div class="row svelte-1y1ji7r" id="o_footer"><div class="col-3 text-center svelte-1y1ji7r">cancel</div> <div class="col-6 svelte-1y1ji7r">bbb</div> <div class="col-3 text-center svelte-1y1ji7r"> </div></div></div>');const ns={hash:"svelte-1y1ji7r",code:`@charset "UTF-8";
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var n={},r=Symbol(),i=`http://www.w3.org/1999/xhtml`,a=Array.isArray,o=Array.prototype.indexOf,s=Array.prototype.includes,c=Array.from,l=Object.keys,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,p=Object.prototype,m=Array.prototype,h=Object.getPrototypeOf,g=Object.isExtensible,_=()=>{};function v(e){for(var t=0;t<e.length;t++)e[t]()}function y(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var b=1024,x=2048,S=4096,C=8192,w=16384,T=32768,ee=1<<25,te=65536,ne=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),E=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},fe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function pe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function he(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function _e(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ve(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ye(){throw Error(`https://svelte.dev/e/hydration_failed`)}function be(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function xe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function we(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Te(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ee(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var D=!1;function De(e){D=e}var O;function k(e){if(e===null)throw Te(),n;return O=e}function Oe(){return k(z(O))}function A(e){if(D){if(z(O)!==null)throw Te(),n;O=e}}function ke(e=1){if(D){for(var t=e,n=O;t--;)n=z(n);O=n}}function Ae(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function je(e){if(!e||e.nodeType!==8)throw Te(),n;return e.data}function Me(e){return e===this.v}function Ne(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Pe(e){return!Ne(e,this.v)}var Fe=!1,Ie=!1,j=null;function Le(e){j=e}function Re(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:q,l:Ie&&!t?{s:null,u:null,$:[]}:null}}function ze(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)ln(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Be(){return!Ie||j!==null&&j.l===null}var Ve=[];function He(){var e=Ve;Ve=[],v(e)}function Ue(e){if(Ve.length===0&&!et){var t=Ve;queueMicrotask(()=>{t===Ve&&He()})}Ve.push(e)}function We(){for(;Ve.length>0;)He()}function Ge(e){var t=q;if(t===null)return W.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;M(e,t)}function M(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ke=~(x|S|b);function N(e,t){e.f=e.f&Ke|t}function qe(e){e.f&512||e.deps===null?N(e,b):N(e,S)}function Je(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,Je(t.deps))}function Ye(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Je(e.deps),N(e,b)}var Xe=!1,Ze=!1;function Qe(e){var t=Ze;try{return Ze=!1,[e(),Ze]}finally{Ze=t}}var P=new Set,F=null,I=null,$e=null,et=!1,tt=!1,nt=null,rt=null,it=0,at=1,ot=class e{id=at++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)N(n,x),this.schedule(n);for(n of t.m)N(n,S),this.schedule(n)}}#p(){if(it++>1e3&&(P.delete(this),ct()),!this.#d()){for(let e of this.#o)this.#s.delete(e),N(e,x),this.schedule(e);for(let e of this.#s)N(e,S),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=nt=[],r=[],i=rt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw mt(e),t}if(F=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(nt=null,rt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)pt(e,t)}else{this.#n.size===0&&P.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),lt(r),lt(n),this.#i?.resolve()}var o=F;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(P.add(o),o.#p()),P.has(this)||this.#g()}#m(e,t,n){e.f^=b;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=b:i&4?t.push(r):Fe&&i&16777224?n.push(r):Rn(r)&&(i&16&&this.#s.add(r),Un(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ye(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==r&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),I?.set(e,e.v))}activate(){F=this}deactivate(){F=null,I=null}flush(){try{tt=!0,F=this,this.#p()}finally{it=0,$e=null,nt=null,rt=null,tt=!1,F=null,I=null,Pt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),P.delete(this)}#g(){for(let c of P){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ut(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of P)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ue(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=y()).promise}static ensure(){if(F===null){let t=F=new e;tt||(P.add(F),et||Ue(()=>{F===t&&t.flush()}))}return F}apply(){if(!Fe||!this.is_fork&&P.size===1){I=null;return}I=new Map;for(let[e,[t]]of this.current)I.set(e,t);for(let n of P)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)I.has(e)||I.set(e,t)}}schedule(e){if($e=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(nt!==null&&t===q&&(Fe||(W===null||!(W.f&2))&&!Xe))return;if(n&96){if(!(n&1024))return;t.f^=b}}this.#a.push(t)}};function st(e){var t=et;et=!0;try{var n;for(e&&(F!==null&&!F.is_fork&&F.flush(),n=e());;){if(We(),F===null)return n;F.flush()}}finally{et=t}}function ct(){try{ve()}catch(e){M(e,$e)}}var L=null;function lt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Rn(r)&&(L=new Set,Un(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&xn(r),L?.size>0)){Pt.clear();for(let e of L){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)L.has(n)&&(L.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Un(n)}}L.clear()}}L=null}}function ut(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ut(i,t,n,r):e&4194320&&!(e&2048)&&dt(i,t,r)&&(N(i,x),ft(i))}}function dt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(s.call(t,r))return!0;if(r.f&2&&dt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ft(e){F.schedule(e)}function pt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,b);for(var n=e.first;n!==null;)pt(n,t),n=n.next}}function mt(e){N(e,b);for(var t=e.first;t!==null;)mt(t),t=t.next}function ht(e){let t=0,n=It(0),r;return()=>{on()&&($(n),mn(()=>(t===0&&(r=Kn(()=>e(()=>Vt(n)))),t+=1,()=>{Ue(()=>{--t,t===0&&(r?.(),r=void 0,Vt(n))})})))}}var gt=te|ne;function _t(e,t,n,r){new vt(e,t,n,r)}var vt=class{parent;is_pending=!1;transform_error;#e;#t=D?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=ht(()=>(this.#m=It(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=gn(()=>{if(D){let e=this.#t;Oe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},gt),D&&(this.#e=O)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),Ue(()=>{var e=this.#c=document.createDocumentFragment(),t=Yt();e.append(t),this.#a=this.#x(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Sn(this.#o,()=>{this.#o=null}),this.#b(F))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();En(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#b(F)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ye(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=j;J(this.#i),K(this.#i),Le(this.#i.ctx);try{return ot.ensure(),e()}catch(e){return Ge(e),null}finally{J(t),K(n),Le(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Sn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ue(()=>{this.#d=!1,this.#m&&zt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),D&&(k(this.#t),ke(),k(Ae()));var r=!1,i=!1;let a=()=>{if(r){Ee();return}r=!0,i&&we(),this.#s!==null&&Sn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){M(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return H(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return M(e,this.#i.parent),null}}))};Ue(()=>{var t;try{t=this.transform_error(e)}catch(e){M(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>M(e,this.#i&&this.#i.parent)):o(t)})}};function yt(e,t,n,r){let i=Be()?Ct:Et;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=bt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||M(e,o)}xt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=St();function d(){Promise.all(n.map(e=>wt(e))).then(e=>l([...t.map(i),...e])).catch(e=>M(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),xt()}):d()}function bt(){var e=q,t=W,n=j,r=F;return function(i=!0){J(e),K(t),Le(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function xt(e=!0){J(null),K(null),Le(null),e&&F?.deactivate()}function St(){var e=q,t=e.b,n=F,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ct(e){var t=2|x,n=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=ne),{ctx:j,deps:null,effects:null,equals:Me,f:t,fn:e,reactions:null,rv:0,v:r,wv:0,parent:n??q,ac:null}}function wt(e,t,n){let i=q;i===null&&pe();var a=void 0,o=It(r),s=!W,c=new Map;return pn(()=>{var t=q,n=y();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(xt)}catch(e){n.reject(e),xt()}var r=F;if(s){if(t.f&32768)var l=St();if(i.b.is_rendered())c.get(r)?.reject(E),c.delete(r);else{for(let e of c.values())e.reject(E);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===E),!(n===E||t.f&16384)){if(r.activate(),n)o.f|=ce,zt(o,n);else{o.f&8388608&&(o.f^=ce),zt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(E)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),sn(()=>{for(let e of c.values())e.reject(E)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Tt(e){let t=Ct(e);return Fe||jn(t),t}function Et(e){let t=Ct(e);return t.equals=Pe,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function Ot(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kt(e){var t,n=q;J(Ot(e));try{e.f&=~ae,Dt(e),t=Bn(e)}finally{J(n)}return t}function At(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=Ln(),(!F?.is_fork||e.deps===null)&&(e.v=n,F?.capture(e,t,!0),e.deps===null))){N(e,b);return}kn||(I===null?qe(e):(on()||F?.is_fork)&&I.set(e,n))}function jt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(E),t.teardown=_,t.ac=null,Hn(t,0),vn(t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Un(t)}var Nt=new Set,Pt=new Map,Ft=!1;function It(e,t){return{f:0,v:e,reactions:null,equals:Me,rv:0,wv:0}}function Lt(e,t){let n=It(e,t);return jn(n),n}function Rt(e,t=!1,n=!0){let r=It(e);return t||(r.equals=Pe),Ie&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function R(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Be()&&W.f&4325394&&(Y===null||!s.call(Y,e))&&Ce(),zt(e,n?Ut(t):t,rt)}function zt(e,t,n=null){if(!e.equals(t)){var r=e.v;kn?Pt.set(e,t):Pt.set(e,r),e.v=t;var i=ot.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&kt(t),I===null&&qe(t)}e.wv=Ln(),Ht(e,x,n),Be()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?Mn([e]):Q.push(e)),!i.is_fork&&Nt.size>0&&!Ft&&Bt()}return t}function Bt(){Ft=!1;for(let e of Nt)e.f&1024&&N(e,S),Rn(e)&&Un(e);Nt.clear()}function Vt(e){R(e,e.v+1)}function Ht(e,t,n){var r=e.reactions;if(r!==null)for(var i=Be(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&x)===0;if(l&&N(s,t),c&2){var u=s;I?.delete(u),c&65536||(c&512&&(s.f|=ae),Ht(u,S,n))}else if(l){var d=s;c&16&&L!==null&&L.add(d),n===null?ft(d):n.push(d)}}}}function Ut(e){if(typeof e!=`object`||!e||le in e)return e;let t=h(e);if(t!==p&&t!==m)return e;var n=new Map,i=a(e),o=Lt(0),s=null,c=Fn,l=e=>{if(Fn===c)return e();var t=W,n=Fn;K(null),In(c);var r=e();return K(t),In(n),r};return i&&n.set(`length`,Lt(e.length,s)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&xe();var i=n.get(t);return i===void 0?l(()=>{var e=Lt(r.value,s);return n.set(t,e),e}):R(i,r.value,!0),!0},deleteProperty(e,t){var i=n.get(t);if(i===void 0){if(t in e){let e=l(()=>Lt(r,s));n.set(t,e),Vt(o)}}else R(i,r),Vt(o);return!0},get(t,i,a){if(i===le)return e;var o=n.get(i),c=i in t;if(o===void 0&&(!c||d(t,i)?.writable)&&(o=l(()=>Lt(Ut(c?t[i]:r),s)),n.set(i,o)),o!==void 0){var u=$(o);return u===r?void 0:u}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=n.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=n.get(t),s=o?.v;if(o!==void 0&&s!==r)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===le)return!0;var i=n.get(t),a=i!==void 0&&i.v!==r||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||d(e,t)?.writable))&&(i===void 0&&(i=l(()=>Lt(a?Ut(e[t]):r,s)),n.set(t,i)),$(i)===r)?!1:a},set(e,t,a,c){var u=n.get(t),f=t in e;if(i&&t===`length`)for(var p=a;p<u.v;p+=1){var m=n.get(p+``);m===void 0?p in e&&(m=l(()=>Lt(r,s)),n.set(p+``,m)):R(m,r)}if(u===void 0)(!f||d(e,t)?.writable)&&(u=l(()=>Lt(void 0,s)),R(u,Ut(a)),n.set(t,u));else{f=u.v!==r;var h=l(()=>Ut(a));R(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,a),!f){if(i&&typeof t==`string`){var _=n.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&R(_,v+1)}Vt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==r});for(var[i,a]of n)a.v!==r&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Se()}})}var Wt,Gt,Kt,qt;function Jt(){if(Wt===void 0){Wt=window,Gt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Kt=d(t,`firstChild`).get,qt=d(t,`nextSibling`).get,g(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),g(n)&&(n.__t=void 0)}}function Yt(e=``){return document.createTextNode(e)}function Xt(e){return Kt.call(e)}function z(e){return qt.call(e)}function B(e,t){if(!D)return Xt(e);var n=Xt(O);if(n===null)n=O.appendChild(Yt());else if(t&&n.nodeType!==3){var r=Yt();return n?.before(r),k(r),r}return t&&tn(n),k(n),n}function Zt(e,t=1,n=!1){let r=D?O:e;for(var i;t--;)i=r,r=z(r);if(!D)return r;if(n){if(r?.nodeType!==3){var a=Yt();return r===null?i?.after(a):r.before(a),k(a),a}tn(r)}return k(r),r}function Qt(e){e.textContent=``}function $t(){return!Fe||L!==null?!1:(q.f&T)!==0}function en(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function tn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function nn(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function rn(e){q===null&&(W===null&&_e(e),ge()),kn&&he(e)}function an(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=C);var r={ctx:j,deps:null,nodes:null,f:e|x|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)nt===null?ot.ensure().schedule(r):nt.push(r);else if(t!==null){try{Un(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&an(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function on(){return W!==null&&!G}function sn(e){let t=V(8,null);return N(t,b),t.teardown=e,t}function cn(e){rn(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=j;(n.e??=[]).push(e)}else return ln(e)}function ln(e){return V(4|re,e)}function un(e){ot.ensure();let t=V(64|ne,e);return()=>{U(t)}}function dn(e){ot.ensure();let t=V(64|ne,e);return(e={})=>new Promise(n=>{e.outro?Sn(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function fn(e){return V(4,e)}function pn(e){return V(se|ne,e)}function mn(e,t=0){return V(8|t,e)}function hn(e,t=[],n=[],r=[]){yt(r,t,n,t=>{V(8,()=>e(...t.map($)))})}function gn(e,t=0){return V(16|t,e)}function H(e){return V(32|ne,e)}function _n(e){var t=e.teardown;if(t!==null){let e=kn,n=W;An(!0),K(null);try{t.call(null)}finally{An(e),K(n)}}}function vn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&nn(()=>{e.abort(E)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function yn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(bn(e.nodes.start,e.nodes.end),n=!0),N(e,ee),vn(e,t&&!n),Hn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();_n(e),e.f^=ee,e.f|=w;var i=e.parent;i!==null&&i.first!==null&&xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function bn(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function xn(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 Sn(e,t,n=!0){var r=[];Cn(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Cn(e,t,n){if(!(e.f&8192)){e.f^=C;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Cn(i,t,o?n:!1),i=a}}}function wn(e){Tn(e,!0)}function Tn(e,t){if(e.f&8192){e.f^=C,e.f&1024||(N(e,x),ot.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Tn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function En(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var Dn=null,On=!1,kn=!1;function An(e){kn=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function jn(e){W!==null&&(!Fe||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function Mn(e){Q=e}var Nn=1,Pn=0,Fn=Pn;function In(e){Fn=e}function Ln(){return++Nn}function Rn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Rn(a)&&At(a),a.wv>e.wv)return!0}t&512&&I===null&&N(e,b)}return!1}function zn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Fe&&Y!==null&&s.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?zn(a,t,!1):t===a&&(n?N(a,x):a.f&1024&&N(a,S),ft(a))}}function Bn(e){var t=X,n=Z,r=Q,i=W,a=Y,o=j,s=G,c=Fn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Le(e.ctx),G=!1,Fn=++Pn,e.ac!==null&&(nn(()=>{e.ac.abort(E)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=T;var f=e.deps,p=F?.is_fork;if(X!==null){var m;if(p||Hn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(on()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Hn(e,Z),f.length=Z);if(Be()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)zn(Q[m],e);if(i!==null&&i!==e){if(Pn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Pn;if(t!==null)for(let e of t)e.rv=Pn;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=ce),d}catch(e){return Ge(e)}finally{e.f^=oe,X=t,Z=n,Q=r,W=i,Y=a,Le(o),G=s,Fn=c}}function Vn(e,t){let n=t.reactions;if(n!==null){var r=o.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!s.call(X,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~ae),qe(a),jt(a),Hn(a,0)}}function Hn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vn(e,n[r])}function Un(e){var t=e.f;if(!(t&16384)){N(e,b);var n=q,r=On;q=e,On=!0;try{t&16777232?yn(e):vn(e),_n(e);var i=Bn(e);e.teardown=typeof i==`function`?i:null,e.wv=Nn}finally{On=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(Dn?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!s.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<Pn&&(e.rv=Pn,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:s.call(r,W)||r.push(W)}}if(kn&&Pt.has(e))return Pt.get(e);if(t){var i=e;if(kn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Gn(i))&&(a=kt(i)),Pt.set(i,a),a}var o=(i.f&512)==0&&!G&&W!==null&&(On||(W.f&512)!=0),c=(i.f&T)===0;Rn(i)&&(o&&(i.f|=512),At(i)),o&&!c&&(Mt(i),Wn(i))}if(I?.has(e))return I.get(e);if(e.f&8388608)throw e.v;return e.v}function Wn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mt(t),Wn(t))}function Gn(e){if(e.v===r)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Pt.has(t)||t.f&2&&Gn(t))return!0;return!1}function Kn(e){var t=G;try{return G=!0,e()}finally{G=t}}var qn=Symbol(`events`),Jn=new Set,Yn=new Set,Xn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Xn=e;var o=0,s=Xn===e&&e[qn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[qn]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){u(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[qn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[qn]=t,delete e.currentTarget,K(d),J(f)}}}var Qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function $n(e){return Qn?.createHTML(e)??e}function er(e){var t=en(`template`);return t.innerHTML=$n(e.replaceAll(`<!>`,`<!---->`)),t.content}function tr(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(D)return tr(O,null),O;i===void 0&&(i=er(a?e:`<!>`+e),n||(i=Xt(i)));var t=r||Gt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Xt(t),s=t.lastChild;tr(o,s)}else tr(t,t);return t}}function rr(e,t){if(D){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),Oe();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var ir=[`touchstart`,`touchmove`];function ar(e){return ir.includes(e)}function or(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function sr(e,t){return ur(e,t)}function cr(e,t){Jt(),t.intro=t.intro??!1;let r=t.target,i=D,a=O;try{for(var o=Xt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=z(o);if(!o)throw n;De(!0),k(o);let i=ur(e,{...t,anchor:o});return De(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==n&&console.warn(`Failed to hydrate: `,i),t.recover===!1&&ye(),Jt(),Qt(r),De(!1),sr(e,t)}finally{De(i),k(a)}}var lr=new Map;function ur(e,{target:t,anchor:r,props:i={},events:a,context:o,intro:s=!0,transformError:l}){Jt();var u=void 0,d=dn(()=>{var s=r??t.appendChild(Yt());_t(s,{pending:()=>{}},t=>{Re({});var r=j;if(o&&(r.c=o),a&&(i.$$events=a),D&&tr(t,null),u=e(t,i)||{},D&&(q.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Te(),n;ze()},l);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=ar(r);for(let e of[t,document]){var a=lr.get(e);a===void 0&&(a=new Map,lr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Zn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(c(Jn)),Yn.add(f),()=>{for(var e of d)for(let r of[t,document]){var n=lr.get(r),i=n.get(e);--i==0?(r.removeEventListener(e,Zn),n.delete(e),n.size===0&&lr.delete(r)):n.set(e,i)}Yn.delete(f),s!==r&&s.parentNode?.removeChild(s)}});return dr.set(u,d),u}var dr=new WeakMap;function fr(e,t){let n=dr.get(e);return n?(dr.delete(e),n(t)):Promise.resolve()}function pr(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Sn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;mr(e,c(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Qt(d),d.append(u),e.items.clear()}mr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function mr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ie,En(a,document.createDocumentFragment())):U(t[i],n)}}var hr;function gr(e,t,n,r,i,o=null){var s=e,l=new Map;if(t&4){var u=e;s=D?k(Xt(u)):u.appendChild(Yt())}D&&Oe();var d=null,f=Et(()=>{var e=n();return a(e)?e:e==null?[]:c(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,vr(v,p,s,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,br(d,null,s)):wn(d):Sn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:gn(()=>{p=$(f);var e=p.length;let a=!1;D&&je(s)===`[!`!=(e===0)&&(s=Ae(),k(s),De(!1),a=!0);for(var c=new Set,u=F,v=$t(),y=0;y<e;y+=1){D&&O.nodeType===8&&O.data===`]`&&(s=O,a=!0,De(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&zt(S.v,b),S.i&&zt(S.i,y),v&&u.unskip_effect(S.e)):(S=yr(l,h?s:hr??=Yt(),b,x,y,i,t,n),h||(S.e.f|=ie),l.set(x,S)),c.add(x)}if(e===0&&o&&!d&&(h?d=H(()=>o(s)):(d=H(()=>o(hr??=Yt())),d.f|=ie)),e>c.size&&me(``,``,``),D&&e>0&&k(Ae()),!h)if(m.set(u,c),v){for(let[e,t]of l)c.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);a&&De(!0),$(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,D&&(s=O)}function _r(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function vr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,l=_r(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(wn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ie,_===l)br(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),xr(e,d,_),xr(e,_,y),br(_,y,n),d=_,p=[],m=[],l=_r(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)br(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);xr(e,S.prev,C.next),xr(e,d,S),xr(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),br(_,l,n),xr(e,_.prev,_.next),xr(e,_,d===null?e.effect.first:d.next),xr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=_r(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=_r(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(mr(e,c(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=_r(l.next);var T=w.length;if(T>0){var ee=r&4&&o===0?n:null;if(a){for(v=0;v<T;v+=1)w[v].nodes?.a?.measure();for(v=0;v<T;v+=1)w[v].nodes?.a?.fix()}pr(e,w,ee)}}a&&Ue(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function yr(e,t,n,r,i,a,o,s){var c=o&1?o&16?It(n):Rt(n,!1,!1):null,l=o&2?It(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function br(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function xr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Sr(e,t){fn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=en(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Cr=Symbol(`is custom element`),wr=Symbol(`is html`),Tr=fe?`link`:`LINK`;function Er(e,t,n,r){var i=Dr(e);D&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Tr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&kr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Dr(e){return e.__attributes??={[Cr]:e.nodeName.includes(`-`),[wr]:e.namespaceURI===i}}var Or=new Map;function kr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Or.get(t);if(n)return n;Or.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=f(i),r)r[o].set&&n.push(o);i=h(i)}return n}function Ar(e,t,n,r){var i=!Ie||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Kn(r):r),s);let u;if(a){var f=le in e||ue in e;u=d(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Qe(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),u&&(i&&be(t),u(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(u){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&u(t?h():e),e):h()})}var _=!1,v=(n&1?Ct:Et)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?Ut(e):e;return R(v,n),_=!0,s!==void 0&&(s=n),e}return kn&&_||y.f&16384?v.v:$(v)})}function jr(e){return new Mr(e)}var Mr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Rt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ue?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return R(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?cr:sr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Fe&&(!e?.props?.$$host||e.sync===!1)&&st(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||u(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{fr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Nr;typeof HTMLElement==`function`&&(Nr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=en(`slot`);e!==`default`&&(n.name=e),rr(t,n)}}let t={},n=Fr(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Pr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=jr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=un(()=>{mn(()=>{this.$$r=!0;for(let e of l(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Pr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pr(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 l(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Pr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Fr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Ir(e,t,n,r,i,a){let o=class extends Nr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return l(t).map(e=>(t[e].attribute||e).toLowerCase())}};return l(t).forEach(e=>{u(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Pr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(d(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{u(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Lr=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof ee||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=ee.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,ee,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Rr=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Lr()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un'ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))}));Lr(),Rr();var zr=nr(`<div class="o_item row svelte-1y1ji7r"><div class="col-9 svelte-1y1ji7r"><img part="item_image" class="o_item_image svelte-1y1ji7r" alt=""/> <span class="o_item_desc svelte-1y1ji7r"> </span></div> <div class="col-3 text-center svelte-1y1ji7r">quantity</div></div>`),Br=nr(`<div class="container svelte-1y1ji7r"><div class="row svelte-1y1ji7r" id="o_header"><div class="col-10 svelte-1y1ji7r"><span id="o_number" class="svelte-1y1ji7r"> </span></div> <div id="o_tracking" class="col-2 svelte-1y1ji7r">tracking</div></div> <div id="o_items" class="svelte-1y1ji7r"></div> <div class="row svelte-1y1ji7r" id="o_footer"><div class="col-3 text-center svelte-1y1ji7r">cancel</div> <div class="col-6 svelte-1y1ji7r">bbb</div> <div class="col-3 text-center svelte-1y1ji7r"> </div></div></div>`),Vr={hash:`svelte-1y1ji7r`,code:`@charset "UTF-8";
3
3
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  /*!
5
5
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -84,5 +84,5 @@
84
84
  @media (min-width: 1200px) {
85
85
  }
86
86
  @media print {
87
- }#o_header.svelte-1y1ji7r {margin:20px auto 0px auto;padding-bottom:20px;}#o_tracking.svelte-1y1ji7r {text-align:center;}.o_item.svelte-1y1ji7r {border-top:solid 1px black;padding:20px 20px 20px 20px;}.o_item_image.svelte-1y1ji7r {width:120px;height:120px;background-size:cover;display:inline-block;}.o_item_desc.svelte-1y1ji7r {display:inline-block;margin-left:10px;}#o_footer.svelte-1y1ji7r {padding-top:20px;border-top:solid 1px black;}`};function xr(e,t){yn(t,!0),Hi(e,ns);const n={countryCode:"IT",currencySymbol:"€",items:[],orderNumber:"0000"};let r=gr(t,"id",7,""),i=gr(t,"payment",7,n),s=Wt(()=>i()?.items?.map(y=>y.unitaryPrice*(y.quantity||1)).reduce((y,C)=>y+C,0)),a=Wt(()=>i()?.items?Math.round(i()?.items.map(y=>y.unitaryPrice*(y.quantity||1)*y.taxPercentage*.01).reduce((y,C)=>y+C,0)*100)/100:0),l=Wt(()=>H(s)+H(a)+(i()?.shipmentFee||0)||0);yi(()=>{if(typeof i()=="string"&&(i(JSON.parse(i())||{}),i().countryCode||(i().countryCode="IT"),!i().currencySymbol))switch(i().countryCode){case"IT":i().currencySymbol="€";break;case"EU":i().currencySymbol="€";break;case"US":i().currencySymbol="$";break}});var o={get id(){return r()},set id(y=""){r(y),Vt()},get payment(){return i()},set payment(y=n){i(y),Vt()}},u=ts(),c=be(u),d=be(c),h=be(d),m=be(h);ce(h),ce(d),Ft(2),ce(c);var f=xt(c,2);Yi(f,21,()=>i().items,y=>y.id,(y,C)=>{var oe=es(),q=be(oe),Y=be(q),_e=xt(Y,2),P=be(_e,!0);ce(_e),ce(q),Ft(2),ce(oe),Wn(()=>{Ui(Y,"src",H(C).image),nn(P,H(C).name)}),tn(y,oe)}),ce(f);var x=xt(f,2),k=xt(be(x),4),T=be(k,!0);return ce(k),ce(x),ce(u),Wn(()=>{nn(m,`Order N. ${i().orderNumber??""}`),nn(T,`${H(l)}${i().currencySymbol}`)}),tn(e,u),wn(o)}customElements.define("hb-order-list",Ki(xr,{id:{},payment:{}},[],[],{mode:"open"})),ln.Component=xr,Object.defineProperty(ln,Symbol.toStringTag,{value:"Module"})})(this["order-list"]=this["order-list"]||{});
88
- //# sourceMappingURL=main.iife.js.map
87
+ }#o_header.svelte-1y1ji7r {margin:20px auto 0px auto;padding-bottom:20px;}#o_tracking.svelte-1y1ji7r {text-align:center;}.o_item.svelte-1y1ji7r {border-top:solid 1px black;padding:20px 20px 20px 20px;}.o_item_image.svelte-1y1ji7r {width:120px;height:120px;background-size:cover;display:inline-block;}.o_item_desc.svelte-1y1ji7r {display:inline-block;margin-left:10px;}#o_footer.svelte-1y1ji7r {padding-top:20px;border-top:solid 1px black;}`};function Hr(e,t){Re(t,!0),Sr(e,Vr);let n={countryCode:`IT`,currencySymbol:`€`,items:[],orderNumber:`0000`},r=Ar(t,`id`,7,``),i=Ar(t,`payment`,7,n),a=Tt(()=>i()?.items?.map(e=>e.unitaryPrice*(e.quantity||1)).reduce((e,t)=>e+t,0)),o=Tt(()=>i()?.items?Math.round(i()?.items.map(e=>e.unitaryPrice*(e.quantity||1)*e.taxPercentage*.01).reduce((e,t)=>e+t,0)*100)/100:0),s=Tt(()=>$(a)+$(o)+(i()?.shipmentFee||0)||0);cn(()=>{if(typeof i()==`string`&&(i(JSON.parse(i())||{}),i().countryCode||(i().countryCode=`IT`),!i().currencySymbol))switch(i().countryCode){case`IT`:i().currencySymbol=`€`;break;case`EU`:i().currencySymbol=`€`;break;case`US`:i().currencySymbol=`$`;break}});var c={get id(){return r()},set id(e=``){r(e),st()},get payment(){return i()},set payment(e=n){i(e),st()}},l=Br(),u=B(l),d=B(u),f=B(d),p=B(f);A(f),A(d),ke(2),A(u);var m=Zt(u,2);gr(m,21,()=>i().items,e=>e.id,(e,t)=>{var n=zr(),r=B(n),i=B(r),a=Zt(i,2),o=B(a,!0);A(a),A(r),ke(2),A(n),hn(()=>{Er(i,`src`,$(t).image),or(o,$(t).name)}),rr(e,n)}),A(m);var h=Zt(m,2),g=Zt(B(h),4),_=B(g,!0);return A(g),A(h),A(l),hn(()=>{or(p,`Order N. ${i().orderNumber??``}`),or(_,`${$(s)}${i().currencySymbol}`)}),rr(e,l),ze(c)}customElements.define(`hb-order-list`,Ir(Hr,{id:{},payment:{}},[],[],{mode:`open`})),e.Component=Hr})(this[`order-list`]=this[`order-list`]||{});
88
+ //# sourceMappingURL=main.iife.js.map