import{rase}from"./chunk-DECur_0Z.js";import{nast,rasn,tasr}from"./jsx-runtime-BpGWiA-R.js";import{nasi}from"./manifest-BIDT_vSa.js";import{rasa}from"./engineStore-B1KAgiiF.js";varo=e(n(),1),s=d();functionc(e,...t){if(!s)return;letn=u(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}functionl(e,...t){s&&console.warn(e,...t)}functionu(e,...t){returne.replace(/%[sfdO]/g,e=>{letn=t.shift();returne===`%O`&&n?JSON.stringify(n).replace(/"([^"]+)":/g,`$1:`):String(n)})}functiond(){if(typeofwindow>`u`)return({}.DEBUG||``).includes(`nuqs`);try{lete=`nuqs-localStorage-test`;if(typeoflocalStorage>`u`)return!1;localStorage.setItem(e,e);lett=localStorage.getItem(e)===e;returnlocalStorage.removeItem(e),t&&(localStorage.getItem(`debug`)||``).includes(`nuqs`)}catch{return!1}}varf={303:`Multiple adapter contexts detected. This might happen in monorepos.`,404:`nuqs requires an adapter to work with your framework.`,409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:`Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.`,422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",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?"};functionp(e){return`[nuqs] ${f[e]}