PageSourceSearch

https://www.lerumstidning.se/_next/static/chunks/3327-c36dadc6a79fd613.js

js lerumstidning.se collected 2026-10-02 12:50:35 UTC 5,013 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3327],{53327:(e,r,t)=>{t.d(r,{GJ:()=>m,Oq:()=>w,ZA:()=>S});var n=t(39944);function l(e,r,t){try{return e(r)}catch(e){return(0,n.R8)("[nuqs] Error while parsing value `%s`: %O"+(t?" (for key `%s`)":""),r,e,t),null}}var s=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),u=new Map,i={history:"replace",scroll:!1,shallow:!0,throttleMs:s},a=new Set,o=0,c=null,h=t(94285),f=t(87124);function p(e){function r(r){if(void 0===r)return null;let t="";if(Array.isArray(r)){if(void 0===r[0])return null;t=r[0]}return"string"==typeof r&&(t=r),l(e.parse,t)}return{eq:(e,r)=>e===r,...e,parseServerSide:r,withDefault(e){return{...this,defaultValue:e,parseServerSide:t=>r(t)??e}},withOptions(e){return{...this,...e}}}}p({parse:e=>e,serialize:e=>`${e}`});var m=p({parse:e=>{let r=parseInt(e);return Number.isNaN(r)?null:r},serialize:e=>Math.round(e).toFixed()});function d(e,r){return e.valueOf()===r.valueOf()}function w(e){return p({parse:r=>e.includes(r)?r:null,serialize:e=>e.toString()})}p({parse:e=>{let r=m.parse(e);return null===r?null:r-1},serialize:e=>m.serialize(e+1)}),p({parse:e=>{let r=parseInt(e,16);return Number.isNaN(r)?null:r},serialize:e=>{let r=Math.round(e).toString(16);return r.padStart(r.length+r.length%2,"0")}}),p({parse:e=>{let r=parseFloat(e);return Number.isNaN(r)?null:r},serialize:e=>e.toString()}),p({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),p({parse:e=>{let r=parseInt(e);return Number.isNaN(r)?null:new Date(r)},serialize:e=>e.valueOf().toString(),eq:d}),p({parse:e=>{let r=new Date(e);return Number.isNaN(r.valueOf())?null:r},serialize:e=>e.toISOString(),eq:d}),p({parse:e=>{let r=new Date(e.slice(0,10));return Number.isNaN(r.valueOf())?null:r},serialize:e=>e.toISOString().slice(0,10),eq:d});var g=(0,f.A)();function S(e,{history:r="replace",shallow:t=!0,scroll:f=!1,throttleMs:p=s,parse:m=e=>e,serialize:d=String,eq:w=(e,r)=>e===r,defaultValue:y,clearOnDefault:z=!0,startTransition:q}={history:"replace",scroll:!1,shallow:!0,throttleMs:s,parse:e=>e,serialize:String,eq:(e,r)=>e===r,clearOnDefault:!0,defaultValue:void 0}){let N=(0,n.V7)(),v=N.searchParams,M=(0,h.useRef)(v?.get(e)??null),[O,b]=(0,h.useState)(()=>{let r=u.get(e),t=void 0===r?v?.get(e)??null:r;return null===t?null:l(m,t,e)}),Y=(0,h.useRef)(O);(0,n.Yz)("[nuqs `%s`] render - state: %O, iSP: %s",e,O,v?.get(e)??null),(0,h.useEffect)(()=>{let r=v?.get(e)??null;if(r===M.current)return;let t=null===r?null:l(m,r,e);(0,n.Yz)("[nuqs `%s`] syncFromUseSearchParams %O",e,t),Y.current=t,M.current=r,b(t)},[v?.get(e),e]),(0,h.useEffect)(()=>{function r({state:r,query:t}){(0,n.Yz)("[nuqs `%s`] updateInternalState %O",e,r),Y.current=r,M.current=t,b(r)}return(0,n.Yz)("[nuqs `%s`] subscribing to sync",e),g.on(e,r),()=>{(0,n.Yz)("[nuqs `%s`] unsubscribing from sync",e),g.off(e,r)}},[e]);let E=(0,h.useCallback)((l,h={})=>{let m="function"==typeof l?l(Y.current??y??null):l;(h.clearOnDefault??z)&&null!==m&&void 0!==y&&w(m,y)&&(m=null);let S=function(e,r,t,l){let o=null===r?null:t(r);return(0,n.Yz)("[nuqs queue] Enqueueing %s=%s %O",e,o,l),u.set(e,o),"push"===l.history&&(i.history="push"),l.scroll&&(i.scroll=!0),!1===l.shallow&&(i.shallow=!1),l.startTransition&&a.add(l.startTransition),i.throttleMs=Math.max(l.throttleMs??s,Number.isFinite(i.throttleMs)?i.throttleMs:0),o}(e,m,d,{history:h.history??r,shallow:h.shallow??t,scroll:h.scroll??f,throttleMs:h.throttleMs??p,startTransition:h.startTransition??q});return g.emit(e,{state:m,query:S}),function({getSearchParamsSnapshot:e=function(){return new URLSearchParams(location.search)},updateUrl:r,rateLimitFactor:t=1}){return null===c&&(c=new Promise((l,h)=>{if(!Number.isFinite(i.throttleMs)){(0,n.Yz)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),l(e()),setTimeout(()=>{c=null},0);return}function f(){o=performance.now();let[t,f]=function({updateUrl:e,getSearchParamsSnapshot:r}){let t=r();if(0===u.size)return[t,null];let l=Array.from(u.entries()),o={...i},c=Array.from(a);for(let[e,r]of(u.clear(),a.clear(),i.history="replace",i.scroll=!1,i.shallow=!0,i.throttleMs=s,(0,n.Yz)("[nuqs queue] Flushing queue %O with options %O",l,o),l))null===r?t.delete(e):t.set(e,r);try{return function(e,r){let t=n=>{if(n===e.length)return r();let l=e[n];if(!l)throw Error("Invalid transition function");l(()=>t(n+1))};t(0)}(c,()=>{e(t,{history:o.history,scroll:o.scroll,shallow:o.shallow})}),[t,null]}catch(e){return console.error((0,n.z3)(429),l.map(([e])=>e).join(),e),[t,e]}}
1({updateUrl:r,getSearchParamsSnapshot:e});null===f?l(t):h(t),c=null}setTimeout(function(){let e=performance.now()-o,r=i.throttleMs,l=t*Math.max(0,Math.min(r,r-e));(0,n.Yz)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",l,r),0===l?f():setTimeout(f,l)},0)})),c}(N)},[e,r,t,f,p,q,N.updateUrl,N.getSearchParamsSnapshot,N.rateLimitFactor]);return[O??y??null,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.