1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2200],{19436:function(e,r,t){e.exports=t(2145)},22200:function(e,r,t){"use strict";t.d(r,{U:function(){return s},WJ:function(){return parseAsJson},v1:function(){return useQueryState}});var n,l=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let r=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!r)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}let e=localStorage.getItem("debug")??"";return e.includes("nuqs")||e.includes("next-usequerystate")}();function chunk_LOUAWQHU_debug(e,...r){if(!l)return;let t=function(e,...r){return e.replace(/%[sfdO]/g,e=>{let t=r.shift();return"%O"===e&&t?JSON.stringify(t).replace(/"([^"]+)":/g,"$1:"):String(t)})}(e,...r);performance.mark(t),console.log(e,...r)}function chunk_LOUAWQHU_safeParse(e,r,t){try{return e(r)}catch(e){return!function(e,...r){l&&console.warn(e,...r)}("[nuqs] Error while parsing value `%s`: %O"+(t?" (for key `%s`)":""),r,e,t),null}}function createParser(e){function parseServerSideNullable(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),chunk_LOUAWQHU_safeParse(e.parse,t)}return{eq:(e,r)=>e===r,...e,parseServerSide:parseServerSideNullable,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>parseServerSideNullable(r)??e}},withOptions(e){return{...this,...e}}}}createParser({parse:e=>e,serialize:e=>`${e}`});var s=createParser({parse:e=>{let r=parseInt(e);return Number.isNaN(r)?null:r},serialize:e=>Math.round(e).toFixed()});function parseAsJson(e){return createParser({parse:r=>{try{let t=JSON.parse(r);if("function"==typeof e)return e(t);return t}catch{return null}},serialize:e=>JSON.stringify(e),eq:(e,r)=>e===r||JSON.stringify(e)===JSON.stringify(r)})}createParser({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")}}),createParser({parse:e=>{let r=parseFloat(e);return Number.isNaN(r)?null:r},serialize:e=>e.toString()}),createParser({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),createParser({parse:e=>{let r=parseInt(e);return Number.isNaN(r)?null:new Date(r)},serialize:e=>e.valueOf().toString()}),createParser({parse:e=>{let r=new Date(e);return Number.isNaN(r.valueOf())?null:r},serialize:e=>e.toISOString()});var u={409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` was about to load on top.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function error(e){return`[nuqs] ${u[e]} 2 See https://err.47ng.com/NUQS-${e}`}var a=t(19436),o=t(77455),i=function(){if("undefined"==typeof window)return 50;let e=!!window.GestureEvent;if(!e)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),c=new Map,h={history:"replace",scroll:!1,shallow:!0,throttleMs:i},f=new Set,p=0,g=null;function getQueuedValue(e){return c.get(e)??null}function renderURL(e,r){let t=e.split("#")[0]??"",n=function(e){if(0===e.size)return"";let r=[];for(let[t,n]of e.entries()){let e=t.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");r.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E")}`)}return"?"+r.join("&")}(r),l=location.hash;return t+n+l}var d=Symbol("__nuqs__SYNC__"),_="__nuqs__NO_SYNC__",y=Symbol("__nuqs__NOTIFY__"),m={all:n=n||new Map,on:function(e,r){var t=n.get(e);t?t.push(r):n.set(e,[r])},off:function(e,r){var t=n.get(e);t&&(r?t.splice(t.indexOf(r)>>>0,1):n.set(e,[]))},emit:function(e,r){var t=n.get(e);t&&t.slice().map(function(e){e(r)}),(t=n.get("*"))&&t.slice().map(function(t){t(e,r)})}};function useQueryState(e,{history:r="replace",shallow:t=!0,scroll:n=!1,throttleMs:l=i,parse:s=e=>e,serialize:u=String,eq:y=(e,r)=>e===r,defaultValue:U,clearOnDefault:S=!1,startTransition:b}={history:"replace",scroll:!1,shallow:!0,throttleMs:i,parse:e=>e,serialize:String,eq:(e,r)=>e===r,clearOnDefault:!1,defaultValue:void 0}){let w=(0,a.useRouter)(),O=(0,a.useSearchParams)(),[q,v]=o.useState(()=>{let r=getQueuedValue(e),t=O?.get(e)??null,n=r??t;return null===n?null:chunk_LOUAWQHU_safeParse(s,n,e)}),L=o.useRef(q);chunk_LOUAWQHU_debug("[nuqs `%s`] render - state: %O, iSP: %s",e,q,O?.get(e)??null),o.useEffect(()=>{if(window.next?.version!=="14.0.3")return;let r=O.get(e)??null,t=null===r?null:chunk_LOUAWQHU_safeParse(s,r,e);chunk_LOUAWQHU_debug("[nuqs `%s`] syncFromUseSearchParams %O",e,t),L.current=t,v(t)},[O?.get(e),e]),o.useInsertionEffect(()=>{function updateInternalState(r){chunk_LOUAWQHU_debug("[nuqs `%s`] updateInternalState %O",e,r),L.current=r,v(r)}function syncFromURL(r){let t=r.get(e)??null,n=null===t?null:chunk_LOUAWQHU_safeParse(s,t,e);chunk_LOUAWQHU_debug("[nuqs `%s`] syncFromURL %O",e,n),updateInternalState(n)}return chunk_LOUAWQHU_debug("[nuqs `%s`] subscribing to sync",e),m.on(d,syncFromURL),m.on(e,updateInternalState),()=>{chunk_LOUAWQHU_debug("[nuqs `%s`] unsubscribing from sync",e),m.off(d,syncFromURL),m.off(e,updateInternalState)}},[e]);let N=o.useCallback((s,a={})=>{let o="function"==typeof s?s(L.current??U??null):s;return(a.clearOnDefault||S)&&null!==o&&void 0!==U&&y(o,U)&&(o=null),m.emit(e,o),!function(e,r,t,n){let l=null===r?null:t(r);chunk_LOUAWQHU_debug("[nuqs queue] Enqueueing %s=%s %O",e,l,n),c.set(e,l),"push"===n.history&&(h.history="push"),n.scroll&&(h.scroll=!0),!1===n.shallow&&(h.shallow=!1),n.startTransition&&(f.add(n.startTransition),h.shallow=!1),h.throttleMs=Math.max(n.throttleMs??i,Number.isFinite(h.throttleMs)?h.throttleMs:0)}(e,o,u,{history:a.history??r,shallow:a.shallow??t,scroll:a.scroll??n,throttleMs:a.throttleMs??l,startTransition:a.startTransition??b}),null===g&&(g=new Promise((e,r)=>{if(!Number.isFinite(h.throttleMs)){chunk_LOUAWQHU_debug("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(new URLSearchParams(location.search)),setTimeout(()=>{g=null},0);return}function flushNow(){p=performance.now();let[t,n]=function(e){let r=new URLSearchParams(location.search);if(0===c.size)return[r,null];let t=Array.from(c.entries()),n={...h},l=Array.from(f);for(let[e,l]of(c.clear(),f.clear(),h.history="replace",h.scroll=!1,h.shallow=!0,h.throttleMs=i,chunk_LOUAWQHU_debug("[nuqs queue] Flushing queue %O with options %O",t,n),t))null===l?r.delete(e):r.set(e,l);try{let t=window.next?.router,s="string"==typeof t?.state?.asPath;if(s){let e=renderURL(t.state.asPath.split("?")[0]??"",r);chunk_LOUAWQHU_debug("[nuqs queue (pages)] Updating url: %s",e);let l="push"===n.history?t.push:t.replace;l.call(t,e,e,{scroll:n.scroll,shallow:n.shallow})}else{let t=renderURL(location.origin+location.pathname,r);chunk_LOUAWQHU_debug("[nuqs queue (app)] Updating url: %s",t);let s="push"===n.history?history.pushState:history.replaceState,u=(window.next?.version??"")>="14.1.0"?null:history.state;s.call(history,u,_,t),n.scroll&&window.scrollTo(0,0),n.shallow||function(e,r){let recursiveCompose=t=>{if(t===e.length)return r();let n=e[t];if(!n)throw Error("Invalid transition function");n(()=>recursiveCompose(t+1))};recursiveCompose(0)}(l,()=>{e.replace(t,{scroll:!1})})}return[r,null]}catch(e){return console.error(error(429),t.map(([e])=>e).join(),e),[r,e]}}(w);
2null===n?e(t):r(t),g=null}setTimeout(function(){let e=performance.now(),r=e-p,t=h.throttleMs,n=Math.max(0,Math.min(t,t-r));chunk_LOUAWQHU_debug("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?flushNow():setTimeout(flushNow,n)},0)})),g},[e,r,t,n,l,b]);return[q??U??null,N]}"object"==typeof history&&function(){let e="1.18.0",r=history.__nuqs_patched;if(r){r!==e&&console.error(error(409),r,e);return}for(let r of(chunk_LOUAWQHU_debug("[nuqs] Patching history with %s",e),["pushState","replaceState"])){let e=history[r].bind(history);history[r]=function(t,n,l){if(!l)return chunk_LOUAWQHU_debug("[nuqs] history.%s(null) (%s) %O",r,n,t),e(t,n,l);let s=n===_?"internal":"external",u=new URL(l,location.origin).searchParams;if(chunk_LOUAWQHU_debug("[nuqs] history.%s(%s) (%s) %O",r,l,s,t),"external"===s){for(let[e,r]of u.entries()){let t=getQueuedValue(e);null!==t&&t!==r&&(chunk_LOUAWQHU_debug("[nuqs] Overwrite detected for key: %s, Server: %s, queue: %s",e,r,t),u.set(e,t))}setTimeout(()=>{chunk_LOUAWQHU_debug("[nuqs] External history.%s call: triggering sync with %s",r,u),m.emit(d,u),m.emit(y,{search:u,source:s})},0)}else setTimeout(()=>{m.emit(y,{search:u,source:s})},0);return e(t,n===_?"":n,l)}}Object.defineProperty(history,"__nuqs_patched",{value:e,writable:!1,enumerable:!1,configurable:!1})}()}}]);
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.