try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d829346a-ea81-4ef4-8f63-a08879cde8b3`,e._sentryDebugIdIdentifier=`sentry-dbid-d829346a-ea81-4ef4-8f63-a08879cde8b3`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{$d as t,Dg as n,Fg as r,Ig as i,th as a}from"./entry.client-dr7r6s9a.js";var o=r(),s=e(i(),1),c=[t.products.byProductId,t.stream.byProductId];function l(e){let t=(0,o.c)(10),r=a(),i;t[0]!==e||t[1]!==r.systems.catalog.queries.productInfo.basic?(i=r.systems.catalog.queries.productInfo.basic.getOptions({productId:e}),t[0]=e,t[1]=r.systems.catalog.queries.productInfo.basic,t[2]=i):i=t[2];let l=!!e,d;t[3]!==i||t[4]!==l?(d={...i,select:u,enabled:l},t[3]=i,t[4]=l,t[5]=d):d=t[5];let{data:f}=n(d),p,m;t[6]!==e||t[7]!==f?(p=()=>{if(!e||!f)return;let{pathname:t}=globalThis.window.location;for(let n of c){let r=n.$buildPathname({params:{productId:e,productName:void 0}});if(t.startsWith(r)){let r=n.$buildPathname({params:{productId:e,productName:f}});t!==r&&window.history.replaceState(window.history.state,``,r);return}}},m=[e,f],t[6]=e,t[7]=f,t[8]=p,t[9]=m):(p=t[8],m=t[9]),(0,s.useEffect)(p,m)}function u(e){let{title:t}=e;return t}export{l as t};