(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70825,t=>{"use strict";var e=t.i(843476),i=t.i(271645),a=t.i(618566),l=t.i(625145),o=t.i(822590);t.s(["default",0,function({children:t}){let s=(0,a.usePathname)(),r=(0,a.useSearchParams)(),u=(0,o.useModalityStore)(t=>t.setLastPath),d=(0,o.useModalityStore)(t=>t.setModalityPath);return i.useEffect(()=>{if(!s||!s.startsWith("/playground/"))return;let t=r?.toString()??"",e=t?`${s}?${t}`:s;u(e);let i=(0,l.modalityFromPath)(s);i&&d(i.id,e)},[s,r,u,d]),(0,e.jsx)("div",{className:"flex h-full flex-col overflow-hidden",children:t})}])}]);