import{q as S,v as f,P as _,X as V,an as m,ao as h,ap as x,$ as E,ak as D,aq as R,ar as W,as as q,L as y,at as B,au as C,I as c,x as $,av as j,B as F}from"./CwuLZfOX.js";function re(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const U=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ae(e){return U.includes(e)}const X={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ne(e){return e=e.toLowerCase(),X[e]??e}const G=["touchstart","touchmove"];function oe(e){return G.includes(e)}const H=["textarea","script","style","title"];function ie(e){return H.includes(e)}function se(e,t){if(t){const r=document.body;e.autofocus=!0,S(()=>{document.activeElement===r&&e.focus()})}}function ue(e){f&&_(e)!==null&&V(e)}let L=!1;function z(){L||(L=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function N(e){var t=x,r=E;m(null),h(null);try{return e()}finally{m(t),h(r)}}function ce(e,t,r,o=r){e.addEventListener(t,()=>N(r));const n=e.__on_r;n?e.__on_r=()=>{n(),o(!0)}:e.__on_r=()=>o(!0),z()}const J=new Set,K=new Set;function Q(e,t,r,o={}){function n(a){if(o.capture||Y.call(t,a),!a.cancelBubble)return N(()=>r==null?void 0:r.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?S(()=>{t.addEventListener(e,n,o)}):t.addEventListener(e,n,o),n}function le(e,t,r,o,n){var a={capture:o,passive:n},i=Q(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&W(()=>{t.removeEventListener(e,i,a)})}function fe(e){for(var t=0;t<e.length;t++)J.add(e[t]);for(var r of K)r(e)}function Y(e){var T;var t=this,r=t.ownerDocument,o=e.type,n=((T=e.composedPath)==null?void 0:T.call(e))||[],a=n[0]||e.target,i=0,l=e.__root;if(l){var s=n.indexOf(l);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var b=n.indexOf(t);if(b===-1)return;s<=b&&(i=s)}if(a=n[i]||e.target,a!==t){D(e,"currentTarget",{configurable:!0,get(){return a||r}});var M=x,A=E;m(null),h(null);try{for(var d,w=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var v=a["__"+o];if(v!=null&&(!a.disabled||e.target===a))if(R(v)){var[I,...O]=v;I.apply(a,[e,...O])}else v.call(a,e)}catch(p){d?w.push(p):d=p}if(e.cancelBubble||g===t||g===null)break;a=g}if(d){for(let p of w)queueMicrotask(()=>{throw p});throw d}}finally{e.__root=t,delete e.currentTarget,m(M),h(A)}}}function P(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function u(e,t){var r=E;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function _e(e,t){var r=(t&B)!==0,o=(t&C)!==0,n,a=!e.startsWith("<!>");return()=>{if(f)return u(c,null),c;n===void 0&&(n=P(a?e:"<!>"+e),r||(n=_(n)));var i=o||q?document.importNode(n,!0):n.cloneNode(!0);if(r){var l=_(i),s=i.lastChild;u(l,s)}else u(i,i);return i}}function Z(e,t,r="svg"){var o=!e.startsWith("<!>"),n=`<${r}>${o?e:"<!>"+e}</${r}>`,a;return()=>{if(f)return u(c,null),c;if(!a){var i=P(n),l=_(i);a=_(l)}var s=a.cloneNode(!0);return u(s,s),s}}function de(e,t){return Z(e,t,"svg")}function ve(e=""){if(!f){var t=y(e+"");return u(t,t),t}var r=c;return r.nodeType!==j&&(r.before(r=y()),F(r)),u(r,r),r}function pe(){if(f)return u(c,null),c;var e=document.createDocumentFragment(),t=document.createComment(""),r=y();return e.append(t,r),u(t,r),e}function me(e,t){if(f){E.nodes_end=c,$();return}e!==null&&e.before(t)}const ee="5";var k;typeof window<"u"&&((k=window.__svelte??(window.__svelte={})).v??(k.v=new Set)).add(ee);export{me as a,J as b,pe as c,fe as d,le as e,_e as f,K as g,Y as h,oe as i,u as j,ie as k,ce as l,re as m,Q as n,se as o,ne as p,z as q,ue as r,ae as s,ve as t,de as u};
