PageSourceSearch

https://twopeas.ai/_next/static/chunks/5604.3d0d4bb637cfbf68.js

js twopeas.ai collected 2026-10-05 15:11:31 UTC 2,947 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4616,5604],{4616:(e,o,a)=>{a.r(o),a.d(o,{default:()=>u});var i=a(5155),l=a(2115),t=a(3554),s=a(5028);let r=(0,a(5453).v)(e=>({isCubismCoreLoaded:!1,isLive2dLoaded:!1,setIsCubismCoreLoaded:o=>e({isCubismCoreLoaded:o}),setIsLive2dLoaded:o=>e({isLive2dLoaded:o})}));var n=a(1493);let d=(0,s.default)(()=>Promise.all([a.e(9450),a.e(9369),a.e(2685)]).then(a.bind(a,2685)),{loadableGenerated:{webpack:()=>[2685]},ssr:!1,loading:()=>(0,i.jsx)("div",{className:"w-full h-full flex items-center justify-center text-gray-400",children:"Loading model..."})});function c(e,o){return 0===o?e:"".concat(e,"?retry=").concat(o)}function u(e){let[o,a]=(0,l.useState)({cubismcore:0,live2d:0}),{isCubismCoreLoaded:s,isLive2dLoaded:u,setIsCubismCoreLoaded:f,setIsLive2dLoaded:v}=r(),m=e=>o[e]<3&&(a(o=>({...o,[e]:o[e]+1})),!0);return(0,l.useEffect)(()=>{window.PIXI=n},[]),(0,l.useEffect)(()=>{(window.Live2DCubismCore||window.CubismCore)&&f(!0),window.Live2D&&v(!0)},[f,v]),(0,i.jsxs)("div",{className:"w-full h-full",children:[!s&&(0,i.jsx)(t.default,{src:c("/scripts/live2dcubismcore.min.js",o.cubismcore),strategy:"afterInteractive",onLoad:()=>{console.log("cubismcore loaded via AiTuber"),f(!0)},onError:()=>{m("cubismcore")?console.warn("Retrying cubismcore load..."):console.error("Failed to load cubism core")}},"cubismcore-".concat(o.cubismcore)),s&&!u&&(0,i.jsx)(t.default,{src:c("/scripts/live2d.min.js",o.live2d),strategy:"afterInteractive",onLoad:()=>{console.log("live2d loaded via AiTuber"),v(!0)},onError:()=>{m("live2d")?console.warn("Retrying live2d load..."):console.error("Failed to load live2d (needed for pixi-live2d-display)")}},"live2d-".concat(o.live2d)),s&&u&&(0,i.jsx)(d,{...e,assistantAudioStream:e.assistantAudioStream,onMotionSyncRefReady:e.onMotionSyncRefReady})]})}},5604:(e,o,a)=>{a.r(o),a.d(o,{default:()=>n});var i=a(5155);a(2115);var l=a(4616),t=a(3717);a(606),t.oS.Neutral,t.oS.Happy,t.oS.Excited,t.oS.Laughing,t.oS.Sad,t.oS.Angry,t.oS.Confused,t.oS.Shy,t.oS.Relaxed,t.oS.Thinking,t.oS.ToolCall;var s=a(1489),r=a(8398);function n(){let{currentModel:e,isLoadingModel:o,assistantAudioStream:a,motionSyncRef:t,setMotionSyncRef:n}=(0,s.RP)(),{plan:d}=(0,r.wn)();return o?(0,i.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,i.jsx)("div",{style:{width:16,height:16,borderRadius:"50%",background:"var(--tp-accent)",animation:"tpBreathe 1.8s ease-in-out infinite",boxShadow:"0 0 0 6px color-mix(in srgb, var(--tp-accent) 18%, transparent)"}})}):e?(0,i.jsxs)("div",{className:"w-full h-full relative",children:[(0,i.jsx)(l.default,{className:"w-full h-full avatar",model:e,motionSyncRef:t,assistantAudioStream:a,onMotionSyncRefReady:n}),!1]}):(0,i.jsx)("div",{className:"w-full h-full flex items-center justify-center",style:{color:"var(--tp-ash)",fontFamily:"var(--tp-font-body)",fontSize:13},children:"Model not available."})}}}]);

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.