mirror of
https://github.com/nkoehring/250kb-club.git
synced 2025-04-19 21:59:04 +02:00
17 lines
17 KiB
JavaScript
17 lines
17 KiB
JavaScript
function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e,n,r){if(t){const o=a(t,e,n,r);return t[0](o)}}function a(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function l(t,e,n,r,o,s,i){const c=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(e,r,o,s);if(c){const o=a(e,n,r,i);t.p(o,c)}}function u(t,e){t.appendChild(e)}function f(t,e,n){t.insertBefore(e,n||null)}function p(t){t.parentNode.removeChild(t)}function d(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function h(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function g(){return m(" ")}function $(){return m("")}function y(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t){return Array.from(t.childNodes)}function _(t,e,n,r){for(let r=0;r<t.length;r+=1){const o=t[r];if(o.nodeName===e){let e=0;const s=[];for(;e<o.attributes.length;){const t=o.attributes[e++];n[t.name]||s.push(t.name)}for(let t=0;t<s.length;t++)o.removeAttribute(s[t]);return t.splice(r,1)[0]}}return r?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(e):h(e)}function x(t,e){for(let n=0;n<t.length;n+=1){const r=t[n];if(3===r.nodeType)return r.data=""+e,t.splice(n,1)[0]}return m(e)}function E(t){return x(t," ")}function w(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function S(t,e){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}}function L(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function N(t,e,n){t.classList[n?"add":"remove"](e)}let R;function k(t){R=t}function O(){if(!R)throw new Error("Function called outside component initialization");return R}function T(t){O().$$.on_mount.push(t)}const P=[],j=[],A=[],C=[],U=Promise.resolve();let q=!1;function B(t){A.push(t)}let I=!1;const J=new Set;function V(){if(!I){I=!0;do{for(let t=0;t<P.length;t+=1){const e=P[t];k(e),K(e.$$)}for(k(null),P.length=0;j.length;)j.pop()();for(let t=0;t<A.length;t+=1){const e=A[t];J.has(e)||(J.add(e),e())}A.length=0}while(P.length);for(;C.length;)C.pop()();q=!1,I=!1,J.clear()}}function K(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(B)}}const D=new Set;let H;function M(){H={r:0,c:[],p:H}}function z(){H.r||o(H.c),H=H.p}function F(t,e){t&&t.i&&(D.delete(t),t.i(e))}function G(t,e,n,r){if(t&&t.o){if(D.has(t))return;D.add(t),H.c.push((()=>{D.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function Y(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function W(t){return"object"==typeof t&&null!==t?t:{}}function X(t){t&&t.c()}function Q(t,e){t&&t.l(e)}function Z(t,e,r){const{fragment:i,on_mount:c,on_destroy:a,after_update:l}=t.$$;i&&i.m(e,r),B((()=>{const e=c.map(n).filter(s);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(B)}function tt(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function et(t,e){-1===t.$$.dirty[0]&&(P.push(t),q||(q=!0,U.then(V)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function nt(e,n,s,i,c,a,l=[-1]){const u=R;k(e);const f=n.props||{},d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:r(),dirty:l,skip_bound:!1};let h=!1;if(d.ctx=s?s(e,f,((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&et(e,t)),n})):[],d.update(),h=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){const t=b(n.target);d.fragment&&d.fragment.l(t),t.forEach(p)}else d.fragment&&d.fragment.c();n.intro&&F(e.$$.fragment),Z(e,n.target,n.anchor),V()}k(u)}class rt{$destroy(){tt(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ot(t){let e;const n=t[1].default,r=c(n,t,t[0],null);return{c(){r&&r.c()},l(t){r&&r.l(t)},m(t,n){r&&r.m(t,n),e=!0},p(t,[e]){r&&r.p&&1&e&&l(r,n,t,t[0],e,null,null)},i(t){e||(F(r,t),e=!0)},o(t){G(r,t),e=!1},d(t){r&&r.d(t)}}}function st(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class it extends rt{constructor(t){super(),nt(this,t,st,ot,i,{})}}function ct(t){let e,n,r=t[1].stack+"";return{c(){e=h("pre"),n=m(r)},l(t){e=_(t,"PRE",{});var o=b(e);n=x(o,r),o.forEach(p)},m(t,r){f(t,e,r),u(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&w(n,r)},d(t){t&&p(e)}}}function at(e){let n,r,o,s,i,c,a,l=e[1].message+"",d=e[1].stack&&ct(e);return{c(){n=h("h1"),r=m(e[0]),o=g(),s=h("p"),i=m(l),c=g(),d&&d.c(),a=$()},l(t){n=_(t,"H1",{});var u=b(n);r=x(u,e[0]),u.forEach(p),o=E(t),s=_(t,"P",{});var f=b(s);i=x(f,l),f.forEach(p),c=E(t),d&&d.l(t),a=$()},m(t,e){f(t,n,e),u(n,r),f(t,o,e),f(t,s,e),u(s,i),f(t,c,e),d&&d.m(t,e),f(t,a,e)},p(t,[e]){1&e&&w(r,t[0]),2&e&&l!==(l=t[1].message+"")&&w(i,l),t[1].stack?d?d.p(t,e):(d=ct(t),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&p(n),t&&p(o),t&&p(s),t&&p(c),d&&d.d(t),t&&p(a)}}}function lt(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o]}class ut extends rt{constructor(t){super(),nt(this,t,lt,at,i,{status:0,error:1})}}const ft=[()=>Promise.all([import("./index-899307f0.js"),__inject_styles(["index-dbc182e1.css"])]).then((function(t){return t[0]}))],pt=[{pattern:/^\/$/,parts:[{i:0}]}],dt=[];function ht(e,n=t){let r;const o=[];function s(t){if(i(e,t)&&(e=t,r)){const t=!dt.length;for(let t=0;t<o.length;t+=1){const n=o[t];n[1](),dt.push(n,e)}if(t){for(let t=0;t<dt.length;t+=2)dt[t][0](dt[t+1]);dt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.push(a),1===o.length&&(r=n(s)||t),i(e),()=>{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}function mt(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&X(n.$$.fragment),r=$()},l(t){n&&Q(n.$$.fragment,t),r=$()},m(t,e){n&&Z(n,t,e),f(t,r,e),o=!0},p(t,e){const o=16&e?Y(s,[W(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){M();const t=n;G(t.$$.fragment,1,0,(()=>{tt(t,1)})),z()}i?(n=new i(c()),X(n.$$.fragment),F(n.$$.fragment,1),Z(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&F(n.$$.fragment,t),o=!0)},o(t){n&&G(n.$$.fragment,t),o=!1},d(t){t&&p(r),n&&tt(n,t)}}}function gt(t){let e,n;return e=new ut({props:{status:t[0],error:t[1]}}),{c(){X(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,r){Z(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.status=t[0]),2&n&&(r.error=t[1]),e.$set(r)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){G(e.$$.fragment,t),n=!1},d(t){tt(e,t)}}}function $t(t){let e,n,r,o;const s=[gt,mt],i=[];function c(t,e){return t[1]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=$()},l(t){n.l(t),r=$()},m(t,n){i[e].m(t,n),f(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(M(),G(i[a],1,1,(()=>{i[a]=null})),z(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),F(n,1),n.m(r.parentNode,r))},i(t){o||(F(n),o=!0)},o(t){G(n),o=!1},d(t){i[e].d(t),t&&p(r)}}}function yt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[$t]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new t[5]({props:s}),{c(){X(n.$$.fragment)},l(t){Q(n.$$.fragment,t)},m(t,e){Z(n,t,e),r=!0},p(t,[e]){const r=12&e?Y(o,[4&e&&{segment:t[2][0]},8&e&&W(t[3].props)]):{};275&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(F(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){tt(n,t)}}}function vt(t,e,n){const r=it;let{status:o}=e,{error:s}=e,{stores:i}=e,{segments:c}=e,{level0:a}=e,{level1:l=null}=e,{notify:u}=e;var f,p,d;return f=u,O().$$.after_update.push(f),p="__svelte__",d=i,O().$$.context.set(p,d),t.$$set=t=>{"status"in t&&n(0,o=t.status),"error"in t&&n(1,s=t.error),"stores"in t&&n(6,i=t.stores),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,a=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(7,u=t.notify)},[o,s,c,a,l,r,i,u]}class bt extends rt{constructor(t){super(),nt(this,t,vt,yt,i,{status:0,error:1,stores:6,segments:2,level0:3,level1:4,notify:7})}}
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */function _t(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function xt(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}function Et(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let wt,St=1;const Lt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Nt={};let Rt,kt;function Ot(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Tt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Rt))return null;let e=t.pathname.slice(Rt.length);""===e&&(e="/");for(let n=0;n<pt.length;n+=1){const r=pt[n],o=r.pattern.exec(e);if(o){const n=Ot(t.search),s=r.parts[r.parts.length-1],i=s.params?s.params(o):{},c={host:location.host,path:e,query:n,params:i};return{href:t.href,route:r,match:o,page:c}}}}function Pt(t){if(1!==function(t){return null===t.which?t.button:t.which}(t))return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const e=Et(t.target);if(!e)return;if(!e.href)return;const n="object"==typeof e.href&&"SVGAnimatedString"===e.href.constructor.name,r=String(n?e.href.baseVal:e.href);if(r===location.href)return void(location.hash||t.preventDefault());if(e.hasAttribute("download")||"external"===e.getAttribute("rel"))return;if(n?e.target.baseVal:e.target)return;const o=new URL(r);if(o.pathname===location.pathname&&o.search===location.search)return;const s=Tt(o);if(s){Ct(s,null,e.hasAttribute("sapper:noscroll"),o.hash),t.preventDefault(),Lt.pushState({id:wt},"",o.href)}}function jt(){return{x:pageXOffset,y:pageYOffset}}function At(t){if(Nt[wt]=jt(),t.state){const e=Tt(new URL(location.href));e?Ct(e,t.state.id):location.href=location.href}else St=St+1,function(t){wt=t}(St),Lt.replaceState({id:wt},"",location.href)}function Ct(t,e,n,r){return _t(this,void 0,void 0,(function*(){const o=!!e;if(o)wt=e;else{const t=jt();Nt[wt]=t,wt=e=++St,Nt[wt]=n?t:{x:0,y:0}}if(yield kt(t),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let t,n=Nt[e];r&&(t=document.getElementById(r.slice(1)),t&&(n={x:0,y:t.getBoundingClientRect().top+scrollY})),Nt[wt]=n,o||t?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function Ut(t,e={noscroll:!1,replaceState:!1}){const n=Tt(new URL(t,xt(document)));return n?(Lt[e.replaceState?"replaceState":"pushState"]({id:wt},"",t),Ct(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const qt="undefined"!=typeof __SVELTE__&&__SVELTE__;let Bt,It,Jt,Vt=!1,Kt=[],Dt="{}";const Ht={page:function(t){const e=ht(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:ht(null),session:ht(qt&&qt.session)};let Mt,zt,Ft;function Gt(t){var e,n;return e=t.target,Ft=e,n=qt.baseUrl,Rt=n,kt=Wt,"scrollRestoration"in Lt&&(Lt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{Lt.scrollRestoration="auto"})),addEventListener("load",(()=>{Lt.scrollRestoration="manual"})),addEventListener("click",Pt),addEventListener("popstate",At),addEventListener("touchstart",ne),addEventListener("mousemove",re),qt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=qt;Jt||(Jt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Jt},level1:{props:{status:s,error:i},component:ut},segments:o},a=Ot(n);Xt([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;Lt.replaceState({id:St},"",e);const n=Tt(new URL(location.href));if(n)return Ct(n,St,!0,t)}))}function Yt(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Wt(t){return _t(this,void 0,void 0,(function*(){Bt&&Ht.preloading.set(!0);const e=function(t){return te&&te.href===t.href?te.promise:Qt(t)}(t),n=It={},r=yield e,{redirect:o}=r;if(n===It)if(o)yield Ut(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield Xt(n,e,Yt(e,t.page))}}))}function Xt(t,e,n){return _t(this,void 0,void 0,(function*(){Ht.page.set(n),Ht.preloading.set(!1),Bt?Bt.$set(e):(e.stores={page:{subscribe:Ht.page.subscribe},preloading:{subscribe:Ht.preloading.subscribe},session:Ht.session},e.level0={props:yield Jt},e.notify=Ht.page.notify,Bt=new bt({target:Ft,props:e,hydrate:!0})),Kt=t,Dt=JSON.stringify(n.query),Vt=!0,zt=!1}))}function Qt(t){return _t(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};let c;Jt||(Jt=qt.preloaded[0]||{});let a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>_t(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==Dt)return!0;const o=Kt[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const p=a++;if(!zt&&!u&&Kt[c]&&Kt[c].part===e.i)return Kt[c];u=!1;const{default:d,preload:h}=yield ft[e.i]();let m;return m=Vt||!qt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Mt):{}:qt.preloaded[c+1],s[`level${p}`]={component:d,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}Ht.session.subscribe((t=>_t(void 0,void 0,void 0,(function*(){if(Mt=t,!Vt)return;zt=!0;const e=Tt(new URL(location.href)),n=It={},{redirect:r,props:o,branch:s}=yield Qt(e);n===It&&(r?yield Ut(r.location,{replaceState:!0}):yield Xt(s,o,Yt(o,e.page)))}))));let Zt,te=null;function ee(t){const e=Tt(new URL(t,xt(document)));if(e)return te&&t===te.href||(te={href:t,promise:Qt(e)}),te.promise}function ne(t){const e=Et(t.target);e&&"prefetch"===e.rel&&ee(e.href)}function re(t){clearTimeout(Zt),Zt=setTimeout((()=>{ne(t)}),20)}function oe(t){return pt.filter(t?e=>t.some((t=>e.pattern.test(t))):()=>!0).reduce(((t,e)=>t.then((()=>Promise.all(e.parts.map((t=>t&&ft[t.i]())))))),Promise.resolve())}export{t as A,S as B,y as C,T as D,B as E,L as F,Ut as G,ee as H,oe as I,Gt as J,rt as S,_ as a,b,c,p as d,h as e,v as f,f as g,G as h,nt as i,m as j,g as k,X as l,x as m,E as n,Q as o,u as p,Z as q,tt as r,i as s,F as t,l as u,N as v,w,M as x,z as y,d as z};
|
|
|
|
import __inject_styles from './inject_styles-cd877ae9.js';//# sourceMappingURL=navigation-92e499c1.js.map
|