PageSourceSearch

https://beta.mewod.ai/assets/character_feed-61b6174a.js

js mewod.ai collected 2026-10-05 15:39:30 UTC 6,962 bytes, 1 lines download raw bytes

1import{_ as e}from"./canvas_home-ee0cc5dd.js";import{_ as a,L as l}from"./loading_text-c4684dbd.js";import{d as t,r,b as o,R as u,q as n,o as s,a7 as i,a8 as m,E as v,S as c,a2 as d,a1 as g,e as p,f as b,j as y,l as _,i as h,y as k,G as x}from"./index-b25171b5.js";import{H as T}from"./history-chat-1d50b93a.js";import"./lodash-c200b85d.js";import"./plugin-vue_export-helper-1b428a4d.js";import"./forward_svg2-c5770f8e.js";import"./index-3ee8d9b8.js";import"./mewod-10b9e961.js";import"./speaker_on_svg-a1f3aae6.js";import"./settings_svg-10d80c61.js";import"./index-877adbea.js";import"./chat-history-f13ef0aa.js";import"./controller-aa1def94.js";import"./router_controller-8f776b59.js";import"./aigc-2eb3aff5.js";import"./character-92642c8a.js";import"./tts-8a89173b.js";import"./v4-ba5d26a9.js";import"./__vite-browser-external-874befbc.js";import"./avatar-757ade39.js";const f={key:3,class:"fixed top-0 flex justify-center items-center w-full h-screen z-10"},M=t({__name:"character_feed",setup(t){const M=r(!1),w=r(!1),j=r(""),C=r(),N=r(""),P=r(0);o();const B=r(""),A=r({}),S=r({}),L=r([]),I=r(!1),D=r(1),O=r(!0),U=r({bgm:!0,ambient:!0}),$=u({me:"",npc:"",skybox:""}),z=u({world_skybox:!1,npc:!1,me:!1,ambient_name:!1,bgm_name:!1}),E=n((()=>w.value&&M.value)),K=()=>{I.value=!0},H=(e,a)=>{1==a?(U.value.bgm=e,localStorage.setItem("enableBgm",e?"1":"0")):(U.value.ambient=e,localStorage.setItem("enableAmbient",e?"1":"0"))},F=r("Loading metaverse ..."),R=e=>{e>0&&(F.value=`Loading metaverse ... ${e}%`),w.value=e>=100},W=e=>{0===D.value&&e<0||(D.value+=e,D.value=Math.max(0,D.value),q(D.value,!0,e))};s((async()=>{$.me="",$.skybox="fantasy_lands_from_sky_a_lush_mystical_forest_gl",q(D.value);const e=await i();B.value=e}));const q=(e,a,l)=>{m({index:e}).then((e=>{if(1==e.code){if(a)return Y(e.data),S.value={...e.data.user},M.value=!0,A.value=e.data.character,void(L.value=e.data.history);S.value={...e.data.user},M.value=!0,A.value=e.data.character,L.value=e.data.history,$.npc=A.value.readyplayerme_id,$.me=e.data.user.readyplayer_id,j.value=A.value.world_ambient_name||"",N.value=A.value.world_bgm_name||"",P.value=A.value.world_particle_id||1,$.skybox=A.value.world_skybox}else l&&(D.value-=l),v.info("No more new feed now")})).catch((e=>{l&&(D.value-=l),v.error("服务器繁忙,请稍后再来")}))},G=e=>e?-1==e.indexOf("mewod-")?`https://api.readyplayer.me/v1/avatars/${e}.glb?useDracoMeshCompression=true&textureAtlas=256&textureSizeLimit=256&meshLod=2&morphTargets=mouthSmile,mouthOpen,eyesClosed`:`/metaverse/avatar/glb/mewod/${e}.glb`:"/metaverse/avatar/glb/648806c44e7fe89b29a55a38.glb",Q=e=>e?-1==e.indexOf("mewod-")?`https://api.readyplayer.me/v1/avatars/${e}.glb?useDracoMeshCompression=true&textureAtlas=256&textureSizeLimit=256&meshLod=2&morphTargets=mouthSmile,mouthOpen,eyesClosed`:`/metaverse/avatar/glb/mewod/${e}.glb`:"/metaverse/avatar/glb/62a2b0461e270d2d0b50ad9a.glb",X=e=>e?`/metaverse/skybox/ai/${e}.jpg`:"/metaverse/skybox/ai/cyberpunk_in_a_bustling_metropolis_of_towering_sky.jpg",Y=e=>{var a,l,t,r,o,u;if(null==C||C.value.stopMyMouthTalking(),null==C||C.value.stopNPCMouthTalking(),null==C||C.value.stopMeTalking(),null==C||C.value.stopNPCTalking(),null==C||C.value.cameraToDefault(),e.character.world_skybox!=e.skybox){e.skybox=e.character.world_skybox;const l=X(e.skybox);null==(a=C.value)||a.changeSkybox(l,(()=>{Z("world_skybox")}))}else Z("world_skybox");if(e.character.readyplayerme_id!=e.npc){e.npc=e.character.readyplayerme_id;const a=G(e.npc);null==(l=C.value)||l.changeNPC(a,(()=>{Z("npc")}))}else Z("npc");if(e.user.readyplayer_id!=e.me){e.me=e.user.readyplayer_id,e.me||(e.user.sex===c.MALE||e.user.sex===c.UNKNOWN?e.me="mewod-649e369d788d4b23797ab352":e.me="mewod-649e378512a3f1019d5ed3a5");const a=Q(e.me);null==(t=C.value)||t.changeMe(a,(()=>{Z("me")}))}else Z("me");e.character.world_ambient_name!=j.value?(j.value=e.character.world_ambient_name,null==(r=C.value)||r.changeAmbient(j.value,(()=>{var e,a;Z("ambient_name"),U.value.ambient&&j.value?null==(e=C.value)||e.playAmbient():null==(a=C.value)||a.pauseAmbient()}))):Z("ambient_name"),e.character.world_bgm_name!=N.value?(N.value=e.character.world_bgm_name,null==(o=C.value)||o.changeBgm(N.value,(()=>{var e,a;Z("bgm_name"),U.value.bgm&&N.value?null==(e=C.value)||e.playBgm():null==(a=C.value)||a.pauseBgm()}))):Z("bgm_name"),e.character.world_particle_id!=P.value&&(P.value=e.character.world_particle_id,null==(u=C.value)||u.changeParticle(P.value||d.BUBBLE_UP))}
1,Z=e=>{z[e]=!0;const a=Object.values(z).every((e=>e));O.value=a};return g((()=>E.value),((e,a)=>{null!=a&&e&&x((()=>{var e;null==(e=C.value)||e.playMusic((()=>{U.value.bgm="1"===localStorage.getItem("enableBgm")||!localStorage.getItem("enableBgm")}),(()=>{U.value.ambient="1"===localStorage.getItem("enableAmbient")||!localStorage.getItem("enableAmbient")}))}))})),g((()=>U.value.bgm),((e,a)=>{N.value&&x((()=>{var a,l;e?null==(a=C.value)||a.playBgm():null==(l=C.value)||l.pauseBgm()}))})),g((()=>U.value.ambient),((e,a)=>{var l,t;j.value&&(e?null==(l=C.value)||l.playAmbient():null==(t=C.value)||t.pauseAmbient())})),g((()=>E.value),((e,a)=>{null!=a&&e&&x((()=>{var e;null==(e=C.value)||e.playMusic()}))})),g((()=>O.value),((e,a)=>{e&&(z.world_skybox=!1,z.npc=!1,z.me=!1,z.ambient_name=!1,z.bgm_name=!1)})),(t,r)=>{var o,u,n,s,i,m,v,c,g,x,z;return p(),b("div",{onClick:K},[w.value?_("",!0):(p(),y(a,{key:0,"loading-text":F.value},null,8,["loading-text"])),M.value?(p(),y(e,{key:1,onLoaded:R,ref_key:"canvasHome",ref:C,skybox:X($.skybox),me:Q($.me),npc:G($.npc),particle:P.value||h(d).BUBBLE_UP,bgm:N.value,ambient:j.value},null,8,["skybox","me","npc","particle","bgm","ambient"])):_("",!0),E.value&&O.value?(p(),y(T,{key:2,startNPCTalking:null==(o=C.value)?void 0:o.startNPCTalking,stopNPCTalking:null==(u=C.value)?void 0:u.stopNPCTalking,subscriptionKey:B.value,characterInfo:A.value,cameraToNPC:null==(n=C.value)?void 0:n.cameraToNPC,cameraToMe:null==(s=C.value)?void 0:s.cameraToMe,cameraToDefault:null==(i=C.value)?void 0:i.cameraToDefault,startMyMouthTalking:null==(m=C.value)?void 0:m.startMyMouthTalking,stopMyMouthTalking:null==(v=C.value)?void 0:v.stopMyMouthTalking,startNPCMouthTalking:null==(c=C.value)?void 0:c.startNPCMouthTalking,stopNPCMouthTalking:null==(g=C.value)?void 0:g.stopNPCMouthTalking,startMeTalking:null==(x=C.value)?void 0:x.startMeTalking,stopMeTalking:null==(z=C.value)?void 0:z.stopMeTalking,userInfo:S.value,historyData:L.value,canSpeek:I.value,setAudio:H,showLikeList:!0,changeFeed:W,feedIndex:D.value,enableBgm:U.value.bgm,enableAmbient:U.value.ambient},null,8,["startNPCTalking","stopNPCTalking","subscriptionKey","characterInfo","cameraToNPC","cameraToMe","cameraToDefault","startMyMouthTalking","stopMyMouthTalking","startNPCMouthTalking","stopNPCMouthTalking","startMeTalking","stopMeTalking","userInfo","historyData","canSpeek","feedIndex","enableBgm","enableAmbient"])):_("",!0),O.value?_("",!0):(p(),b("div",f,[k(l)]))])}}});export{M as default};

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.