(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();const u={};function Q(e){u.context=e}function $e(){return{...u.context,id:`${u.context.id}${u.context.count++}-`,count:0}}const Ne=(e,t)=>e===t,H=Symbol("solid-proxy"),Se=Symbol("solid-track"),q={equals:Ne};let ae=he;const C=1,U=2,fe={owned:null,cleanups:null,context:null,owner:null};var h=null;let k=null,d=null,p=null,$=null,ee=0;function z(e,t){const n=d,s=h,i=e.length===0,l=i?fe:{owned:null,cleanups:null,context:null,owner:t||s},r=i?e:()=>e(()=>N(()=>ne(l)));h=l,d=null;try{return j(r,!0)}finally{d=n,h=s}}function W(e,t){t=t?Object.assign({},q,t):q;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=i=>(typeof i=="function"&&(i=i(n.value)),de(n,i));return[ue.bind(n),s]}function M(e,t,n){const s=te(e,t,!1,C);B(s)}function Ce(e,t,n){ae=Me;const s=te(e,t,!1,C);s.user=!0,$?$.push(s):B(s)}function S(e,t,n){n=n?Object.assign({},q,n):q;const s=te(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,B(s),ue.bind(s)}function Ct(e){return j(e,!1)}function N(e){const t=d;d=null;try{return e()}finally{d=t}}function Et(e){Ce(()=>N(e))}function Y(e){return h===null||(h.cleanups===null?h.cleanups=[e]:h.cleanups.push(e)),e}function Lt(e,t){const n=Symbol("context");return{id:n,Provider:_e(n),defaultValue:e}}function kt(e){let t;return(t=pe(h,e.id))!==void 0?t:e.defaultValue}function Ee(e){const t=S(e),n=S(()=>J(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}function ue(){const e=k;if(this.sources&&(this.state||e))if(this.state===C||e)B(this);else{const t=p;p=null,j(()=>R(this),!1),p=t}if(d){const t=this.observers?this.observers.length:0;d.sources?(d.sources.push(this),d.sourceSlots.push(t)):(d.sources=[this],d.sourceSlots=[t]),this.observers?(this.observers.push(d),this.observerSlots.push(d.sources.length-1)):(this.observers=[d],this.observerSlots=[d.sources.length-1])}return this.value}function de(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&j(()=>{for(let i=0;i1e6)throw p=[],new Error},!1)),t}function B(e){if(!e.fn)return;ne(e);const t=h,n=d,s=ee;d=h=e,Le(e,e.value,s),d=n,h=t}function Le(e,t,n){let s;try{s=e.fn(t)}catch(i){e.pure&&(e.state=C),me(i)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?de(e,s):e.value=s,e.updatedAt=n)}function te(e,t,n,s=C,i){const l={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:null,pure:n};return h===null||h!==fe&&(h.owned?h.owned.push(l):h.owned=[l]),l}function K(e){const t=k;if(e.state===0||t)return;if(e.state===U||t)return R(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;s--)if(e=n[s],e.state===C||t)B(e);else if(e.state===U||t){const i=p;p=null,j(()=>R(e,n[0]),!1),p=i}}function j(e,t){if(p)return e();let n=!1;t||(p=[]),$?n=!0:$=[],ee++;try{const s=e();return ke(n),s}catch(s){p||($=null),me(s)}}function ke(e){if(p&&(he(p),p=null),e)return;const t=$;$=null,t.length&&j(()=>ae(t),!1)}function he(e){for(let t=0;ti=N(()=>(h.context={[e]:s.value},Ee(()=>s.children))),void 0),i}}const Oe=Symbol("fallback");function se(e){for(let t=0;t1?[]:null;return Y(()=>se(l)),()=>{let f=e()||[],a,c;return f[Se],N(()=>{let m=f.length,b,E,D,F,I,x,v,A,P;if(m===0)r!==0&&(se(l),l=[],s=[],i=[],r=0,o&&(o=[])),n.fallback&&(s=[Oe],i[0]=z(Ae=>(l[0]=Ae,n.fallback())),r=1);else if(r===0){for(i=new Array(m),c=0;c=x&&A>=x&&s[v]===f[A];v--,A--)D[A]=i[v],F[A]=l[v],o&&(I[A]=o[v]);for(b=new Map,E=new Array(A+1),c=A;c>=x;c--)P=f[c],a=b.get(P),E[c]=a===void 0?-1:a,b.set(P,c);for(a=x;a<=v;a++)P=s[a],c=b.get(P),c!==void 0&&c!==-1?(D[c]=i[a],F[c]=l[a],o&&(I[c]=o[a]),c=E[c],b.set(P,c)):l[a]();for(c=x;ce(t||{}));return Q(n),s}return N(()=>e(t||{}))}function V(){return!0}const ye={get(e,t,n){return t===H?n:e.get(t)},has(e,t){return t===H?!0:e.has(t)},set:V,deleteProperty:V,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:V,deleteProperty:V}},ownKeys(e){return e.keys()}};function X(e){return(e=typeof e=="function"?e():e)?e:{}}function De(...e){let t=!1;for(let s=0;s=0;i--){const l=X(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in X(e[i]))return!0;return!1},keys(){const s=[];for(let i=0;i=0;s--)if(e[s]){const i=Object.getOwnPropertyDescriptors(e[s]);for(const l in i)l in n||Object.defineProperty(n,l,{enumerable:!0,get(){for(let r=e.length-1;r>=0;r--){const o=(e[r]||{})[l];if(o!==void 0)return o}}})}return n}function we(e,...t){const n=new Set(t.flat()),s=Object.getOwnPropertyDescriptors(e),i=H in e;i||t.push(Object.keys(s).filter(r=>!n.has(r)));const l=t.map(r=>{const o={};for(let f=0;f!n.has(r))}},ye)),l}let ze=0;function Mt(){const e=u.context;return e?`${e.id}${e.count++}`:`cl-${ze++}`}function Pt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return S(Te(()=>e.each,e.children,t||void 0))}function Be(e){let t=!1;const n=e.keyed,s=S(()=>e.when,void 0,{equals:(i,l)=>t?i===l:!i==!l});return S(()=>{const i=s();if(i){const l=e.children,r=typeof l=="function"&&l.length>0;return t=n||r,r?N(()=>l(i)):l}return e.fallback},void 0,void 0)}const Ge=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Fe=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ge]),Ie=new Set(["innerHTML","textContent","innerText","children"]),Ve=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ie=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),He=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),qe=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Ue={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Ke(e,t,n){let s=n.length,i=t.length,l=s,r=0,o=0,f=t[i-1].nextSibling,a=null;for(;rc-o){const E=t[r];for(;o{i=l,t===document?e():w(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{i(),t.textContent=""}}function g(e,t,n){const s=document.createElement("template");s.innerHTML=e;let i=s.content.firstChild;return n&&(i=i.firstChild),i}function Re(e,t=window.document){const n=t[le]||(t[le]=new Set);for(let s=0,i=e.length;si.call(e,n[1],l))}else e.addEventListener(t,n)}function We(e,t,n={}){const s=Object.keys(t||{}),i=Object.keys(n);let l,r;for(l=0,r=i.length;li.children=T(e,t.children,i.children)),M(()=>t.ref&&t.ref(e)),M(()=>Je(e,t,n,!0,i,!0)),i}function w(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return T(e,t,s,n);M(i=>T(e,t(),i,n),s)}function Je(e,t,n,s,i={},l=!1){t||(t={});for(const r in i)if(!(r in t)){if(r==="children")continue;i[r]=re(e,r,null,i[r],n,l)}for(const r in t){if(r==="children"){s||T(e,t.children);continue}const o=t[r];i[r]=re(e,r,o,i[r],n,l)}}function Ze(e){let t,n;return!u.context||!(t=u.registry.get(n=nt()))?e.cloneNode(!0):(u.completed&&u.completed.add(t),u.registry.delete(n),t)}function et(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function oe(e,t,n){const s=t.trim().split(/\s+/);for(let i=0,l=s.length;i-1&&Ue[t.split(":")[0]];a?Xe(e,a,t,n):L(e,Ve[t]||t,n)}return n}function tt(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),u.registry&&!u.done&&(u.done=!0,document.querySelectorAll("[id^=pl-]").forEach(s=>s.remove()));n;){const s=n[t];if(s&&!n.disabled){const i=n[`${t}Data`];if(i!==void 0?s.call(n,i,e):s.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function T(e,t,n,s,i){for(u.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const l=typeof t,r=s!==void 0;if(e=r&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(u.context)return n;if(l==="number"&&(t=t.toString()),r){let o=n[0];o&&o.nodeType===3?o.data=t:o=document.createTextNode(t),n=_(e,n,s,o)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||l==="boolean"){if(u.context)return n;n=_(e,n,s)}else{if(l==="function")return M(()=>{let o=t();for(;typeof o=="function";)o=o();n=T(e,o,n,s)}),()=>n;if(Array.isArray(t)){const o=[],f=n&&Array.isArray(n);if(Z(o,t,n,i))return M(()=>n=T(e,o,n,s,!0)),()=>n;if(u.context){if(!o.length)return n;for(let a=0;a=0;r--){const o=t[r];if(i!==o){const f=o.parentNode===e;!l&&!r?f?e.replaceChild(i,o):e.insertBefore(i,n):f&&o.remove()}else l=!0}}else e.insertBefore(i,n);return[i]}function nt(){const e=u.context;return`${e.id}${e.count++}`}const st="http://www.w3.org/2000/svg";function xe(e,t=!1){return t?document.createElementNS(st,e):document.createElement(e)}function Ot(e){const{useShadow:t}=e,n=document.createTextNode(""),s=e.mount||document.body;function i(){if(u.context){const[l,r]=W(!1);return queueMicrotask(()=>r(!0)),()=>l()&&e.children}else return()=>e.children}if(s instanceof HTMLHeadElement){const[l,r]=W(!1),o=()=>r(!0);z(f=>w(s,()=>l()?f():i()(),null)),Y(()=>{u.context?queueMicrotask(o):o()})}else{const l=xe(e.isSVG?"g":"div",e.isSVG),r=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),w(r,i()),s.appendChild(l),e.ref&&e.ref(l),Y(()=>s.removeChild(l))}return n}function Tt(e){const[t,n]=we(e,["component"]),s=S(()=>t.component);return S(()=>{const i=s();switch(typeof i){case"function":return N(()=>i(n));case"string":const l=qe.has(i),r=u.context?Ze():xe(i,l);return be(r,n,l),r}})}const it=g(""),lt=e=>{const[t,n]=we(e,["path"]);return(()=>{const s=it.cloneNode(!0);return be(s,De({get viewBox(){return t.path.mini?"0 0 20 20":"0 0 24 24"},get fill(){return t.path.outline?"none":"currentColor"},get stroke(){return t.path.outline?"currentColor":"none"},get["stroke-width"](){return t.path.outline?1.5:void 0}},n),!0,!0),w(s,()=>t.path.path),s})()},ot=g('',4,!0),rt=g('',4,!0),ct=g('',4,!0),at=g('',4,!0),ft=g('',4,!0),ut=g('',4,!0),dt=g('',4,!0),ht=g('',4,!0),gt=g('',4,!0),mt=g('',4,!0),pt=g('',4,!0),yt=g('',4,!0),wt=g('',4,!0),jt={path:()=>ot.cloneNode(!0),outline:!1,mini:!1},Dt={path:()=>rt.cloneNode(!0),outline:!1,mini:!1},zt={path:()=>ct.cloneNode(!0),outline:!1,mini:!1},bt={path:()=>at.cloneNode(!0),outline:!1,mini:!1},Bt={path:()=>ft.cloneNode(!0),outline:!1,mini:!1},Gt={path:()=>[ut.cloneNode(!0),dt.cloneNode(!0),ht.cloneNode(!0)],outline:!1,mini:!1},Ft={path:()=>[gt.cloneNode(!0),mt.cloneNode(!0)],outline:!1,mini:!1},It={path:()=>pt.cloneNode(!0),outline:!1,mini:!1},Vt={path:()=>yt.cloneNode(!0),outline:!1,mini:!1},Ht={path:()=>wt.cloneNode(!0),outline:!1,mini:!1},xt=g(""),ve=({to:e,rel:t,children:n,className:s,id:i,newTab:l=!0,title:r})=>(()=>{const o=xt.cloneNode(!0);return L(o,"href",e),L(o,"id",i),L(o,"title",r),L(o,"rel",`${t} ${l?"noreferrer":void 0}`),L(o,"target",l?"_blank":void 0),G(o,`link ${s}`),w(o,n),o})(),vt=g('

Av Martin Berg Alstad

'),At=({className:e,title:t})=>(()=>{const n=vt.cloneNode(!0),s=n.firstChild,i=s.firstChild;return G(n,e),w(s,O(Be,{get when(){return typeof location<"u"&&location.pathname!=="/"},keyed:!0,get children(){return O(ve,{to:"/",newTab:!1,title:"Back to homepage",get children(){return O(lt,{path:bt,class:"text-cyan-500"})}})}}),i),w(i,t),n})(),$t=g("

Kildekode p\xE5

"),Nt=({className:e})=>(()=>{const t=$t.cloneNode(!0),n=t.firstChild;return n.firstChild,G(t,`text-center py-5 absolute bottom-0 container ${e}`),w(n,O(ve,{to:"https://github.com/h600878/martials.no",children:"GitHub"}),null),t})(),St=g('
'),qt=({children:e,title:t,className:n})=>(()=>{const s=St.cloneNode(!0),i=s.firstChild,l=i.firstChild,r=l.firstChild;return G(s,`bg-default-bg text-white min-h-screen relative font-mono ${n}`),w(i,O(At,{className:"py-3",title:t}),l),w(r,e),w(l,O(Nt,{}),null),s})();export{Ft as A,It as B,jt as C,Tt as D,Dt as E,Pt as F,zt as G,lt as I,ve as L,Ot as P,Be as S,qt as a,G as b,O as c,Re as d,W as e,M as f,Ye as g,Ce as h,w as i,Mt as j,we as k,S as l,De as m,Lt as n,Y as o,Ct as p,Bt as q,_t as r,L as s,g as t,kt as u,Qe as v,Et as w,Vt as x,Ht as y,Gt as z};