1import{h as u,dP as g,dQ as I,dl as b,ki as _,z as w,dm as T,qJ as h,qK as y,ec as E,ed as D,kn as L,km as S,b as B,qL as U,qM as k}from"./commonChunk.ClFq2l8G.js";import{G as A,A as N}from"./vendorChunk.B0S1SHvJ.js";import"../vendors/vendor-stable.B-qaYwd4.js";const v=(o,n)=>{const{withToken:r=!0}=n!=null?n:{},{t}=u();g(I.LOBBY_SWITCH_DOMAIN,{title:()=>t("lobby.common.tips.title"),type:"info",showCancelButton:!0,message:()=>t("lobby.error.domainIsBaned"),confirmButtonText:()=>t("lobby.error.switchdomain"),cancelButtonText:()=>t("lobby.error.keepdomain"),className:"performance-dialog-switch-domain",onConfirm:()=>{const{isH5Pwa:s}=b(),{tokenInfos:a}=_(),{uuid:c}=w(),d=A(location.href),m=f=>{const e={...d,_ti:void 0,_et:void 0,[k]:void 0,[U]:void 0};return r&&a&&(e._ti=window.btoa(JSON.stringify(a)),e._et=window.btoa(String(Date.now())),Object.assign(e,L(c)),Object.assign(e,S(B().getFingerId))),N(f,e)},l=T.isActivated?`${new URL(o).origin}${location.pathname}${location.hash||""}`:o,i=m(l);s?h?(E(D.EVENT_UPDATE_LOBBY_ALIVE_DOMAIN).send({domain:o},{merge:!1,fireAndForget:!0}),setTimeout(()=>{location.href=i},100)):(y(i),setTimeout(()=>{location.reload()},100)):location.href=i}})};export{v as createSwitchDomain};
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.