@htmlbricks/hb-tooltip 0.66.6 → 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 +13 -13
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(Cn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ei=1,ni=2,kn="[",Ln="[!",Nn="[?",Pn="]",Dt={},M=Symbol(),ri="http://www.w3.org/1999/xhtml",ii="http://www.w3.org/2000/svg",si="http://www.w3.org/1998/Math/MathML",oi=!1;var li=Array.isArray,fi=Array.prototype.indexOf,Xt=Array.prototype.includes,ai=Array.from,be=Object.keys,xe=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,ci=Object.prototype,ui=Array.prototype,hi=Object.getPrototypeOf,Mn=Object.isExtensible;const di=()=>{};function vi(t){for(var e=0;e<t.length;e++)t[e]()}function Dn(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}const N=2,Kt=4,$e=8,Fn=1<<24,At=16,ht=32,Tt=64,Ue=128,J=512,k=1024,D=2048,dt=4096,vt=8192,nt=16384,St=32768,Xe=1<<25,Jt=65536,jn=1<<17,pi=1<<18,Ft=1<<19,_i=1<<20,jt=65536,Ge=1<<21,Ke=1<<22,Ot=1<<23,Ee=Symbol("$state"),gi=Symbol("legacy props"),bt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},le=3,fe=8;function mi(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function wi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function yi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $i(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ei(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ri(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ai(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ti(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Si(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ae(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Oi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let A=!1;function Zt(t){A=t}let R;function V(t){if(t===null)throw ae(),Dt;return R=t}function Qt(){return V(pt(R))}function Re(t){if(A){if(pt(R)!==null)throw ae(),Dt;R=t}}function Ci(t=1){if(A){for(var e=t,n=R;e--;)n=pt(n);R=n}}function In(t=!0){for(var e=0,n=R;;){if(n.nodeType===fe){var r=n.data;if(r===Pn){if(e===0)return n;e-=1}else(r===kn||r===Ln||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=pt(n);t&&n.remove(),n=i}}function ki(t){if(!t||t.nodeType!==fe)throw ae(),Dt;return t.data}function Vn(t){return t===this.v}function Li(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ni(t){return!Li(t,this.v)}let Pi=!1,B=null;function te(t){B=t}function Bn(t,e=!1,n){B={p:B,i:!1,c:null,e:null,s:t,x:null,r:y,l:null}}function Hn(t){var e=B,n=e.e;if(n!==null){e.e=null;for(var r of n)cr(r)}return t!==void 0&&(e.x=t),e.i=!0,B=e.p,t??{}}function Wn(){return!0}let It=[];function zn(){var t=It;It=[],vi(t)}function Vt(t){if(It.length===0&&!ce){var e=It;queueMicrotask(()=>{e===It&&zn()})}It.push(t)}function Mi(){for(;It.length>0;)zn()}function Yn(t){var e=y;if(e===null)return x.f|=Ot,t;if((e.f&St)===0&&(e.f&Kt)===0)throw t;Ct(t,e)}function Ct(t,e){for(;e!==null;){if((e.f&Ue)!==0){if((e.f&St)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Di=-7169;function C(t,e){t.f=t.f&Di|e}function Je(t){(t.f&J)!==0||t.deps===null?C(t,k):C(t,dt)}function qn(t){if(t!==null)for(const e of t)(e.f&N)===0||(e.f&jt)===0||(e.f^=jt,qn(e.deps))}function Un(t,e,n){(t.f&D)!==0?e.add(t):(t.f&dt)!==0&&n.add(t),qn(t.deps),C(t,k)}const kt=new Set;let T=null,rt=null,Ze=null,ce=!1,Qe=!1,ee=null,Ae=null;var Xn=0;let Fi=1;class xt{id=Fi++;current=new Map;previous=new Map;#t=new Set;#n=new Set;#e=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#f=new Map;is_fork=!1;#u=!1;#a=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#a)for(const i of r.#i.keys()){for(var e=!1,n=i;n.parent!==null;){if(this.#f.has(n)){e=!0;break}n=n.parent}if(!e)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]})}unskip_effect(e){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)C(r,D),this.schedule(r);for(r of n.m)C(r,dt),this.schedule(r)}}#d(){if(Xn++>1e3&&(kt.delete(this),ji()),!this.#h()){for(const l of this.#o)this.#l.delete(l),C(l,D),this.schedule(l);for(const l of this.#l)C(l,dt),this.schedule(l)}const e=this.#r;this.#r=[],this.apply();var n=ee=[],r=[],i=Ae=[];for(const l of e)try{this.#c(l,n,r)}catch(f){throw Qn(l),f}if(T=null,i.length>0){var s=xt.ensure();for(const l of i)s.schedule(l)}if(ee=null,Ae=null,this.#h()||this.#v()){this.#p(r),this.#p(n);for(const[l,f]of this.#f)Zn(l,f)}else{this.#e.size===0&&kt.delete(this),this.#o.clear(),this.#l.clear();for(const l of this.#t)l(this);this.#t.clear(),Gn(r),Gn(n),this.#s?.resolve()}var o=T;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(f=>!l.#r.includes(f)))}o!==null&&(kt.add(o),o.#d()),kt.has(this)||this.#_()}#c(e,n,r){e.f^=k;for(var i=e.first;i!==null;){var s=i.f,o=(s&(ht|Tt))!==0,l=o&&(s&k)!==0,f=l||(s&vt)!==0||this.#f.has(i);if(!f&&i.fn!==null){o?i.f^=k:(s&Kt)!==0?n.push(i):pe(i)&&((s&At)!==0&&this.#l.add(i),ne(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#p(e){for(var n=0;n<e.length;n+=1)Un(e[n],this.#o,this.#l)}capture(e,n,r=!1){n!==M&&!this.previous.has(e)&&this.previous.set(e,n),(e.f&Ot)===0&&(this.current.set(e,[e.v,r]),rt?.set(e,e.v))}activate(){T=this}deactivate(){T=null,rt=null}flush(){try{Qe=!0,T=this,this.#d()}finally{Xn=0,Ze=null,ee=null,Ae=null,Qe=!1,T=null,rt=null,Lt.clear()}}discard(){for(const e of this.#n)e(this);this.#n.clear(),kt.delete(this)}#_(){for(const a of kt){var e=a.id<this.id,n=[];for(const[c,[u,h]]of this.current){if(a.current.has(c)){var r=a.current.get(c)[0];if(e&&u!==r)a.current.set(c,[u,h]);else continue}n.push(c)}var i=[...a.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)e&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)Kn(l,i,s,o);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#c(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of kt)a.#a.has(this)&&(a.#a.delete(this),a.#a.size===0&&!a.#h()&&(a.activate(),a.#d()))}increment(e,n){let r=this.#e.get(n)??0;if(this.#e.set(n,r+1),e){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(e,n,r){let i=this.#e.get(n)??0;if(i===1?this.#e.delete(n):this.#e.set(n,i-1),e){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#u||r||(this.#u=!0,Vt(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,n){for(const r of e)this.#o.add(r);for(const r of n)this.#l.add(r);e.clear(),n.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#n.add(e)}settled(){return(this.#s??=Dn()).promise}static ensure(){if(T===null){const e=T=new xt;Qe||(kt.add(T),ce||Vt(()=>{T===e&&e.flush()}))}return T}apply(){{rt=null;return}}schedule(e){if(Ze=e,e.b?.is_pending&&(e.f&(Kt|$e|Fn))!==0&&(e.f&St)===0){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var r=n.f;if(ee!==null&&n===y&&(x===null||(x.f&N)===0))return;if((r&(Tt|ht))!==0){if((r&k)===0)return;n.f^=k}}this.#r.push(n)}}function Te(t){var e=ce;ce=!0;try{for(var n;;){if(Mi(),T===null)return n;T.flush()}}finally{ce=e}}function ji(){try{$i()}catch(t){Ct(t,Ze)}}let $t=null;function Gn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(nt|vt))===0&&pe(r)&&($t=new Set,ne(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&pr(r),$t?.size>0)){Lt.clear();for(const i of $t){if((i.f&(nt|vt))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)$t.has(o)&&($t.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(nt|vt))===0&&ne(f)}}$t.clear()}}$t=null}}function Kn(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const i of t.reactions){const s=i.f;(s&N)!==0?Kn(i,e,n,r):(s&(Ke|At))!==0&&(s&D)===0&&Jn(i,e,r)&&(C(i,D),tn(i))}}function Jn(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const i of t.deps){if(Xt.call(e,i))return!0;if((i.f&N)!==0&&Jn(i,e,n))return n.set(i,!0),!0}return n.set(t,!1),!1}function tn(t){T.schedule(t)}function Zn(t,e){if(!((t.f&ht)!==0&&(t.f&k)!==0)){(t.f&D)!==0?e.d.push(t):(t.f&dt)!==0&&e.m.push(t),C(t,k);for(var n=t.first;n!==null;)Zn(n,e),n=n.next}}function Qn(t){C(t,k);for(var e=t.first;e!==null;)Qn(e),e=e.next}function Ii(t){let e=0,n=ue(0),r;return()=>{cn()&&(w(n),hn(()=>(e===0&&(r=vn(()=>t(()=>he(n)))),e+=1,()=>{Vt(()=>{e-=1,e===0&&(r?.(),r=void 0,he(n))})})))}}var Vi=Jt|Ft;function Bi(t,e,n,r){new Hi(t,e,n,r)}class Hi{parent;is_pending=!1;transform_error;#t;#n=A?R:null;#e;#i;#s;#r=null;#o=null;#l=null;#f=null;#u=0;#a=0;#h=!1;#v=new Set;#d=new Set;#c=null;#p=Ii(()=>(this.#c=ue(this.#u),()=>{this.#c=null}));constructor(e,n,r,i){this.#t=e,this.#e=n,this.#i=s=>{var o=y;o.b=this,o.f|=Ue,r(s)},this.parent=y.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=hr(()=>{if(A){const s=this.#n;Qt();const o=s.data===Ln;if(s.data.startsWith(Nn)){const f=JSON.parse(s.data.slice(Nn.length));this.#b(f)}else o?this.#x():this.#_()}else this.#w()},Vi),A&&(this.#t=R)}#_(){try{this.#r=Et(()=>this.#i(this.#t))}catch(e){this.error(e)}}#b(e){const n=this.#e.failed;n&&(this.#l=Et(()=>{n(this.#t,()=>e,()=>()=>{})}))}#x(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#o=Et(()=>e(this.#t)),Vt(()=>{var n=this.#f=document.createDocumentFragment(),r=st();n.append(r),this.#r=this.#m(()=>Et(()=>this.#i(r))),this.#a===0&&(this.#t.before(n),this.#f=null,ve(this.#o,()=>{this.#o=null}),this.#g(T))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#u=0,this.#r=Et(()=>{this.#i(this.#t)}),this.#a>0){var e=this.#f=document.createDocumentFragment();mr(this.#r,e);const n=this.#e.pending;this.#o=Et(()=>n(this.#t))}else this.#g(T)}catch(n){this.error(n)}}#g(e){this.is_pending=!1,e.transfer_effects(this.#v,this.#d)}defer_effect(e){Un(e,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#m(e){var n=y,r=x,i=B;gt(this.#s),Z(this.#s),te(this.#s.ctx);try{return xt.ensure(),e()}catch(s){return Yn(s),null}finally{gt(n),Z(r),te(i)}}#y(e,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,n);return}this.#a+=e,this.#a===0&&(this.#g(n),this.#o&&ve(this.#o,()=>{this.#o=null}),this.#f&&(this.#t.before(this.#f),this.#f=null))}update_pending_count(e,n){this.#y(e,n),this.#u+=e,!(!this.#c||this.#h)&&(this.#h=!0,Vt(()=>{this.#h=!1,this.#c&&Oe(this.#c,this.#u)}))}get_effect_pending(){return this.#p(),w(this.#c)}error(e){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw e;this.#r&&(W(this.#r),this.#r=null),this.#o&&(W(this.#o),this.#o=null),this.#l&&(W(this.#l),this.#l=null),A&&(V(this.#n),Ci(),V(In()));var i=!1,s=!1;const o=()=>{if(i){Oi();return}i=!0,s&&Si(),this.#l!==null&&ve(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#w()})},l=f=>{try{s=!0,n?.(f,o),s=!1}catch(a){Ct(a,this.#s&&this.#s.parent)}r&&(this.#l=this.#m(()=>{try{return Et(()=>{var a=y;a.b=this,a.f|=Ue,r(this.#t,()=>f,()=>o)})}catch(a){return Ct(a,this.#s.parent),null}}))};Vt(()=>{var f;try{f=this.transform_error(e)}catch(a){Ct(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(l,a=>Ct(a,this.#s&&this.#s.parent)):l(f)})}}function Wi(t,e,n,r){const i=en;var s=t.filter(h=>!h.settled);if(n.length===0&&s.length===0){r(e.map(i));return}var o=y,l=zi(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function a(h){l();try{r(h)}catch(d){(o.f&nt)===0&&Ct(d,o)}Se()}if(n.length===0){f.then(()=>a(e.map(i)));return}var c=tr();function u(){Promise.all(n.map(h=>Yi(h))).then(h=>a([...e.map(i),...h])).catch(h=>Ct(h,o)).finally(()=>c())}f?f.then(()=>{l(),u(),Se()}):u()}function zi(){var t=y,e=x,n=B,r=T;return function(s=!0){gt(t),Z(e),te(n),s&&(t.f&nt)===0&&(r?.activate(),r?.apply())}}function Se(t=!0){gt(null),Z(null),te(null),t&&T?.deactivate()}function tr(){var t=y,e=t.b,n=T,r=e.is_rendered();return e.update_pending_count(1,n),n.increment(r,t),(i=!1)=>{e.update_pending_count(-1,n),n.decrement(r,t,i)}}function en(t){var e=N|D,n=x!==null&&(x.f&N)!==0?x:null;return y!==null&&(y.f|=Ft),{ctx:B,deps:null,effects:null,equals:Vn,f:e,fn:t,reactions:null,rv:0,v:M,wv:0,parent:n??y,ac:null}}function Yi(t,e,n){let r=y;r===null&&wi();var i=void 0,s=ue(M),o=!x,l=new Map;return rs(()=>{var f=y,a=Dn();i=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject).finally(Se)}catch(d){a.reject(d),Se()}var c=T;if(o){if((f.f&St)!==0)var u=tr();if(r.b.is_rendered())l.get(c)?.reject(bt),l.delete(c);else{for(const d of l.values())d.reject(bt);l.clear()}l.set(c,a)}const h=(d,v=void 0)=>{if(u){var p=v===bt;u(p)}if(!(v===bt||(f.f&nt)!==0)){if(c.activate(),v)s.f|=Ot,Oe(s,v);else{(s.f&Ot)!==0&&(s.f^=Ot),Oe(s,d);for(const[_,g]of l){if(l.delete(_),_===c)break;g.reject(bt)}}c.deactivate()}};a.promise.then(h,d=>h(null,d||"unknown"))}),ar(()=>{for(const f of l.values())f.reject(bt)}),new Promise(f=>{function a(c){function u(){c===i?f(s):a(i)}c.then(u,u)}a(i)})}function nn(t){const e=en(t);return yr(e),e}function qi(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)W(e[n])}}function Ui(t){for(var e=t.parent;e!==null;){if((e.f&N)===0)return(e.f&nt)===0?e:null;e=e.parent}return null}function rn(t){var e,n=y;gt(Ui(t));try{t.f&=~jt,qi(t),e=Rr(t)}finally{gt(n)}return e}function er(t){var e=t.v,n=rn(t);if(!t.equals(n)&&(t.wv=$r(),(!T?.is_fork||t.deps===null)&&(t.v=n,T?.capture(t,e,!0),t.deps===null))){C(t,k);return}Nt||(rt!==null?(cn()||T?.is_fork)&&rt.set(t,n):Je(t))}function Xi(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(bt),e.teardown=di,e.ac=null,_e(e,0),dn(e))}function nr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ne(e)}let sn=new Set;const Lt=new Map;let rr=!1;function ue(t,e){var n={f:0,v:t,reactions:null,equals:Vn,rv:0,wv:0};return n}function it(t,e){const n=ue(t);return yr(n),n}function Gi(t,e=!1,n=!0){const r=ue(t);return e||(r.equals=Ni),r}function H(t,e,n=!1){x!==null&&(!lt||(x.f&jn)!==0)&&Wn()&&(x.f&(N|At|Ke|jn))!==0&&(Q===null||!Xt.call(Q,t))&&Ti();let r=n?de(e):e;return Oe(t,r,Ae)}function Oe(t,e,n=null){if(!t.equals(e)){var r=t.v;Nt?Lt.set(t,e):Lt.set(t,r),t.v=e;var i=xt.ensure();if(i.capture(t,r),(t.f&N)!==0){const s=t;(t.f&D)!==0&&rn(s),rt===null&&Je(s)}t.wv=$r(),ir(t,D,n),y!==null&&(y.f&k)!==0&&(y.f&(ht|Tt))===0&&(tt===null?os([t]):tt.push(t)),!i.is_fork&&sn.size>0&&!rr&&Ki()}return e}function Ki(){rr=!1;for(const t of sn)(t.f&k)!==0&&C(t,dt),pe(t)&&ne(t);sn.clear()}function he(t){H(t,t.v+1)}function ir(t,e,n){var r=t.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,f=(l&D)===0;if(f&&C(o,e),(l&N)!==0){var a=o;rt?.delete(a),(l&jt)===0&&(l&J&&(o.f|=jt),ir(a,dt,n))}else if(f){var c=o;(l&At)!==0&&$t!==null&&$t.add(c),n!==null?n.push(c):tn(c)}}}function de(t){if(typeof t!="object"||t===null||Ee in t)return t;const e=hi(t);if(e!==ci&&e!==ui)return t;var n=new Map,r=li(t),i=it(0),s=Ht,o=l=>{if(Ht===s)return l();var f=x,a=Ht;Z(null),xr(s);var c=l();return Z(f),xr(a),c};return r&&n.set("length",it(t.length)),new Proxy(t,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Ri();var c=n.get(f);return c===void 0?o(()=>{var u=it(a.value);return n.set(f,u),u}):H(c,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const c=o(()=>it(M));n.set(f,c),he(i)}}else H(a,M),he(i);return!0},get(l,f,a){if(f===Ee)return t;var c=n.get(f),u=f in l;if(c===void 0&&(!u||Gt(l,f)?.writable)&&(c=o(()=>{var d=de(u?l[f]:M),v=it(d);return v}),n.set(f,c)),c!==void 0){var h=w(c);return h===M?void 0:h}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var c=n.get(f);c&&(a.value=w(c))}else if(a===void 0){var u=n.get(f),h=u?.v;if(u!==void 0&&h!==M)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return a},has(l,f){if(f===Ee)return!0;var a=n.get(f),c=a!==void 0&&a.v!==M||Reflect.has(l,f);if(a!==void 0||y!==null&&(!c||Gt(l,f)?.writable)){a===void 0&&(a=o(()=>{var h=c?de(l[f]):M,d=it(h);return d}),n.set(f,a));var u=w(a);if(u===M)return!1}return c},set(l,f,a,c){var u=n.get(f),h=f in l;if(r&&f==="length")for(var d=a;d<u.v;d+=1){var v=n.get(d+"");v!==void 0?H(v,M):d in l&&(v=o(()=>it(M)),n.set(d+"",v))}if(u===void 0)(!h||Gt(l,f)?.writable)&&(u=o(()=>it(void 0)),H(u,de(a)),n.set(f,u));else{h=u.v!==M;var p=o(()=>de(a));H(u,p)}var _=Reflect.getOwnPropertyDescriptor(l,f);if(_?.set&&_.set.call(c,a),!h){if(r&&typeof f=="string"){var g=n.get("length"),$=Number(f);Number.isInteger($)&&$>=g.v&&H(g,$+1)}he(i)}return!0},ownKeys(l){w(i);var f=Reflect.ownKeys(l).filter(u=>{var h=n.get(u);return h===void 0||h.v!==M});for(var[a,c]of n)c.v!==M&&!(a in l)&&f.push(a);return f},setPrototypeOf(){Ai()}})}var sr,or,lr,fr;function on(){if(sr===void 0){sr=window,or=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;lr=Gt(e,"firstChild").get,fr=Gt(e,"nextSibling").get,Mn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Mn(n)&&(n.__t=void 0)}}function st(t=""){return document.createTextNode(t)}function ot(t){return lr.call(t)}function pt(t){return fr.call(t)}function Ce(t,e){if(!A)return ot(t);var n=ot(R);if(n===null)n=R.appendChild(st());else if(e&&n.nodeType!==le){var r=st();return n?.before(r),V(r),r}return e&&Le(n),V(n),n}function ln(t,e=!1){if(!A){var n=ot(t);return n instanceof Comment&&n.data===""?pt(n):n}if(e){if(R?.nodeType!==le){var r=st();return R?.before(r),V(r),r}Le(R)}return R}function fn(t,e=1,n=!1){let r=A?R:t;for(var i;e--;)i=r,r=pt(r);if(!A)return r;if(n){if(r?.nodeType!==le){var s=st();return r===null?i?.after(s):r.before(s),V(s),s}Le(r)}return V(r),r}function Ji(t){t.textContent=""}function Zi(){return!1}function ke(t,e,n){return document.createElementNS(e??ri,t,void 0)}function Le(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===le;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function an(t){var e=x,n=y;Z(null),gt(null);try{return t()}finally{Z(e),gt(n)}}function Qi(t){y===null&&(x===null&&xi(),bi()),Nt&&yi()}function ts(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function _t(t,e){var n=y;n!==null&&(n.f&vt)!==0&&(t|=vt);var r={ctx:B,deps:null,nodes:null,f:t|D|J,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((t&Kt)!==0)ee!==null?ee.push(r):xt.ensure().schedule(r);else if(e!==null){try{ne(r)}catch(o){throw W(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ft)===0&&(i=i.first,(t&At)!==0&&(t&Jt)!==0&&i!==null&&(i.f|=Jt))}if(i!==null&&(i.parent=n,n!==null&&ts(i,n),x!==null&&(x.f&N)!==0&&(t&Tt)===0)){var s=x;(s.effects??=[]).push(i)}return r}function cn(){return x!==null&&!lt}function ar(t){const e=_t($e,null);return C(e,k),e.teardown=t,e}function un(t){Qi();var e=y.f,n=!x&&(e&ht)!==0&&(e&St)===0;if(n){var r=B;(r.e??=[]).push(t)}else return cr(t)}function cr(t){return _t(Kt|_i,t)}function es(t){xt.ensure();const e=_t(Tt|Ft,t);return()=>{W(e)}}function ns(t){xt.ensure();const e=_t(Tt|Ft,t);return(n={})=>new Promise(r=>{n.outro?ve(e,()=>{W(e),r(void 0)}):(W(e),r(void 0))})}function ur(t){return _t(Kt,t)}function rs(t){return _t(Ke|Ft,t)}function hn(t,e=0){return _t($e|e,t)}function Ne(t,e=[],n=[],r=[]){Wi(r,e,n,i=>{_t($e,()=>t(...i.map(w)))})}function hr(t,e=0){var n=_t(At|e,t);return n}function Et(t){return _t(ht|Ft,t)}function dr(t){var e=t.teardown;if(e!==null){const n=Nt,r=x;wr(!0),Z(null);try{e.call(null)}finally{wr(n),Z(r)}}}function dn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&an(()=>{i.abort(bt)});var r=n.next;(n.f&Tt)!==0?n.parent=null:W(n,e),n=r}}function is(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&ht)===0&&W(e),e=n}}function W(t,e=!0){var n=!1;(e||(t.f&pi)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(vr(t.nodes.start,t.nodes.end),n=!0),C(t,Xe),dn(t,e&&!n),_e(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const s of r)s.stop();dr(t),t.f^=Xe,t.f|=nt;var i=t.parent;i!==null&&i.first!==null&&pr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function vr(t,e){for(;t!==null;){var n=t===e?null:pt(t);t.remove(),t=n}}function pr(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ve(t,e,n=!0){var r=[];_r(t,r,!0);var i=()=>{n&&W(t),e&&e()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function _r(t,e,n){if((t.f&vt)===0){t.f^=vt;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&e.push(l);for(var i=t.first;i!==null;){var s=i.next,o=(i.f&Jt)!==0||(i.f&ht)!==0&&(t.f&At)!==0;_r(i,e,o?n:!1),i=s}}}function ss(t){gr(t,!0)}function gr(t,e){if((t.f&vt)!==0){t.f^=vt,(t.f&k)===0&&(C(t,D),xt.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&Jt)!==0||(n.f&ht)!==0;gr(n,i?e:!1),n=r}var s=t.nodes&&t.nodes.t;if(s!==null)for(const o of s)(o.is_global||e)&&o.in()}}function mr(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:pt(n);e.append(n),n=i}}let Pe=!1,Nt=!1;function wr(t){Nt=t}let x=null,lt=!1;function Z(t){x=t}let y=null;function gt(t){y=t}let Q=null;function yr(t){x!==null&&(Q===null?Q=[t]:Q.push(t))}let z=null,U=0,tt=null;function os(t){tt=t}let br=1,Bt=0,Ht=Bt;function xr(t){Ht=t}function $r(){return++br}function pe(t){var e=t.f;if((e&D)!==0)return!0;if(e&N&&(t.f&=~jt),(e&dt)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(pe(s)&&er(s),s.wv>t.wv)return!0}(e&J)!==0&&rt===null&&C(t,k)}return!1}function Er(t,e,n=!0){var r=t.reactions;if(r!==null&&!(Q!==null&&Xt.call(Q,t)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&N)!==0?Er(s,e,!1):e===s&&(n?C(s,D):(s.f&k)!==0&&C(s,dt),tn(s))}}function Rr(t){var e=z,n=U,r=tt,i=x,s=Q,o=B,l=lt,f=Ht,a=t.f;z=null,U=0,tt=null,x=(a&(ht|Tt))===0?t:null,Q=null,te(t.ctx),lt=!1,Ht=++Bt,t.ac!==null&&(an(()=>{t.ac.abort(bt)}),t.ac=null);try{t.f|=Ge;var c=t.fn,u=c();t.f|=St;var h=t.deps,d=T?.is_fork;if(z!==null){var v;if(d||_e(t,U),h!==null&&U>0)for(h.length=U+z.length,v=0;v<z.length;v++)h[U+v]=z[v];else t.deps=h=z;if(cn()&&(t.f&J)!==0)for(v=U;v<h.length;v++)(h[v].reactions??=[]).push(t)}else!d&&h!==null&&U<h.length&&(_e(t,U),h.length=U);if(Wn()&&tt!==null&&!lt&&h!==null&&(t.f&(N|dt|D))===0)for(v=0;v<tt.length;v++)Er(tt[v],t);if(i!==null&&i!==t){if(Bt++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=Bt;if(e!==null)for(const p of e)p.rv=Bt;tt!==null&&(r===null?r=tt:r.push(...tt))}return(t.f&Ot)!==0&&(t.f^=Ot),u}catch(p){return Yn(p)}finally{t.f^=Ge,z=e,U=n,tt=r,x=i,Q=s,te(o),lt=l,Ht=f}}function ls(t,e){let n=e.reactions;if(n!==null){var r=fi.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&N)!==0&&(z===null||!Xt.call(z,e))){var s=e;(s.f&J)!==0&&(s.f^=J,s.f&=~jt),Je(s),Xi(s),_e(s,0)}}function _e(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)ls(t,n[r])}function ne(t){var e=t.f;if((e&nt)===0){C(t,k);var n=y,r=Pe;y=t,Pe=!0;try{(e&(At|Fn))!==0?is(t):dn(t),dr(t);var i=Rr(t);t.teardown=typeof i=="function"?i:null,t.wv=br;var s;oi&&Pi&&(t.f&D)!==0&&t.deps}finally{Pe=r,y=n}}}function w(t){var e=t.f,n=(e&N)!==0;if(x!==null&&!lt){var r=y!==null&&(y.f&nt)!==0;if(!r&&(Q===null||!Xt.call(Q,t))){var i=x.deps;if((x.f&Ge)!==0)t.rv<Bt&&(t.rv=Bt,z===null&&i!==null&&i[U]===t?U++:z===null?z=[t]:z.push(t));else{(x.deps??=[]).push(t);var s=t.reactions;s===null?t.reactions=[x]:Xt.call(s,x)||s.push(x)}}}if(Nt&&Lt.has(t))return Lt.get(t);if(n){var o=t;if(Nt){var l=o.v;return((o.f&k)===0&&o.reactions!==null||Tr(o))&&(l=rn(o)),Lt.set(o,l),l}var f=(o.f&J)===0&&!lt&&x!==null&&(Pe||(x.f&J)!==0),a=(o.f&St)===0;pe(o)&&(f&&(o.f|=J),er(o)),f&&!a&&(nr(o),Ar(o))}if(rt?.has(t))return rt.get(t);if((t.f&Ot)!==0)throw t.v;return t.v}function Ar(t){if(t.f|=J,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&N)!==0&&(e.f&J)===0&&(nr(e),Ar(e))}function Tr(t){if(t.v===M)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Lt.has(e)||(e.f&N)!==0&&Tr(e))return!0;return!1}function vn(t){var e=lt;try{return lt=!0,t()}finally{lt=e}}const Me=Symbol("events"),fs=new Set,Sr=new Set;function as(t,e,n,r={}){function i(s){if(r.capture||pn.call(e,s),!s.cancelBubble)return an(()=>n?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Vt(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function De(t,e,n,r,i){var s={capture:r,passive:i},o=as(t,e,n,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ar(()=>{e.removeEventListener(t,o,s)})}let Or=null;function pn(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;Or=t;var o=0,l=Or===t&&t[Me];if(l){var f=i.indexOf(l);if(f!==-1&&(e===document||e===window)){t[Me]=e;return}var a=i.indexOf(e);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||t.target,s!==e){xe(t,"currentTarget",{configurable:!0,get(){return s||n}});var c=x,u=y;Z(null),gt(null);try{for(var h,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[Me]?.[r];p!=null&&(!s.disabled||t.target===s)&&p.call(s,t)}catch(_){h?d.push(_):h=_}if(t.cancelBubble||v===e||v===null)break;s=v}if(h){for(let _ of d)queueMicrotask(()=>{throw _});throw h}}finally{t[Me]=e,delete t.currentTarget,Z(c),gt(u)}}}const cs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function us(t){return cs?.createHTML(t)??t}function hs(t){var e=ke("template");return e.innerHTML=us(t.replaceAll("<!>","<!---->")),e.content}function ft(t,e){var n=y;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function _n(t,e){var n=(e&ei)!==0,r=(e&ni)!==0,i,s=!t.startsWith("<!>");return()=>{if(A)return ft(R,null),R;i===void 0&&(i=hs(s?t:"<!>"+t),n||(i=ot(i)));var o=r||or?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=ot(o),f=o.lastChild;ft(l,f)}else ft(o,o);return o}}function Cr(t=""){if(!A){var e=st(t+"");return ft(e,e),e}var n=R;return n.nodeType!==le?(n.before(n=st()),V(n)):Le(n),ft(n,n),n}function ds(){if(A)return ft(R,null),R;var t=document.createDocumentFragment(),e=document.createComment(""),n=st();return t.append(e,n),ft(e,n),t}function Wt(t,e){if(A){var n=y;((n.f&St)===0||n.nodes.end===null)&&(n.nodes.end=R),Qt();return}t!==null&&t.before(e)}const vs=["touchstart","touchmove"];function ps(t){return vs.includes(t)}function gn(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=`${n}`)}function kr(t,e){return Lr(t,e)}function _s(t,e){on(),e.intro=e.intro??!1;const n=e.target,r=A,i=R;try{for(var s=ot(n);s&&(s.nodeType!==fe||s.data!==kn);)s=pt(s);if(!s)throw Dt;Zt(!0),V(s);const o=Lr(t,{...e,anchor:s});return Zt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Dt&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Ei(),on(),Ji(n),Zt(!1),kr(t,e)}finally{Zt(r),V(i)}}const Fe=new Map;function Lr(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){on();var f=void 0,a=ns(()=>{var c=n??e.appendChild(st());Bi(c,{pending:()=>{}},d=>{Bn({});var v=B;if(s&&(v.c=s),i&&(r.$$events=i),A&&ft(d,null),f=t(d,r)||{},A&&(y.nodes.end=R,R===null||R.nodeType!==fe||R.data!==Pn))throw ae(),Dt;Hn()},l);var u=new Set,h=d=>{for(var v=0;v<d.length;v++){var p=d[v];if(!u.has(p)){u.add(p);var _=ps(p);for(const b of[e,document]){var g=Fe.get(b);g===void 0&&(g=new Map,Fe.set(b,g));var $=g.get(p);$===void 0?(b.addEventListener(p,pn,{passive:_}),g.set(p,1)):g.set(p,$+1)}}}};return h(ai(fs)),Sr.add(h),()=>{for(var d of u)for(const _ of[e,document]){var v=Fe.get(_),p=v.get(d);--p==0?(_.removeEventListener(d,pn),v.delete(d),v.size===0&&Fe.delete(_)):v.set(d,p)}Sr.delete(h),c!==n&&c.parentNode?.removeChild(c)}});return mn.set(f,a),f}let mn=new WeakMap;function gs(t,e){const n=mn.get(t);return n?(mn.delete(t),n(e)):Promise.resolve()}class ms{anchor;#t=new Map;#n=new Map;#e=new Map;#i=new Set;#s=!0;constructor(e,n=!0){this.anchor=e,this.#s=n}#r=e=>{if(this.#t.has(e)){var n=this.#t.get(e),r=this.#n.get(n);if(r)ss(r),this.#i.delete(n);else{var i=this.#e.get(n);i&&(this.#n.set(n,i.effect),this.#e.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===e)break;const l=this.#e.get(o);l&&(W(l.effect),this.#e.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();mr(o,a),a.append(st()),this.#e.set(s,{effect:o,fragment:a})}else W(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),ve(o,l,!1)):l()}}};#o=e=>{this.#t.delete(e);const n=Array.from(this.#t.values());for(const[r,i]of this.#e)n.includes(r)||(W(i.effect),this.#e.delete(r))};ensure(e,n){var r=T,i=Zi();if(n&&!this.#n.has(e)&&!this.#e.has(e))if(i){var s=document.createDocumentFragment(),o=st();s.append(o),this.#e.set(e,{effect:Et(()=>n(o)),fragment:s})}else this.#n.set(e,Et(()=>n(this.anchor)));if(this.#t.set(r,e),i){for(const[l,f]of this.#n)l===e?r.unskip_effect(f):r.skip_effect(f);for(const[l,f]of this.#e)l===e?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else A&&(this.anchor=R),this.#r(r)}}function ws(t){B===null&&mi(),un(()=>{const e=vn(t);if(typeof e=="function")return e})}function Nr(t,e,n=!1){var r;A&&(r=R,Qt());var i=new ms(t),s=n?Jt:0;function o(l,f){if(A){var a=ki(r);if(l!==parseInt(a.substring(1))){var c=In();V(c),i.anchor=c,Zt(!1),i.ensure(l,f),Zt(!0);return}}i.ensure(l,f)}hr(()=>{var l=!1;e((f,a=0)=>{l=!0,o(a,f)}),l||o(-1,null)},s)}function ys(t,e,n=!1,r=!1,i=!1,s=!1){var o=t,l="";if(n){var f=t;A&&(o=V(ot(f)))}Ne(()=>{var a=y;if(l===(l=e()??"")){A&&Qt();return}if(n&&!A){a.nodes=null,f.innerHTML=l,l!==""&&ft(ot(f),f.lastChild);return}if(a.nodes!==null&&(vr(a.nodes.start,a.nodes.end),a.nodes=null),l!==""){if(A){R.data;for(var c=Qt(),u=c;c!==null&&(c.nodeType!==fe||c.data!=="");)u=c,c=pt(c);if(c===null)throw ae(),Dt;ft(R,u),o=V(c);return}var h=r?ii:i?si:void 0,d=ke(r?"svg":i?"math":"template",h);d.innerHTML=l;var v=r||i?d:d.content;if(ft(ot(v),v.lastChild),r||i)for(;ot(v);)o.before(ot(v));else o.before(v)}})}function bs(t,e,n,r,i){A&&Qt();var s=e.$$slots?.[n],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?i!==null&&i(t):s(t,o?()=>r:r)}function xs(t,e){ur(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=ke("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function $s(t,e){return t==null?null:String(t)}function Es(t,e,n,r){var i=t.__style;if(A||i!==e){var s=$s(e);(!A||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}return r}function Pr(t,e){return t===e||t?.[Ee]===e}function Mr(t={},e,n,r){var i=B.r,s=y;return ur(()=>{var o,l;return hn(()=>{o=l,l=[],vn(()=>{t!==n(...l)&&(e(t,...l),o&&Pr(n(...o),t)&&e(null,...o))})}),()=>{let f=s;for(;f!==i&&f.parent!==null&&f.parent.f&Xe;)f=f.parent;const a=()=>{l&&Pr(n(...l),t)&&e(null,...l)},c=f.teardown;f.teardown=()=>{a(),c?.()}}}),t}function wn(t,e,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=t[e],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var h=t[e];return h===void 0?o():(s=!0,h)};var a=!1,c=en(()=>(a=!1,f())),u=y;return(function(h,d){if(arguments.length>0){const v=d?w(c):h;return H(c,v),a=!0,i!==void 0&&(i=v),h}return Nt&&a||(u.f&nt)!==0?c.v:w(c)})}function Rs(t){return new As(t)}class As{#t;#n;constructor(e){var n=new Map,r=(s,o)=>{var l=Gi(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...e.props||{},$$events:{}},{get(s,o){return w(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===gi?!0:(w(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return H(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(e.hydrate?_s:kr)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Te(),this.#t=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||xe(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{gs(this.#n)}}$set(e){this.#n.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const r=(...i)=>n.call(this,...i);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Dr;typeof HTMLElement=="function"&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=ke("slot");r!=="default"&&(s.name=r),Wt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Ts(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=je(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=Rs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=es(()=>{hn(()=>{this.$$r=!0;for(const r of be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=je(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(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return be(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function je(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ts(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Ss(t,e,n,r,i,s){let o=class extends Dr{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return be(e).map(l=>(e[l].attribute||l).toLowerCase())}};return be(e).forEach(l=>{xe(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=je(l,f,e),this.$$d[l]=f;var a=this.$$c;if(a){var c=Gt(a,l)?.get;c?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{xe(o.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=o,o}const re=Math.min,zt=Math.max,Ie=Math.round,Ve=Math.floor,mt=t=>({x:t,y:t}),Os={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(t,e,n){return zt(t,re(e,n))}function ge(t,e){return typeof t=="function"?t(e):t}function Yt(t){return t.split("-")[0]}function me(t){return t.split("-")[1]}function Fr(t){return t==="x"?"y":"x"}function bn(t){return t==="y"?"height":"width"}function Pt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function xn(t){return Fr(Pt(t))}function Cs(t,e,n){n===void 0&&(n=!1);const r=me(t),i=xn(t),s=bn(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Be(o)),[o,Be(o)]}function ks(t){const e=Be(t);return[$n(t),e,$n(e)]}function $n(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const jr=["left","right"],Ir=["right","left"],Ls=["top","bottom"],Ns=["bottom","top"];function Ps(t,e,n){switch(t){case"top":case"bottom":return n?e?Ir:jr:e?jr:Ir;case"left":case"right":return e?Ls:Ns;default:return[]}}function Ms(t,e,n,r){const i=me(t);let s=Ps(Yt(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map($n)))),s}function Be(t){const e=Yt(t);return Os[e]+t.slice(e.length)}function Ds(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vr(t){return typeof t!="number"?Ds(t):{top:t,right:t,bottom:t,left:t}}function He(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Br(t,e,n){let{reference:r,floating:i}=t;const s=Pt(e),o=xn(e),l=bn(o),f=Yt(e),a=s==="y",c=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[l]/2-i[l]/2;let d;switch(f){case"top":d={x:c,y:r.y-i.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-i.width,y:u};break;default:d={x:r.x,y:r.y}}switch(me(e)){case"start":d[o]-=h*(n&&a?-1:1);break;case"end":d[o]+=h*(n&&a?-1:1);break}return d}async function Fs(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:l,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=ge(e,t),v=Vr(d),_=l[h?u==="floating"?"reference":"floating":u],g=He(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:f})),$=u==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),S=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},F=He(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:b,strategy:f}):$);return{top:(g.top-F.top+v.top)/S.y,bottom:(F.bottom-g.bottom+v.bottom)/S.y,left:(g.left-F.left+v.left)/S.x,right:(F.right-g.right+v.right)/S.x}}const js=50,Is=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,l=o.detectOverflow?o:{...o,detectOverflow:Fs},f=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:u}=Br(a,r,f),h=r,d=0;const v={};for(let p=0;p<s.length;p++){const _=s[p];if(!_)continue;const{name:g,fn:$}=_,{x:b,y:S,data:F,reset:L}=await $({x:c,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:v,rects:a,platform:l,elements:{reference:t,floating:e}});c=b??c,u=S??u,v[g]={...v[g],...F},L&&d<js&&(d++,typeof L=="object"&&(L.placement&&(h=L.placement),L.rects&&(a=L.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):L.rects),{x:c,y:u}=Br(a,h,f)),p=-1)}return{x:c,y:u,placement:h,strategy:i,middlewareData:v}},Vs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:l,middlewareData:f}=e,{element:a,padding:c=0}=ge(t,e)||{};if(a==null)return{};const u=Vr(c),h={x:n,y:r},d=xn(i),v=bn(d),p=await o.getDimensions(a),_=d==="y",g=_?"top":"left",$=_?"bottom":"right",b=_?"clientHeight":"clientWidth",S=s.reference[v]+s.reference[d]-h[d]-s.floating[v],F=h[d]-s.reference[d],L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let m=L?L[b]:0;(!m||!await(o.isElement==null?void 0:o.isElement(L)))&&(m=l.floating[b]||s.floating[v]);const O=S/2-F/2,Y=m/2-p[v]/2-1,j=re(u[g],Y),ut=re(u[$],Y),G=j,et=m-p[v]-ut,E=m/2-p[v]/2+O,P=yn(G,E,et),I=!f.arrow&&me(i)!=null&&E!==P&&s.reference[v]/2-(E<G?j:ut)-p[v]/2<0,K=I?E<G?E-G:E-et:0;return{[d]:h[d]+K,data:{[d]:P,centerOffset:E-P-K,...I&&{alignmentOffset:K}},reset:I}}}),Bs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:l,platform:f,elements:a}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,..._}=ge(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=Yt(i),$=Pt(l),b=Yt(l)===l,S=await(f.isRTL==null?void 0:f.isRTL(a.floating)),F=h||(b||!p?[Be(l)]:ks(l)),L=v!=="none";!h&&L&&F.push(...Ms(l,p,v,S));const m=[l,...F],O=await f.detectOverflow(e,_),Y=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&Y.push(O[g]),u){const E=Cs(i,o,S);Y.push(O[E[0]],O[E[1]])}if(j=[...j,{placement:i,overflows:Y}],!Y.every(E=>E<=0)){var ut,G;const E=(((ut=s.flip)==null?void 0:ut.index)||0)+1,P=m[E];if(P&&(!(u==="alignment"?$!==Pt(P):!1)||j.every(q=>Pt(q.placement)===$?q.overflows[0]>0:!0)))return{data:{index:E,overflows:j},reset:{placement:P}};let I=(G=j.filter(K=>K.overflows[0]<=0).sort((K,q)=>K.overflows[1]-q.overflows[1])[0])==null?void 0:G.placement;if(!I)switch(d){case"bestFit":{var et;const K=(et=j.filter(q=>{if(L){const yt=Pt(q.placement);return yt===$||yt==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(yt=>yt>0).reduce((yt,xo)=>yt+xo,0)]).sort((q,yt)=>q[1]-yt[1])[0])==null?void 0:et[0];K&&(I=K);break}case"initialPlacement":I=l;break}if(i!==I)return{reset:{placement:I}}}return{}}}},Hs=new Set(["left","top"]);async function Ws(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Yt(n),l=me(n),f=Pt(n)==="y",a=Hs.has(o)?-1:1,c=s&&f?-1:1,u=ge(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof v=="number"&&(d=l==="end"?v*-1:v),f?{x:d*c,y:h*a}:{x:h*a,y:d*c}}const zs=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:l}=e,f=await Ws(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:o}}}}},Ys=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:f={fn:g=>{let{x:$,y:b}=g;return{x:$,y:b}}},...a}=ge(t,e),c={x:n,y:r},u=await s.detectOverflow(e,a),h=Pt(Yt(i)),d=Fr(h);let v=c[d],p=c[h];if(o){const g=d==="y"?"top":"left",$=d==="y"?"bottom":"right",b=v+u[g],S=v-u[$];v=yn(b,v,S)}if(l){const g=h==="y"?"top":"left",$=h==="y"?"bottom":"right",b=p+u[g],S=p-u[$];p=yn(b,p,S)}const _=f.fn({...e,[d]:v,[h]:p});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[d]:o,[h]:l}}}}}};function We(){return typeof window<"u"}function ie(t){return Hr(t)?(t.nodeName||"").toLowerCase():"#document"}function X(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function wt(t){var e;return(e=(Hr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hr(t){return We()?t instanceof Node||t instanceof X(t).Node:!1}function at(t){return We()?t instanceof Element||t instanceof X(t).Element:!1}function Rt(t){return We()?t instanceof HTMLElement||t instanceof X(t).HTMLElement:!1}function Wr(t){return!We()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof X(t).ShadowRoot}function we(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function qs(t){return/^(table|td|th)$/.test(ie(t))}function ze(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Us=/transform|translate|scale|rotate|perspective|filter/,Xs=/paint|layout|strict|content/,qt=t=>!!t&&t!=="none";let En;function Rn(t){const e=at(t)?ct(t):t;return qt(e.transform)||qt(e.translate)||qt(e.scale)||qt(e.rotate)||qt(e.perspective)||!An()&&(qt(e.backdropFilter)||qt(e.filter))||Us.test(e.willChange||"")||Xs.test(e.contain||"")}function Gs(t){let e=Mt(t);for(;Rt(e)&&!se(e);){if(Rn(e))return e;if(ze(e))return null;e=Mt(e)}return null}function An(){return En==null&&(En=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),En}function se(t){return/^(html|body|#document)$/.test(ie(t))}function ct(t){return X(t).getComputedStyle(t)}function Ye(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if(ie(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wr(t)&&t.host||wt(t);return Wr(e)?e.host:e}function zr(t){const e=Mt(t);return se(e)?t.ownerDocument?t.ownerDocument.body:t.body:Rt(e)&&we(e)?e:zr(e)}function ye(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=zr(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=X(i);if(s){const l=Tn(o);return e.concat(o,o.visualViewport||[],we(i)?i:[],l&&n?ye(l):[])}else return e.concat(i,ye(i,[],n))}function Tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Yr(t){const e=ct(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Rt(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,l=Ie(n)!==s||Ie(r)!==o;return l&&(n=s,r=o),{width:n,height:r,$:l}}function Sn(t){return at(t)?t:t.contextElement}function oe(t){const e=Sn(t);if(!Rt(e))return mt(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Yr(e);let o=(s?Ie(n.width):n.width)/r,l=(s?Ie(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ks=mt(0);function qr(t){const e=X(t);return!An()||!e.visualViewport?Ks:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Js(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==X(t)?!1:e}function Ut(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Sn(t);let o=mt(1);e&&(r?at(r)&&(o=oe(r)):o=oe(t));const l=Js(s,n,r)?qr(s):mt(0);let f=(i.left+l.x)/o.x,a=(i.top+l.y)/o.y,c=i.width/o.x,u=i.height/o.y;if(s){const h=X(s),d=r&&at(r)?X(r):r;let v=h,p=Tn(v);for(;p&&r&&d!==v;){const _=oe(p),g=p.getBoundingClientRect(),$=ct(p),b=g.left+(p.clientLeft+parseFloat($.paddingLeft))*_.x,S=g.top+(p.clientTop+parseFloat($.paddingTop))*_.y;f*=_.x,a*=_.y,c*=_.x,u*=_.y,f+=b,a+=S,v=X(p),p=Tn(v)}}return He({width:c,height:u,x:f,y:a})}function qe(t,e){const n=Ye(t).scrollLeft;return e?e.left+n:Ut(wt(t)).left+n}function Ur(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-qe(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Zs(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=wt(r),l=e?ze(e.floating):!1;if(r===o||l&&s)return n;let f={scrollLeft:0,scrollTop:0},a=mt(1);const c=mt(0),u=Rt(r);if((u||!u&&!s)&&((ie(r)!=="body"||we(o))&&(f=Ye(r)),u)){const d=Ut(r);a=oe(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const h=o&&!u&&!s?Ur(o,f):mt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-f.scrollLeft*a.x+c.x+h.x,y:n.y*a.y-f.scrollTop*a.y+c.y+h.y}}function Qs(t){return Array.from(t.getClientRects())}function to(t){const e=wt(t),n=Ye(t),r=t.ownerDocument.body,i=zt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=zt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+qe(t);const l=-n.scrollTop;return ct(r).direction==="rtl"&&(o+=zt(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}const Xr=25;function eo(t,e){const n=X(t),r=wt(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,l=0,f=0;if(i){s=i.width,o=i.height;const c=An();(!c||c&&e==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}const a=qe(r);if(a<=0){const c=r.ownerDocument,u=c.body,h=getComputedStyle(u),d=c.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-d);v<=Xr&&(s-=v)}else a<=Xr&&(s+=a);return{width:s,height:o,x:l,y:f}}function no(t,e){const n=Ut(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=Rt(t)?oe(t):mt(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,f=i*s.x,a=r*s.y;return{width:o,height:l,x:f,y:a}}function Gr(t,e,n){let r;if(e==="viewport")r=eo(t,n);else if(e==="document")r=to(wt(t));else if(at(e))r=no(e,n);else{const i=qr(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return He(r)}function Kr(t,e){const n=Mt(t);return n===e||!at(n)||se(n)?!1:ct(n).position==="fixed"||Kr(n,e)}function ro(t,e){const n=e.get(t);if(n)return n;let r=ye(t,[],!1).filter(l=>at(l)&&ie(l)!=="body"),i=null;const s=ct(t).position==="fixed";let o=s?Mt(t):t;for(;at(o)&&!se(o);){const l=ct(o),f=Rn(o);!f&&l.position==="fixed"&&(i=null),(s?!f&&!i:!f&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(o)&&!f&&Kr(t,o))?r=r.filter(c=>c!==o):i=l,o=Mt(o)}return e.set(t,r),r}function io(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?ze(e)?[]:ro(e,this._c):[].concat(n),r],l=Gr(e,o[0],i);let f=l.top,a=l.right,c=l.bottom,u=l.left;for(let h=1;h<o.length;h++){const d=Gr(e,o[h],i);f=zt(d.top,f),a=re(d.right,a),c=re(d.bottom,c),u=zt(d.left,u)}return{width:a-u,height:c-f,x:u,y:f}}function so(t){const{width:e,height:n}=Yr(t);return{width:e,height:n}}function oo(t,e,n){const r=Rt(e),i=wt(e),s=n==="fixed",o=Ut(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const f=mt(0);function a(){f.x=qe(i)}if(r||!r&&!s)if((ie(e)!=="body"||we(i))&&(l=Ye(e)),r){const d=Ut(e,!0,s,e);f.x=d.x+e.clientLeft,f.y=d.y+e.clientTop}else i&&a();s&&!r&&i&&a();const c=i&&!r&&!s?Ur(i,l):mt(0),u=o.left+l.scrollLeft-f.x-c.x,h=o.top+l.scrollTop-f.y-c.y;return{x:u,y:h,width:o.width,height:o.height}}function On(t){return ct(t).position==="static"}function Jr(t,e){if(!Rt(t)||ct(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return wt(t)===n&&(n=n.ownerDocument.body),n}function Zr(t,e){const n=X(t);if(ze(t))return n;if(!Rt(t)){let i=Mt(t);for(;i&&!se(i);){if(at(i)&&!On(i))return i;i=Mt(i)}return n}let r=Jr(t,e);for(;r&&qs(r)&&On(r);)r=Jr(r,e);return r&&se(r)&&On(r)&&!Rn(r)?n:r||Gs(t)||n}const lo=async function(t){const e=this.getOffsetParent||Zr,n=this.getDimensions,r=await n(t.floating);return{reference:oo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fo(t){return ct(t).direction==="rtl"}const ao={convertOffsetParentRelativeRectToViewportRelativeRect:Zs,getDocumentElement:wt,getClippingRect:io,getOffsetParent:Zr,getElementRects:lo,getClientRects:Qs,getDimensions:so,getScale:oe,isElement:at,isRTL:fo};function Qr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function co(t,e){let n=null,r;const i=wt(t);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),s();const a=t.getBoundingClientRect(),{left:c,top:u,width:h,height:d}=a;if(l||e(),!h||!d)return;const v=Ve(u),p=Ve(i.clientWidth-(c+h)),_=Ve(i.clientHeight-(u+d)),g=Ve(c),b={rootMargin:-v+"px "+-p+"px "+-_+"px "+-g+"px",threshold:zt(0,re(1,f))||1};let S=!0;function F(L){const m=L[0].intersectionRatio;if(m!==f){if(!S)return o();m?o(!1,m):r=setTimeout(()=>{o(!1,1e-7)},1e3)}m===1&&!Qr(a,t.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(F,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(F,b)}n.observe(t)}return o(!0),s}function uo(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,a=Sn(t),c=i||s?[...a?ye(a):[],...e?ye(e):[]]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const u=a&&l?co(a,n):null;let h=-1,d=null;o&&(d=new ResizeObserver(g=>{let[$]=g;$&&$.target===a&&d&&e&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!f&&d.observe(a),e&&d.observe(e));let v,p=f?Ut(t):null;f&&_();function _(){const g=Ut(t);p&&!Qr(p,g)&&n(),p=g,v=requestAnimationFrame(_)}return n(),()=>{var g;c.forEach($=>{i&&$.removeEventListener("scroll",n),s&&$.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,f&&cancelAnimationFrame(v)}}const ho=zs,vo=Ys,po=Bs,_o=Vs,go=(t,e,n)=>{const r=new Map,i={platform:ao,...n},s={...i.platform,_c:r};return Is(t,e,{...i,platform:s})};var mo=_n('<div style="text-align: center; font-weight: bold; margin-bottom: 4px;"> </div> <div style="text-align: justify"> </div>',1),wo=_n('<div class="tooltip-element svelte-5j6wnh" role="tooltip"><!> <div class="tooltip-arrow svelte-5j6wnh"></div></div>'),yo=_n('<span id="tooltip-trigger" role="tooltip"><!></span> <!>',1);const bo={hash:"svelte-5j6wnh",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;}.tooltip-element.svelte-5j6wnh {position:absolute;width:max-content;top:0;left:0;z-index:1000;pointer-events:none;}.tooltip-arrow.svelte-5j6wnh {position:absolute;width:8px;height:8px;background:var(--tooltip-bg, black);transform:rotate(45deg);}'};function ti(t,e){Bn(e,!0),xs(t,bo);let n=wn(e,"id",7,""),r=wn(e,"tooltip"),i=wn(e,"show"),s,o=it(void 0),l=it(void 0),f,a=it(!1);function c(m,O){e.$$host.dispatchEvent(new CustomEvent(m,{detail:O}))}ws(()=>{s=e.$$host?.shadowRoot?.querySelector("#tooltip-trigger")});let u=nn(()=>{if(!r())return null;if(typeof r()=="string")try{return JSON.parse(r())}catch(m){return console.warn("Invalid tooltip JSON",m),null}return r()}),h=nn(()=>{if(i()!==void 0){if(i()===!0||i()===!1)return i();if(typeof i()=="string"){if(["true","1","on","yes"].includes(i()))return!0;if(["false","0","off","no"].includes(i()))return!1}}});function d(){w(h)!==void 0&&H(a,w(h),!0)}un(()=>{d()});function v(){w(h)===void 0&&H(a,!0)}function p(){w(h)===void 0&&H(a,!1)}un(()=>{if(w(a)){if(c("visualizationChange",{id:n(),show:!0}),s&&w(o)){let m=w(u)?.placement||"top";m==="auto"&&(m="top");const O=[ho(6),po(),vo({padding:5})];w(l)&&O.push(_o({element:w(l)})),f=uo(s,w(o),()=>{!s||!w(o)||go(s,w(o),{placement:m,middleware:O}).then(({x:Y,y:j,placement:ut,middlewareData:G})=>{Object.assign(w(o).style,{left:`${Y}px`,top:`${j}px`});const{x:et,y:E}=G.arrow||{},P={top:"bottom",right:"left",bottom:"top",left:"right"}[ut.split("-")[0]];w(l)&&Object.assign(w(l).style,{left:et!=null?`${et}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",[P]:"-4px"})})})}}else c("visualizationChange",{id:n(),show:!1}),f&&f();return()=>{f&&f()}});let _=nn(()=>{const m=w(u)?.style||{};if(m.disableDefaultStyle)return"";const O=m.backgroundColor||"black",Y=m.color||"white",j=m.padding||"0.5rem 1rem",ut=m.borderRadius||"0.25rem",G=m.opacity!==void 0?m.opacity:.9,et=m.fontSize||"0.875rem";return`
|
|
3
|
-
background-color: ${
|
|
4
|
-
color: ${
|
|
5
|
-
padding: ${
|
|
6
|
-
border-radius: ${
|
|
7
|
-
opacity: ${
|
|
8
|
-
font-size: ${
|
|
9
|
-
--tooltip-bg: ${
|
|
10
|
-
max-width: ${
|
|
11
|
-
max-height: ${
|
|
12
|
-
`});var
|
|
13
|
-
//# sourceMappingURL=main.iife.js.map
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/2000/svg`,i=`http://www.w3.org/1998/Math/MathML`,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.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,ee=8192,te=16384,ne=32768,S=1<<25,re=65536,ie=1<<19,ae=1<<20,oe=65536,se=1<<21,ce=1<<22,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"};globalThis.document?.contentType;function pe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function me(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}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 C=!1;function De(e){C=e}var w;function T(e){if(e===null)throw Te(),t;return w=e}function Oe(){return T(I(w))}function ke(e){if(C){if(I(w)!==null)throw Te(),t;w=e}}function Ae(e=1){if(C){for(var t=e,n=w;t--;)n=I(n);w=n}}function je(e=!0){for(var t=0,n=w;;){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=I(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw Te(),t;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var Ie=!1,Le=!1,E=null;function Re(e){E=e}function ze(e,t=!1,n){E={p:E,i:!1,c:null,e:null,s:e,x:null,r:H,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=E,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,E=t.p,e??{}}function Ve(){return!Le||E!==null&&E.l===null}var He=[];function Ue(){var e=He;He=[],_(e)}function We(e){if(He.length===0&&!nt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=H;if(t===null)return z.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(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 Je=~(b|x|y);function D(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?D(e,y):D(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=oe,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),D(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var O=new Set,k=null,A=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;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)D(n,b),this.schedule(n);for(n of t.m)D(n,x),this.schedule(n)}}#p(){if(ot++>1e3&&(O.delete(this),ut()),!this.#d()){for(let e of this.#o)this.#s.delete(e),D(e,b),this.schedule(e);for(let e of this.#s)D(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw gt(e),t}if(k=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ht(e,t)}else{this.#n.size===0&&O.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),dt(r),dt(n),this.#i?.resolve()}var o=k;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(O.add(o),o.#p()),O.has(this)||this.#g()}#m(e,t,n){e.f^=y;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^=y:i&4?t.push(r):Ie&&i&16777224?n.push(r):Bn(r)&&(i&16&&this.#s.add(r),Gn(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)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),A?.set(e,e.v))}activate(){k=this}deactivate(){k=null,A=null}flush(){try{rt=!0,k=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,k=null,A=null,It.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),O.delete(this)}#g(){for(let c of O){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)ft(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 O)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,We(()=>{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??=v()).promise}static ensure(){if(k===null){let t=k=new e;rt||(O.add(k),nt||We(()=>{k===t&&t.flush()}))}return k}apply(){if(!Ie||!this.is_fork&&O.size===1){A=null;return}A=new Map;for(let[e,[t]]of this.current)A.set(e,t);for(let n of O)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)A.has(e)||A.set(e,t)}}schedule(e){if(tt=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(it!==null&&t===H&&(Ie||(z===null||!(z.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function lt(e){var t=nt;nt=!0;try{var n;for(e&&(k!==null&&!k.is_fork&&k.flush(),n=e());;){if(Ge(),k===null)return n;k.flush()}}finally{nt=t}}function ut(){try{ve()}catch(e){qe(e,tt)}}var j=null;function dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Bn(r)&&(j=new Set,Gn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Cn(r),j?.size>0)){It.clear();for(let e of j){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)j.has(n)&&(j.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Gn(n)}}j.clear()}}j=null}}function ft(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?ft(i,t,n,r):e&4194320&&!(e&2048)&&pt(i,t,r)&&(D(i,b),mt(i))}}function pt(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&&pt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function mt(e){k.schedule(e)}function ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),D(e,y);for(var n=e.first;n!==null;)ht(n,t),n=n.next}}function gt(e){D(e,y);for(var t=e.first;t!==null;)gt(t),t=t.next}function _t(e){let t=0,n=Rt(0),r;return()=>{sn()&&(J(n),hn(()=>(t===0&&(r=Jn(()=>e(()=>Ht(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,Ht(n))})})))}}var vt=re|ie;function yt(e,t,n,r){new bt(e,t,n,r)}var bt=class{parent;is_pending=!1;transform_error;#e;#t=C?w: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=_t(()=>(this.#m=Rt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=H;t.b=this,t.f|=128,n(e)},this.parent=H.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=_n(()=>{if(C){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()},vt),C&&(this.#e=w)}#g(){try{this.#a=vn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=vn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=vn(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=P();e.append(t),this.#a=this.#x(()=>vn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,wn(this.#o,()=>{this.#o=null}),this.#b(k))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=vn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();On(this.#a,e);let t=this.#n.pending;this.#o=vn(()=>t(this.#e))}else this.#b(k)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(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=H,n=z,r=E;U(this.#i),V(this.#i),Re(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return Ke(e),null}finally{U(t),V(n),Re(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&&wn(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,We(()=>{this.#d=!1,this.#m&&Bt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),J(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(R(this.#a),null),this.#o&&=(R(this.#o),null),this.#s&&=(R(this.#s),null),C&&(T(this.#t),Ae(),T(je()));var r=!1,i=!1;let a=()=>{if(r){Ee();return}r=!0,i&&we(),this.#s!==null&&wn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return vn(()=>{var t=H;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function xt(e,t,n,r){let i=Ve()?Tt:Ot;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=H,s=St(),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||qe(e,o)}Ct()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=wt();function d(){Promise.all(n.map(e=>Et(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ct()}):d()}function St(){var e=H,t=z,n=E,r=k;return function(i=!0){U(e),V(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){U(null),V(null),Re(null),e&&k?.deactivate()}function wt(){var e=H,t=e.b,n=k,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 Tt(e){var t=2|b,r=z!==null&&z.f&2?z:null;return H!==null&&(H.f|=ie),{ctx:E,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??H,ac:null}}function Et(e,t,r){let i=H;i===null&&me();var a=void 0,o=Rt(n),s=!z,c=new Map;return mn(()=>{var t=H,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(e){n.reject(e),Ct()}var r=k;if(s){if(t.f&32768)var l=wt();if(i.b.is_rendered())c.get(r)?.reject(fe),c.delete(r);else{for(let e of c.values())e.reject(fe);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===fe),!(n===fe||t.f&16384)){if(r.activate(),n)o.f|=le,Bt(o,n);else{o.f&8388608&&(o.f^=le),Bt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(fe)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),cn(()=>{for(let e of c.values())e.reject(fe)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Dt(e){let t=Tt(e);return Ie||Nn(t),t}function Ot(e){let t=Tt(e);return t.equals=Fe,t}function kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function At(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function jt(e){var t,n=H;U(At(e));try{e.f&=~oe,kt(e),t=Hn(e)}finally{U(n)}return t}function Mt(e){var t=e.v,n=jt(e);if(!e.equals(n)&&(e.wv=zn(),(!k?.is_fork||e.deps===null)&&(e.v=n,k?.capture(e,t,!0),e.deps===null))){D(e,y);return}jn||(A===null?Ye(e):(sn()||k?.is_fork)&&A.set(e,n))}function Nt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(fe),t.teardown=g,t.ac=null,Wn(t,0),bn(t))}function Pt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Gn(t)}var Ft=new Set,It=new Map,Lt=!1;function Rt(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function M(e,t){let n=Rt(e,t);return Nn(n),n}function zt(e,t=!1,n=!0){let r=Rt(e);return t||(r.equals=Fe),Le&&n&&E!==null&&E.l!==null&&(E.l.s??=[]).push(r),r}function N(e,t,n=!1){return z!==null&&(!B||z.f&131072)&&Ve()&&z.f&4325394&&(W===null||!s.call(W,e))&&Ce(),Bt(e,n?Wt(t):t,at)}function Bt(e,t,n=null){if(!e.equals(t)){var r=e.v;jn?It.set(e,t):It.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&jt(t),A===null&&Ye(t)}e.wv=zn(),Ut(e,b,n),Ve()&&H!==null&&H.f&1024&&!(H.f&96)&&(q===null?Pn([e]):q.push(e)),!i.is_fork&&Ft.size>0&&!Lt&&Vt()}return t}function Vt(){Lt=!1;for(let e of Ft)e.f&1024&&D(e,x),Bn(e)&&Gn(e);Ft.clear()}function Ht(e){N(e,e.v+1)}function Ut(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===H)){var l=(c&b)===0;if(l&&D(s,t),c&2){var u=s;A?.delete(u),c&65536||(c&512&&(s.f|=oe),Ut(u,x,n))}else if(l){var d=s;c&16&&j!==null&&j.add(d),n===null?mt(d):n.push(d)}}}}function Wt(e){if(typeof e!=`object`||!e||ue in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,i=a(e),o=M(0),s=null,c=Ln,l=e=>{if(Ln===c)return e();var t=z,n=Ln;V(null),Rn(c);var r=e();return V(t),Rn(n),r};return i&&r.set(`length`,M(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&xe();var i=r.get(t);return i===void 0?l(()=>{var e=M(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>M(n,s));r.set(t,e),Ht(o)}}else N(i,n),Ht(o);return!0},get(t,i,a){if(i===ue)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||d(t,i)?.writable)&&(o=l(()=>M(Wt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var u=J(o);return u===n?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=r.get(t);a&&(i.value=J(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===ue)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||H!==null&&(!a||d(e,t)?.writable))&&(i===void 0&&(i=l(()=>M(a?Wt(e[t]):n,s)),r.set(t,i)),J(i)===n)?!1:a},set(e,t,a,c){var u=r.get(t),f=t in e;if(i&&t===`length`)for(var p=a;p<u.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>M(n,s)),r.set(p+``,m)):N(m,n)}if(u===void 0)(!f||d(e,t)?.writable)&&(u=l(()=>M(void 0,s)),N(u,Wt(a)),r.set(t,u));else{f=u.v!==n;var h=l(()=>Wt(a));N(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,a),!f){if(i&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&N(_,v+1)}Ht(o)}return!0},ownKeys(e){J(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Se()}})}var Gt,Kt,qt,Jt;function Yt(){if(Gt===void 0){Gt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;qt=d(t,`firstChild`).get,Jt=d(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function P(e=``){return document.createTextNode(e)}function F(e){return qt.call(e)}function I(e){return Jt.call(e)}function Xt(e,t){if(!C)return F(e);var n=F(w);if(n===null)n=w.appendChild(P());else if(t&&n.nodeType!==3){var r=P();return n?.before(r),T(r),r}return t&&nn(n),T(n),n}function Zt(e,t=!1){if(!C){var n=F(e);return n instanceof Comment&&n.data===``?I(n):n}if(t){if(w?.nodeType!==3){var r=P();return w?.before(r),T(r),r}nn(w)}return w}function Qt(e,t=1,n=!1){let r=C?w:e;for(var i;t--;)i=r,r=I(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=P();return r===null?i?.after(a):r.before(a),T(a),a}nn(r)}return T(r),r}function $t(e){e.textContent=``}function en(){return!Ie||j!==null?!1:(H.f&ne)!==0}function tn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function nn(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 rn(e){var t=z,n=H;V(null),U(null);try{return e()}finally{V(t),U(n)}}function an(e){H===null&&(z===null&&_e(e),ge()),jn&&he(e)}function on(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function L(e,t){var n=H;n!==null&&n.f&8192&&(e|=ee);var r={ctx:E,deps:null,nodes:null,f:e|b|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)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Gn(r)}catch(e){throw R(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|=re))}if(i!==null&&(i.parent=n,n!==null&&on(i,n),z!==null&&z.f&2&&!(e&64))){var a=z;(a.effects??=[]).push(i)}return r}function sn(){return z!==null&&!B}function cn(e){let t=L(8,null);return D(t,y),t.teardown=e,t}function ln(e){an(`$effect`);var t=H.f;if(!z&&t&32&&!(t&32768)){var n=E;(n.e??=[]).push(e)}else return un(e)}function un(e){return L(4|ae,e)}function dn(e){ct.ensure();let t=L(64|ie,e);return()=>{R(t)}}function fn(e){ct.ensure();let t=L(64|ie,e);return(e={})=>new Promise(n=>{e.outro?wn(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function pn(e){return L(4,e)}function mn(e){return L(ce|ie,e)}function hn(e,t=0){return L(8|t,e)}function gn(e,t=[],n=[],r=[]){xt(r,t,n,t=>{L(8,()=>e(...t.map(J)))})}function _n(e,t=0){return L(16|t,e)}function vn(e){return L(32|ie,e)}function yn(e){var t=e.teardown;if(t!==null){let e=jn,n=z;Mn(!0),V(null);try{t.call(null)}finally{Mn(e),V(n)}}}function bn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&rn(()=>{e.abort(fe)});var r=n.next;n.f&64?n.parent=null:R(n,t),n=r}}function xn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||R(t),t=n}}function R(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Sn(e.nodes.start,e.nodes.end),n=!0),D(e,S),bn(e,t&&!n),Wn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();yn(e),e.f^=S,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&Cn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Sn(e,t){for(;e!==null;){var n=e===t?null:I(e);e.remove(),e=n}}function Cn(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 wn(e,t,n=!0){var r=[];Tn(e,r,!0);var i=()=>{n&&R(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Tn(e,t,n){if(!(e.f&8192)){e.f^=ee;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;Tn(i,t,o?n:!1),i=a}}}function En(e){Dn(e,!0)}function Dn(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(D(e,b),ct.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Dn(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 On(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:I(n);t.append(n),n=i}}var kn=null,An=!1,jn=!1;function Mn(e){jn=e}var z=null,B=!1;function V(e){z=e}var H=null;function U(e){H=e}var W=null;function Nn(e){z!==null&&(!Ie||z.f&2)&&(W===null?W=[e]:W.push(e))}var G=null,K=0,q=null;function Pn(e){q=e}var Fn=1,In=0,Ln=In;function Rn(e){Ln=e}function zn(){return++Fn}function Bn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~oe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Bn(a)&&Mt(a),a.wv>e.wv)return!0}t&512&&A===null&&D(e,y)}return!1}function Vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ie&&W!==null&&s.call(W,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Vn(a,t,!1):t===a&&(n?D(a,b):a.f&1024&&D(a,x),mt(a))}}function Hn(e){var t=G,n=K,r=q,i=z,a=W,o=E,s=B,c=Ln,l=e.f;G=null,K=0,q=null,z=l&96?null:e,W=null,Re(e.ctx),B=!1,Ln=++In,e.ac!==null&&(rn(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=k?.is_fork;if(G!==null){var m;if(p||Wn(e,K),f!==null&&K>0)for(f.length=K+G.length,m=0;m<G.length;m++)f[K+m]=G[m];else e.deps=f=G;if(sn()&&e.f&512)for(m=K;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&K<f.length&&(Wn(e,K),f.length=K);if(Ve()&&q!==null&&!B&&f!==null&&!(e.f&6146))for(m=0;m<q.length;m++)Vn(q[m],e);if(i!==null&&i!==e){if(In++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=In;if(t!==null)for(let e of t)e.rv=In;q!==null&&(r===null?r=q:r.push(...q))}return e.f&8388608&&(e.f^=le),d}catch(e){return Ke(e)}finally{e.f^=se,G=t,K=n,q=r,z=i,W=a,Re(o),B=s,Ln=c}}function Un(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&&(G===null||!s.call(G,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~oe),Ye(a),Nt(a),Wn(a,0)}}function Wn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Un(e,n[r])}function Gn(e){var t=e.f;if(!(t&16384)){D(e,y);var n=H,r=An;H=e,An=!0;try{t&16777232?xn(e):bn(e),yn(e);var i=Hn(e);e.teardown=typeof i==`function`?i:null,e.wv=Fn}finally{An=r,H=n}}}function J(e){var t=(e.f&2)!=0;if(kn?.add(e),z!==null&&!B&&!(H!==null&&H.f&16384)&&(W===null||!s.call(W,e))){var n=z.deps;if(z.f&2097152)e.rv<In&&(e.rv=In,G===null&&n!==null&&n[K]===e?K++:G===null?G=[e]:G.push(e));else{(z.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[z]:s.call(r,z)||r.push(z)}}if(jn&&It.has(e))return It.get(e);if(t){var i=e;if(jn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||qn(i))&&(a=jt(i)),It.set(i,a),a}var o=(i.f&512)==0&&!B&&z!==null&&(An||(z.f&512)!=0),c=(i.f&ne)===0;Bn(i)&&(o&&(i.f|=512),Mt(i)),o&&!c&&(Pt(i),Kn(i))}if(A?.has(e))return A.get(e);if(e.f&8388608)throw e.v;return e.v}function Kn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Pt(t),Kn(t))}function qn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(It.has(t)||t.f&2&&qn(t))return!0;return!1}function Jn(e){var t=B;try{return B=!0,e()}finally{B=t}}var Yn=Symbol(`events`),Xn=new Set,Zn=new Set;function Qn(e,t,n,r={}){function i(e){if(r.capture||tr.call(t,e),!e.cancelBubble)return rn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?We(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $n(e,t,n,r,i){var a={capture:r,passive:i},o=Qn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cn(()=>{t.removeEventListener(e,o,a)})}var er=null;function tr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;er=e;var o=0,s=er===e&&e[Yn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Yn]=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=z,f=H;V(null),U(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Yn]?.[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[Yn]=t,delete e.currentTarget,V(d),U(f)}}}var nr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function rr(e){return nr?.createHTML(e)??e}function ir(e){var t=tn(`template`);return t.innerHTML=rr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Y(e,t){var n=H;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ar(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return Y(w,null),w;i===void 0&&(i=ir(a?e:`<!>`+e),n||(i=F(i)));var t=r||Kt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=F(t),s=t.lastChild;Y(o,s)}else Y(t,t);return t}}function or(e=``){if(!C){var t=P(e+``);return Y(t,t),t}var n=w;return n.nodeType===3?nn(n):(n.before(n=P()),T(n)),Y(n,n),n}function sr(){if(C)return Y(w,null),w;var e=document.createDocumentFragment(),t=document.createComment(``),n=P();return e.append(t,n),Y(t,n),e}function cr(e,t){if(C){var n=H;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),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 lr=[`touchstart`,`touchmove`];function ur(e){return lr.includes(e)}function dr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function fr(e,t){return hr(e,t)}function pr(e,n){Yt(),n.intro=n.intro??!1;let r=n.target,i=C,a=w;try{for(var o=F(r);o&&(o.nodeType!==8||o.data!==`[`);)o=I(o);if(!o)throw t;De(!0),T(o);let i=hr(e,{...n,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!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&ye(),Yt(),$t(r),De(!1),fr(e,n)}finally{De(i),T(a)}}var mr=new Map;function hr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:s=!0,transformError:l}){Yt();var u=void 0,d=fn(()=>{var s=r??n.appendChild(P());yt(s,{pending:()=>{}},n=>{ze({});var r=E;if(o&&(r.c=o),a&&(i.$$events=a),C&&Y(n,null),u=e(n,i)||{},C&&(H.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw Te(),t;Be()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=ur(r);for(let e of[n,document]){var a=mr.get(e);a===void 0&&(a=new Map,mr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(c(Xn)),Zn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=mr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,tr),t.delete(e),t.size===0&&mr.delete(r)):t.set(e,i)}Zn.delete(f),s!==r&&s.parentNode?.removeChild(s)}});return gr.set(u,d),u}var gr=new WeakMap;function _r(e,t){let n=gr.get(e);return n?(gr.delete(e),n(t)):Promise.resolve()}var vr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)En(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(R(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();On(r,t),t.append(P()),this.#n.set(e,{effect:r,fragment:t})}else R(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),wn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(R(n.effect),this.#n.delete(e))};ensure(e,t){var n=k,r=en();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=P();i.append(a),this.#n.set(e,{effect:vn(()=>t(a)),fragment:i})}else this.#t.set(e,vn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=w),this.#a(n)}};function yr(e){E===null&&pe(`onMount`),Le&&E.l!==null?br(E).m.push(e):ln(()=>{let t=Jn(e);if(typeof t==`function`)return t})}function br(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function xr(e,t,n=!1){var r;C&&(r=w,Oe());var i=new vr(e),a=n?re:0;function o(e,t){if(C){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();T(a),i.anchor=a,De(!1),i.ensure(e,t),De(!0);return}}i.ensure(e,t)}_n(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Sr(e,n,a=!1,o=!1,s=!1,c=!1){var l=e,u=``;if(a){var d=e;C&&(l=T(F(d)))}gn(()=>{var e=H;if(u===(u=n()??``)){C&&Oe();return}if(a&&!C){e.nodes=null,d.innerHTML=u,u!==``&&Y(F(d),d.lastChild);return}if(e.nodes!==null&&(Sn(e.nodes.start,e.nodes.end),e.nodes=null),u!==``){if(C){for(var c=w.data,f=Oe(),p=f;f!==null&&(f.nodeType!==8||f.data!==``);)p=f,f=I(f);if(f===null)throw Te(),t;Y(w,p),l=T(f);return}var m=tn(o?`svg`:s?`math`:`template`,o?r:s?i:void 0);m.innerHTML=u;var h=o||s?m:m.content;if(Y(F(h),h.lastChild),o||s)for(;F(h);)l.before(F(h));else l.before(h)}})}function Cr(e,t,n,r,i){C&&Oe();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function wr(e,t){pn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=tn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Tr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Er(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Dr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Er)),i&&c.push(...Object.keys(i).map(Er));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Er(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Tr(r)),i&&(n+=Tr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Or(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function kr(e,t,n,r){var i=e.__style;if(C||i!==t){var a=Dr(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Or(e,n?.[0],r[0]),Or(e,n?.[1],r[1],`important`)):Or(e,n,r));return r}function Ar(e,t){return e===t||e?.[ue]===t}function jr(e={},t,n,r){var i=E.r,a=H;return pn(()=>{var o,s;return hn(()=>{o=s,s=r?.()||[],Jn(()=>{e!==n(...s)&&(t(e,...s),o&&Ar(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Ar(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Mr(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Jn(r):r),s);let u;if(a){var f=ue in e||de in e;u=d(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>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?Tt:Ot)(()=>(_=!1,h()));a&&J(v);var y=H;return(function(e,t){if(arguments.length>0){let n=t?J(v):i&&a?Wt(e):e;return N(v,n),_=!0,s!==void 0&&(s=n),e}return jn&&_||y.f&16384?v.v:J(v)})}function Nr(e){return new Pr(e)}var Pr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=zt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return J(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:(J(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return N(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?pr:fr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ie&&(!e?.props?.$$host||e.sync===!1)&<(),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=()=>{_r(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()}},Fr;typeof HTMLElement==`function`&&(Fr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,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=tn(`slot`);e!==`default`&&(n.name=e),cr(t,n)}}let t={},n=Lr(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]=Ir(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=Nr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=dn(()=>{hn(()=>{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=Ir(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]=Ir(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 Ir(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 Lr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Rr(e,t,n,r,i,a){let o=class extends Fr{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=Ir(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 zr=Math.min,Br=Math.max,Vr=Math.round,Hr=Math.floor,X=e=>({x:e,y:e}),Ur={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Wr(e,t,n){return Br(e,zr(t,n))}function Gr(e,t){return typeof e==`function`?e(t):e}function Kr(e){return e.split(`-`)[0]}function qr(e){return e.split(`-`)[1]}function Jr(e){return e===`x`?`y`:`x`}function Yr(e){return e===`y`?`height`:`width`}function Xr(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Zr(e){return Jr(Xr(e))}function Qr(e,t,n){n===void 0&&(n=!1);let r=qr(e),i=Zr(e),a=Yr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=si(o)),[o,si(o)]}function $r(e){let t=si(e);return[ei(e),t,ei(t)]}function ei(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ti=[`left`,`right`],ni=[`right`,`left`],ri=[`top`,`bottom`],ii=[`bottom`,`top`];function ai(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ni:ti:t?ti:ni;case`left`:case`right`:return t?ri:ii;default:return[]}}function oi(e,t,n,r){let i=qr(e),a=ai(Kr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ei)))),a}function si(e){let t=Kr(e);return Ur[t]+e.slice(t.length)}function ci(e){return{top:0,right:0,bottom:0,left:0,...e}}function li(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ci(e)}function ui(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function di(e,t,n){let{reference:r,floating:i}=e,a=Xr(t),o=Zr(t),s=Yr(o),c=Kr(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(qr(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function fi(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Gr(t,e),p=li(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ui(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ui(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var pi=50,mi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:fi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=di(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<pi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=di(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},hi=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Gr(e,t)||{};if(l==null)return{};let d=li(u),f={x:n,y:r},p=Zr(i),m=Yr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],ee=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),te=ee?ee[y]:0;(!te||!await(o.isElement==null?void 0:o.isElement(ee)))&&(te=s.floating[y]||a.floating[m]);let ne=b/2-x/2,S=te/2-h[m]/2-1,re=zr(d[_],S),ie=zr(d[v],S),ae=re,oe=te-h[m]-ie,se=te/2-h[m]/2+ne,ce=Wr(ae,se,oe),le=!c.arrow&&qr(i)!=null&&se!==ce&&a.reference[m]/2-(se<ae?re:ie)-h[m]/2<0,ue=le?se<ae?se-ae:se-oe:0;return{[p]:f[p]+ue,data:{[p]:ce,centerOffset:se-ce-ue,...le&&{alignmentOffset:ue}},reset:le}}}),gi=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Gr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Kr(r),_=Xr(o),v=Kr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[si(o)]:$r(o)),x=p!==`none`;!d&&x&&b.push(...oi(o,m,p,y));let ee=[o,...b],te=await s.detectOverflow(t,h),ne=[],S=i.flip?.overflows||[];if(l&&ne.push(te[g]),u){let e=Qr(r,a,y);ne.push(te[e[0]],te[e[1]])}if(S=[...S,{placement:r,overflows:ne}],!ne.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=ee[e];if(t&&(!(u===`alignment`&&_!==Xr(t))||S.every(e=>Xr(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:S},reset:{placement:t}};let n=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=S.filter(e=>{if(x){let t=Xr(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},_i=new Set([`left`,`top`]);async function vi(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Kr(n),s=qr(n),c=Xr(n)===`y`,l=_i.has(o)?-1:1,u=a&&c?-1:1,d=Gr(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var yi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await vi(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},bi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Gr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Xr(Kr(i)),p=Jr(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Wr(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Wr(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}};function xi(){return typeof window<`u`}function Si(e){return wi(e)?(e.nodeName||``).toLowerCase():`#document`}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ci(e){return((wi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function wi(e){return xi()?e instanceof Node||e instanceof Z(e).Node:!1}function Q(e){return xi()?e instanceof Element||e instanceof Z(e).Element:!1}function Ti(e){return xi()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function Ei(e){return!xi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function Di(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Oi(e){return/^(table|td|th)$/.test(Si(e))}function ki(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ai=/transform|translate|scale|rotate|perspective|filter/,ji=/paint|layout|strict|content/,Mi=e=>!!e&&e!==`none`,Ni;function Pi(e){let t=Q(e)?$(e):e;return Mi(t.transform)||Mi(t.translate)||Mi(t.scale)||Mi(t.rotate)||Mi(t.perspective)||!Ii()&&(Mi(t.backdropFilter)||Mi(t.filter))||Ai.test(t.willChange||``)||ji.test(t.contain||``)}function Fi(e){let t=zi(e);for(;Ti(t)&&!Li(t);){if(Pi(t))return t;if(ki(t))return null;t=zi(t)}return null}function Ii(){return Ni??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ni}function Li(e){return/^(html|body|#document)$/.test(Si(e))}function $(e){return Z(e).getComputedStyle(e)}function Ri(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zi(e){if(Si(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ei(e)&&e.host||Ci(e);return Ei(t)?t.host:t}function Bi(e){let t=zi(e);return Li(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ti(t)&&Di(t)?t:Bi(t)}function Vi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Bi(e),i=r===e.ownerDocument?.body,a=Z(r);if(i){let e=Hi(a);return t.concat(a,a.visualViewport||[],Di(r)?r:[],e&&n?Vi(e):[])}else return t.concat(r,Vi(r,[],n))}function Hi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ui(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ti(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Vr(n)!==a||Vr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Wi(e){return Q(e)?e:e.contextElement}function Gi(e){let t=Wi(e);if(!Ti(t))return X(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ui(t),o=(a?Vr(n.width):n.width)/r,s=(a?Vr(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ki=X(0);function qi(e){let t=Z(e);return!Ii()||!t.visualViewport?Ki:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ji(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function Yi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Wi(e),o=X(1);t&&(r?Q(r)&&(o=Gi(r)):o=Gi(e));let s=Ji(a,n,r)?qi(a):X(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Z(a),t=r&&Q(r)?Z(r):r,n=e,i=Hi(n);for(;i&&r&&t!==n;){let e=Gi(i),t=i.getBoundingClientRect(),r=$(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Z(i),i=Hi(n)}}return ui({width:u,height:d,x:c,y:l})}function Xi(e,t){let n=Ri(e).scrollLeft;return t?t.left+n:Yi(Ci(e)).left+n}function Zi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Xi(e,n),y:n.top+t.scrollTop}}function Qi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ci(r),s=t?ki(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=X(1),u=X(0),d=Ti(r);if((d||!d&&!a)&&((Si(r)!==`body`||Di(o))&&(c=Ri(r)),d)){let e=Yi(r);l=Gi(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Zi(o,c):X(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function $i(e){return Array.from(e.getClientRects())}function ea(e){let t=Ci(e),n=Ri(e),r=e.ownerDocument.body,i=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Xi(e),s=-n.scrollTop;return $(r).direction===`rtl`&&(o+=Br(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ta=25;function na(e,t){let n=Z(e),r=Ci(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ii();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Xi(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ta&&(a-=o)}else l<=ta&&(a+=l);return{width:a,height:o,x:s,y:c}}function ra(e,t){let n=Yi(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ti(e)?Gi(e):X(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ia(e,t,n){let r;if(t===`viewport`)r=na(e,n);else if(t===`document`)r=ea(Ci(e));else if(Q(t))r=ra(t,n);else{let n=qi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ui(r)}function aa(e,t){let n=zi(e);return n===t||!Q(n)||Li(n)?!1:$(n).position===`fixed`||aa(n,t)}function oa(e,t){let n=t.get(e);if(n)return n;let r=Vi(e,[],!1).filter(e=>Q(e)&&Si(e)!==`body`),i=null,a=$(e).position===`fixed`,o=a?zi(e):e;for(;Q(o)&&!Li(o);){let t=$(o),n=Pi(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Di(o)&&!n&&aa(e,o))?r=r.filter(e=>e!==o):i=t,o=zi(o)}return t.set(e,r),r}function sa(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ki(t)?[]:oa(t,this._c):[].concat(n),r],o=ia(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ia(t,a[e],i);s=Br(n.top,s),c=zr(n.right,c),l=zr(n.bottom,l),u=Br(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ca(e){let{width:t,height:n}=Ui(e);return{width:t,height:n}}function la(e,t,n){let r=Ti(t),i=Ci(t),a=n===`fixed`,o=Yi(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=X(0);function l(){c.x=Xi(i)}if(r||!r&&!a)if((Si(t)!==`body`||Di(i))&&(s=Ri(t)),r){let e=Yi(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Zi(i,s):X(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function ua(e){return $(e).position===`static`}function da(e,t){if(!Ti(e)||$(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ci(e)===n&&(n=n.ownerDocument.body),n}function fa(e,t){let n=Z(e);if(ki(e))return n;if(!Ti(e)){let t=zi(e);for(;t&&!Li(t);){if(Q(t)&&!ua(t))return t;t=zi(t)}return n}let r=da(e,t);for(;r&&Oi(r)&&ua(r);)r=da(r,t);return r&&Li(r)&&ua(r)&&!Pi(r)?n:r||Fi(e)||n}var pa=async function(e){let t=this.getOffsetParent||fa,n=this.getDimensions,r=await n(e.floating);return{reference:la(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ma(e){return $(e).direction===`rtl`}var ha={convertOffsetParentRelativeRectToViewportRelativeRect:Qi,getDocumentElement:Ci,getClippingRect:sa,getOffsetParent:fa,getElementRects:pa,getClientRects:$i,getDimensions:ca,getScale:Gi,isElement:Q,isRTL:ma};function ga(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _a(e,t){let n=null,r,i=Ci(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Hr(d),h=Hr(i.clientWidth-(u+f)),g=Hr(i.clientHeight-(d+p)),_=Hr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Br(0,zr(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!ga(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function va(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Wi(e),u=i||a?[...l?Vi(l):[],...t?Vi(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?_a(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Yi(e):null;c&&g();function g(){let t=Yi(e);h&&!ga(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ya=yi,ba=bi,xa=gi,Sa=hi,Ca=(e,t,n)=>{let r=new Map,i={platform:ha,...n},a={...i.platform,_c:r};return mi(e,t,{...i,platform:a})},wa=ar(`<div style="text-align: center; font-weight: bold; margin-bottom: 4px;"> </div> <div style="text-align: justify"> </div>`,1),Ta=ar(`<div class="tooltip-element svelte-5j6wnh" role="tooltip"><!> <div class="tooltip-arrow svelte-5j6wnh"></div></div>`),Ea=ar(`<span id="tooltip-trigger" role="tooltip"><!></span> <!>`,1),Da={hash:`svelte-5j6wnh`,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;}.tooltip-element.svelte-5j6wnh {position:absolute;width:max-content;top:0;left:0;z-index:1000;pointer-events:none;}.tooltip-arrow.svelte-5j6wnh {position:absolute;width:8px;height:8px;background:var(--tooltip-bg, black);transform:rotate(45deg);}`};function Oa(e,t){ze(t,!0),wr(e,Da);let n=Mr(t,`id`,7,``),r=Mr(t,`tooltip`,7),i=Mr(t,`show`,7),a,o=M(void 0),s=M(void 0),c,l=M(!1);function u(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}yr(()=>{a=t.$$host?.shadowRoot?.querySelector(`#tooltip-trigger`)});let d=Dt(()=>{if(!r())return null;if(typeof r()==`string`)try{return JSON.parse(r())}catch(e){return console.warn(`Invalid tooltip JSON`,e),null}return r()}),f=Dt(()=>{if(i()!==void 0){if(i()===!0||i()===!1)return i();if(typeof i()==`string`){if([`true`,`1`,`on`,`yes`].includes(i()))return!0;if([`false`,`0`,`off`,`no`].includes(i()))return!1}}});function p(){J(f)!==void 0&&N(l,J(f),!0)}ln(()=>{p()});function m(){J(f)===void 0&&N(l,!0)}function h(){J(f)===void 0&&N(l,!1)}ln(()=>{if(J(l)){if(u(`visualizationChange`,{id:n(),show:!0}),a&&J(o)){let e=J(d)?.placement||`top`;e===`auto`&&(e=`top`);let t=[ya(6),xa(),ba({padding:5})];J(s)&&t.push(Sa({element:J(s)})),c=va(a,J(o),()=>{!a||!J(o)||Ca(a,J(o),{placement:e,middleware:t}).then(({x:e,y:t,placement:n,middlewareData:r})=>{Object.assign(J(o).style,{left:`${e}px`,top:`${t}px`});let{x:i,y:a}=r.arrow||{},c={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[n.split(`-`)[0]];J(s)&&Object.assign(J(s).style,{left:i==null?``:`${i}px`,top:a==null?``:`${a}px`,right:``,bottom:``,[c]:`-4px`})})})}}else u(`visualizationChange`,{id:n(),show:!1}),c&&c();return()=>{c&&c()}});let g=Dt(()=>{let e=J(d)?.style||{};if(e.disableDefaultStyle)return``;let t=e.backgroundColor||`black`;return`
|
|
3
|
+
background-color: ${t};
|
|
4
|
+
color: ${e.color||`white`};
|
|
5
|
+
padding: ${e.padding||`0.5rem 1rem`};
|
|
6
|
+
border-radius: ${e.borderRadius||`0.25rem`};
|
|
7
|
+
opacity: ${e.opacity===void 0?.9:e.opacity};
|
|
8
|
+
font-size: ${e.fontSize||`0.875rem`};
|
|
9
|
+
--tooltip-bg: ${t};
|
|
10
|
+
max-width: ${J(d)?.maxWidth||(J(d)?.description?`200px`:`auto`)};
|
|
11
|
+
max-height: ${J(d)?.maxHeight||`auto`};
|
|
12
|
+
`});var _={get id(){return n()},set id(e=``){n(e),lt()},get tooltip(){return r()},set tooltip(e){r(e),lt()},get show(){return i()},set show(e){i(e),lt()}},v=Ea(),y=Zt(v);Cr(Xt(y),t,`default`,{},e=>{cr(e,or(`\xA0\xA0\xA0`))}),ke(y);var b=Qt(y,2),x=e=>{var t=Ta(),n=Xt(t),r=e=>{var t=sr();Sr(Zt(t),()=>J(d)?.title||``),cr(e,t)},i=e=>{var t=wa(),n=Zt(t),r=Xt(n,!0);ke(n);var i=Qt(n,2),a=Xt(i,!0);ke(i),gn(()=>{dr(r,J(d).title),dr(a,J(d).description)}),cr(e,t)},a=e=>{var t=or();gn(()=>dr(t,J(d)?.title||``)),cr(e,t)};xr(n,e=>{J(d)?.html?e(r):J(d)?.description?e(i,1):e(a,-1)}),jr(Qt(n,2),e=>N(s,e),()=>J(s)),ke(t),jr(t,e=>N(o,e),()=>J(o)),gn(()=>kr(t,J(g))),cr(e,t)};return xr(b,e=>{J(l)&&e(x)}),$n(`mouseenter`,y,m),$n(`mouseleave`,y,h),$n(`focus`,y,m),$n(`blur`,y,h),cr(e,v),Be(_)}customElements.define(`hb-tooltip`,Rr(Oa,{id:{},tooltip:{},show:{}},[`default`],[],{mode:`open`})),e.Component=Oa})(this.tooltip=this.tooltip||{});
|
|
13
|
+
//# sourceMappingURL=main.iife.js.map
|