PageSourceSearch

https://beta.mewod.ai/assets/customize_avatar-633516be.js

js mewod.ai collected 2026-10-05 15:39:44 UTC 2,119 bytes, 1 lines download raw bytes

1import{d as e,aZ as a,r,b as t,o as s,O as l,E as n,e as o,f as i,y as u,l as c,g as v,H as d,V as m,K as p,i as y,F as f,c4 as h}from"./index-b25171b5.js";import{_ as g}from"./lodash-c200b85d.js";import{L as w}from"./loading_purple_dot-7ea576c9.js";import{i as b,x as j,h as _}from"./router_controller-8f776b59.js";import{g as x}from"./controller-aa1def94.js";import"./plugin-vue_export-helper-1b428a4d.js";import"./aigc-2eb3aff5.js";const N={key:0,class:"w-screen h-screen flex justify-center items-center"},I={class:"w-full h-full md:pb-0"},O=["src"],W=e({__name:"customize_avatar",setup(e){a();const W=r(!1),k=t();let q="";null!=k.currentRoute.value.query.gender&&(q=k.currentRoute.value.query.gender);var z=!1;const A=r((e=>{let a="https://mewod.readyplayer.me/";return"zhCn"===h()&&(a+="ch/"),a+="avatar?frameApi&bodyType=fullbody&clearCache",""!=e&&(a+="&gender="+e),a})(q));let C=r(0),E=r();const F=e=>{const a=R(e);if("readyplayerme"===(null==a?void 0:a.source)){if("v1.frame.ready"===a.eventName&&(W.value=!0,clearInterval(E.value),frame.contentWindow.postMessage(JSON.stringify({target:"readyplayerme",type:"subscribe",eventName:"v1.**"}),"*")),"v1.avatar.exported"===a.eventName){if(z)return;z=!0;const e=a.data.url;if(!J(e))return;var r=g.split(e,"readyplayer.me/");const t=g.split(r[1],".")[0];H(t),W.value=!1}a.eventName}},H=e=>{W.value=!1,j(e),_(k,L.value)},J=e=>{const a=g.startsWith(e,"https://"),r=g.endsWith(e,".glb");return a&&r},L=r(!1);s((()=>{"1"===l("history").edit?L.value=!0:b(k,!0),window.addEventListener("message",F),E.value=setInterval((()=>{C.value++,C.value>30&&(clearInterval(E.value),n({message:"The connection to the readyplayer.me server timed out, please try again later.",type:"warning"}),k.back())}),1e3)}));const R=e=>{try{return JSON.parse(e.data)}catch(a){return null}};return(e,a)=>(o(),i(f,null,[W.value?c("",!0):(o(),i("div",N,[u(w)])),v("div",{class:"w-screen h-screen",style:p(y(x))},[v("div",I,[d(v("iframe",{id:"frame",width:"100%",height:"100%",src:A.value,allow:"camera *; microphone *; clipboard-write"},null,8,O),[[m,W.value]])])],4)],64))}});export{W 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.