import{X as C,ai as V,aj as R,ak as j,z as L,v as z,x as S,al as F,q as U,B as W,am as P,an as G,ao as X,ap as x,aq as I,E as J,p as K,a as Q,d as Z,a5 as ee,ar as ne,as as re}from"./runtime.DLHUW5tL.js";function te(n){console.warn("hydration_mismatch")}let d=!1;function N(n){d=n}let y=null,o;function q(n){y=n,o=n&&n[0]}function b(n){if(n.nodeType!==8)return n;var e=n;if(e.data!==C)return n;for(var r=[],i=0;(e=e.nextSibling)!==null;){if(e.nodeType===8){var t=e.data;if(t===C)i+=1;else if(t[0]===V){if(i===0)return y=r,o=r[0],e;i-=1}}r.push(e)}throw te(),R}var M,ae;function B(){if(M===void 0){M=window,ae=document;var n=Element.prototype;n.__click=void 0,n.__className="",n.__attributes=null,n.__e=void 0,Text.prototype.__t=void 0}}function _(){return document.createTextNode("")}function _e(n){const e=n.firstChild;return d?e===null?n.appendChild(_()):b(e):e}function he(n,e){if(!d)return n.firstChild;if(e&&(o==null?void 0:o.nodeType)!==3){var r=_(),i=L.dom;return i.unshift(r),o==null||o.before(r),r}return b(o)}function ie(n,e=!1){var r=n.nextSibling;if(!d)return r;var i=r.nodeType;if(i===8&&r.data===j)return ie(r,e);if(e&&i!==3){var t=_(),a=L.dom;return a.unshift(t),r==null||r.before(t),t}return b(r)}function oe(n){n.textContent=""}function ue(n,e,r,i){function t(a){if(i.capture||O(e,a),!a.cancelBubble)return r.call(this,a)}return n.startsWith("pointer")||n==="wheel"?U(()=>{e.addEventListener(n,t,i)}):e.addEventListener(n,t,i),t}function pe(n,e,r,i,t){var a={capture:i,passive:t},u=ue(n,e,r,a);(e===document.body||e===window||e===document)&&F(()=>{e.removeEventListener(n,u,a)})}function ve(n){for(var e=0;e<n.length;e++)H.add(n[e]);for(var r of A)r(n)}function O(n,e){var $;var r=n.ownerDocument,i=e.type,t=(($=e.composedPath)==null?void 0:$.call(e))||[],a=t[0]||e.target,u=0,v=e.__root;if(v){var m=t.indexOf(v);if(m!==-1&&(n===document||n===window)){e.__root=n;return}var T=t.indexOf(n);if(T===-1)return;m<=T&&(u=m)}if(a=t[u]||e.target,a!==n){z(e,"currentTarget",{configurable:!0,get(){return a||r}});try{for(var c,p=[];a!==null;){var w=a.parentNode||a.host||null;try{var s=a["__"+i];if(s!==void 0&&!a.disabled)if(S(s)){var[g,...l]=s;g.apply(a,[e,...l])}else s.call(a,e)}catch(E){c?p.push(E):c=E}if(e.cancelBubble||w===n||w===null)break;a=w}if(c){for(let E of p)queueMicrotask(()=>{throw E});throw c}}finally{e.__root=n,a=n}}}let f;function se(){f=void 0}function me(n){let e=null,r=d;var i;if(d){for(e=y,f===void 0&&(f=document.head.firstChild);f.nodeType!==8||f.data!==C;)f=f.nextSibling;f=b(f),f=f.nextSibling}else i=document.head.appendChild(_());try{W(()=>n(i))}finally{r&&q(e)}}const H=new Set,A=new Set;let k=!0;function ye(n){k=n}function we(n,e){(n.__t??(n.__t=n.nodeValue))!==e&&(n.nodeValue=n.__t=e)}function ge(n,e,r,i){e===void 0||e(n,r)}function fe(n,e){const r=e.anchor??e.target.appendChild(_());return P(()=>Y(n,{...e,anchor:r}),!1)}function be(n,e){const r=e.target,i=y;try{return P(()=>{N(!0);for(var t=r.firstChild;t&&(t.nodeType!==8||t.data!==C);)t=t.nextSibling;if(!t)throw R;const a=b(t),u=Y(n,{...e,anchor:a});return N(!1),u},!1)}catch(t){if(t===R)return e.recover===!1&&G(),B(),oe(r),N(!1),fe(n,e);throw t}finally{N(!!i),q(i),se()}}function Y(n,{target:e,anchor:r,props:i={},events:t,context:a,intro:u=!1}){B();const v=new Set,m=O.bind(null,e),T=O.bind(null,document),c=s=>{for(let g=0;g<s.length;g++){const l=s[g];v.has(l)||(v.add(l),e.addEventListener(l,m,I.includes(l)?{passive:!0}:void 0),document.addEventListener(l,T,I.includes(l)?{passive:!0}:void 0))}};c(X(H)),A.add(c);let p;const w=x(()=>(J(()=>{if(a){K({});var s=Z;s.c=a}t&&(i.$$events=t),k=u,p=n(r,i)||{},k=!0,a&&Q()}),()=>{for(const s of v)e.removeEventListener(s,m);A.delete(c),D.delete(p)}));return D.set(p,w),p}let D=new WeakMap;function Te(n){const e=D.get(n);e==null||e()}function h(n,e=L){var r=e.dom;return r===null?e.dom=n:(S(r)||(r=e.dom=[r]),S(n)?r.push(...n):r.push(n)),n}function de(n,e){var r=(e&ne)!==0,i=(e&re)!==0,t;return()=>{if(d)return h(r?y:o),o;t||(t=ee(n),r||(t=t.firstChild));var a=i?document.importNode(t,!0):t.cloneNode(!0);return h(r?[...a.childNodes]:a),a}}function Ee(n,e,r="svg"){var i=de(`<${r}>${n}</${r}>`,0),t;return()=>{if(d)return h(o),o;if(!t){var a=i();t=a.firstChild}var u=t.cloneNode(!0);return h(u),u}}function Ne(n){if(!d)return h(_());var e=o;return e||n.before(e=_()),h(e),e}function Ce(){if(d)return h(y),o;var n=document.createDocumentFragment(),e=_();return n.append(e),h([e]),n}function Re(n,e){d||n.before(e)}const ce="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ce);export{ae as $,ge as A,Ee as B,Re as a,ie as b,_e as c,N as d,y as e,he as f,_ as g,d as h,b as i,oe as j,o as k,ue as l,ve as m,Ce as n,be as o,h as p,fe as q,Ne as r,we as s,de as t,Te as u,me as v,q as w,ye as x,k as y,pe as z};
