import{t as e}from"./als-registry-BxXlcmpy.js";import{Q as t,Z as n,nt as r}from"./cookie-serialize-CgV1qMZJ.js";import"./cache-request-state-CDdKGw_d.js";var i=Symbol.for(`vinext.rootParams.fallback`),a=globalThis,o=e(`vinext.rootParams.als`),s=e(`vinext.rootParams.usage.als`),c=a[i]??={rootParams:null};function l(){return t()?n():o.getStore()??c}function u(e,t){let n={};for(let r of t??[])n[r]=e[r];return n}function d(e){l().rootParams=e}function f(e,t,n){let r={...e,phase:`active`};return n&&(n.transitionToRender=()=>{e.kind===`server-action`&&(r.phase=`render`)}),s.run(r,t)}function p(e,n){return t()?r(t=>{t.rootParams=e},n):o.run({rootParams:e},n)}export{d as i,p as n,f as r,u as t};