1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55824,2839,67838,80274,e=>{"use strict";var t=e.i(43476),r=e.i(41033),i=e.i(71645);let n=i.default.memo(({message:e="Vänligen vänta...",className:i})=>(0,t.jsx)("div",{className:(0,r.cn)("container",i),children:e}));n.displayName="Loading",e.s(["default",0,n],2839),e.i(48549);var s=e.i(59841);e.s(["StarIcon",()=>s.default],67838);var s=s;let a={};for(let e=0;e<10;e++)a[e]=Array.from({length:e});e.s(["RatingStars",0,({maxRating:e=5,rating:n,className:o})=>{let l=(0,i.useId)();return n<=0?(0,t.jsx)(t.Fragment,{}):(0,t.jsx)("span",{"aria-label":`betyg: ${n} av 5`,className:(0,r.cn)("flex justify-center gap-1 lg:gap-[5px]",o),children:a[e].map((e,r)=>{var i;let a;return(0,t.jsx)(s.default,{className:"h-6 w-6",state:(i=n,a=r+1,0==i?"empty":i>=a?"filled":i>=a-.5?"half":"empty")},`ratingstars-${l}-star-${r}`)})})}],80274),e.i(42839),e.i(25920),e.s([],55824)},37168,e=>{"use strict";var t=e.i(42839);e.s(["Html",()=>t.default])},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return o}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});function s(e){let t={};for(let[r,i]of e.entries()){let e=t[r];void 0===e?t[r]=i:Array.isArray(e)?e.push(i):t[r]=[e,i]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,a(e));else t.set(r,a(i));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,i]of r.entries())e.append(t,i)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return S}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...i)=>(r||(r=!0,t=e(...i)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>o.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let i=await e.getInitialProps(t);if(r&&h(r))return i;if(!i)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${i}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return i}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return i}});let i=e=>{}},44879,22095,3604,86019,88102,e=>{"use strict";var t,r,i,n=e.i(13997),s=((t={}).Background="bg",t.Ring="ring",t.Border="border",t.Outline="outline",t.Text="text",t.HoverState="hover",t.FocusWhitinState="focus-within",t.FocusState="focus",t.AfterElement="after",t);e.s(["ColorType",()=>s],22095);var a=((r={}).Shade_Primary="primary",r.Shade_BG50="bg-50",r.Shade_1_22="1.22",r.Shade_1_45="1.45",r.Shade_2_3="2.3",r.Shade_3_1="3.1",r.Shade_8_1="8.1",r.Shade_Gray_100="100",r.Shade_Gray_200="200",r.Shade_Gray_300="300",r.Shade_Gray_400="400",r.Shade_Gray_500="500",r.Shade_Gray_600="600",r.Shade_Gray_700="700",r.Shade_Gray_800="800",r);e.s(["ColorShades",()=>a],3604);var o=((i={}).Gray="gray",i.White="white",i.Black="black",i.Transparent="transparent",i.GreenBlue="greenblue",i.SteelPink="steelpink",i.Blue="blue",i.CultureRed="culturered",i.Violet="violet",i);e.s(["ColorVariant",()=>o],86019);let l=[o.Black,o.White,o.Transparent],u=n.default.theme.colors,c=Object.values(s).reduce((e,t)=>({...e,[t]:Object.values(o).reduce((e,r)=>({...e,[r]:("string"==typeof u[r]?[r]:Object.keys(u[r])).reduce((e,i)=>({...e,[i]:l.includes(r)?`${t}-${r}`:`${t}-${r}-${i}`}),{})}),{})}),{});e.s(["ColorClass",0,(e=o.GreenBlue,t=a.Shade_Primary,...r)=>{if(!e)return console.error({message:"Invalid color",colorVariant:e,colorShade:t,args:r}),"";e+""=="blueviolet"&&(e=o.Violet);let i=r?.includes(s.HoverState),n=r?.includes(s.FocusState),u=r?.includes(s.FocusWhitinState),d=r?.includes(s.AfterElement),h=l.includes(e);try{return r.filter(e=>e!=s.HoverState).map(r=>(i?"hover:":n?"focus:":d?"after:":u?"focus-within:":"")+c[r][e][h?e:t.toLowerCase()]).join(" ")}catch{console.error({message:"Invalid color",colorVariant:e,colorShade:t,args:r})}return""}],88102),e.s([],44879)},19273,80166,e=>{"use strict";e.i(47167);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#e=t;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],80166);var i="u"<typeof window||"Deno"in globalThis;function n(e,t){return(t?.queryKeyHashFn||s)(e)}function s(e){return JSON.stringify(e,(e,t)=>u(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function a(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>a(e[r],t[r]))}var o=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u(e){if(!c(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!c(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}var d=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let i,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e},"addToEnd",0,function(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i},"addToStart",0,function(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==d?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,s,"hashQueryKeyByOptions",0,n,"isServer",0,i,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:i,predicate:n,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(s(t.options.mutationKey)!==s(o))return!1}else if(!a(t.options.mutationKey,o))return!1}return(!i||t.state.status===i)&&(!n||!!n(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:i,fetchStatus:s,predicate:o,queryKey:l,stale:u}=e;if(l){if(i){if(t.queryHash!==n(l,t.options))return!1}else if(!a(t.queryKey,l))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!s||s===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,a,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,i=0){if(t===r)return t;if(i>500)return r;let n=l(t)&&l(r);if(!n&&!(u(t)&&u(r)))return r;let s=(n?t:Object.keys(t)).length,a=n?r:Object.keys(r),c=a.length,d=n?Array(c):{},h=0;for(let l=0;l<c;l++){let u=n?l:a[l],c=t[u],f=r[u];
1if(c===f){d[u]=c,(n?l<s:o.call(t,u))&&h++;continue}if(null===c||null===f||"object"!=typeof c||"object"!=typeof f){d[u]=f;continue}let p=e(c,f,i+1);d[u]=p,p===c&&h++}return s===c&&h===s?t:d}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,d,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],19273)},93803,e=>{"use strict";var t=e.i(19273);e.s(["pendingThenable",0,function(){let e,t,r=new Promise((r,i)=>{e=r,t=i});function i(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},r.reject=e=>{i({status:"rejected",reason:e}),t(e)},r},"tryResolveSync",0,function(e){let r;if(e.then(e=>(r=e,e),t.noop)?.catch(t.noop),void 0!==r)return{data:r}}])},12598,e=>{"use strict";var t=e.i(71645),r=e.i(43476),i=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:n})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(i.Provider,{value:e,children:n})),"useQueryClient",0,e=>{let r=t.useContext(i);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},40143,e=>{"use strict";let t,r,i,n,s,a;var o=e.i(80166).systemSetTimeoutZero,l=(t=[],r=0,i=e=>{e()},n=e=>{e()},s=o,{batch:e=>{let a;r++;try{a=e()}finally{let e;--r||(e=t,t=[],e.length&&s(()=>{n(()=>{e.forEach(e=>{i(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{r?t.push(e):s(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{s=e}});e.s(["notifyManager",0,l])},75555,15823,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],15823);var r=new class extends t{#r;#i;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#n=e,this.#i?.(),this.#i=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],75555)},14448,e=>{"use strict";var t=e.i(15823),r=new class extends t.Subscribable{#s=!0;#i;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#n=e,this.#i?.(),this.#i=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};e.s(["onlineManager",0,r])},73911,e=>{"use strict";let t;var r=e.i(19273),i=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,i])},86491,36553,88587,e=>{"use strict";e.i(47167);var t=e.i(19273),r=e.i(40143),i=e.i(75555),n=e.i(14448),s=e.i(93803),a=e.i(73911);function o(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||n.onlineManager.isOnline()}
1var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let r,c=!1,d=0,h=(0,s.pendingThenable)(),f=()=>i.focusManager.isFocused()&&("always"===e.networkMode||n.onlineManager.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),m=e=>{"pending"===h.status&&(r?.(),h.resolve(e))},g=e=>{"pending"===h.status&&(r?.(),h.reject(e))},y=()=>new Promise(t=>{r=e=>{("pending"!==h.status||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===h.status&&e.onContinue?.()}),v=()=>{let r;if("pending"!==h.status)return;let i=0===d?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if("pending"!==h.status)return;let i=e.retry??3*!a.environmentManager.isServer(),n=e.retryDelay??o,s="function"==typeof n?n(d,r):n,l=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,r);c||!l?g(r):(d++,e.onFail?.(d,r),(0,t.sleep)(s).then(()=>f()?void 0:y()).then(()=>{c?g(r):v()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let r=new u(t);g(r),e.onCancel?.(r)}},continue:()=>(r?.(),h),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:p,start:()=>(p()?v():y().then(v),h)}}e.s(["CancelledError",0,u,"canFetch",0,l,"createRetryer",0,c],36553);var d=e.i(80166),h=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#a=d.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(a.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){this.#a&&(d.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",0,h],88587);var f=class extends h{#o;#l;#u;#c;#d;#h;#f;constructor(e){super(),this.#f=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#u=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=g(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#h,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=g(this.options);void 0!==e.data&&(this.setState(m(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,r){let i=(0,t.replaceData)(this.state.data,e,this.options);return this.#p({data:i,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),i}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#d?.promise;return this.#d?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#o}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#f||this.#m()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#m(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,r){let i;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,n.signal)}
1)},a=()=>{let e,i=(0,t.ensureQueryFn)(this.options,r),n=(s(e={client:this.#c,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(i,n,this):i(n)},o=(s(i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:a}),i);this.options.behavior?.onFetch(o,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#p({type:"fetch",meta:o.fetchOptions?.meta}),this.#d=c({initialPromise:r?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof u&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof u){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...p(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...m(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function p(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:l(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function m(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function g(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,f,"fetchState",0,p],86491)},58976,e=>{e.q("/_next/static/media/remove-bold.03i20w6duo4tb.svg")},14602,e=>{e.q("/_next/static/media/navigation-menu-1.0wpc2i1v~tt50.svg")},99215,e=>{e.q("/_next/static/media/logo.0y5_771kgk9rl.svg")},92571,e=>{"use strict";var t=e.i(19273);function r(e,{pages:t,pageParams:i}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,i[n],i):void 0}function i(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=r(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=i(e,t)},"infiniteQueryBehavior",0,function(e){return{onFetch:(n,s)=>{let a=n.options,o=n.fetchOptions?.meta?.fetchMore?.direction,l=n.state.data?.pages||[],u=n.state.data?.pageParams||[],c={pages:[],pageParams:[]},d=0,h=async()=>{let s=!1,h=(0,t.ensureQueryFn)(n.options,n.fetchOptions),f=async(e,r,i)=>{let a;if(s)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let o=(a={client:n.client,queryKey:n.queryKey,pageParam:r,direction:i?"backward":"forward",meta:n.options.meta},(0,t.addConsumeAwareSignal)(a,()=>n.signal,()=>s=!0),a),l=await h(o),{maxPages:u}=n.options,c=i?t.addToStart:t.addToEnd;return{pages:c(e.pages,l,u),pageParams:c(e.pageParams,r,u)}};if(o&&l.length){let e="backward"===o,t={pages:l,pageParams:u},n=(e?i:r)(a,t);c=await f(t,n,e)}else{let t=e??l.length;do{let e=0===d?u[0]??a.initialPageParam:r(a,c);if(d>0&&null==e)break;c=await f(c,e),d++}while(d<t)}return c};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},s):n.fetchFn=h}}}])},90646,e=>{e.q("/_next/static/media/cookie_emoji_u1f36a.0uqo7wo898amw.svg")},68444,e=>{"use strict";var t=e.i(71645),r=e.i(18566);e.s(["useNavigationEvent",0,e=>{let i=(0,r.usePathname)(),n=(0,t.useRef)(i);(0,t.useEffect)(()=>{n.current!==i&&(e(),n.current=i)},[i,e])}])},42736,14573,50994,e=>{"use strict";var t=e.i(43476);e.i(48549);var r=e.i(71669),i=e.i(9540),i=i,n=e.i(22016),s=e.i(71645);e.i(44879);var a=e.i(88102),o=e.i(3604),l=e.i(22095),u=e.i(41033),c=e.i(18566);let d=s.default.forwardRef(({name:e,href:r,variant:i,type:d="default",tabIndex:h=0},f)=>
1{let p=(0,s.useId)(),m=(0,c.usePathname)(),[g,y]=(0,s.useState)(m.split("/")[1]===r.split("/")[1]);(0,s.useEffect)(()=>(y(m.split("/")[1]===r.split("/")[1]),()=>{y(!1)}),[r,m]);let v=g?(0,u.cn)((0,a.ColorClass)(i,o.ColorShades.Shade_1_45,l.ColorType.Border,l.ColorType.Background),(0,a.ColorClass)(i,o.ColorShades.Shade_3_1,l.ColorType.Border)):(0,u.cn)((0,a.ColorClass)(i,o.ColorShades.Shade_3_1,l.ColorType.Border),(0,a.ColorClass)(i,o.ColorShades.Shade_1_22,l.ColorType.Background));return(0,t.jsx)(n.default,{id:`nav-link-${p}`,ref:f,prefetch:!0,href:r||"#",tabIndex:h,"aria-current":g?"page":void 0,className:(0,u.cn)("menu-item",{"menu-item-mobile":"mobile"===d,"menu-item-active":g},v),children:e})});d.displayName="NavLink";var h=e.i(68444);let f={src:e.i(58976).default,width:24,height:25,blurWidth:0,blurHeight:0},p={src:e.i(14602).default,width:22,height:22,blurWidth:0,blurHeight:0};var m=e.i(59318);e.s(["default",0,({data:e,logoLinkRef:a,onMenuToggle:o})=>{let l=(0,s.useId)(),[c,g]=(0,s.useState)(!1),y=(0,s.useRef)(null),v=(0,s.useRef)(null),b=(0,s.useMemo)(()=>c?e?.items?.filter(e=>e.properties.showNavigation)?.map(()=>s.default.createRef())??[]:[],[e,c]),x=(0,s.useMemo)(()=>c?Array.from({length:v?.current?.querySelectorAll("a")?.length??0})?.map(()=>s.default.createRef())??[]:[],[v,c]),w=(0,s.useMemo)(()=>{let e=[];return c?(y?.current&&e.push(y),a?.current&&e.push(a),e.push(...b),e.push(...x),e):[]},[b,a,x,y,c]),S=e=>{g(e),o(e)};return(0,h.useNavigationEvent)(()=>{c&&S(!1)}),(0,s.useEffect)(()=>{let e=e=>{if(e?.key!=="Tab")return;let t=e.shiftKey,r=w?.map((e,t)=>({ref:e,index:t}))??[],i=r?.find(t=>t?.ref?.current?.id===e.target?.id);if(!i?.ref?.current)return;let n=t?i.index<=0?r.slice(-1)[0]:r[i.index-1]:i.index>=r.length-1?r[0]:r[i.index+1];n?.ref&&(e.preventDefault(),setTimeout(()=>n.ref?.current?.focus(),50))};return w?.length&&c&&w?.forEach(t=>{t?.current?.addEventListener("keydown",e)}),()=>{w?.forEach(t=>{t?.current?.removeEventListener("keydown",e)})}},[w,c]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(g(!1),o(!1))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",id:`mobile-menu-toggle-${l}`,tabIndex:0,ref:y,onClick:()=>{S(!c)},className:`absolute right-0 top-4 z-50 flex h-16 cursor-pointer items-center gap-4 roun
1ded-l-full bg-white px-4 font-livvic text-5 font-bold tracking-wide outline-none ring-4 ring-inset ring-white focus:ring-greenblue-primary lg:hidden ${c?"absolute":""}`,children:[c?(0,t.jsx)(m.default,{src:f,alt:"Close icon","aria-hidden":"true",quality:100}):(0,t.jsx)(m.default,{src:p,alt:"Menu icon","aria-hidden":"true",quality:100}),c?"Stäng":"Meny"]}),(0,t.jsxs)("div",{id:"mobile-menu-container",className:(0,u.cn)("sr-only",{"not-sr-only fixed inset-0 top-24 z-50 flex flex-1 flex-col overflow-auto bg-white py-4 tracking-wide":c}),children:[(0,t.jsx)("nav",{"aria-label":"Huvudmeny för mobil",children:(0,t.jsx)("ul",{className:"flex w-screen flex-col gap-0.5 overflow-x-hidden pr-px",children:e.items.filter(e=>e.properties.showNavigation).map((e,r)=>(0,t.jsx)("li",{className:"flex flex-col ",children:(0,t.jsx)(d,{ref:b[r],tabIndex:c?0:-1,name:e.name,href:e.route.path,variant:e.properties.color,type:"mobile"},`headernav-desktop-navlink-${r}`)},`mobilemenu-navlink-${r}`))})}),(0,t.jsx)("nav",{"aria-label":"Funktionsmeny för mobil",className:"mt-6 px-2",children:(0,t.jsxs)("ul",{className:"flex flex-col divide-y-[1px] divide-[#727272]",ref:v,children:[(0,t.jsx)("li",{className:"",children:(0,t.jsxs)(n.default,{id:`nav-link-sok-${l}`,ref:x[0],prefetch:!0,tabIndex:c?0:-1,href:"/sok",className:"foc flex gap-2 px-8 py-6 font-livvic text-5 font-bold tracking-wide outline-none ring-inset focus:ring-4 focus:ring-greenblue-primary",children:[(0,t.jsx)(i.default,{width:"24",height:"24"}),"Sök"]})}),(0,t.jsx)("li",{className:"",children:(0,t.jsxs)(n.default,{id:`nav-link-mina-bocker-${l}`,ref:x[1],prefetch:!0,tabIndex:c?0:-1,href:"/mina-bocker",className:"flex gap-2 px-8 py-6 font-livvic text-5 font-bold tracking-wide outline-none focus:ring-4 focus:ring-inset focus:ring-greenblue-primary",children:[(0,t.jsx)(r.HeartIcon,{width:"24",height:"24"}),"Mina böcker"]})}),(0,t.jsx)("li",{className:"",children:(0,t.jsx)(n.default,{id:`nav-link-vuxen-${l}`,ref:x[2],prefetch:!0,tabIndex:c?0:-1,href:"/vuxen",className:"flex gap-2 border-b-[1px] border-[#727272] px-8 py-6 font-livvic text-5 font-bold tracking-wide outline-none focus:ring-4 focus:ring-inset focus:ring-greenblue-primary",children:"Vuxen"})}),(0,t.jsx)("li",{className:"",children:(0,t.jsx)(n.default,{id:`nav-link-skriv-ut-material-${l}`,ref:x[3],prefetch:!0,tabIndex:c?0:-1,href:"/skriv-ut-material",className:"flex gap-2 px-8 py-6 font-livvic text-5 font-bold tracking-wide outline-none focus:ring-4 focus:ring-inset focus:ring-greenblue-primary",children:"Utskrifter"})})]})})]})]})}],42736);let g={src:e.i(99215).default,width:234,height:81,blurWidth:0,blurHeight:0},y=s.default.memo((0,s.forwardRef)(({path:e},r)=>{let i=(0,s.useId)(),a="/"===e,o=a?"Barnens bibliotek":"Barnens Bibliotek, gå till startsidan",l="ml-4 h-[53px] w-auto md:ml-10 lg:h-[80px]",c="flex w-fit outline-none group";return a&&"/404"!==e&&"/401"!==e&&"/500"!==e?(r=null,(0,t.jsx)("h1",{className:c,tabIndex:-1,children:(0,t.jsx)(m.default,{priority:!0,src:g,alt:o,className:l})})):(0,t.jsx)(n.default,{prefetch:!0,"aria-label":o,href:"/",ref:r,className:c,tabIndex:0,id:`logo-link-${i}`,children:(0,t.jsx)(m.default,{priority:!0,src:g,alt:"",quality:100,className:(0,u.cn)(l,"group-focus:rounded-sm group-focus:ring-2 group-focus:ring-greenblue-primary group-focus:ring-offset-1")})})}));y.displayName="Logo",e.s(["default",0,y],14573);var i=i;let v=s.default.memo(({items:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("nav",{"aria-label":"Huvudmeny",className:"hidden items-end justify-center gap-1 font-livvic text-5 font-bold tracking-wide lg:flex",children:e.filter(e=>e.properties.showNavigation).map((e,r)=>(0,t.jsx)(d,{name:e.name,href:e.route.path,variant:e.properties.color},`headernav-mobile-navlink-${r}`))}),(0,t.jsx)("nav",{"aria-label":"Funktionsmeny",className:"hidden items-end pb-px text-4.5 font-bold tracking-wide text-white lg:flex",children:(0,t.jsxs)("div",{className:"relative flex flex-col items-end",children:[(0,t.jsxs)(n.default,{prefetch:!0,href:"/vuxen",className:"p absolute -left-10 bottom-0 flex w-[165px] origin-bottom-left -rotate-[43deg] justify-center gap-4 roun
1ded-md bg-culturered-primary px-6 py-2 underline-offset-2 outline-none ring-1 ring-culturered-primary hover:underline focus:bg-culturered-1.45 focus:text-black focus:ring-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"my-auto h-[15.5px] w-px bg-culturered-2.3"}),(0,t.jsx)("span",{className:"font-livvic text-4.5 font-bold",children:"Vuxen"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"my-auto h-[15.5px] w-px bg-culturered-2.3"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"my-auto h-[15.5px] w-px bg-culturered-2.3"})]}),(0,t.jsxs)(n.default,{prefetch:!0,href:"/sok",className:"flex w-fit gap-4 rounded-md bg-greenblue-primary px-6 py-2 underline-offset-2 outline-none ring-1 ring-greenblue-primary hover:underline focus:bg-greenblue-1.45 focus:text-black focus:ring-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-greenblue-2.3"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-greenblue-2.3"}),(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.default,{decorative:!0,width:"20",height:"20"}),(0,t.jsx)("span",{className:"font-livvic text-4.5 font-bold",children:"Sök"})]}),(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-greenblue-2.3"})]}),(0,t.jsxs)(n.default,{prefetch:!0,href:"/skriv-ut-material",className:"flex w-fit items-stretch gap-4 rounded-md bg-steelpink-primary px-6 py-2 underline-offset-2 outline-none ring-1 ring-steelpink-primary hover:underline focus:bg-steelpink-1.45 focus:text-black focus:ring-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-steelpink-2.3"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-steelpink-2.3"}),(0,t.jsx)("span",{className:"flex items-center gap-2",children:(0,t.jsx)("span",{className:"font-livvic text-4.5 font-bold",children:"Utskrifter"})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-steelpink-2.3"})]}),(0,t.jsxs)(n.default,{prefetch:!0,href:"/mina-bocker",className:"flex w-fit gap-4 rounded-md bg-blue-primary px-6 py-2 underline-offset-2 outline-none ring-1 ring-blue-primary hover:underline focus:bg-blue-1.45 focus:text-black focus:ring-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-blue-2.3"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-blue-2.3"}),(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.HeartIcon,{decorative:!0,width:"20",height:"20"}),(0,t.jsx)("span",{className:"font-livvic text-4.5 font-bold",children:"Mina böcker"})]}),(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px bg-blue-2.3"})]})]})})]}));v.displayName="HeaderNav",e.s(["default",0,v],50994)},13987,35990,3123,e=>{"use strict";var t,r=((t=r||{}).None="None",t.Up="Up",t.Down="Down",t.Left="Left",t.Right="Right",t);let i={px:0,rem:0},n={height:i,width:i},s={direction:r.None,distance:i,position:{x:i,y:i},window:n};e.s(["DEFAULT_ScrollState",0,s,"DEFAULT_WindowState",0,{dimentions:n}],35990),e.s(["ScrollDirection",0,r],3123);var a=e.i(71645);let o=()=>{try{return parseFloat(getComputedStyle(document.documentElement).fontSize)}catch{}return 16};e.s(["default",0,(e=null,t=100)=>{let[i,n]=(0,a.useState)(!1),[l,u]=(0,a.useState)(s),c=(0,a.useRef)(0),d=(0,a.useRef)(0),h=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let i=()=>{h?.current&&clearTimeout(h.current),h.current=setTimeout(()=>{var t;let i=o(),s=window?.scrollY||document?.documentElement?.scrollTop||0,a=window?.scrollX||document?.documentElement?.scrollLeft||0,l=0,h=r.None;s>c?.current?(h=r.Down,l=s-c?.current):s<c?.current?(h=r.Up,l=c?.current-s):a>d?.current?(h=r.Right,l=a-d?.current):a<d?.current&&(h=r.Left,l=d?.current-a),c.current=s<=0?0:s,d.current=a<=0?0:a;let f={position:{x:{px:a,rem:a/i},y:{px:s,rem:s/i}},direction:h,distance:{px:l,rem:l/i},window:(t=(t=i)??o(),{height:{px:window.innerHeight,rem:window.innerHeight/t},width:{px:window.innerWidth,rem:window.innerWidth/t}})};u(f),null!==e&&n(e(f))},t)};return window.addEventListener("scroll",i),i(),()=>{window.removeEventListener("scroll",i)}},[e,t]),[l,i]}],13987)},3374,e=>{"use strict";var t=e.i(43476),r=e.i(42736),i=e.i(71645);e.i(44879);var n=e.i(88102),s=e.i(3604),a=e.i(22095),o=e.i(86019),l=e.i(41033),u=e.i(18566),c=e.i(14573),d=e.i(50994);e.i(35990);var h=e.i(3123),f=e.i(13987);e.s(["STICKTY_SCROLL_OFFSET",0,400,"default",0,({data:e})=>{let p=(0,u.usePathname)(),[m,g]=(0,i.useState)(!1),y=(0,i.useRef)(null),[v,b]=(0,f.default)((0,i.useCallback)(e=>null===document.querySelector(".stop-sticky-header")&&e.position.y.px>400&&!m&&e.direction===h.ScrollDirection.Up,[m]),5),x=e.items.filter(e=>e.properties.showNavigation).find(e=>p.split("/")[1]===e.route.path.split("/")[1])?.properties?.color??null,w=(0,l.cn)("flex w-full flex-col","",{"sticky top-0 z-30 shadow-custom animate-slide-down-header":b&&!m,"fixed z-50 overflow-hidden":m});return(0,t.jsxs)("header",{"data-no-variant":!x,role:"banner",className:w,children:[(0,t.jsx)("div",{className:(0,l.cn)("border-0 border-none md:border-b-16 md:border-solid",(0,n.ColorClass)(o.ColorVariant.Blue,s.ColorShades.Shade_BG50,a.ColorType.Backgroun
1d),(0,n.ColorClass)(x??o.ColorVariant.Gray,x?s.ColorShades.Shade_1_45:s.ColorShades.Shade_Gray_300,a.ColorType.Border),{"md:border-b-1":!x}),children:(0,t.jsxs)("div",{className:"mx-auto flex h-24 max-w-xl justify-between lg:h-40",children:[(0,t.jsx)("div",{className:"flex items-center justify-start",children:(0,t.jsx)(c.default,{ref:y,path:p})}),(0,t.jsx)(d.default,{items:e.items})]})}),(0,t.jsx)("div",{className:"block lg:hidden",children:(0,t.jsx)(r.default,{logoLinkRef:y,onMenuToggle:e=>{g(e)},data:e})})]})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.