hypnagaga/docs/assets/index-85f88930.js
2024-05-23 10:39:02 +00:00

5 lines
10 KiB
JavaScript

var at=Object.defineProperty;var ft=(t,e,n)=>e in t?at(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var p=(t,e,n)=>(ft(t,typeof e!="symbol"?e+"":e,n),n);function g(){}const lt=t=>t;function dt(t,e){for(const n in e)t[n]=e[n];return t}function Q(t){return t()}function U(){return Object.create(null)}function P(t){t.forEach(Q)}function z(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let T;function qt(t,e){return t===e?!0:(T||(T=document.createElement("a")),T.href=e,t===T.href)}function ht(t){return Object.keys(t).length===0}function _t(t,...e){if(t==null){for(const s of e)s(void 0);return g}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ft(t,e,n){t.$$.on_destroy.push(_t(e,n))}function It(t,e,n,s){if(t){const i=X(t,e,n,s);return t[0](i)}}function X(t,e,n,s){return t[1]&&s?dt(n.ctx.slice(),t[1](s(e))):n.ctx}function Wt(t,e,n,s){if(t[2]&&s){const i=t[2](s(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const r=[],u=Math.max(e.dirty.length,i.length);for(let a=0;a<u;a+=1)r[a]=e.dirty[a]|i[a];return r}return e.dirty|i}return e.dirty}function Bt(t,e,n,s,i,r){if(i){const u=X(e,n,s,r);t.p(u,i)}}function Ht(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let s=0;s<n;s++)e[s]=-1;return e}return-1}function Ut(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Vt(t,e){const n={};e=new Set(e);for(const s in t)!e.has(s)&&s[0]!=="$"&&(n[s]=t[s]);return n}function Gt(t){const e={};for(const n in t)e[n]=!0;return e}function Jt(t){return t??""}function Kt(t){return t&&z(t.destroy)?t.destroy:g}function Qt(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const Y=typeof window<"u";let pt=Y?()=>window.performance.now():()=>Date.now(),W=Y?t=>requestAnimationFrame(t):g;const E=new Set;function Z(t){E.forEach(e=>{e.c(t)||(E.delete(e),e.f())}),E.size!==0&&W(Z)}function mt(t){let e;return E.size===0&&W(Z),{promise:new Promise(n=>{E.add(e={c:t,f:n})}),abort(){E.delete(e)}}}function tt(t,e){t.appendChild(e)}function et(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function yt(t){const e=B("style");return e.textContent="/* empty */",gt(et(t),e),e.sheet}function gt(t,e){return tt(t.head||t,e),e.sheet}function $t(t,e,n){t.insertBefore(e,n||null)}function D(t){t.parentNode&&t.parentNode.removeChild(t)}function Xt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function B(t){return document.createElement(t)}function wt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function nt(t){return document.createTextNode(t)}function Yt(){return nt(" ")}function Zt(){return nt("")}function V(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function te(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const bt=["width","height"];function ee(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const s in e)e[s]==null?t.removeAttribute(s):s==="style"?t.style.cssText=e[s]:s==="__value"?t.value=t[s]=e[s]:n[s]&&n[s].set&&bt.indexOf(s)===-1?t[s]=e[s]:st(t,s,e[s])}function ne(t,e,n){const s=e.toLowerCase();s in t?t[s]=typeof t[s]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:st(t,e,n)}function xt(t){return Array.from(t.childNodes)}function se(t,e){e=""+e,t.data!==e&&(t.data=e)}function ie(t,e){t.value=e??""}function re(t,e,n,s){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,s?"important":"")}let O;function vt(){if(O===void 0){O=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{O=!0}}return O}function oe(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=B("iframe");s.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),s.setAttribute("aria-hidden","true"),s.tabIndex=-1;const i=vt();let r;return i?(s.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=V(window,"message",u=>{u.source===s.contentWindow&&e()})):(s.src="about:blank",s.onload=()=>{r=V(s.contentWindow,"resize",e),e()}),tt(t,s),()=>{(i||r&&s.contentWindow)&&r(),D(s)}}function ce(t,e,n){t.classList.toggle(e,!!n)}function it(t,e,{bubbles:n=!1,cancelable:s=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:s})}class ue{constructor(e=!1){p(this,"is_svg",!1);p(this,"e");p(this,"n");p(this,"t");p(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,s=null){this.e||(this.is_svg?this.e=wt(n.nodeName):this.e=B(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(s)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)$t(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(D)}}function ae(t,e){return new t(e)}const M=new Map;let S=0;function Et(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function kt(t,e){const n={stylesheet:yt(e),rules:{}};return M.set(t,n),n}function Nt(t,e,n,s,i,r,u,a=0){const l=16.666/s;let o=`{
`;for(let m=0;m<=1;m+=l){const b=e+(n-e)*r(m);o+=m*100+`%{${u(b,1-b)}}
`}const d=o+`100% {${u(n,1-n)}}
}`,c=`__svelte_${Et(d)}_${a}`,h=et(t),{stylesheet:f,rules:_}=M.get(h)||kt(h,t);_[c]||(_[c]=!0,f.insertRule(`@keyframes ${c} ${d}`,f.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${c} ${s}ms linear ${i}ms 1 both`,S+=1,c}function G(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),i=n.length-s.length;i&&(t.style.animation=s.join(", "),S-=i,S||At())}function At(){W(()=>{S||(M.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&D(e)}),M.clear())})}let C;function A(t){C=t}function $(){if(!C)throw new Error("Function called outside component initialization");return C}function fe(t){$().$$.on_mount.push(t)}function le(t){$().$$.after_update.push(t)}function de(t){$().$$.on_destroy.push(t)}function he(){const t=$();return(e,n,{cancelable:s=!1}={})=>{const i=t.$$.callbacks[e];if(i){const r=it(e,n,{cancelable:s});return i.slice().forEach(u=>{u.call(t,r)}),!r.defaultPrevented}return!0}}function _e(t,e){return $().$$.context.set(t,e),e}function pe(t){return $().$$.context.get(t)}function me(t){return $().$$.context.has(t)}function ye(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(s=>s.call(this,e))}const v=[],J=[];let k=[];const F=[],rt=Promise.resolve();let I=!1;function ot(){I||(I=!0,rt.then(ct))}function ge(){return ot(),rt}function j(t){k.push(t)}function $e(t){F.push(t)}const q=new Set;let x=0;function ct(){if(x!==0)return;const t=C;do{try{for(;x<v.length;){const e=v[x];x++,A(e),Ct(e.$$)}}catch(e){throw v.length=0,x=0,e}for(A(null),v.length=0,x=0;J.length;)J.pop()();for(let e=0;e<k.length;e+=1){const n=k[e];q.has(n)||(q.add(n),n())}k.length=0}while(v.length);for(;F.length;)F.pop()();I=!1,q.clear(),A(t)}function Ct(t){if(t.fragment!==null){t.update(),P(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(j)}}function Pt(t){const e=[],n=[];k.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),k=e}let N;function Tt(){return N||(N=Promise.resolve(),N.then(()=>{N=null})),N}function K(t,e,n){t.dispatchEvent(it(`${e?"intro":"outro"}${n}`))}const L=new Set;let y;function we(){y={r:0,c:[],p:y}}function be(){y.r||P(y.c),y=y.p}function Ot(t,e){t&&t.i&&(L.delete(t),t.i(e))}function xe(t,e,n,s){if(t&&t.o){if(L.has(t))return;L.add(t),y.c.push(()=>{L.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const Lt={duration:0};function ve(t,e,n){const s={direction:"in"};let i=e(t,n,s),r=!1,u,a,l=0;function o(){u&&G(t,u)}function d(){const{delay:h=0,duration:f=300,easing:_=lt,tick:w=g,css:m}=i||Lt;m&&(u=Nt(t,0,1,f,h,_,m,l++)),w(0,1);const b=pt()+h,ut=b+f;a&&a.abort(),r=!0,j(()=>K(t,!0,"start")),a=mt(R=>{if(r){if(R>=ut)return w(1,0),K(t,!0,"end"),o(),r=!1;if(R>=b){const H=_((R-b)/f);w(H,1-H)}}return r})}let c=!1;return{start(){c||(c=!0,G(t),z(i)?(i=i(s),Tt().then(d)):d())},invalidate(){c=!1},end(){r&&(o(),r=!1)}}}function Ee(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function ke(t){t&&t.c()}function Mt(t,e,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),j(()=>{const r=t.$$.on_mount.map(Q).filter(z);t.$$.on_destroy?t.$$.on_destroy.push(...r):P(r),t.$$.on_mount=[]}),i.forEach(j)}function St(t,e){const n=t.$$;n.fragment!==null&&(Pt(n.after_update),P(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jt(t,e){t.$$.dirty[0]===-1&&(v.push(t),ot(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ne(t,e,n,s,i,r,u=null,a=[-1]){const l=C;A(t);const o=t.$$={fragment:null,ctx:[],props:r,update:g,not_equal:i,bound:U(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:U(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};u&&u(o.root);let d=!1;if(o.ctx=n?n(t,e.props||{},(c,h,...f)=>{const _=f.length?f[0]:h;return o.ctx&&i(o.ctx[c],o.ctx[c]=_)&&(!o.skip_bound&&o.bound[c]&&o.bound[c](_),d&&jt(t,c)),h}):[],o.update(),d=!0,P(o.before_update),o.fragment=s?s(o.ctx):!1,e.target){if(e.hydrate){const c=xt(e.target);o.fragment&&o.fragment.l(c),c.forEach(D)}else o.fragment&&o.fragment.c();e.intro&&Ot(t.$$.fragment),Mt(t,e.target,e.anchor),ct()}A(l)}class Ae{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){St(this,1),this.$destroy=g}$on(e,n){if(!z(n))return g;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!ht(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const zt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zt);export{_e as $,se as A,Jt as B,dt as C,fe as D,J as E,qt as F,Kt as G,z as H,ae as I,he as J,le as K,ge as L,V as M,P as N,j as O,oe as P,Ee as Q,$e as R,Ae as S,W as T,Ft as U,Xt as V,ue as W,de as X,ie as Y,te as Z,ye as _,wt as a,me as a0,pe as a1,Ut as a2,Vt as a3,ee as a4,ct as a5,Qt as a6,ve as a7,ne as a8,st as b,re as c,$t as d,tt as e,D as f,ke as g,xe as h,Ne as i,St as j,nt as k,It as l,Mt as m,g as n,B as o,Ht as p,Wt as q,ce as r,Rt as s,Ot as t,Bt as u,Zt as v,we as w,be as x,Gt as y,Yt as z};
//# sourceMappingURL=index-85f88930.js.map