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]=`67e96261-977d-4329-8ea1-2acb1dccd490`,e._sentryDebugIdIdentifier=`sentry-dbid-67e96261-977d-4329-8ea1-2acb1dccd490`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{T as t}from"./vendor-misc-dys7qi6h.js";import{$m as n,Ag as r,Gu as i,Lm as a,Oi as o,Um as s,Xh as c,Zm as l,_r as u,jg as d,ng as f,th as p}from"./entry.client-mpghtlrl.js";import{t as m}from"./GameStreamBootstrapper-b34zt04n.js";var h=r(),g=e(d(),1),_=f(),v=u(e=>{let t=(0,h.c)(3),{streamClient:n,sessionConfig:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,_.jsx)(m,{streamClient:n,config:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i},()=>{let[e]=t(i.internal.devTools.$.ipConnect.launch),n=e.ipAddress,{getLogger:r}=s(),a=r(`IpConnectPage`),o=`127.0.0.1:9002`;if(n)try{o=decodeURIComponent(n)}catch(e){a.error(`Failed to decode IP address`,e)}let u=(0,g.useMemo)(()=>({connectMode:`ip-connect`,ipAddress:o,uriPathAndQuery:``}),[o,``]),{services:{gameStream:{play:d}}}=l(),[{data:f}]=c({queries:[d.queries.streamClient.getOptions()]});return{streamClient:f,sessionConfig:u}}),y=a(o(()=>{let{t:e}=n(`IPConnectPage`),t=p(),r=v.useComponent();return t?null:(0,_.jsx)(g.Suspense,{fallback:(0,_.jsx)(`div`,{children:e(`Loading IP Connect Page...`,{shortKey:`loading_70daac`})}),children:(0,_.jsx)(r,{})})},`IPConnectPage`));export{y as default};