function m(){}const M=t=>t;function j(t,n){for(const e in n)t[e]=n[e];return t}function v(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function E(t){return t()}function A(){return Object.create(null)}function q(t){t.forEach(E)}function C(t){return typeof t=="function"}function B(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let l;function G(t,n){return t===n?!0:(l||(l=document.createElement("a")),l.href=n,t===l.href)}function H(t){return Object.keys(t).length===0}function x(t,...n){if(t==null){for(const o of n)o(void 0);return m}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function I(t){let n;return x(t,e=>n=e)(),n}function J(t,n,e){t.$$.on_destroy.push(x(n,e))}function K(t,n,e,o){if(t){const r=k(t,n,e,o);return t[0](r)}}function k(t,n,e,o){return t[1]&&o?j(e.ctx.slice(),t[1](o(n))):e.ctx}function P(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const f=[],d=Math.max(n.dirty.length,r.length);for(let u=0;u<d;u+=1)f[u]=n.dirty[u]|r[u];return f}return n.dirty|r}return n.dirty}function S(t,n,e,o,r,f){if(r){const d=k(n,e,o,f);t.p(d,r)}}function U(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}function L(t){return t??""}function N(t,n,e){return t.set(e),n}function Q(t){return t&&C(t.destroy)?t.destroy:m}function R(t){const n=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return n?[parseFloat(n[1]),n[2]||"px"]:[t,"px"]}let _;function h(t){_=t}function a(){if(!_)throw new Error("Function called outside component initialization");return _}function T(t){a().$$.on_mount.push(t)}function V(t){a().$$.after_update.push(t)}function W(t){a().$$.on_destroy.push(t)}function X(t,n){return a().$$.context.set(t,n),n}function Y(t){return a().$$.context.get(t)}const i=[],g=[];let c=[];const b=[],w=Promise.resolve();let y=!1;function F(){y||(y=!0,w.then(z))}function Z(){return F(),w}function O(t){c.push(t)}const p=new Set;let s=0;function z(){if(s!==0)return;const t=_;do{try{for(;s<i.length;){const n=i[s];s++,h(n),D(n.$$)}}catch(n){throw i.length=0,s=0,n}for(h(null),i.length=0,s=0;g.length;)g.pop()();for(let n=0;n<c.length;n+=1){const e=c[n];p.has(e)||(p.add(e),e())}c.length=0}while(i.length);for(;b.length;)b.pop()();y=!1,p.clear(),h(t)}function D(t){if(t.fragment!==null){t.update(),q(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function $(t){const n=[],e=[];c.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),c=n}export{N as A,L as B,C,M as D,A as E,H as F,$ as G,_ as H,E as I,i as J,F as K,V as a,g as b,K as c,P as d,J as e,a as f,U as g,h,v as i,z as j,W as k,I as l,R as m,m as n,T as o,j as p,O as q,q as r,B as s,Z as t,S as u,Q as v,G as w,Y as x,X as y,x as z};
