@htmlbricks/hb-dropdown-simple 0.61.50 → 0.61.52
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 +2 -10
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
(function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Dn=1,Mn=2,Ln=16,Fn=1,qn=4,Hn=8,jn=16,Un=2,Rt="[",et="[!",tt="]",pe={},S=Symbol(),Bn="http://www.w3.org/1999/xhtml",Ct=!1;var nt=Array.isArray,Vn=Array.prototype.indexOf,rt=Array.from,qe=Object.keys,we=Object.defineProperty,le=Object.getOwnPropertyDescriptor,Yn=Object.getOwnPropertyDescriptors,Kn=Object.prototype,Wn=Array.prototype,Ot=Object.getPrototypeOf,Pt=Object.isExtensible;function It(e){for(var t=0;t<e.length;t++)e[t]()}function zn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const I=2,it=4,Dt=8,$e=16,z=32,ee=64,Mt=128,L=256,He=512,C=1024,F=2048,te=4096,j=8192,fe=16384,st=32768,lt=65536,Lt=1<<17,Jn=1<<18,ge=1<<19,Gn=1<<20,ft=1<<21,ut=1<<22,ue=1<<23,je=Symbol("$state"),Ft=Symbol("legacy props"),at=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ot=3,Se=8;function Xn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Zn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function er(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function nr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function ir(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ue(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function J(e){m=e}let b;function q(e){if(e===null)throw Ue(),pe;return b=e}function Ae(){return q(ve(b))}function ye(e){if(m){if(ve(b)!==null)throw Ue(),pe;b=e}}function ct(){for(var e=0,t=b;;){if(t.nodeType===Se){var n=t.data;if(n===tt){if(e===0)return t;e-=1}else(n===Rt||n===et)&&(e+=1)}var r=ve(t);t.remove(),t=r}}function qt(e){if(!e||e.nodeType!==Se)throw Ue(),pe;return e.data}function Ht(e){return e===this.v}function ur(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jt(e){return!ur(e,this.v)}let ar=!1,U=null;function Be(e){U=e}function Ut(e,t=!1,n){U={p:U,c:null,e:null,s:e,x:null,l:null}}function Bt(e){var t=U,n=t.e;if(n!==null){t.e=null;for(var r of n)on(r)}return e!==void 0&&(t.x=e),U=t.p,e??{}}function Vt(){return!0}const or=new WeakMap;function cr(e){var t=$;if(t===null)return y.f|=ue,e;if((t.f&st)===0){if((t.f&Mt)===0)throw!t.parent&&e instanceof Error&&Yt(e),e;t.b.error(e)}else vt(e,t)}function vt(e,t){for(;t!==null;){if((t.f&Mt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Yt(e),e}function Yt(e){const t=or.get(e);t&&(we(e,"message",{value:t.message}),we(e,"stack",{value:t.stack}))}let dt=[],ht=[];function vr(){var e=dt;dt=[],It(e)}function dr(){var e=ht;ht=[],It(e)}function hr(){dt.length>0&&vr(),ht.length>0&&dr()}function _r(){const e=$.b;return e===null&&Xn(),e}function _t(e){var t=I|F,n=y!==null&&(y.f&I)!==0?y:null;return $===null||n!==null&&(n.f&L)!==0?t|=L:$.f|=ge,{ctx:U,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??$,ac:null}}function pr(e,t){let n=$;n===null&&Zn();var r=n.b,i=void 0,s=Re(S),l=null,u=!y;return Ar(()=>{try{var f=e();l&&Promise.resolve(f).catch(()=>{})}catch(o){f=Promise.reject(o)}var a=()=>f;i=l?.then(a,a)??Promise.resolve(f),l=i;var c=k,h=r.is_pending();u&&(r.update_pending_count(1),h||c.increment());const v=(o,d=void 0)=>{l=null,h||c.activate(),d?d!==at&&(s.f|=ue,We(s,d)):((s.f&ue)!==0&&(s.f^=ue),We(s,o)),u&&(r.update_pending_count(-1),h||c.decrement()),Jt()};if(i.then(v,o=>v(null,o||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(f=>{function a(c){function h(){c===i?f(s):a(i)}c.then(h,h)}a(i)})}function Kt(e){const t=_t(e);return t.equals=jt,t}function Wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function wr(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return t;t=t.parent}return null}function pt(e){var t,n=$;ie(wr(e));try{Wt(e),t=En(e)}finally{ie(n)}return t}function zt(e){var t=pt(e);if(e.equals(t)||(e.v=t,e.wv=mn()),!de){var n=(se||(e.f&L)!==0)&&e.deps!==null?te:C;M(e,n)}}function $r(e,t,n){const r=_t;if(t.length===0){n(e.map(r));return}var i=k,s=$,l=gr(),u=_r();Promise.all(t.map(f=>pr(f))).then(f=>{i?.activate(),l();try{n([...e.map(r),...f])}catch(a){(s.f&fe)===0&&vt(a,s)}i?.deactivate(),Jt()}).catch(f=>{u.error(f)})}function gr(){var e=$,t=y,n=U,r=k;return function(){ie(e),K(t),Be(n),r?.activate()}}function Jt(){ie(null),K(null),Be(null)}const wt=new Set;let k=null,Gt=new Set,Ve=[];function Xt(){const e=Ve.shift();Ve.length>0&&queueMicrotask(Xt),e()}let ae=[],Ye=null,$t=!1,Ke=!1;class oe{current=new Map;#t=new Map;#e=new Set;#n=0;#a=null;#o=!1;#i=[];#l=[];#s=[];#r=[];#f=[];#c=[];#v=[];skipped_effects=new Set;process(t){ae=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#d();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#f=[],k=null,Qt(n),Qt(r),k===null?k=this:wt.delete(this),this.#a?.resolve()}else this.#u(this.#s),this.#u(this.#r),this.#u(this.#f);for(const i of this.#i)Te(i);for(const i of this.#l)Te(i);this.#i=[],this.#l=[]}#h(t){t.f^=C;for(var n=t.first;n!==null;){var r=n.f,i=(r&(z|ee))!==0,s=i&&(r&C)!==0,l=s||(r&j)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(i)n.f^=C;else if((r&it)!==0)this.#r.push(n);else if((r&C)===0)if((r&ut)!==0){var u=n.b?.is_pending()?this.#l:this.#i;u.push(n)}else ze(n)&&((n.f&$e)!==0&&this.#f.push(n),Te(n));var f=n.first;if(f!==null){n=f;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)n=a.next,a=a.parent}}#u(t){for(const n of t)((n.f&F)!==0?this.#c:this.#v).push(n),M(n,C);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){k=this}deactivate(){k=null;for(const t of Gt)if(Gt.delete(t),t(),k!==null)break}neuter(){this.#o=!0}flush(){ae.length>0?Zt():this.#d(),k===this&&(this.#n===0&&wt.delete(this),this.deactivate())}#d(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)M(t,F),me(t);for(const t of this.#v)M(t,te),me(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#a??=zn()).promise}static ensure(){if(k===null){const t=k=new oe;wt.add(k),Ke||oe.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){Ve.length===0&&queueMicrotask(Xt),Ve.unshift(t)}}function Ne(e){var t=Ke;Ke=!0;try{for(var n;;){if(hr(),ae.length===0&&(k?.flush(),ae.length===0))return Ye=null,n;Zt()}}finally{Ke=t}}function Zt(){var e=xe;$t=!0;try{var t=0;for(wn(!0);ae.length>0;){var n=oe.ensure();if(t++>1e3){var r,i;yr()}n.process(ae),ne.clear()}}finally{$t=!1,wn(e),Ye=null}}function yr(){try{nr()}catch(e){vt(e,Ye)}}let ce=null;function Qt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(fe|j))===0&&ze(r)&&(ce=[],Te(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?hn(r):r.fn=null),ce?.length>0)){ne.clear();for(const i of ce)Te(i);ce=[]}}ce=null}}function me(e){for(var t=Ye=e;t.parent!==null;){t=t.parent;var n=t.f;if($t&&t===$&&(n&$e)!==0)return;if((n&(ee|z))!==0){if((n&C)===0)return;t.f^=C}}ae.push(t)}const ne=new Map;function Re(e,t){var n={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return n}function re(e,t){const n=Re(e);return Or(n),n}function en(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=jt),r}function G(e,t,n=!1){y!==null&&(!Y||(y.f&Lt)!==0)&&Vt()&&(y.f&(I|$e|ut|Lt))!==0&&!Q?.includes(e)&&fr();let r=n?be(t):t;return We(e,r)}function We(e,t){if(!e.equals(t)){var n=e.v;de?ne.set(e,t):ne.set(e,n),e.v=t;var r=oe.ensure();r.capture(e,n),(e.f&I)!==0&&((e.f&F)!==0&&pt(e),M(e,(e.f&L)===0?C:te)),e.wv=mn(),tn(e,F),$!==null&&($.f&C)!==0&&($.f&(z|ee))===0&&(H===null?Pr([e]):H.push(e))}return t}function gt(e){G(e,e.v+1)}function tn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,u=(l&F)===0;u&&M(s,t),(l&I)!==0?tn(s,te):u&&((l&$e)!==0&&ce!==null&&ce.push(s),me(s))}}function be(e){if(typeof e!="object"||e===null||je in e)return e;const t=Ot(e);if(t!==Kn&&t!==Wn)return e;var n=new Map,r=nt(e),i=re(0),s=he,l=u=>{if(he===s)return u();var f=y,a=he;K(null),yn(s);var c=u();return K(f),yn(a),c};return r&&n.set("length",re(e.length)),new Proxy(e,{defineProperty(u,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&sr();var c=n.get(f);return c===void 0?c=l(()=>{var h=re(a.value);return n.set(f,h),h}):G(c,a.value,!0),!0},deleteProperty(u,f){var a=n.get(f);if(a===void 0){if(f in u){const c=l(()=>re(S));n.set(f,c),gt(i)}}else G(a,S),gt(i);return!0},get(u,f,a){if(f===je)return e;var c=n.get(f),h=f in u;if(c===void 0&&(!h||le(u,f)?.writable)&&(c=l(()=>{var o=be(h?u[f]:S),d=re(o);return d}),n.set(f,c)),c!==void 0){var v=A(c);return v===S?void 0:v}return Reflect.get(u,f,a)},getOwnPropertyDescriptor(u,f){var a=Reflect.getOwnPropertyDescriptor(u,f);if(a&&"value"in a){var c=n.get(f);c&&(a.value=A(c))}else if(a===void 0){var h=n.get(f),v=h?.v;if(h!==void 0&&v!==S)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return a},has(u,f){if(f===je)return!0;var a=n.get(f),c=a!==void 0&&a.v!==S||Reflect.has(u,f);if(a!==void 0||$!==null&&(!c||le(u,f)?.writable)){a===void 0&&(a=l(()=>{var v=c?be(u[f]):S,o=re(v);return o}),n.set(f,a));var h=A(a);if(h===S)return!1}return c},set(u,f,a,c){var h=n.get(f),v=f in u;if(r&&f==="length")for(var o=a;o<h.v;o+=1){var d=n.get(o+"");d!==void 0?G(d,S):o in u&&(d=l(()=>re(S)),n.set(o+"",d))}if(h===void 0)(!v||le(u,f)?.writable)&&(h=l(()=>re(void 0)),G(h,be(a)),n.set(f,h));else{v=h.v!==S;var _=l(()=>be(a));G(h,_)}var p=Reflect.getOwnPropertyDescriptor(u,f);if(p?.set&&p.set.call(c,a),!v){if(r&&typeof f=="string"){var E=n.get("length"),w=Number(f);Number.isInteger(w)&&w>=E.v&&G(E,w+1)}gt(i)}return!0},ownKeys(u){A(i);var f=Reflect.ownKeys(u).filter(h=>{var v=n.get(h);return v===void 0||v.v!==S});for(var[a,c]of n)c.v!==S&&!(a in u)&&f.push(a);return f},setPrototypeOf(){lr()}})}var nn,rn,sn,ln;function yt(){if(nn===void 0){nn=window,rn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;sn=le(t,"firstChild").get,ln=le(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(n)&&(n.__t=void 0)}}function X(e=""){return document.createTextNode(e)}function Ce(e){return sn.call(e)}function ve(e){return ln.call(e)}function Oe(e,t){if(!m)return Ce(e);var n=Ce(b);if(n===null)n=b.appendChild(X());else if(t&&n.nodeType!==ot){var r=X();return n?.before(r),q(r),r}return q(n),n}function mr(e,t=1,n=!1){let r=m?b:e;for(var i;t--;)i=r,r=ve(r);if(!m)return r;if(n&&r?.nodeType!==ot){var s=X();return r===null?i?.after(s):r.before(s),q(s),s}return q(r),r}function fn(e){e.textContent=""}function un(){return!1}function an(e){var t=y,n=$;K(null),ie(null);try{return e()}finally{K(t),ie(n)}}function br(e){$===null&&y===null&&tr(),y!==null&&(y.f&L)!==0&&$===null&&er(),de&&Qn()}function Er(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Z(e,t,n,r=!0){var i=$;i!==null&&(i.f&j)!==0&&(e|=j);var s={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|F,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Te(s),s.f|=st}catch(f){throw V(s),f}else t!==null&&me(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&ge)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Er(l,i),y!==null&&(y.f&I)!==0&&(e&ee)===0)){var u=y;(u.effects??=[]).push(l)}}return s}function xr(e){br();var t=$.f,n=!y&&(t&z)!==0&&(t&st)===0;if(n){var r=U;(r.e??=[]).push(e)}else return on(e)}function on(e){return Z(it|Gn,e,!1)}function Tr(e){oe.ensure();const t=Z(ee|ge,e,!0);return()=>{V(t)}}function kr(e){oe.ensure();const t=Z(ee|ge,e,!0);return(n={})=>new Promise(r=>{n.outro?bt(t,()=>{V(t),r(void 0)}):(V(t),r(void 0))})}function Sr(e){return Z(it,e,!1)}function Ar(e){return Z(ut|ge,e,!0)}function Nr(e,t=0){return Z(Dt|t,e,!0)}function mt(e,t=[],n=[]){$r(t,n,r=>{Z(Dt,()=>e(...r.map(A)),!0)})}function cn(e,t=0){var n=Z($e|t,e,!0);return n}function Ee(e,t=!0){return Z(z|ge,e,!0,t)}function vn(e){var t=e.teardown;if(t!==null){const n=de,r=y;$n(!0),K(null);try{t.call(null)}finally{$n(n),K(r)}}}function dn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&an(()=>{i.abort(at)});var r=n.next;(n.f&ee)!==0?n.parent=null:V(n,t),n=r}}function Rr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&z)===0&&V(t),t=n}}function V(e,t=!0){var n=!1;(t||(e.f&Jn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Cr(e.nodes_start,e.nodes_end),n=!0),dn(e,t&&!n),Je(e,0),M(e,fe);var r=e.transitions;if(r!==null)for(const s of r)s.stop();vn(e);var i=e.parent;i!==null&&i.first!==null&&hn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Cr(e,t){for(;e!==null;){var n=e===t?null:ve(e);e.remove(),e=n}}function hn(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 bt(e,t){var n=[];Et(e,n,!0),_n(n,()=>{V(e),t&&t()})}function _n(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Et(e,t,n){if((e.f&j)===0){if(e.f^=j,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f<)!==0||(r.f&z)!==0;Et(r,t,s?n:!1),r=i}}}function xt(e){pn(e,!0)}function pn(e,t){if((e.f&j)!==0){e.f^=j,(e.f&C)===0&&(M(e,F),me(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f<)!==0||(n.f&z)!==0;pn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let xe=!1;function wn(e){xe=e}let de=!1;function $n(e){de=e}let y=null,Y=!1;function K(e){y=e}let $=null;function ie(e){$=e}let Q=null;function Or(e){y!==null&&(Q===null?Q=[e]:Q.push(e))}let O=null,D=0,H=null;function Pr(e){H=e}let gn=1,Pe=0,he=Pe;function yn(e){he=e}let se=!1;function mn(){return++gn}function ze(e){var t=e.f;if((t&F)!==0)return!0;if((t&te)!==0){var n=e.deps,r=(t&L)!==0;if(n!==null){var i,s,l=(t&He)!==0,u=r&&$!==null&&!se,f=n.length;if((l||u)&&($===null||($.f&fe)===0)){var a=e,c=a.parent;for(i=0;i<f;i++)s=n[i],(l||!s?.reactions?.includes(a))&&(s.reactions??=[]).push(a);l&&(a.f^=He),u&&c!==null&&(c.f&L)===0&&(a.f^=L)}for(i=0;i<f;i++)if(s=n[i],ze(s)&&zt(s),s.wv>e.wv)return!0}(!r||$!==null&&!se)&&M(e,C)}return!1}function bn(e,t,n=!0){var r=e.reactions;if(r!==null&&!Q?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&I)!==0?bn(s,t,!1):t===s&&(n?M(s,F):(s.f&C)!==0&&M(s,te),me(s))}}function En(e){var t=O,n=D,r=H,i=y,s=se,l=Q,u=U,f=Y,a=he,c=e.f;O=null,D=0,H=null,se=(c&L)!==0&&(Y||!xe||y===null),y=(c&(z|ee))===0?e:null,Q=null,Be(e.ctx),Y=!1,he=++Pe,e.ac!==null&&(an(()=>{e.ac.abort(at)}),e.ac=null);try{e.f|=ft;var h=e.fn,v=h(),o=e.deps;if(O!==null){var d;if(Je(e,D),o!==null&&D>0)for(o.length=D+O.length,d=0;d<O.length;d++)o[D+d]=O[d];else e.deps=o=O;if(!se||(c&I)!==0&&e.reactions!==null)for(d=D;d<o.length;d++)(o[d].reactions??=[]).push(e)}else o!==null&&D<o.length&&(Je(e,D),o.length=D);if(Vt()&&H!==null&&!Y&&o!==null&&(e.f&(I|te|F))===0)for(d=0;d<H.length;d++)bn(H[d],e);return i!==null&&i!==e&&(Pe++,H!==null&&(r===null?r=H:r.push(...H))),(e.f&ue)!==0&&(e.f^=ue),v}catch(_){return cr(_)}finally{e.f^=ft,O=t,D=n,H=r,y=i,se=s,Q=l,Be(u),Y=f,he=a}}function Ir(e,t){let n=t.reactions;if(n!==null){var r=Vn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&I)!==0&&(O===null||!O.includes(t))&&(M(t,te),(t.f&(L|He))===0&&(t.f^=He),Wt(t),Je(t,0))}function Je(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ir(e,n[r])}function Te(e){var t=e.f;if((t&fe)===0){M(e,C);var n=$,r=xe;$=e,xe=!0;try{(t&$e)!==0?Rr(e):dn(e),vn(e);var i=En(e);e.teardown=typeof i=="function"?i:null,e.wv=gn;var s;Ct&&ar&&(e.f&F)!==0&&e.deps}finally{xe=r,$=n}}}function A(e){var t=e.f,n=(t&I)!==0;if(y!==null&&!Y){var r=$!==null&&($.f&fe)!==0;if(!r&&!Q?.includes(e)){var i=y.deps;if((y.f&ft)!==0)e.rv<Pe&&(e.rv=Pe,O===null&&i!==null&&i[D]===e?D++:O===null?O=[e]:(!se||!O.includes(e))&&O.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(n&&e.deps===null&&e.effects===null){var l=e,u=l.parent;u!==null&&(u.f&L)===0&&(l.f^=L)}if(de){if(ne.has(e))return ne.get(e);if(n){l=e;var f=l.v;return((l.f&C)===0&&l.reactions!==null||xn(l))&&(f=pt(l)),ne.set(l,f),f}}else n&&(l=e,ze(l)&&zt(l));if((e.f&ue)!==0)throw e.v;return e.v}function xn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&I)!==0&&xn(t))return!0;return!1}function Dr(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const Mr=-7169;function M(e,t){e.f=e.f&Mr|t}const Tn=new Set,Tt=new Set;function Lr(e){for(var t=0;t<e.length;t++)Tn.add(e[t]);for(var n of Tt)n(e)}let kn=null;function Ge(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;kn=e;var l=0,u=kn===e&&e.__root;if(u){var f=i.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(s=i[l]||e.target,s!==t){we(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=y,h=$;K(null),ie(null);try{for(var v,o=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+r];if(_!=null&&(!s.disabled||e.target===s))if(nt(_)){var[p,...E]=_;p.apply(s,[e,...E])}else _.call(s,e)}catch(w){v?o.push(w):v=w}if(e.cancelBubble||d===t||d===null)break;s=d}if(v){for(let w of o)queueMicrotask(()=>{throw w});throw v}}finally{e.__root=t,delete e.currentTarget,K(c),ie(h)}}}function Fr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ie(e,t){var n=$;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function De(e,t){var n=(t&Un)!==0,r,i=!e.startsWith("<!>");return()=>{if(m)return Ie(b,null),b;r===void 0&&(r=Fr(i?e:"<!>"+e),r=Ce(r));var s=n||rn?document.importNode(r,!0):r.cloneNode(!0);return Ie(s,s),s}}function qr(e=""){if(!m){var t=X(e+"");return Ie(t,t),t}var n=b;return n.nodeType!==ot&&(n.before(n=X()),q(n)),Ie(n,n),n}function _e(e,t){if(m){$.nodes_end=b,Ae();return}e!==null&&e.before(t)}const Hr=["touchstart","touchmove"];function jr(e){return Hr.includes(e)}function Sn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function An(e,t){return Nn(e,t)}function Ur(e,t){yt(),t.intro=t.intro??!1;const n=t.target,r=m,i=b;try{for(var s=Ce(n);s&&(s.nodeType!==Se||s.data!==Rt);)s=ve(s);if(!s)throw pe;J(!0),q(s),Ae();const l=Nn(e,{...t,anchor:s});if(b===null||b.nodeType!==Se||b.data!==tt)throw Ue(),pe;return J(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw l;return l!==pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&rr(),yt(),fn(n),J(!1),An(e,t)}finally{J(r),q(i)}}const ke=new Map;function Nn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){yt();var u=new Set,f=h=>{for(var v=0;v<h.length;v++){var o=h[v];if(!u.has(o)){u.add(o);var d=jr(o);t.addEventListener(o,Ge,{passive:d});var _=ke.get(o);_===void 0?(document.addEventListener(o,Ge,{passive:d}),ke.set(o,1)):ke.set(o,_+1)}}};f(rt(Tn)),Tt.add(f);var a=void 0,c=kr(()=>{var h=n??t.appendChild(X());return Ee(()=>{if(s){Ut({});var v=U;v.c=s}i&&(r.$$events=i),m&&Ie(h,null),a=e(h,r)||{},m&&($.nodes_end=b),s&&Bt()}),()=>{for(var v of u){t.removeEventListener(v,Ge);var o=ke.get(v);--o===0?(document.removeEventListener(v,Ge),ke.delete(v)):ke.set(v,o)}Tt.delete(f),h!==n&&h.parentNode?.removeChild(h)}});return kt.set(a,c),a}let kt=new WeakMap;function Br(e,t){const n=kt.get(e);return n?(kt.delete(e),n(t)):Promise.resolve()}function Rn(e,t,n=!1){m&&Ae();var r=e,i=null,s=null,l=S,u=n?lt:0,f=!1;const a=(o,d=!0)=>{f=!0,v(d,o)};var c=null;function h(){c!==null&&(c.lastChild.remove(),r.before(c),c=null);var o=l?i:s,d=l?s:i;o&&xt(o),d&&bt(d,()=>{l?s=null:i=null})}const v=(o,d)=>{if(l===(l=o))return;let _=!1;if(m){const x=qt(r)===et;!!l===x&&(r=ct(),q(r),J(!1),_=!0)}var p=un(),E=r;if(p&&(c=document.createDocumentFragment(),c.append(E=X())),l?i??=d&&Ee(()=>d(E)):s??=d&&Ee(()=>d(E)),p){var w=k,g=l?i:s,T=l?s:i;g&&w.skipped_effects.delete(g),T&&w.skipped_effects.add(T),w.add_callback(h)}else h();_&&J(!0)};cn(()=>{f=!1,t(a),f||v(null,null)},u),m&&(r=b)}function Vr(e,t,n){for(var r=e.items,i=[],s=t.length,l=0;l<s;l++)Et(t[l].e,i,!0);var u=s>0&&i.length===0&&n!==null;if(u){var f=n.parentNode;fn(f),f.append(n),r.clear(),W(e,t[0].prev,t[s-1].next)}_n(i,()=>{for(var a=0;a<s;a++){var c=t[a];u||(r.delete(c.k),W(e,c.prev,c.next)),V(c.e,!u)}})}function Yr(e,t,n,r,i,s=null){var l=e,u={flags:t,items:new Map,first:null};{var f=e;l=m?q(Ce(f)):f.appendChild(X())}m&&Ae();var a=null,c=!1,h=new Map,v=Kt(()=>{var p=n();return nt(p)?p:p==null?[]:rt(p)}),o,d;function _(){Kr(d,o,u,h,l,i,t,r,n),s!==null&&(o.length===0?a?xt(a):a=Ee(()=>s(l)):a!==null&&bt(a,()=>{a=null}))}cn(()=>{d??=$,o=A(v);var p=o.length;if(c&&p===0)return;c=p===0;let E=!1;if(m){var w=qt(l)===et;w!==(p===0)&&(l=ct(),q(l),J(!1),E=!0)}if(m){for(var g=null,T,x=0;x<p;x++){if(b.nodeType===Se&&b.data===tt){l=b,E=!0,J(!1);break}var B=o[x],N=r(B,x);T=St(b,u,g,null,B,N,x,i,t,n),u.items.set(N,T),g=T}p>0&&q(ct())}if(m)p===0&&s&&(a=Ee(()=>s(l)));else if(un()){var R=new Set,P=k;for(x=0;x<p;x+=1){B=o[x],N=r(B,x);var Me=u.items.get(N)??h.get(N);Me?Cn(Me,B,x):(T=St(null,u,null,null,B,N,x,i,t,n,!0),h.set(N,T)),R.add(N)}for(const[Le,Fe]of u.items)R.has(Le)||P.skipped_effects.add(Fe.e);P.add_callback(_)}else _();E&&J(!0),A(v)}),m&&(l=b)}function Kr(e,t,n,r,i,s,l,u,f){var a=t.length,c=n.items,h=n.first,v=h,o,d=null,_=[],p=[],E,w,g,T;for(T=0;T<a;T+=1){if(E=t[T],w=u(E,T),g=c.get(w),g===void 0){var x=r.get(w);if(x!==void 0){r.delete(w),c.set(w,x);var B=d?d.next:v;W(n,d,x),W(n,x,B),At(x,B,i),d=x}else{var N=v?v.e.nodes_start:i;d=St(N,n,d,d===null?n.first:d.next,E,w,T,s,l,f)}c.set(w,d),_=[],p=[],v=d.next;continue}if(Cn(g,E,T),(g.e.f&j)!==0&&xt(g.e),g!==v){if(o!==void 0&&o.has(g)){if(_.length<p.length){var R=p[0],P;d=R.prev;var Me=_[0],Le=_[_.length-1];for(P=0;P<_.length;P+=1)At(_[P],R,i);for(P=0;P<p.length;P+=1)o.delete(p[P]);W(n,Me.prev,Le.next),W(n,d,Me),W(n,Le,R),v=R,d=Le,T-=1,_=[],p=[]}else o.delete(g),At(g,v,i),W(n,g.prev,g.next),W(n,g,d===null?n.first:d.next),W(n,d,g),d=g;continue}for(_=[],p=[];v!==null&&v.k!==w;)(v.e.f&j)===0&&(o??=new Set).add(v),p.push(v),v=v.next;if(v===null)continue;g=v}_.push(g),d=g,v=g.next}if(v!==null||o!==void 0){for(var Fe=o===void 0?[]:rt(o);v!==null;)(v.e.f&j)===0&&Fe.push(v),v=v.next;var hi=Fe.length;if(hi>0){var _i=a===0?i:null;Vr(n,Fe,_i)}}e.first=n.first&&n.first.e,e.last=d&&d.e;for(var pi of r.values())V(pi.e);r.clear()}function Cn(e,t,n,r){We(e.v,t),e.i=n}function St(e,t,n,r,i,s,l,u,f,a,c){var h=(f&Dn)!==0,v=(f&Ln)===0,o=h?v?en(i,!1,!1):Re(i):i,d=(f&Mn)===0?l:Re(l),_={i:d,v:o,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var p=document.createDocumentFragment();p.append(e=X())}return _.e=Ee(()=>u(e,o,d,a),m),_.e.prev=n&&n.e,_.e.next=r&&r.e,n===null?c||(t.first=_):(n.next=_,n.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function At(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==null&&s!==r;){var l=ve(s);i.before(s),s=l}}function W(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function Wr(e,t,n,r,i){m&&Ae();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function zr(e,t){Sr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Jr(e,t){return e==null?null:String(e)}function Gr(e,t,n,r){var i=e.__style;if(m||i!==t){var s=Jr(t);(!m||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Xr=Symbol("is custom element"),Zr=Symbol("is html");function Qr(e,t,n,r){var i=ei(e);m&&(i[t]=e.getAttribute(t),e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&ti(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ei(e){return e.__attributes??={[Xr]:e.nodeName.includes("-"),[Zr]:e.namespaceURI===Bn}}var On=new Map;function ti(e){var t=e.getAttribute("is")||e.nodeName,n=On.get(t);if(n)return n;On.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Yn(i);for(var l in r)r[l].set&&n.push(l);i=Ot(i)}return n}let Xe=!1;function ni(e){var t=Xe;try{return Xe=!1,[e(),Xe]}finally{Xe=t}}function Ze(e,t,n,r){var i=(n&Hn)!==0,s=(n&jn)!==0,l=r,u=!0,f=()=>(u&&(u=!1,l=s?Dr(r):r),l),a;if(i){var c=je in e||Ft in e;a=le(e,t)?.set??(c&&t in e?w=>e[t]=w:void 0)}var h,v=!1;i?[h,v]=ni(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),a&&(ir(),a(h)));var o;if(o=()=>{var w=e[t];return w===void 0?f():(u=!0,w)},(n&qn)===0)return o;if(a){var d=e.$$legacy;return(function(w,g){return arguments.length>0?((!g||d||v)&&a(g?o():w),w):o()})}var _=!1,p=((n&Fn)!==0?_t:Kt)(()=>(_=!1,o()));i&&A(p);var E=$;return(function(w,g){if(arguments.length>0){const T=g?A(p):i?be(w):w;return G(p,T),_=!0,l!==void 0&&(l=T),w}return de&&_||(E.f&fe)!==0?p.v:A(p)})}function ri(e){return new ii(e)}class ii{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var u=en(l,!1,!1);return n.set(s,u),u};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return A(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Ft?!0:(A(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,u){return G(n.get(l)??r(l,u),u),Reflect.set(s,l,u)}});this.#e=(t.hydrate?Ur:An)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ne(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||we(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Br(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Pn;typeof HTMLElement=="function"&&(Pn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),_e(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=si(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]=Qe(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=ri({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tr(()=>{Nr(()=>{this.$$r=!0;for(const r of qe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Qe(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]=Qe(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 qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qe(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 si(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function li(e,t,n,r,i,s){let l=class extends Pn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return qe(t).map(u=>(t[u].attribute||u).toLowerCase())}};return qe(t).forEach(u=>{we(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(f){f=Qe(u,f,t),this.$$d[u]=f;var a=this.$$c;if(a){var c=le(a,u)?.get;c?a[u]=f:a.$set({[u]:f})}}})}),r.forEach(u=>{we(l.prototype,u,{get(){return this.$$c?.[u]}})}),e.element=l,l}var fi=(e,t,n)=>t(A(n).key),ui=De('<a class="svelte-3hi786"> </a>'),ai=De('<div class="svelte-3hi786"> </div>'),oi=De('<div class="svelte-3hi786"><!></div>'),ci=De('<div class="dropdown-content svelte-3hi786" part="dropdowncontent"></div>'),vi=De('<div class="dropdown svelte-3hi786" part="dropdown"><div class="dropbtn svelte-3hi786" part="dropdownbutton"><!></div> <!></div>');const di={hash:"svelte-3hi786",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}.dropbtn.svelte-3hi786 {cursor:pointer;}.dropdown.svelte-3hi786 {position:relative;display:inline-block;}.dropdown-content.svelte-3hi786 {display:block;position:absolute;right:0;margin-top:10px;background-color:#f9f9f9;min-width:120px;box-shadow:0px 4px 8px 0px rgba(0, 0, 0, 0.2);z-index:1;font-size:0.8em;}.dropdown-content.svelte-3hi786 div:where(.svelte-3hi786) {color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;cursor:pointer;}.dropdown-content.svelte-3hi786 a:where(.svelte-3hi786) {width:100%;color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;}.dropdown-content.svelte-3hi786 div:where(.svelte-3hi786):hover {background-color:#f1f1f1;}'};function In(e,t){Ut(t,!0),zr(e,di);/**
|
|
3
|
-
* Svelte Simple Dropdown WebComponent
|
|
4
|
-
* =====================
|
|
5
|
-
*
|
|
6
|
-
* @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
|
|
7
|
-
*
|
|
8
|
-
* @license: MIT License
|
|
9
|
-
*
|
|
10
|
-
*/let n=Ze(t,"id",7,""),r=Ze(t,"open",7,!1),i=Ze(t,"position",7),s=Ze(t,"list",23,()=>[]);xr(()=>{console.log(r()),n()||n(""),i()||(t.$$host?.style?.float&&t.$$host.style.float==="right"?i("right"):i("left")),r()==="yes"||r()===""||r()===!0?r(!0):r(!1);try{s()&&!s()[0]?.key?s(JSON.parse(s())):s()||s([])}catch{s([])}});function l(_,p){t.$$host.dispatchEvent(new CustomEvent(_,{detail:p}))}function u(){r(!r()),l("dropdownSwitch",{open:r(),id:n()})}function f(_){l("dropDownClick",{key:_}),u()}var a={get id(){return n()},set id(_=""){n(_),Ne()},get open(){return r()},set open(_=!1){r(_),Ne()},get position(){return i()},set position(_){i(_),Ne()},get list(){return s()},set list(_=[]){s(_),Ne()}},c=vi(),h=Oe(c);h.__click=u;var v=Oe(h);Wr(v,t,"dropdownbutton",{},_=>{var p=qr("btn");_e(_,p)}),ye(h);var o=mr(h,2);{var d=_=>{var p=ci();Yr(p,21,s,E=>E.key,(E,w)=>{var g=oi();g.__click=[fi,f,w];var T=Oe(g);{var x=N=>{var R=ui(),P=Oe(R,!0);ye(R),mt(()=>{Qr(R,"href",A(w).linkHref),Sn(P,A(w).label)}),_e(N,R)},B=N=>{var R=ai(),P=Oe(R,!0);ye(R),mt(()=>Sn(P,A(w).label)),_e(N,R)};Rn(T,N=>{A(w).linkHref?N(x):N(B,!1)})}ye(g),_e(E,g)}),ye(p),mt(()=>Gr(p,i()==="right"?"":"left:0;")),_e(_,p)};Rn(o,_=>{r()&&_(d)})}return ye(c),_e(e,c),Bt(a)}Lr(["click"]),customElements.define("hb-dropdown-simple",li(In,{id:{},open:{},position:{},list:{}},["dropdownbutton"],[],!0)),Nt.Component=In,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this["dropdown-simple"]=this["dropdown-simple"]||{});
|
|
1
|
+
(function(Pt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Un=1,Vn=2,Yn=16,zn=1,Kn=4,Wn=8,Gn=16,Jn=2,Mt="[",Ge="[!",ht="]",Ee={},R=Symbol(),Xn="http://www.w3.org/1999/xhtml",Dt=!1;var It=Array.isArray,Zn=Array.prototype.indexOf,dt=Array.from,Je=Object.keys,Xe=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,Qn=Object.getOwnPropertyDescriptors,er=Object.prototype,tr=Array.prototype,Lt=Object.getPrototypeOf,Ft=Object.isExtensible;function nr(e){for(var t=0;t<e.length;t++)e[t]()}function jt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const N=2,Ze=4,vt=8,te=16,ne=32,ue=64,Qe=128,z=512,C=1024,L=2048,re=4096,q=8192,ae=16384,_t=32768,ke=65536,qt=1<<17,Bt=1<<18,_e=1<<19,rr=1<<20,Pe=32768,pt=1<<21,wt=1<<22,ce=1<<23,et=Symbol("$state"),Ht=Symbol("legacy props"),xe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},gt=3,Te=8;function sr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ir(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function lr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function or(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ur(){throw new Error("https://svelte.dev/e/hydration_failed")}function ar(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function cr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function tt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function _r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function se(e){$=e}let y;function F(e){if(e===null)throw tt(),Ee;return y=e}function Me(){return F(le(y))}function Se(e){if($){if(le(y)!==null)throw tt(),Ee;y=e}}function pr(e=1){if($){for(var t=e,n=y;t--;)n=le(n);y=n}}function nt(e=!0){for(var t=0,n=y;;){if(n.nodeType===Te){var r=n.data;if(r===ht){if(t===0)return n;t-=1}else(r===Mt||r===Ge)&&(t+=1)}var s=le(n);e&&n.remove(),n=s}}function Ut(e){if(!e||e.nodeType!==Te)throw tt(),Ee;return e.data}function Vt(e){return e===this.v}function wr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yt(e){return!wr(e,this.v)}let gr=!1,U=null;function Ae(e){U=e}function zt(e,t=!1,n){U={p:U,i:!1,c:null,e:null,s:e,x:null,l:null}}function Kt(e){var t=U,n=t.e;if(n!==null){t.e=null;for(var r of n)_n(r)}return e!==void 0&&(t.x=e),t.i=!0,U=t.p,e??{}}function Wt(){return!0}let pe=[];function Gt(){var e=pe;pe=[],nr(e)}function mt(e){if(pe.length===0&&!De){var t=pe;queueMicrotask(()=>{t===pe&&Gt()})}pe.push(e)}function mr(){for(;pe.length>0;)Gt()}function Jt(e){var t=g;if(t===null)return w.f|=ce,e;if((t.f&_t)===0){if((t.f&Qe)===0)throw e;t.b.error(e)}else Re(e,t)}function Re(e,t){for(;t!==null;){if((t.f&Qe)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const rt=new Set;let k=null,B=null,J=[],st=null,bt=!1,De=!1;class K{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#f=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){J=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#s(r,n);this.is_fork||this.#u(),this.#r>0||this.is_fork?(this.#i(n.effects),this.#i(n.render_effects),this.#i(n.block_effects)):(k=null,Zt(n.render_effects),Zt(n.effects),this.#o?.resolve()),B=null}#s(t,n){t.f^=C;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ne|ue))!==0,f=i&&(s&C)!==0,l=f||(s&q)!==0||this.skipped_effects.has(r);if((r.f&Qe)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=C:(s&Ze)!==0?n.effects.push(r):He(r)&&((r.f&te)!==0&&n.block_effects.push(r),Ue(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(this.#i(n.effects),this.#i(n.render_effects),this.#i(n.block_effects),n=n.parent),r=u.next,u=u.parent}}#i(t){for(const n of t)((n.f&L)!==0?this.#f:this.#l).push(n),P(n,C)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&ce)===0&&(this.current.set(t,t.v),B?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k=null,B=null}flush(){if(this.activate(),J.length>0){if(Xt(),k!==null&&k!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#a()}#a(){if(rt.size>1){this.previous.clear();var t=B,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of rt){if(s===this){n=!1;continue}const i=[];for(const[l,o]of this.current){if(s.current.has(l))if(n&&o!==s.current.get(l))s.current.set(l,o);else continue;i.push(l)}if(i.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){const l=new Set,o=new Map;for(const u of i)Qt(u,f,l,o);if(J.length>0){k=s,s.apply();for(const u of J)s.#s(u,r);J=[],s.deactivate()}}}k=null,B=t}this.committed=!0,rt.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#f)P(t,L),we(t);for(const t of this.#l)P(t,re),we(t);this.#f=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=jt()).promise}static ensure(){if(k===null){const t=k=new K;rt.add(k),De||K.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){mt(t)}apply(){}}function Ie(e){var t=De;De=!0;try{for(var n;;){if(mr(),J.length===0&&(k?.flush(),J.length===0))return st=null,n;Xt()}}finally{De=t}}function Xt(){var e=me;bt=!0;try{var t=0;for(En(!0);J.length>0;){var n=K.ensure();if(t++>1e3){var r,s;br()}n.process(J),he.clear()}}finally{bt=!1,En(e),st=null}}function br(){try{or()}catch(e){Re(e,st)}}let ie=null;function Zt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ae|q))===0&&He(r)&&(ie=new Set,Ue(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?mn(r):r.fn=null),ie?.size>0)){he.clear();for(const s of ie){if((s.f&(ae|q))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)ie.has(f)&&(ie.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(ae|q))===0&&Ue(o)}}ie.clear()}}ie=null}}function Qt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?Qt(s,t,n,r):(i&(wt|te))!==0&&(i&L)===0&&en(s,t,r)&&(P(s,L),we(s))}}function en(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&N)!==0&&en(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function we(e){for(var t=st=e;t.parent!==null;){t=t.parent;var n=t.f;if(bt&&t===g&&(n&te)!==0&&(n&Bt)===0)return;if((n&(ue|ne))!==0){if((n&C)===0)return;t.f^=C}}J.push(t)}function $r(e){let t=0,n=ge(0),r;return()=>{ft()&&(x(n),pn(()=>(t===0&&(r=On(()=>e(()=>Fe(n)))),t+=1,()=>{mt(()=>{t-=1,t===0&&(r?.(),r=void 0,Fe(n))})})))}}var yr=ke|_e|Qe;function Er(e,t,n){new kr(e,t,n)}class kr{parent;#t=!1;#e;#n=$?y:null;#r;#o;#f;#l=null;#s=null;#i=null;#u=null;#a=null;#d=0;#c=0;#v=!1;#h=null;#m=$r(()=>(this.#h=ge(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=g.b,this.#t=!!this.#r.pending,this.#f=Tt(()=>{if(g.b=this,$){const i=this.#n;Me(),i.nodeType===Te&&i.data===Ge?this.#$():this.#b()}else{var s=this.#w();try{this.#l=V(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#a?.remove()}},yr),$&&(this.#e=y)}#b(){try{this.#l=V(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#r.pending;t&&(this.#s=V(()=>t(this.#e)),K.enqueue(()=>{var n=this.#w();this.#l=this.#_(()=>(K.ensure(),V(()=>this.#o(n)))),this.#c>0?this.#p():(Ce(this.#s,()=>{this.#s=null}),this.#t=!1)}))}#w(){var t=this.#e;return this.#t&&(this.#a=W(),this.#e.before(this.#a),t=this.#a),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=g,r=w,s=U;Q(this.#f),j(this.#f),Ae(this.#f.ctx);try{return t()}catch(i){return Jt(i),null}finally{Q(n),j(r),Ae(s)}}#p(){const t=this.#r.pending;this.#l!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#a),yn(this.#l,this.#u)),this.#s===null&&(this.#s=V(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#s&&Ce(this.#s,()=>{this.#s=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#g(t),this.#d+=t,this.#h&&Le(this.#h,this.#d)}get_effect_pending(){return this.#m(),x(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#l&&(O(this.#l),this.#l=null),this.#s&&(O(this.#s),this.#s=null),this.#i&&(O(this.#i),this.#i=null),$&&(F(this.#n),pr(),F(nt()));var s=!1,i=!1;const f=()=>{if(s){_r();return}s=!0,i&&vr(),K.ensure(),this.#d=0,this.#i!==null&&Ce(this.#i,()=>{this.#i=null}),this.#t=this.has_pending_snippet(),this.#l=this.#_(()=>(this.#v=!1,V(()=>this.#o(this.#e)))),this.#c>0?this.#p():this.#t=!1};var l=w;try{j(null),i=!0,n?.(t,f),i=!1}catch(o){Re(o,this.#f&&this.#f.parent)}finally{j(l)}r&&mt(()=>{this.#i=this.#_(()=>{K.ensure(),this.#v=!0;try{return V(()=>{r(this.#e,()=>t,()=>f)})}catch(o){return Re(o,this.#f.parent),null}finally{this.#v=!1}})})}}function xr(e,t,n,r){const s=$t;if(n.length===0&&e.length===0){r(t.map(s));return}var i=k,f=g,l=Tr();function o(){Promise.all(n.map(u=>Sr(u))).then(u=>{l();try{r([...t.map(s),...u])}catch(h){(f.f&ae)===0&&Re(h,f)}i?.deactivate(),it()}).catch(u=>{Re(u,f)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{i?.deactivate(),it()}}):o()}function Tr(){var e=g,t=w,n=U,r=k;return function(i=!0){Q(e),j(t),Ae(n),i&&r?.activate()}}function it(){Q(null),j(null),Ae(null)}function $t(e){var t=N|L,n=w!==null&&(w.f&N)!==0?w:null;return g!==null&&(g.f|=_e),{ctx:U,deps:null,effects:null,equals:Vt,f:t,fn:e,reactions:null,rv:0,v:R,wv:0,parent:n??g,ac:null}}function Sr(e,t){let n=g;n===null&&sr();var r=n.b,s=void 0,i=ge(R),f=!w,l=new Map;return Fr(()=>{var o=jt();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{u===k&&u.committed&&u.deactivate(),it()})}catch(a){o.reject(a),it()}var u=k;if(f){var h=!r.is_pending();r.update_pending_count(1),u.increment(h),l.get(u)?.reject(xe),l.delete(u),l.set(u,o)}const d=(a,c=void 0)=>{if(u.activate(),c)c!==xe&&(i.f|=ce,Le(i,c));else{(i.f&ce)!==0&&(i.f^=ce),Le(i,a);for(const[_,v]of l){if(l.delete(_),_===u)break;v.reject(xe)}}f&&(r.update_pending_count(-1),u.decrement(h))};o.promise.then(d,a=>d(null,a||"unknown"))}),Pr(()=>{for(const o of l.values())o.reject(xe)}),new Promise(o=>{function u(h){function d(){h===s?o(i):u(s)}h.then(d,d)}u(s)})}function tn(e){const t=$t(e);return t.equals=Yt,t}function nn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)O(t[n])}}function Ar(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return t;t=t.parent}return null}function yt(e){var t,n=g;Q(Ar(e));try{e.f&=~Pe,nn(e),t=Rn(e)}finally{Q(n)}return t}function rn(e){var t=yt(e);if(e.equals(t)||(e.v=t,e.wv=Sn()),!be)if(B!==null)ft()&&B.set(e,e.v);else{var n=(e.f&z)===0?re:C;P(e,n)}}let Et=new Set;const he=new Map;let sn=!1;function ge(e,t){var n={f:0,v:e,reactions:null,equals:Vt,rv:0,wv:0};return n}function de(e,t){const n=ge(e);return Br(n),n}function fn(e,t=!1,n=!0){const r=ge(e);return t||(r.equals=Yt),r}function fe(e,t,n=!1){w!==null&&(!Z||(w.f&qt)!==0)&&Wt()&&(w.f&(N|te|wt|qt))!==0&&!oe?.includes(e)&&dr();let r=n?Ne(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;be?he.set(e,t):he.set(e,n),e.v=t;var r=K.ensure();r.capture(e,n),(e.f&N)!==0&&((e.f&L)!==0&&yt(e),P(e,(e.f&z)!==0?C:re)),e.wv=Sn(),ln(e,L),g!==null&&(g.f&C)!==0&&(g.f&(ne|ue))===0&&(Y===null?Hr([e]):Y.push(e)),!r.is_fork&&Et.size>0&&!sn&&Rr()}return t}function Rr(){sn=!1;const e=Array.from(Et);for(const t of e)(t.f&C)!==0&&P(t,re),He(t)&&Ue(t);Et.clear()}function Fe(e){fe(e,e.v+1)}function ln(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&L)===0;if(l&&P(i,t),(f&N)!==0){var o=i;B?.delete(o),(f&Pe)===0&&(f&z&&(i.f|=Pe),ln(o,re))}else l&&((f&te)!==0&&ie!==null&&ie.add(i),we(i))}}function Ne(e){if(typeof e!="object"||e===null||et in e)return e;const t=Lt(e);if(t!==er&&t!==tr)return e;var n=new Map,r=It(e),s=de(0),i=$e,f=l=>{if($e===i)return l();var o=w,u=$e;j(null),Tn(i);var h=l();return j(o),Tn(u),h};return r&&n.set("length",de(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&cr();var h=n.get(o);return h===void 0?h=f(()=>{var d=de(u.value);return n.set(o,d),d}):fe(h,u.value,!0),!0},deleteProperty(l,o){var u=n.get(o);if(u===void 0){if(o in l){const h=f(()=>de(R));n.set(o,h),Fe(s)}}else fe(u,R),Fe(s);return!0},get(l,o,u){if(o===et)return e;var h=n.get(o),d=o in l;if(h===void 0&&(!d||ve(l,o)?.writable)&&(h=f(()=>{var c=Ne(d?l[o]:R),_=de(c);return _}),n.set(o,h)),h!==void 0){var a=x(h);return a===R?void 0:a}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var h=n.get(o);h&&(u.value=x(h))}else if(u===void 0){var d=n.get(o),a=d?.v;if(d!==void 0&&a!==R)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return u},has(l,o){if(o===et)return!0;var u=n.get(o),h=u!==void 0&&u.v!==R||Reflect.has(l,o);if(u!==void 0||g!==null&&(!h||ve(l,o)?.writable)){u===void 0&&(u=f(()=>{var a=h?Ne(l[o]):R,c=de(a);return c}),n.set(o,u));var d=x(u);if(d===R)return!1}return h},set(l,o,u,h){var d=n.get(o),a=o in l;if(r&&o==="length")for(var c=u;c<d.v;c+=1){var _=n.get(c+"");_!==void 0?fe(_,R):c in l&&(_=f(()=>de(R)),n.set(c+"",_))}if(d===void 0)(!a||ve(l,o)?.writable)&&(d=f(()=>de(void 0)),fe(d,Ne(u)),n.set(o,d));else{a=d.v!==R;var v=f(()=>Ne(u));fe(d,v)}var p=Reflect.getOwnPropertyDescriptor(l,o);if(p?.set&&p.set.call(h,u),!a){if(r&&typeof o=="string"){var S=n.get("length"),m=Number(o);Number.isInteger(m)&&m>=S.v&&fe(S,m+1)}Fe(s)}return!0},ownKeys(l){x(s);var o=Reflect.ownKeys(l).filter(d=>{var a=n.get(d);return a===void 0||a.v!==R});for(var[u,h]of n)h.v!==R&&!(u in l)&&o.push(u);return o},setPrototypeOf(){hr()}})}var on,un,an,cn;function kt(){if(on===void 0){on=window,un=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;an=ve(t,"firstChild").get,cn=ve(t,"nextSibling").get,Ft(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ft(n)&&(n.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function je(e){return an.call(e)}function le(e){return cn.call(e)}function qe(e,t){if(!$)return je(e);var n=je(y);if(n===null)n=y.appendChild(W());else if(t&&n.nodeType!==gt){var r=W();return n?.before(r),F(r),r}return F(n),n}function Nr(e,t=1,n=!1){let r=$?y:e;for(var s;t--;)s=r,r=le(r);if(!$)return r;if(n&&r?.nodeType!==gt){var i=W();return r===null?s?.after(i):r.before(i),F(i),i}return F(r),r}function hn(e){e.textContent=""}function dn(){return!1}function vn(e){var t=w,n=g;j(null),Q(null);try{return e()}finally{j(t),Q(n)}}function Cr(e){g===null&&(w===null&&lr(),fr()),be&&ir()}function Or(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function X(e,t,n,r=!0){var s=g;s!==null&&(s.f&q)!==0&&(e|=q);var i={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|L|z,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ue(i),i.f|=_t}catch(o){throw O(i),o}else t!==null&&we(i);if(r){var f=i;if(n&&f.deps===null&&f.teardown===null&&f.nodes_start===null&&f.first===f.last&&(f.f&_e)===0&&(f=f.first,(e&te)!==0&&(e&ke)!==0&&f!==null&&(f.f|=ke)),f!==null&&(f.parent=s,s!==null&&Or(f,s),w!==null&&(w.f&N)!==0&&(e&ue)===0)){var l=w;(l.effects??=[]).push(f)}}return i}function ft(){return w!==null&&!Z}function Pr(e){const t=X(vt,null,!1);return P(t,C),t.teardown=e,t}function Mr(e){Cr();var t=g.f,n=!w&&(t&ne)!==0&&(t&_t)===0;if(n){var r=U;(r.e??=[]).push(e)}else return _n(e)}function _n(e){return X(Ze|rr,e,!1)}function Dr(e){K.ensure();const t=X(ue|_e,e,!0);return()=>{O(t)}}function Ir(e){K.ensure();const t=X(ue|_e,e,!0);return(n={})=>new Promise(r=>{n.outro?Ce(t,()=>{O(t),r(void 0)}):(O(t),r(void 0))})}function Lr(e){return X(Ze,e,!1)}function Fr(e){return X(wt|_e,e,!0)}function pn(e,t=0){return X(vt|t,e,!0)}function xt(e,t=[],n=[],r=[],s=!1){xr(r,t,n,i=>{X(s?Ze:vt,()=>e(...i.map(x)),!0)})}function Tt(e,t=0){var n=X(te|t,e,!0);return n}function V(e,t=!0){return X(ne|_e,e,!0,t)}function wn(e){var t=e.teardown;if(t!==null){const n=be,r=w;kn(!0),j(null);try{t.call(null)}finally{kn(n),j(r)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&vn(()=>{s.abort(xe)});var r=n.next;(n.f&ue)!==0?n.parent=null:O(n,t),n=r}}function jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ne)===0&&O(t),t=n}}function O(e,t=!0){var n=!1;(t||(e.f&Bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qr(e.nodes_start,e.nodes_end),n=!0),gn(e,t&&!n),lt(e,0),P(e,ae);var r=e.transitions;if(r!==null)for(const i of r)i.stop();wn(e);var s=e.parent;s!==null&&s.first!==null&&mn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qr(e,t){for(;e!==null;){var n=e===t?null:le(e);e.remove(),e=n}}function mn(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 Ce(e,t,n=!0){var r=[];St(e,r,!0),bn(r,()=>{n&&O(e),t&&t()})}function bn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function St(e,t,n){if((e.f&q)===0){if(e.f^=q,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&ke)!==0||(r.f&ne)!==0&&(e.f&te)!==0;St(r,t,i?n:!1),r=s}}}function At(e){$n(e,!0)}function $n(e,t){if((e.f&q)!==0){e.f^=q,(e.f&C)===0&&(P(e,L),we(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ke)!==0||(n.f&ne)!==0;$n(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function yn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:le(n);t.append(n),n=s}}let me=!1;function En(e){me=e}let be=!1;function kn(e){be=e}let w=null,Z=!1;function j(e){w=e}let g=null;function Q(e){g=e}let oe=null;function Br(e){w!==null&&(oe===null?oe=[e]:oe.push(e))}let D=null,H=0,Y=null;function Hr(e){Y=e}let xn=1,Be=0,$e=Be;function Tn(e){$e=e}function Sn(){return++xn}function He(e){var t=e.f;if((t&L)!==0)return!0;if(t&N&&(e.f&=~Pe),(t&re)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(He(i)&&rn(i),i.wv>e.wv)return!0}(t&z)!==0&&B===null&&P(e,C)}return!1}function An(e,t,n=!0){var r=e.reactions;if(r!==null&&!oe?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&N)!==0?An(i,t,!1):t===i&&(n?P(i,L):(i.f&C)!==0&&P(i,re),we(i))}}function Rn(e){var t=D,n=H,r=Y,s=w,i=oe,f=U,l=Z,o=$e,u=e.f;D=null,H=0,Y=null,w=(u&(ne|ue))===0?e:null,oe=null,Ae(e.ctx),Z=!1,$e=++Be,e.ac!==null&&(vn(()=>{e.ac.abort(xe)}),e.ac=null);try{e.f|=pt;var h=e.fn,d=h(),a=e.deps;if(D!==null){var c;if(lt(e,H),a!==null&&H>0)for(a.length=H+D.length,c=0;c<D.length;c++)a[H+c]=D[c];else e.deps=a=D;if(me&&ft()&&(e.f&z)!==0)for(c=H;c<a.length;c++)(a[c].reactions??=[]).push(e)}else a!==null&&H<a.length&&(lt(e,H),a.length=H);if(Wt()&&Y!==null&&!Z&&a!==null&&(e.f&(N|re|L))===0)for(c=0;c<Y.length;c++)An(Y[c],e);return s!==null&&s!==e&&(Be++,Y!==null&&(r===null?r=Y:r.push(...Y))),(e.f&ce)!==0&&(e.f^=ce),d}catch(_){return Jt(_)}finally{e.f^=pt,D=t,H=n,Y=r,w=s,oe=i,Ae(f),Z=l,$e=o}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=Zn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&N)!==0&&(D===null||!D.includes(t))&&(P(t,re),(t.f&z)!==0&&(t.f^=z,t.f&=~Pe),nn(t),lt(t,0))}function lt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function Ue(e){var t=e.f;if((t&ae)===0){P(e,C);var n=g,r=me;g=e,me=!0;try{(t&te)!==0?jr(e):gn(e),wn(e);var s=Rn(e);e.teardown=typeof s=="function"?s:null,e.wv=xn;var i;Dt&&gr&&(e.f&L)!==0&&e.deps}finally{me=r,g=n}}}function x(e){var t=e.f,n=(t&N)!==0;if(w!==null&&!Z){var r=g!==null&&(g.f&ae)!==0;if(!r&&!oe?.includes(e)){var s=w.deps;if((w.f&pt)!==0)e.rv<Be&&(e.rv=Be,D===null&&s!==null&&s[H]===e?H++:D===null?D=[e]:D.includes(e)||D.push(e));else{(w.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[w]:i.includes(w)||i.push(w)}}}if(be){if(he.has(e))return he.get(e);if(n){var f=e,l=f.v;return((f.f&C)===0&&f.reactions!==null||Cn(f))&&(l=yt(f)),he.set(f,l),l}}else if(n){if(f=e,B?.has(f))return B.get(f);He(f)&&rn(f),me&&ft()&&(f.f&z)===0&&Nn(f)}else if(B?.has(e))return B.get(e);if((e.f&ce)!==0)throw e.v;return e.v}function Nn(e){if(e.deps!==null){e.f^=z;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&z)===0&&Nn(t)}}function Cn(e){if(e.v===R)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(he.has(t)||(t.f&N)!==0&&Cn(t))return!0;return!1}function On(e){var t=Z;try{return Z=!0,e()}finally{Z=t}}const Vr=-7169;function P(e,t){e.f=e.f&Vr|t}const Pn=new Set,Rt=new Set;function Yr(e){for(var t=0;t<e.length;t++)Pn.add(e[t]);for(var n of Rt)n(e)}let Mn=null;function ot(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Mn=e;var f=0,l=Mn===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;o<=u&&(f=o)}if(i=s[f]||e.target,i!==t){Xe(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=w,d=g;j(null),Q(null);try{for(var a,c=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var v=i["__"+r];v!=null&&(!i.disabled||e.target===i)&&v.call(i,e)}catch(p){a?c.push(p):a=p}if(e.cancelBubble||_===t||_===null)break;i=_}if(a){for(let p of c)queueMicrotask(()=>{throw p});throw a}}finally{e.__root=t,delete e.currentTarget,j(h),Q(d)}}}function zr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ve(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ye(e,t){var n=(t&Jn)!==0,r,s=!e.startsWith("<!>");return()=>{if($)return Ve(y,null),y;r===void 0&&(r=zr(s?e:"<!>"+e),r=je(r));var i=n||un?document.importNode(r,!0):r.cloneNode(!0);return Ve(i,i),i}}function Kr(e=""){if(!$){var t=W(e+"");return Ve(t,t),t}var n=y;return n.nodeType!==gt&&(n.before(n=W()),F(n)),Ve(n,n),n}function ye(e,t){if($){g.nodes_end=y,Me();return}e!==null&&e.before(t)}const Wr=["touchstart","touchmove"];function Gr(e){return Wr.includes(e)}function Dn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function In(e,t){return Ln(e,t)}function Jr(e,t){kt(),t.intro=t.intro??!1;const n=t.target,r=$,s=y;try{for(var i=je(n);i&&(i.nodeType!==Te||i.data!==Mt);)i=le(i);if(!i)throw Ee;se(!0),F(i);const f=Ln(e,{...t,anchor:i});return se(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==Ee&&console.warn("Failed to hydrate: ",f),t.recover===!1&&ur(),kt(),hn(n),se(!1),In(e,t)}finally{se(r),F(s)}}const Oe=new Map;function Ln(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){kt();var l=new Set,o=d=>{for(var a=0;a<d.length;a++){var c=d[a];if(!l.has(c)){l.add(c);var _=Gr(c);t.addEventListener(c,ot,{passive:_});var v=Oe.get(c);v===void 0?(document.addEventListener(c,ot,{passive:_}),Oe.set(c,1)):Oe.set(c,v+1)}}};o(dt(Pn)),Rt.add(o);var u=void 0,h=Ir(()=>{var d=n??t.appendChild(W());return Er(d,{pending:()=>{}},a=>{if(i){zt({});var c=U;c.c=i}if(s&&(r.$$events=s),$&&Ve(a,null),u=e(a,r)||{},$&&(g.nodes_end=y,y===null||y.nodeType!==Te||y.data!==ht))throw tt(),Ee;i&&Kt()}),()=>{for(var a of l){t.removeEventListener(a,ot);var c=Oe.get(a);--c===0?(document.removeEventListener(a,ot),Oe.delete(a)):Oe.set(a,c)}Rt.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return Nt.set(u,h),u}let Nt=new WeakMap;function Xr(e,t){const n=Nt.get(e);return n?(Nt.delete(e),n(t)):Promise.resolve()}class Zr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#o=()=>{var t=k;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)At(r);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#n.get(f);l&&(O(l.effect),this.#n.delete(f))}for(const[i,f]of this.#e){if(i===n)continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var u=document.createDocumentFragment();yn(f,u),u.append(W()),this.#n.set(i,{effect:f,fragment:u})}else O(f);this.#e.delete(i)};this.#r||!r?Ce(f,l,!1):l()}}};#f=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(O(s.effect),this.#n.delete(r))};ensure(t,n){var r=k,s=dn();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),f=W();i.append(f),this.#n.set(t,{effect:V(()=>n(f)),fragment:i})}else this.#e.set(t,V(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#o),r.ondiscard(this.#f)}else $&&(this.anchor=y),this.#o()}}function Fn(e,t,n=!1){$&&Me();var r=new Zr(e),s=n?ke:0;function i(f,l){if($){const u=Ut(e)===Ge;if(f===u){var o=nt();F(o),r.anchor=o,se(!1),r.ensure(f,l),se(!0);return}}r.ensure(f,l)}Tt(()=>{var f=!1;t((l,o=!0)=>{f=!0,i(o,l)}),f||i(!1,null)},s)}function Qr(e,t,n){for(var r=e.items,s=[],i=t.length,f=0;f<i;f++)St(t[f].e,s,!0);var l=i>0&&s.length===0&&n!==null;if(l){var o=n.parentNode;hn(o),o.append(n),r.clear(),ee(e,t[0].prev,t[i-1].next)}bn(s,()=>{for(var u=0;u<i;u++){var h=t[u];l||(r.delete(h.k),ee(e,h.prev,h.next)),O(h.e,!l)}})}function es(e,t,n,r,s,i=null){var f=e,l={flags:t,items:new Map,first:null};{var o=e;f=$?F(je(o)):o.appendChild(W())}$&&Me();var u=null,h=!1,d=new Map,a=tn(()=>{var p=n();return It(p)?p:p==null?[]:dt(p)}),c,_;function v(){ts(_,c,l,d,f,s,t,r,n),i!==null&&(c.length===0?u?At(u):u=V(()=>i(f)):u!==null&&Ce(u,()=>{u=null}))}Tt(()=>{_??=g,c=x(a);var p=c.length;if(h&&p===0)return;h=p===0;let S=!1;if($){var m=Ut(f)===Ge;m!==(p===0)&&(f=nt(),F(f),se(!1),S=!0)}if($){for(var b=null,T,E=0;E<p;E++){if(y.nodeType===Te&&y.data===ht){f=y,S=!0,se(!1);break}var G=c[E],A=r(G,E);T=Ct(y,l,b,null,G,A,E,s,t,n),l.items.set(A,T),b=T}p>0&&F(nt())}if($)p===0&&i&&(u=V(()=>i(f)));else if(dn()){var M=new Set,I=k;for(E=0;E<p;E+=1){G=c[E],A=r(G,E);var ze=l.items.get(A)??d.get(A);ze?jn(ze,G,E):(T=Ct(null,l,null,null,G,A,E,s,t,n,!0),d.set(A,T)),M.add(A)}for(const[Ke,We]of l.items)M.has(Ke)||I.skipped_effects.add(We.e);I.oncommit(v)}else v();S&&se(!0),x(a)}),$&&(f=y)}function ts(e,t,n,r,s,i,f,l,o){var u=t.length,h=n.items,d=n.first,a=d,c,_=null,v=[],p=[],S,m,b,T;for(T=0;T<u;T+=1){if(S=t[T],m=l(S,T),b=h.get(m),b===void 0){var E=r.get(m);if(E!==void 0){r.delete(m),h.set(m,E);var G=_?_.next:a;ee(n,_,E),ee(n,E,G),Ot(E,G,s),_=E}else{var A=a?a.e.nodes_start:s;_=Ct(A,n,_,_===null?n.first:_.next,S,m,T,i,f,o)}h.set(m,_),v=[],p=[],a=_.next;continue}if(jn(b,S,T),(b.e.f&q)!==0&&At(b.e),b!==a){if(c!==void 0&&c.has(b)){if(v.length<p.length){var M=p[0],I;_=M.prev;var ze=v[0],Ke=v[v.length-1];for(I=0;I<v.length;I+=1)Ot(v[I],M,s);for(I=0;I<p.length;I+=1)c.delete(p[I]);ee(n,ze.prev,Ke.next),ee(n,_,ze),ee(n,Ke,M),a=M,_=Ke,T-=1,v=[],p=[]}else c.delete(b),Ot(b,a,s),ee(n,b.prev,b.next),ee(n,b,_===null?n.first:_.next),ee(n,_,b),_=b;continue}for(v=[],p=[];a!==null&&a.k!==m;)(a.e.f&q)===0&&(c??=new Set).add(a),p.push(a),a=a.next;if(a===null)continue;b=a}v.push(b),_=b,a=b.next}if(a!==null||c!==void 0){for(var We=c===void 0?[]:dt(c);a!==null;)(a.e.f&q)===0&&We.push(a),a=a.next;var ys=We.length;if(ys>0){var Es=u===0?s:null;Qr(n,We,Es)}}e.first=n.first&&n.first.e,e.last=_&&_.e;for(var ks of r.values())O(ks.e);r.clear()}function jn(e,t,n,r){Le(e.v,t),e.i=n}function Ct(e,t,n,r,s,i,f,l,o,u,h){var d=(o&Un)!==0,a=(o&Yn)===0,c=d?a?fn(s,!1,!1):ge(s):s,_=(o&Vn)===0?f:ge(f),v={i:_,v:c,k:i,a:null,e:null,prev:n,next:r};try{if(e===null){var p=document.createDocumentFragment();p.append(e=W())}return v.e=V(()=>l(e,c,_,u),$),v.e.prev=n&&n.e,v.e.next=r&&r.e,n===null?h||(t.first=v):(n.next=v,n.e.next=v.e),r!==null&&(r.prev=v,r.e.prev=v.e),v}finally{}}function Ot(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var f=le(i);s.before(i),i=f}}function ee(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function ns(e,t,n,r,s){$&&Me();var i=t.$$slots?.[n],f=!1;i===!0&&(i=t[n],f=!0),i===void 0?s!==null&&s(e):i(e,f?()=>r:r)}function rs(e,t){Lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function ss(e,t){return e==null?null:String(e)}function is(e,t,n,r){var s=e.__style;if($||s!==t){var i=ss(t);(!$||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const fs=Symbol("is custom element"),ls=Symbol("is html");function os(e,t,n,r){var s=us(e);$&&(s[t]=e.getAttribute(t),e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&as(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function us(e){return e.__attributes??={[fs]:e.nodeName.includes("-"),[ls]:e.namespaceURI===Xn}}var qn=new Map;function as(e){var t=e.getAttribute("is")||e.nodeName,n=qn.get(t);if(n)return n;qn.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Qn(s);for(var f in r)r[f].set&&n.push(f);s=Lt(s)}return n}let ut=!1;function cs(e){var t=ut;try{return ut=!1,[e(),ut]}finally{ut=t}}function at(e,t,n,r){var s=(n&Wn)!==0,i=(n&Gn)!==0,f=r,l=!0,o=()=>(l&&(l=!1,f=i?On(r):r),f),u;if(s){var h=et in e||Ht in e;u=ve(e,t)?.set??(h&&t in e?m=>e[t]=m:void 0)}var d,a=!1;s?[d,a]=cs(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=o(),u&&(ar(),u(d)));var c;if(c=()=>{var m=e[t];return m===void 0?o():(l=!0,m)},(n&Kn)===0)return c;if(u){var _=e.$$legacy;return(function(m,b){return arguments.length>0?((!b||_||a)&&u(b?c():m),m):c()})}var v=!1,p=((n&zn)!==0?$t:tn)(()=>(v=!1,c()));s&&x(p);var S=g;return(function(m,b){if(arguments.length>0){const T=b?x(p):s?Ne(m):m;return fe(p,T),v=!0,f!==void 0&&(f=T),m}return be&&v||(S.f&ae)!==0?p.v:x(p)})}function hs(e){return new ds(e)}class ds{#t;#e;constructor(t){var n=new Map,r=(i,f)=>{var l=fn(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return x(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Ht?!0:(x(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return fe(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#e=(t.hydrate?Jr:In)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ie(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Xe(this,i,{get(){return this.#e[i]},set(f){this.#e[i]=f},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Xr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Bn;typeof HTMLElement=="function"&&(Bn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),ye(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=vs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=ct(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=hs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Dr(()=>{pn(()=>{this.$$r=!0;for(const r of Je(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=ct(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ct(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 Je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ct(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function vs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function _s(e,t,n,r,s,i){let f=class extends Bn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Je(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Je(t).forEach(l=>{Xe(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=ct(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var h=ve(u,l)?.get;h?u[l]=o:u.$set({[l]:o})}}})}),r.forEach(l=>{Xe(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}var ps=Ye('<a class="svelte-1bsvmkw"> </a>'),ws=Ye('<div class="svelte-1bsvmkw"> </div>'),gs=Ye('<div class="svelte-1bsvmkw"><!></div>'),ms=Ye('<div class="dropdown-content svelte-1bsvmkw" part="dropdowncontent"></div>'),bs=Ye('<div class="dropdown svelte-1bsvmkw" part="dropdown"><div class="dropbtn svelte-1bsvmkw" part="dropdownbutton"><!></div> <!></div>');const $s={hash:"svelte-1bsvmkw",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}.dropbtn.svelte-1bsvmkw {cursor:pointer;}.dropdown.svelte-1bsvmkw {position:relative;display:inline-block;}.dropdown-content.svelte-1bsvmkw {display:block;position:absolute;right:0;margin-top:10px;background-color:#f9f9f9;min-width:120px;box-shadow:0px 4px 8px 0px rgba(0, 0, 0, 0.2);z-index:1;font-size:0.8em;}.dropdown-content.svelte-1bsvmkw div:where(.svelte-1bsvmkw) {color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;cursor:pointer;}.dropdown-content.svelte-1bsvmkw a:where(.svelte-1bsvmkw) {width:100%;color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;}.dropdown-content.svelte-1bsvmkw div:where(.svelte-1bsvmkw):hover {background-color:#f1f1f1;}'};function Hn(e,t){zt(t,!0),rs(e,$s);let n=at(t,"id",7,""),r=at(t,"open",7,!1),s=at(t,"position",7),i=at(t,"list",23,()=>[]);Mr(()=>{console.log(r()),n()||n(""),s()||(t.$$host?.style?.float&&t.$$host.style.float==="right"?s("right"):s("left")),r()==="yes"||r()===""||r()===!0?r(!0):r(!1);try{i()&&!i()[0]?.key?i(JSON.parse(i())):i()||i([])}catch{i([])}});function f(v,p){t.$$host.dispatchEvent(new CustomEvent(v,{detail:p}))}function l(){r(!r()),f("dropdownSwitch",{open:r(),id:n()})}function o(v){f("dropDownClick",{key:v}),l()}var u={get id(){return n()},set id(v=""){n(v),Ie()},get open(){return r()},set open(v=!1){r(v),Ie()},get position(){return s()},set position(v){s(v),Ie()},get list(){return i()},set list(v=[]){i(v),Ie()}},h=bs(),d=qe(h);d.__click=l;var a=qe(d);ns(a,t,"dropdownbutton",{},v=>{var p=Kr("btn");ye(v,p)}),Se(d);var c=Nr(d,2);{var _=v=>{var p=ms();es(p,21,i,S=>S.key,(S,m)=>{var b=gs();b.__click=()=>o(x(m).key);var T=qe(b);{var E=A=>{var M=ps(),I=qe(M,!0);Se(M),xt(()=>{os(M,"href",x(m).linkHref),Dn(I,x(m).label)}),ye(A,M)},G=A=>{var M=ws(),I=qe(M,!0);Se(M),xt(()=>Dn(I,x(m).label)),ye(A,M)};Fn(T,A=>{x(m).linkHref?A(E):A(G,!1)})}Se(b),ye(S,b)}),Se(p),xt(()=>is(p,s()==="right"?"":"left:0;")),ye(v,p)};Fn(c,v=>{r()&&v(_)})}return Se(h),ye(e,h),Kt(u)}Yr(["click"]),customElements.define("hb-dropdown-simple",_s(Hn,{id:{},open:{},position:{},list:{}},["dropdownbutton"],[],!0)),Pt.Component=Hn,Object.defineProperty(Pt,Symbol.toStringTag,{value:"Module"})})(this["dropdown-simple"]=this["dropdown-simple"]||{});
|
|
11
3
|
//# sourceMappingURL=main.iife.js.map
|