PageSourceSearch

https://vietnamguru.ru/_next/static/chunks/pages/world3d-dc1b4ed8d6397e3d.js

js vietnamguru.ru collected 2026-10-03 18:15:07 UTC 36,206 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3513],{32425:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/world3d",function(){return r(90320)}])},90320:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>eW});var n,o=r(37876),i=r(45302),a=r(73761),l=r(24490),s=(r(42901),r(14232));let c=e=>{let{onReady:t}=e,r=(0,s.useRef)(null),n=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{r.current&&!n.current&&(n.current=!0,null==t||t())}),(0,o.jsx)(a.Ux,{ref:r,type:"fixed",colliders:"cuboid",children:(0,o.jsxs)("mesh",{receiveShadow:!0,rotation:[-Math.PI/2,0,0],position:[0,0,0],children:[(0,o.jsx)("planeGeometry",{args:[100,100]}),(0,o.jsx)("meshStandardMaterial",{color:"#3a7d44"})]})})};var u=r(21712),d=r(66691),p=r(43148);let f=e=>{let{pitch:t,yaw:r=0}=e,n=(0,s.useRef)(null),i=(0,s.useRef)(null);return(0,o.jsx)("group",{rotation:[0,r,0],children:(0,o.jsx)("group",{ref:n,position:[0,1.7,0],rotation:[t,0,0],children:(0,o.jsx)(p.u,{ref:i,makeDefault:!0,position:[0,0,-6],rotation:[0,Math.PI,0]})})})};var m=r(35577),x=r(60488),y=r(58304);let h="/assets/gltf",g=`${h}/avatars/models/avatar.glb`,w={idle:`${h}/avatars/animations/idle.glb`,walk:`${h}/avatars/animations/walk.glb`,run:`${h}/avatars/animations/run.glb`,jump:`${h}/avatars/animations/jump.glb`};function b(e){let t=e.tracks.filter(e=>!(e.name.includes("Hips")&&e.name.endsWith(".position")));return e.tracks=t,e}m.p.preload(g),m.p.preload(w.idle),m.p.preload(w.walk),m.p.preload(w.run),m.p.preload(w.jump);let v=e=>{let{animation:t,scale:r=.6}=e,{scene:n}=function(e){let{scene:t}=(0,m.p)(e);return{scene:(0,s.useMemo)(()=>(0,y.o8)(t),[t])}}(g),i=(0,m.p)(w.idle),a=(0,m.p)(w.walk),l=(0,m.p)(w.run),c=(0,m.p)(w.jump),u=(0,s.useMemo)(()=>[...i.animations.map(e=>{let t=e.clone();return t.name="idle",t}),...a.animations.map(e=>{let t=e.clone();return t.name="walk",b(t)}),...l.animations.map(e=>{let t=e.clone();return t.name="run",b(t)}),...c.animations.map(e=>{let t=e.clone();return t.name="jump",t})],[i.animations,c.animations,l.animations,a.animations]),d=(0,s.useRef)(n);d.current=n;let{actions:p}=(0,x.f)(u,d);return(0,s.useEffect)(()=>{if(p[t]){Object.values(p).forEach(e=>null==e?void 0:e.fadeOut(.2));let e=p[t];null==e||e.reset().fadeIn(.2).play(),e&&("walk"===t||"run"===t)&&(e.timeScale=1)}else console.error("[Avatar] Animation not found:",t)},[t,p]),(0,o.jsx)("primitive",{object:n,scale:r})},j={animation:"idle",rotation:0,wasBackward:!1,debugPosition:{x:0,y:0,z:0}};function k(e,t){switch(t.type){case"SET_ANIMATION":if(e.animation===t.payload)return e;return{...e,animation:t.payload};case"TURN_LEFT":return{...e,rotation:e.rotation+t.payload};case"TURN_RIGHT":return{...e,rotation:e.rotation-t.payload};case"REVERSE":if(e.wasBackward)return e;return{...e,rotation:e.rotation+Math.PI,wasBackward:!0};case"RESET_BACKWARD":if(!e.wasBackward)return e;return{...e,wasBackward:!1};case"SET_DEBUG_POSITION":return{...e,debugPosition:t.payload};default:return e}}let A=()=>(0,o.jsxs)("mesh",{position:[0,1,0],children:[(0,o.jsx)("capsuleGeometry",{args:[.5,1,8,16]}),(0,o.jsx)("meshBasicMaterial",{color:"cyan",wireframe:!0})]});var S=r(5646),C=r(55822);let E=S.Ay.div.withConfig({componentId:"sc-cd27e114-0"})(["background:rgba(0,0,0,0.85);color:#fff;padding:12px 16px;border-radius:8px;pointer-events:none;min-width:280px;"]),I=S.Ay.div.withConfig({componentId:"sc-cd27e114-1"})(["font-weight:bold;margin-bottom:8px;color:#0ff;"]),R=S.Ay.div.withConfig({componentId:"sc-cd27e114-2"})(["margin-bottom:6px;&:last-child{margin-bottom:0;}"]),z=S.Ay.span.withConfig({componentId:"sc-cd27e114-3"})(["color:#888;"]),M=S.Ay.span.withConfig({componentId:"sc-cd27e114-4"})(["color:#0f0;"]),P=S.Ay.span.withConfig({componentId:"sc-cd27e114-5"})(["color:#ff0;"]),T=S.Ay.span.withConfig({componentId:"sc-cd27e114-6"})(["color:#f80;"]),D=S.Ay.span.withConfig({componentId:"sc-cd27e114-7"})(["color:#f0f;"]),L=S.Ay.div.withConfig({componentId:"sc-cd27e114-8"})(["color:#666;margin-left:10px;"]),_=(0,S.Ay)(C.E).withConfig({componentId:"sc-cd27e114-9"})(["position:fixed;bottom:60px;left:60px;font-size:14px;transform:none;z-index:10000;font-family:monospace;"]),O=()=>[0,0],N=e=>{var t;let{children:n,title:i,position:a=[0,0,0],style:l}=e;return(0,o.jsx)(_,{position:a,calculatePosition:O,portal:(0,s.useRef)(null==(t=r.g.document)?void 0:t.body),wrapperClass:"drai--debug-overlay-warpper",style:l,children:(0,o.jsxs)(E,{children:[(0,o.jsxs)(I,{children:["\uD83D\uDD0D Debug: ",i]}),n]})})},F=e=>`(${e.x.toFixed(2)}, ${e.y.toFixed(2)}, ${e.z.toFixed(2)})`,B=e=>`${(180*e/Math.PI).toFixed(1)}\xb0`,$=e=>{let{avatarRef:t,rigidBodyRef:r}=e,{camera:n}
1=(0,u.C)(),[i,a]=(0,s.useState)({world:{x:0,y:0,z:-1},rigidBody:{x:0,y:0,z:0},avatar:{x:0,y:0,z:0},camera:{x:0,y:0,z:0}}),[l,c]=(0,s.useState)({rigidBody:{x:0,y:0,z:0},avatar:{x:0,y:0,z:0},camera:{x:0,y:0,z:0}}),p=(0,s.useRef)(0);return(0,u.D)(()=>{if(p.current+=1,p.current%10!=0)return;let e=new d.Pq0(0,0,-1),o={world:{x:0,y:0,z:-1},rigidBody:{x:0,y:0,z:0},avatar:{x:0,y:0,z:0},camera:{x:0,y:0,z:0}},i={rigidBody:{x:0,y:0,z:0},avatar:{x:0,y:0,z:0},camera:{x:0,y:0,z:0}};if(r.current){let t=e.clone().applyQuaternion(r.current.quaternion);o.rigidBody={x:t.x,y:t.y,z:t.z},i.rigidBody={x:r.current.rotation.x,y:r.current.rotation.y,z:r.current.rotation.z}}if(t.current){let r=e.clone().applyQuaternion(t.current.quaternion);o.avatar={x:r.x,y:r.y,z:r.z},i.avatar={x:t.current.rotation.x,y:t.current.rotation.y,z:t.current.rotation.z}}let l=new d.Pq0;n.getWorldDirection(l),o.camera={x:l.x,y:l.y,z:l.z},i.camera={x:n.rotation.x,y:n.rotation.y,z:n.rotation.z},a(o),c(i)}),(0,o.jsxs)(N,{title:"Avatar geometries",children:[(0,o.jsxs)(R,{children:[(0,o.jsx)(z,{children:"World Forward:"})," ",(0,o.jsx)(M,{children:F(i.world)})]}),(0,o.jsxs)(R,{children:[(0,o.jsx)(z,{children:"RigidBody:"})," ",(0,o.jsx)(P,{children:F(i.rigidBody)}),(0,o.jsx)("br",{}),(0,o.jsxs)(L,{children:["rot Y: ",B(l.rigidBody.y)]})]}),(0,o.jsxs)(R,{children:[(0,o.jsx)(z,{children:"Avatar:"})," ",(0,o.jsx)(T,{children:F(i.avatar)}),(0,o.jsx)("br",{}),(0,o.jsxs)(L,{children:["rot Y: ",B(l.avatar.y)]})]}),(0,o.jsxs)(R,{children:[(0,o.jsx)(z,{children:"Camera:"})," ",(0,o.jsx)(D,{children:F(i.camera)}),(0,o.jsx)("br",{}),(0,o.jsxs)(L,{children:["rot X: ",B(l.camera.x),", Y:"," ",B(l.camera.y)]})]})]})};var U=r(26956);let W=-Math.PI/6,J=Math.PI/3,Y=[0,2,-10],G=[0,0,0],q=e=>{let{debug:t,sendPlayerState:r,audioListenerRef:n,pendingSelfState:i,clearPendingSelfState:c,initialObject:p}=e,{user:m}=(0,U.Us)(),{initialPosition:x,initialYaw:y}=(0,s.useMemo)(()=>{let e=null==p?void 0:p.matrix;if(e&&Array.isArray(e)){let t,r;return{initialPosition:[e[12],e[13],e[14]],initialYaw:((t=new d.kn4).fromArray(e),(r=new d.PTz).setFromRotationMatrix(t),Math.atan2(2*(r.w*r.y+r.x*r.z),1-2*(r.y*r.y+r.z*r.z)))}}return{initialPosition:Y,initialYaw:0}},[null==p?void 0:p.matrix]),h=(0,s.useRef)(null),g=(0,s.useRef)(null),w=(0,s.useRef)(null),b=(0,s.useRef)(null),[S,C]=(0,s.useReducer)(k,j),E=(0,s.useRef)(y),I=(0,s.useRef)(!1),R=(0,s.useRef)(.2),[z,M]=(0,s.use
1State)(.2),[P,T]=(0,s.useState)(0),D=(0,s.useRef)(!1),[,L]=(0,l.z)(),{gl:_}=(0,u.C)();(0,s.useEffect)(()=>{let e=_.domElement,t=e=>{0===e.button&&(D.current=!0)},r=()=>{D.current=!1},n=e=>{D.current&&(E.current-=.005*e.movementX,R.current+=.005*e.movementY,R.current=Math.max(W,Math.min(J,R.current)),M(R.current))};return e.addEventListener("mousedown",t),window.addEventListener("mouseup",r),window.addEventListener("mousemove",n),()=>{e.removeEventListener("mousedown",t),window.removeEventListener("mouseup",r),window.removeEventListener("mousemove",n)}},[_]),(0,s.useEffect)(()=>{if(!i)return;let e=h.current;if(!e)return void console.warn("[Player] RigidBody not ready, waiting...");e.setTranslation({x:i.position.x,y:i.position.y,z:i.position.z},!0),e.setLinvel({x:0,y:0,z:0},!0);let t=new d.PTz(i.rotation.x,i.rotation.y,i.rotation.z,i.rotation.w);E.current=Math.atan2(2*(t.w*t.y+t.x*t.z),1-2*(t.y*t.y+t.z*t.z)),null==c||c()},[i,c,null==m?void 0:m.id]),(0,s.useEffect)(()=>{let e=b.current;if(!e)return;let t=new d.Pf$;e.add(t),n.current=t;let r=()=>{"suspended"===t.context.state&&t.context.resume()};return document.addEventListener("click",r),document.addEventListener("keydown",r),()=>{document.removeEventListener("click",r),document.removeEventListener("keydown",r),e.remove(t),n&&(n.current=null)}},[n]);let O=new d.Pq0;return(0,u.D)((e,t)=>{if(!h.current)return;let{forward:n,backward:o,left:i,right:a,run:l,jump:s}=L(),c=h.current.linvel(),u=h.current.translation();if(u.y<-50){h.current.setTranslation({x:Y[0],y:Y[1],z:Y[2]},!0),h.current.setLinvel({x:0,y:0,z:0},!0);return}let p=l?11.6508:3.5248;i&&(E.current+=2.5*t),a&&(E.current-=2.5*t),!o||n||I.current||(E.current+=Math.PI,I.current=!0),o||(I.current=!1);let f=o&&!n?Math.PI:0;f!==P&&T(f);let x=n||o;x?O.set(Math.sin(E.current)*p,0,Math.cos(E.current)*p):O.set(0,0,0),h.current.setLinvel({x:O.x,y:c.y,z:O.z},!0);let y=u.y<1.1;s&&y&&h.current.setLinvel({x:c.x,y:5,z:c.z},!0);let w="idle";if(y?x&&(w=l?"run":"walk"):w="jump",C({type:"SET_ANIMATION",payload:w}),g.current&&(g.current.rotation.y=E.current),r&&(null==m?void 0:m.id)){let e=new d.kn4,t=new d.PTz;t.setFromAxisAngle(new d.Pq0(0,1,0),E.current),e.compose(new d.Pq0(u.x,u.y,u.z),t,new d.Pq0(1,1,1)),r({matrix:e.toArray(),animation:w})}}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Ux,{ref:h,colliders:!1,mass:1,type:"dynamic",position:x,rotation:G,enabledRotations:[!1,!1,!1],linearDamping:.5,children:(0,o.jsxs)("group",{ref:g,children:[(0,o.jsx)("group",{ref:b,position:[0,2.1,0],rotation:[0,Math.PI,0],children:t&&(0,o.jsxs)("mesh",{rotation:[Math.PI/2,0,0],children:[(0,o.jsx)("ringGeometry",{args:[.9,1,32]}),(0,o.jsx)("meshBasicMaterial",{color:"orange",side:2})]})}),(0,o.jsx)(a.W8,{args:[.5,.5],position:[0,1,0]}),t&&(0,o.jsx)(A,{}),(0,o.jsx)("group",{ref:w,position:[0,0,0],children:(0,o.jsx)(v,{animation:S.animation})}),(0,o.jsx)(f,{pitch:z,yaw:P})]})}),t&&(0,o.jsx)(N,{title:"Avatar coords",style:{bottom:280},children:(0,o.jsxs)(o.Fragment,{children:["X: ",S.debugPosition.x.toFixed(2)," Y:"," ",S.debugPosition.y.toFixed(2)," Z:"," ",S.debugPosition.z.toFixed(2)]})}),t&&(0,o.jsx)($,{rigidBodyRef:g,avatarRef:w})]})};var X=r(20037);let K=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("ambientLight",{intensity:.4}),(0,o.jsx)("directionalLight",{castShadow:!0,position:[10,20,10],intensity:1.5,"shadow-mapSize-width":2048,"shadow-mapSize-height":2048,"shadow-camera-far":50,"shadow-camera-left":-20,"shadow-camera-right":20,"shadow-camera-top":20,"shadow-camera-bottom":-20}),(0,o.jsx)(X.m,{sunPosition:[100,20,100]})]}),V=e=>{let t,r,{object:n}=e,{position:i,quaternion:a}=(0,s.useMemo)(()=>{let e=new d.kn4,t=new d.PTz,r=new d.Pq0,o=new d.Pq0(1,1,1),i=new d.O9p,a=Array.isArray(n.matrix)?n.matrix:null;return a&&16===a.length&&(e.fromArray(a),e.decompose(r,t,o),i.setFromQuaternion(t)),{position:[r.x,r.y,r.z],quaternion:t}},[n]),l=Array.isArray(n.children)?n.children:[];if((null==(t=n.userData)?void 0:t.isLocalPlayer)===!0)return(0,o.jsx)(o.Fragment,{children:l.map((e,t)=>{var r;return(0,o.jsx)(es,{object:e},null!=(r=e.uuid)?r:`world-object-${t}`)})});let c=(null==(r=n.userData)?void 0:r.properties)&&"object"==typeof r.properties?r.properties:{},u="string"==typeof c.animation?c.animation:"idle";return(0,o.jsx)("group",{position:i,quaternion:a,children:(0,o.jsx)(v,{animation:u})})};var H=r(33191);function Q(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Z(e){if("string"!=typeof e)return e;let t=e.trim();if(!t.startsWith("#"))return e;let r=Number.parseInt(t.slice(1),16);return Number.isNaN(r)?e:r}function ee(e){return e.userData&&"object"==typeof e.userData?e.userData:{}}function et(e){let t=e.geometry&&"object"==typeof e.geometry?e.geometry:null;if(!t||"BoxGeometry"!==t.type)return null;let r="number"==typeof t.width?t.width:null,n="number"==typeof t.height?t.height:null,o="number"==typeof t.depth?t.depth:null;return null===r||null===n||null===o?null:{width:r,height:n,depth:o}}let er="#111827",en="#ffffff",eo=new d.XTe;function ei(e,t){var r;return null!=(r=e.uuid)?r:`world-object-${t}`}let ea=e=>{let t,{object:r}=e,n=r.type,i=r.children,a=(0,s.useMemo)(()=>(function(e){let t,r,n;if(!e.type)return null;let o=(t=[],r=[],n=function e(n){let o={...n};if(n.geometry&&"object"==typeof n.geometry){let e=n.geometry,r=Q();t.push({...e,uuid:r}),o.geometry=r}if(n.material&&"object"==typeof n.material){let e=n.material,t=Q();r.push({...{...e,color:Z(e.color),emissive:Z(e.emissive),specular:Z(e.specular)}
1,uuid:t}),o.material=t}return Array.isArray(n.children)&&(o.children=n.children.map(e)),o}(e),{metadata:{version:4.5,type:"Object",generator:"WorldObject"},geometries:t,materials:r,object:n});return eo.parse(o)})(r),[r]),l=(0,s.useMemo)(()=>{let e;return(e=Array.isArray(r.matrix)?r.matrix:null)&&16===e.length?{matrix:new d.kn4().fromArray(e),matrixAutoUpdate:!1}:{matrixAutoUpdate:!1!==r.matrixAutoUpdate&&void 0}},[r]),c=(0,s.useMemo)(()=>{let e;return"string"==typeof(e=ee(r).label)&&e.trim()?e.trim():null},[r]),u=(0,s.useMemo)(()=>(function(e){let t,r=ee(e),n=(null==(t=e.userData)?void 0:t.properties)&&"object"==typeof t.properties?t.properties:{};for(let t of[r.title,n.label,n.name,e.name])if("string"==typeof t&&t.trim())return t.trim();return null})(r),[r]),p=(0,s.useMemo)(()=>et(r),[r]),f=(0,s.useMemo)(()=>i?function(e){if(0===e.length)return 1.2;let t=e.reduce((e,t)=>{var r,n,o,i;let a,l=(a=Array.isArray(t.matrix)?t.matrix:null)&&16===a.length?{x:null!=(n=a[12])?n:0,y:null!=(o=a[13])?o:0,z:null!=(i=a[14])?i:0}:{x:0,y:0,z:0},s=et(t);return Math.max(e,l.y+(null!=(r=null==s?void 0:s.height)?r:0)/2)},-1/0);return Number.isFinite(t)?t+.9:1.2}(i):0,[i]);return"Scene"===n?(0,o.jsx)(o.Fragment,{children:null==i?void 0:i.map((e,t)=>(0,o.jsx)(es,{object:e},ei(e,t)))}):"Group"===n?(0,o.jsxs)("group",{...l,children:[c&&(0,o.jsx)(H.E,{anchorX:"center",anchorY:"middle",color:er,fontSize:.45,maxWidth:5.5,outlineColor:en,outlineWidth:.03,position:[0,f,.08],children:c}),null==i?void 0:i.map((e,t)=>(0,o.jsx)(es,{object:e},ei(e,t)))]}):a?"string"==typeof(t=ee(r)).taskId&&t.taskId.length>0&&u&&p?(0,o.jsx)("primitive",{object:a,children:(0,o.jsx)(H.E,{anchorX:"center",anchorY:"middle",color:er,fontSize:.22,maxWidth:Math.max(p.width-.4,1),outlineColor:en,outlineWidth:.02,overflowWrap:"break-word",position:[0,0,p.depth/2+.01],children:u})}):(0,o.jsx)("primitive",{object:a}):null};var el=((n={}).Player="player",n);let es=e=>{let t,r,{object:n}=e;return("string"==typeof(r=null==(t=n.userData)?void 0:t.type)&&Object.values(el).includes(r)?r:null)==="player"?(0,o.jsx)(V,{object:n}):(0,o.jsx)(ea,{object:n})};var ec=r(21145);let eu={root:null,loading:!0,error:null};function ed(e){return!!e&&"object"==typeof e&&("string"==typeof e.type||"string"==typeof e.name||Array.isArray(e.children)||Array.isArray(e.matrix)||"object"==typeof e.userData)}function ep(e){return JSON.parse(JSON.stringify(e))}function ef(e,t){switch(t.type){case"LOAD_INITIAL":{let r=ep(t.root);return{...e,root:r,loading:!1,error:null}}case"UPDATE_OBJECT":{var r;if(!e.root)return e;let n=(r=t.update.object)&&"object"==typeof r?ed(r)?r:ed(r.object)?r.object:null:null;if(!n)return e;let o=function e(t,r,n){let o;if(("string"==typeof(null==(o=t.userData)?void 0:o.id)&&o.id?o.id:"string"==typeof t.name&&t.name?t.name:"string"==typeof t.uuid?t.uuid:null)===r)return function e(t,r){var n,o;let i=Array.isArray(t.children)?t.children:[],a=Array.isArray(r.children)?r.children:void 0;return{...t,...r,userData:t.userData||r.userData?{...null!=(n=t.userData)?n:{},...null!=(o=r.userData)?o:{}}:void 0,children:void 0===a?i:a.map((t,r)=>{let n=i[r];return n?e(n,t):ep(t)})}}(t,n);let i=Array.isArray(t.children)?t.children:[],a=!1,l=i.map(t=>{let o=e(t,r,n);return o!==t&&(a=!0),o});return a?{...t,children:l}:t}(e.root,t.update.id,n);return{...e,root:o}}case"SET_LOADING":return{...e,loading:t.loading};case"SET_ERROR":return{...e,error:t.error};case"RESET":return eu;default:return e}}let em=S.Ay.button.withConfig({componentId:"sc-79a70cc-0"})(["display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:none;cursor:pointer;transition:background-color 0.2s,opacity 0.2s;background-color:",";color:",";backdrop-filter:blur(8px);&:hover{background-color:",";}&:active{opacity:0.8;}"],e=>{let{$isMuted:t}=e;return t?"rgba(220, 38, 38, 0.85)":"rgba(255, 255, 255, 0.15)"},e=>{let{$isMuted:t}=e;return t?"#fff":"rgba(255, 255, 255, 0.9)"},e=>{let{$isMuted:t}=e;return t?"rgba(220, 38, 38, 1)":"rgba(255, 255, 255, 0.25)"}),ex=e=>{let{isMuted:t,onToggle:r}=e;return(0,o.jsx)(em,{onClick:r,$isMuted:t,title:t?"Unmute microphone":"Mute microphone","aria-label":t?"Unmute microphone":"Mute microphone",children:t?(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),(0,o.jsx)("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),(0,o.jsx)("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2c0 .76-.13 1.49-.35 2.17"}),(0,o.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),(0,o.jsx)("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"}),(0,o.jsx)("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),(0,o.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),(0,o.jsx)("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]})})},ey=S.Ay.button.withConfig({componentId:"sc-96e7d910-0"})(["display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:none;cursor:pointer;transition:background-color 0.2s,opacity 0.2s;background-color:",";color:",";backdrop-filter:blur(8px);&:hover{background-color:",";}&:active{opacity:0.8;}"],e=>{let{$isMuted:t}=e;return t?"rgba(220, 38, 38, 0.85)":"rgba(255, 255, 255, 0.15)"},e=>{let{$isMuted:t}=e;return t?"#fff":"rgba(255, 255, 255, 0.9)"},e=>{let{$isMuted:t}=e;return t?"rgba(220, 38, 38, 1)":"rgba(255, 255, 255, 0.25)"}),eh=e=>{let{isMuted:t,onToggle:r}=e;return(0,o.jsx)(ey,{onClick:r,$isMuted:t,title:t?"Unmute world sounds":"Mute world sounds","aria-label":t?"Unmute world sounds":"Mute world sounds",children:t?(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),(0,o.jsx)("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),(0,o.jsx)("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]}):(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),(0,o.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),(0,o.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})})},eg=S.Ay.div.withConfig({componentId:"sc-6b140c1f-0"})(["position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);"]),ew=S.Ay.div.withConfig({componentId:"sc-6b140c1f-1"})(["background:#1a1a2e;border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:32px;max-width:420px;width:90%;text-align:center;color:#e0e0e0;"]),eb=S.Ay.h3.withConfig({componentId:"sc-6b140c1f-2"})(["margin:0 0 12px;font-size:18px;color:#fff;"]),ev=S.Ay.p.withConfig({componentId:"sc-6b140c1f-3"})(["margin:0 0 24px;font-size:14px;line-height:1.5;color:#b0b0b0;"]),ej=S.Ay.button.withConfig({componentId:"sc-6b140c1f-4"})(["padding:10px 24px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;background:#4a6cf7;color:#fff;transition:background 0.2s;&:hover{background:#3b5de7;}"]),ek=e=>{let{status:t,onReconnect:r}=e;return"error"===t?(0,o.jsx)(eg,{children:(0,o.jsxs)(ew,{children:[(0,o.jsx)(eb,{children:"Connection lost"}),(0,o.jsx)(ev,{children:"Failed to connect to the world server. Reconnecting..."})]})}):"session_replaced"===t?(0,o.jsx)(eg,{children:(0,o.jsxs)(ew,{children:[(0,o.jsx)(eb,{children:"Session closed"}),(0,o.jsx)(ev,{children:"Your session was closed because a new one was opened in another window. Would you like to use this window instead?"}),(0,o.jsx)(ej,{onClick:r,children:"Yes, reconnect here"})]})}):null},eA=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-0"})(["position:absolute;top:12px;right:12px;z-index:10;background:rgba(0,0,0,0.85);color:#fff;padding:12px 16px;border-radius:8px;pointer-events:none;min-width:300px;font-family:monospace;font-size:13px;"]),eS=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-1"})(["font-weight:bold;margin-bottom:8px;color:#0ff;"]),eC=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-2"})(["margin-bottom:4px;&:last-child{margin-bottom:0;}"]),eE=S.Ay.span.withConfig({componentId:"sc-ce0ee2ba-3"})(["color:#888;"]),eI=S.Ay.span.withConfig({componentId:"sc-ce0ee2ba-4"})(["color:#0f0;"]),eR=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-5"})(["margin-top:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,0.15);"]),ez=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-6"})(["margin-top:4px;padding:4px 6px;background:rgba(255,255,255,0.05);border-radius:4px;"]),eM=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-7"})(["display:inline-block;width:80px;height:8px;background:rgba(255,255,255,0.1);border-radius:4px;overflow:hidden;vertical-align:middle;margin-left:4px;"]),eP=S.Ay.div.withConfig({componentId:"sc-ce0ee2ba-8"})(["height:100%;width:","%;background:",";transition:width 0.1s ease-out;"],e=>{let{$level:t}=e;return Math.min(100,t)},e=>{let{$level:t}=e;return t>60?"#f00":t>30?"#ff0":"#0f0"}),eT=(0,S.DU)([".drai--debug-overlay-warpper{display:contents;}.drai--debug-stats{top:10px !important;left:60px !important;z-index:800 !important;}"]),eD=S.Ay.div.withConfig({componentId:"sc-f8e022b0-0"})(["width:100%;height:100%;position:relative;"]),eL=S.Ay.div.withConfig({componentId:"sc-f8e022b0-1"})(["position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;display:flex;gap:12px;"]),e_={remotePlayers:new Map,pendingSelfState:null};function eO(e,t){switch(t.type){case"WORLD_STATE":{let r=new Map;for(let e of t.players)r.set(e.playerId,e);return{...e,remotePlayers:r}}
1case"PLAYER_LEFT":{let r=new Map(e.remotePlayers);return r.delete(t.playerId),{...e,remotePlayers:r}}case"SELF_STATE":return{...e,pendingSelfState:t.data};case"CLEAR_SELF_STATE":return{...e,pendingSelfState:null};case"RESET":return e_;default:return e}}r(99742).env.NEXT_PUBLIC_DEBUG_WORLD3D_PHYSICS;let eN=[{name:"forward",keys:["KeyW","ArrowUp"]},{name:"backward",keys:["KeyS","ArrowDown"]},{name:"left",keys:["KeyA","ArrowLeft"]},{name:"right",keys:["KeyD","ArrowRight"]},{name:"run",keys:["ShiftLeft","ShiftRight"]},{name:"jump",keys:["Space"]}],eF=()=>{var e,t;let{user:r,userLoading:n}=(0,U.Us)(),{root:u,localPlayerObject:d,updateObject:p,refetchWorld:f}=function(){let{user:e}=(0,U.Us)(),[t,r]=(0,s.useReducer)(ef,eu),{data:n,loading:o,error:i,refetch:a}=(0,ec.zy)({fetchPolicy:"cache-and-network"});(0,s.useEffect)(()=>{var t,o;let i=(t=null==n?void 0:n.response)&&"object"==typeof t?ed(t)?t:ed(t.object)?t.object:null:null;i&&r({type:"LOAD_INITIAL",root:function e(t,r){let n,o,i=Array.isArray(t.children)?t.children.map(t=>e(t,r)):void 0,a="string"==typeof(null==(n=t.userData)?void 0:n.id)?n.id:null,l=!!r&&"player"===("string"==typeof(null==(o=t.userData)?void 0:o.type)&&o.type?o.type:"string"==typeof t.type?t.type:"Object3D")&&a===r,s=t.userData,c=s&&"object"==typeof s?{...s,isLocalPlayer:l}:l?{isLocalPlayer:!0}:s;return{...t,userData:c,children:i}}(i,null!=(o=null==e?void 0:e.id)?o:null)})},[null==n?void 0:n.response,null==e?void 0:e.id]),(0,s.useEffect)(()=>{r({type:"SET_LOADING",loading:o})},[o]),(0,s.useEffect)(()=>{i&&r({type:"SET_ERROR",error:i})},[i]);let l=(0,s.useCallback)(e=>{r({type:"UPDATE_OBJECT",update:e})},[]),c=(0,s.useCallback)(e=>{for(let t of e)r({type:"UPDATE_OBJECT",update:t})},[]),u=(0,s.useCallback)(()=>{a()},[a]),d=(0,s.useMemo)(()=>t.root?function e(t){let r=t.userData;if(null==r?void 0:r.isLocalPlayer)return t;if(Array.isArray(t.children))for(let r of t.children){let t=e(r);if(t)return t}return null}(t.root):null,[t.root]);return{root:t.root,localPlayerObject:d,loading:t.loading,error:t.error,updateObject:l,updateObjects:c,refetchWorld:u}}
1(),[m,x]=(0,s.useState)(null);(0,s.useEffect)(()=>{var e,t;x(null!=(e=null==(t=localStorage)?void 0:t.getItem("token"))?e:null);let r=e=>{"token"===e.key&&x(e.newValue)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)},[]),(0,s.useEffect)(()=>{var e,t;x(null!=(e=null==(t=localStorage)?void 0:t.getItem("token"))?e:null)},[r]);let y=(null==r?void 0:r.id)?m:null,{wsRef:h,pendingSelfState:g,clearPendingSelfState:w,sendPlayerState:b,onSignalingMessageRef:v,turnCredentialsRef:j,connectionStatus:k,reconnect:A}=function(e){let{enabled:t,authUserId:r,token:n,onObjectUpdate:o,onWorldChanged:i}=e,a=(0,s.useRef)(null),l=(0,s.useRef)(null),[c,u]=(0,s.useState)("idle"),[d,p]=(0,s.useState)(!1),f=(0,s.useRef)(t);f.current=t;let m=(0,s.useRef)(r);m.current=r;let x=(0,s.useRef)(n);x.current=n;let y=(0,s.useRef)(o);y.current=o;let h=(0,s.useRef)(i);h.current=i;let g=(0,s.useRef)(null),w=(0,s.useRef)(null),[b,v]=(0,s.useReducer)(eO,e_),j=(0,s.useRef)(null),k=(0,s.useRef)(0),A=(0,s.useCallback)(()=>{l.current&&(clearTimeout(l.current),l.current=null),a.current&&(a.current.close(1e3,"unmount"),a.current=null),v({type:"RESET"}),p(!1)},[]),S=(0,s.useCallback)(()=>{if(!f.current)return;A(),u("connecting");let e=m.current?x.current:null,t="https:"===window.location.protocol?"wss:":"ws:",r=`${t}//${window.location.host}/world3d-service`,n=new WebSocket(e?`${r}?token=${e}`:r);a.current=n,n.onopen=()=>{u("connected"),p(!!e)},n.onmessage=e=>{try{let t=JSON.parse(e.data);if(!t||"string"!=typeof t.type)return;switch(t.type){case"ping":n.send(JSON.stringify({type:"pong"}));break;case"player_joined":break;case"player_left":v({type:"PLAYER_LEFT",playerId:t.playerId});break;case"object_created":case"object_deleted":h.current&&h.current();break;case"object_update":y.current&&t.object&&y.current({id:t.id,object:t.object});break;case"error":console.error(`[multiplayer] Server error: ${t.message}`);break;case"turn_credentials":w.current={urls:t.urls,username:t.username,credential:t.credential,ttl:t.ttl};break;case"self_state":v({type:"SELF_STATE",data:{playerId:t.playerId,username:t.username,position:t.position,rotation:t.rotation,animation:t.animation,isNew:t.isNew}});break;case"offer":case"answer":case"ice_candidate":g.current&&g.current(t)}}catch{}},n.onclose=e=>{console.warn(`[multiplayer] Disconnected (code: ${e.code}, reason: ${e.reason})`),a.current=null,4009===e.code?(console.warn("[multiplayer] Session replaced by another tab/window"),u("session_replaced")):f.current&&1e3!==e.code&&(u("error"),l.current=setTimeout(S,3e3))},n.onerror=()=>{}},[A]),C=(0,s.useCallback)(e=>{let t=Date.now(),r=j.current,n=t-k.current,o=e.matrix[12],i=e.matrix[14];if(!r){j.current={...e,matrix:[...e.matrix]},k.current=t;return}let l=Math.abs(o-r.matrix[12])>.01||Math.abs(i-r.matrix[14])>.01,s=Math.abs(e.matrix[0]-r.matrix[0])>.01||Math.abs(e.matrix[2]-r.matrix[2])>.01,c=e.animation!==r.animation;if(n<(l||s?500:3e3)&&!c||r&&!l&&!s&&!c)return;j.current={...e,matrix:[...e.matrix]},k.current=t;let u=a.current;if(!u||u.readyState!==WebSocket.OPEN){var d;console.warn("[sendPlayerState] SKIP: ws=%s, readyState=%s",u?"exists":"null",null!=(d=null==u?void 0:u.readyState)?d:"N/A");return}u.send(JSON.stringify({type:"player_state",matrix:e.matrix,animation:e.animation}))},[]);(0,s.useEffect)(()=>(t?S():A(),A),[t,r,n,S,A]);let E=(0,s.useCallback)(()=>{v({type:"CLEAR_SELF_STATE"})},[]);return{wsRef:a,remotePlayers:b.remotePlayers,pendingSelfState:b.pendingSelfState,clearPendingSelfState:E,sendPlayerState:C,onSignalingMessageRef:g,turnCredentialsRef:w,connectionStatus:c,isAuthenticated:d,reconnect:S}}({enabled:!n,authUserId:null!=(e=null==r?void 0:r.id)?e:null,token:y,onObjectUpdate:p,onWorldChanged:f}),S=(0,s.useMemo)(()=>(function(e){if(!e)return[];let t=[],r=[e];for(;r.length>0;){let e=r.shift();e&&("player"===function(e){let t=e.userData;return"string"==typeof(null==t?void 0:t.type)?t.type:"string"==typeof e.type?e.type:"Object3D"}(e)&&t.push(e),Array.isArray(e.children)&&r.push(...e.children))}return t})(u),[u]),C=(0,s.useMemo)(()=>S.map(e=>{let t;return"string"==typeof(null==(t=e.userData)?void 0:t.id)&&t.id?t.id:"string"==typeof e.name&&e.name?e.name:"string"==typeof e.uuid&&e.uuid?e.uuid:null}).filter(e=>"string"==typeof e),[S]),{remoteStreams:E,isMuted:I,toggleMute:R,peersRef:z,localStreamRef:M}=function(e){let{enabled:t,localPlayerId:r,wsRef:n,onSignalingMessageRef:o,turnCredentialsRef:i,remotePlayerIds:a}
1=e,l=(0,s.useRef)(new Map),c=(0,s.useRef)(null),[u,d]=(0,s.useState)(new Map),[p,f]=(0,s.useState)(!0);(0,s.useRef)(t).current=t;let m=(0,s.useRef)(a);m.current=a;let x=(0,s.useCallback)(()=>{let e=i.current;return e?[{urls:e.urls,username:e.username,credential:e.credential}]:[{urls:"stun:stun.l.google.com:19302"}]},[i]),y=(0,s.useCallback)(e=>{let t=n.current;t&&t.readyState===WebSocket.OPEN&&t.send(JSON.stringify(e))},[n]),h=(0,s.useCallback)((e,t)=>{d(r=>{let n=new Map(r);return n.set(e,t),n})},[]),g=(0,s.useCallback)(e=>{d(t=>{let r=new Map(t);return r.delete(e),r})},[]),w=(0,s.useCallback)(e=>{let t=l.current.get(e);t&&(t.pc.close(),l.current.delete(e),g(e))},[g]),b=(0,s.useCallback)((e,t)=>{let r=new RTCPeerConnection({iceServers:x()}),n=c.current;if(n)for(let e of n.getAudioTracks())r.addTrack(e,n);return r.ontrack=t=>{t.streams[0]?h(e,t.streams[0]):console.warn(`[voice][ontrack] No streams in ontrack event for ${e}`)},r.onicecandidate=t=>{t.candidate?y({type:"ice_candidate",targetPlayerId:e,candidate:JSON.stringify(t.candidate)}):console.warn(`[voice][ice] ICE gathering complete for ${e}`)},r.onconnectionstatechange=()=>{("failed"===r.connectionState||"closed"===r.connectionState)&&w(e)},l.current.set(e,{pc:r,isOfferer:t}),r},[x,h,y,w]),v=(0,s.useCallback)(async e=>{if(l.current.has(e)||!r||r>=e)return;let t=b(e,!0);try{let r=await t.createOffer();await t.setLocalDescription(r),y({type:"offer",targetPlayerId:e,sdp:JSON.stringify(t.localDescription)})}catch(t){console.error(`[voice] Failed to create offer for ${e}:`,t),w(e)}},[b,y,w,r]),j=(0,s.useCallback)(async e=>{let{fromPlayerId:t}=e;switch(e.type){case"offer":{l.current.has(t)&&w(t);let r=b(t,!1);try{let n=JSON.parse(e.sdp);await r.setRemoteDescription(new RTCSessionDescription(n));let o=await r.createAnswer();await r.setLocalDescription(o),y({type:"answer",targetPlayerId:t,sdp:JSON.stringify(r.localDescription)})}catch(e){console.error(`[voice] Failed to handle offer from ${t}:`,e),w(t)}break}case"answer":{let r=l.current.get(t);if(!r)return;if("have-local-offer"!==r.pc.signalingState)return void console.warn(`[voice][signal] Ignoring answer from ${t} — signalingState is ${r.pc.signalingState}, expected have-local-offer`);try{let t=JSON.parse(e.sdp);await r.pc.setRemoteDescription(new RTCSessionDescription(t))}catch(e){console.error(`[voice] Failed to set remote description from ${t}:`,e)}break}case"ice_candidate":{let r=l.current.get(t);if(!r)return void console.warn(`[voice][signal] ICE candidate from ${t} but no peer exists`);try{let t=JSON.parse(e.candidate);await r.pc.addIceCandidate(new RTCIceCandidate(t))}catch(e){console.error(`[voice] Failed to add ICE candidate from ${t}:`,e)}}}},[b,y,w]),k=(0,s.useCallback)(async()=>{try{let e=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0},video:!1});return c.current=e,e}catch(e){return console.error("[voice] Failed to capture microphone:",e),null}},[]),A=(0,s.useCallback)(()=>{let e=c.current;if(e){for(let t of e.getTracks())t.stop();c.current=null}},[]),S=(0,s.useCallback)(e=>{for(let[,t]of l.current)if(!t.pc.getSenders().some(e=>{var t;return(null==(t=e.track)?void 0:t.kind)==="audio"}))for(let r of e.getAudioTracks())t.pc.addTrack(r,e)},[]),C=(0,s.useCallback)(async()=>{var e;if(!c.current){let e=await k();if(!e)return;for(let t of(S(e),m.current))l.current.has(t)||v(t);f(!1);return}let t=c.current.getAudioTracks(),r=!(null==(e=t[0])?void 0:e.enabled);for(let e of t)e.enabled=r;f(!r)},[k,S,v]),E=(0,s.useCallback)(()=>{for(let[e,t]of l.current)t.pc.close(),g(e);l.current.clear(),A(),d(new Map)},[A,g]);return(0,s.useEffect)(()=>(t?o.current=j:o.current=null,()=>{o.current=null}),[t,o,j]),(0,s.useEffect)(()=>{if(!t)return void E()},[E,t]),(0,s.useEffect)(()=>{if(!t||!c.current)return void console.warn("[voice][reactive] Skipping — enabled:",t,"localStream:",!!c.current);let e=new Set(l.current.keys()),r=new Set(a);for(let t of a)e.has(t)||(console.warn("[voice][reactive] Connecting to NEW player:",t),v(t));for(let t of e)r.has(t)||(console.warn("[voice][reactive] Removing GONE player:",t),w(t))},[t,a,v,w]),(0,s.useEffect)(()=>()=>{E()},[E]),{remoteStreams:u,isMuted:p,toggleMute:C,peersRef:l,localStreamRef:c}}({enabled:!!r,localPlayerId:null!=(t=null==r?void 0:r.id)?t:null,wsRef:h,onSignalingMessageRef:v,turnCredentialsRef:j,remotePlayerIds:C}
1),P=(0,s.useRef)(null),[T,D]=(0,s.useState)(!1),[L,_]=(0,s.useState)(!1),O=(0,s.useCallback)(()=>{_(!0)},[]),N=(0,s.useCallback)(()=>{let e=P.current;if(!e)return;let t=!T;e.setMasterVolume(+!t),D(t)},[T]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eT,{}),(0,o.jsxs)(eD,{children:[(0,o.jsx)(l.Y,{map:eN,children:(0,o.jsx)(i.Hl,{shadows:!0,camera:{position:[0,5,10],fov:60},children:(0,o.jsxs)(s.Suspense,{fallback:null,children:[!1,(0,o.jsxs)(a.AQ,{gravity:[0,-9.81,0],debug:!1,children:[!1,(0,o.jsx)(K,{}),(0,o.jsx)(c,{onReady:O}),L&&(0,o.jsxs)(o.Fragment,{children:[u&&(0,o.jsx)(es,{object:u}),(0,o.jsx)(q,{debug:!1,sendPlayerState:b,audioListenerRef:P,pendingSelfState:g,clearPendingSelfState:w,initialObject:d},null==r?void 0:r.id)]})]})]})})}),r&&(0,o.jsxs)(eL,{children:[(0,o.jsx)(ex,{isMuted:I,onToggle:R}),(0,o.jsx)(eh,{isMuted:T,onToggle:N})]}),(0,o.jsx)(ek,{status:k,onReconnect:A}),!1]})]})};var eB=r(41648);S.Ay.div.withConfig({componentId:"sc-c1813eb2-0"})(["display:flex;min-height:100dvh;background:#ffffff;overflow:hidden;"]),S.Ay.div.withConfig({componentId:"sc-c1813eb2-1"})(["flex:1;min-width:0;display:flex;flex-direction:column;min-height:100dvh;margin-left:",";transition:margin-left 0.2s ease-in-out;@media (max-width:","px){margin-left:0;}"],e=>{let{$sidebarOpen:t}=e;return t?"260px":"48px"},eB.w.breakpoints.md),S.Ay.div.withConfig({componentId:"sc-c1813eb2-2"})(["display:none;align-items:center;padding:12px 16px;position:sticky;top:0;background:rgba(255,255,255,0.9);backdrop-filter:blur(10px);z-index:100;gap:12px;@media (max-width:","px){display:flex;}"],eB.w.breakpoints.md),S.Ay.button.withConfig({componentId:"sc-c1813eb2-3"})(["width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background 0.15s,color 0.15s;svg{width:20px;height:20px;}"]),S.Ay.div.withConfig({componentId:"sc-c1813eb2-4"})(["display:flex;align-items:center;gap:12px;"]),S.Ay.div.withConfig({componentId:"sc-c1813eb2-5"})(["flex:1;display:flex;flex-direction:column;justify-content:",";background:",";"],e=>{let{$isHomePage:t}=e;return t?"center":"flex-start"},e=>{let{$isHomePage:t}=e;return"#ffffff"});let e$=S.Ay.div.withConfig({componentId:"sc-c1813eb2-6"})(["width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;flex:1;@media (max-width:","px){padding:0 16px;}"],eB.w.breakpoints.md);S.Ay.div.withConfig({componentId:"sc-c1813eb2-7"})(["display:flex;flex-direction:column;overflow:auto;"]);let eU=(0,S.DU)(["","{max-width:none;padding:0;}"],e$),eW=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eU,{}),(0,o.jsx)(eF,{})]})}},e=>{e.O(0,[7391,5334,3342,5037,3718,9190,636,6593,8792],()=>e(e.s=32425)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.