PageSourceSearch

https://1007bet.ai/assets/theme-0/index.jGPslDuJ.js

js 1007bet.ai collected 2026-10-05 11:48:11 UTC 6,272 bytes, 1 lines download raw bytes

1import{r2 as de,hJ as ye,n as _,fI as ge,r3 as ee,r4 as pe,o as j,aE as z,aw as te,r5 as F,r6 as ae,fV as C,fW as x,aD as Q,r7 as Z}from"./commonChunk.NaF3o1Ou.js";import{D as re,t as H}from"./vendorChunk.DAT6JrsC.js";import"../vendors/vendor-stable.C7xqpJ6l.js";const X=async(t=!1,S=!1,g=!0)=>{const l=a=>ge.ossDecrypt(a),{useMockMaintainIframe:u}=de(),{domainListMap:p}=ye(),r=()=>{var a;return _.request({baseURL:"/",url:u?`${window.location.origin}/pages/503/cocos/maintain-time.json`:"/cocos/maintain-time.json",method:"GET",params:{timestamp:Date.now()}},{maxRetryCount:Math.max(((a=p.ossDomain)==null?void 0:a.length)||0,3),oss:{enable:!0,force:!0},token:{type:!1},cache:{useCacheOnError:()=>!1},error:{checkResCode:!1,action:"silent",failedActions:[{type:"statusCode",code:[404,403],actions:{retry:!1}}]},crypto:{enable:!1}}).then(o=>{const y=typeof o.data=="string"?JSON.parse(l(o.data)):o.data;return JSON.stringify(y)==="{}"?Promise.reject(new Error("empty-maintain-error")):!g||g&&ee(y).health?y:Promise.reject()}).catch(()=>Promise.reject(new Error("request-error")))},w=()=>_.request({baseURL:"/",url:"/cocos/maintain-time-default.json",method:"GET",params:{timestamp:Date.now()}},{oss:{enable:!0,force:!0},token:{type:!1},error:{checkResCode:!1,action:"silent",failedActions:[{type:"statusCode",code:[404,403],actions:{retry:!1}}]},crypto:{enable:!1}}).then(a=>{const o=typeof a.data=="string"?JSON.parse(l(a.data)):a.data;return o&&(o._isDefault=!0),o});try{if(t)return w();if(!S)return r();try{return await r()}catch(a){return await w()}}catch(a){return Promise.reject()}},he=()=>_.request({url:"/api/lobby/h5/config/getAccessRestrictedInfo"},{token:{type:"staticOnly"},oss:{enable:!0},omitKey:["platformType","currency"],crypto:{enable:!1}}),Se=async t=>{const S=await he(),g=await pe().catch(()=>{}),l={...S.data.data,...g};let u="";const p="page-403-payload";sessionStorage.setItem(p,JSON.stringify(l)),t&&(u="page-403-log",sessionStorage.setItem(u,t));const{siteInfos:r}=j(),w=(r==null?void 0:r.title)||(r==null?void 0:r.siteName)||"",a=re(`${window.location.origin}/pages/403/index.html`,{logId:u,payloadId:p,title:w,t:Math.ceil(Date.now()/(1e3*60*5))}),{updateAreaStatus:o}=z();o(!0);const y=te();y.closeAll(),y.open("iframeAccessRestrictedPopup",{options:{src:a,fullScreen:!0,scrollable:!1,closeOnRouteChange:!1,zIndex:ae["modal-top-z-index"],style:{backgroundColor:F.iframeMaintainPopupBg}}})};let J=!1;const d={state:"unknown",timestamp:null},Ae=async t=>{var S,g;if(!J){J=!0;try{t=Object.assign({isSiteFreeze:!1,isSiteFreezeAndMaintain:!1,ipCheck:!0,check403:!1},t);const l=te(),u=!0,{isSiteFreeze:p,isSiteFreezeAndMaintain:r,ipCheck:w,check403:a}=t,o=p,y=r,O=!p&&!r,E="page-503-payload";let U;const{updateSiteMaintenanceStatus:W,updateIPCheck:$}=z(),se=()=>{clearTimeout(U),C.destroy(x.MAINTAININFO),W(!1)},B=e=>{const{siteConfig:s}=j(),{language:n}=Q();return{siteConfig:s,...e,staffall:{online:{type:1,url:e.online_service}},maintainTimeInfo:ee(e),requestInfo:t.requestInfo,language:n}},T=e=>{const s=e.end_time*1e3-Date.now();s>0&&(C.destroy(x.MAINTAININFO),U=window.setTimeout(()=>{C.create({key:x.MAINTAININFO,immediate:!0,interval:1e3*60*5,pollingHandler:async()=>{const[n,i]=await H(X(!1,!1));if(n&&["empty-maintain-error","request-error"].includes(n.message))return I.end();i&&JSON.stringify(i)!==JSON.stringify(e)&&(I.update(B(i)),T(i))}})},s))},G=e=>{Object.entries(e).forEach(([s,n])=>{sessionStorage.setItem(s,n)})},v=e=>{e.style.textAlign="left";const s=e.children;for(const n of s)v(n)},I={update:e=>{G({[E]:JSON.stringify(e)})},start:async e=>{const{siteMaintenanceStatus:s,areaStatus:n}=z();if(s||!n)return;const i=503,{siteInfos:h}=j(),q=B(e),ie=JSON.stringify(q),oe=(h==null?void 0:h.title)||(h==null?void 0:h.siteName)||"Access Restricted",ce=re(`${window.location.origin}/pages/${i}/index.html`,{payloadKey:E,title:oe,useIframe:u,t:Math.ceil(Date.now()/(1e3*60*5))});if(W(!0),u){G({[E]:ie}),T(e);const f=(q.annSkinConfig||[]).find(k=>k.languageCodes.includes(q.language||"")&&k.backgroundColorType===1),le=f!=null&&f.backgroundColorType?{backgroundColor:(f==null?void 0:f.backgroundColorUrl)||F.iframeMaintainPopupBg,backgroundImage:(f==null?void 0:f.backgroundColorUrl)||"",width:"6.9rem"}:{backgroundColor:F.iframeMaintainPopupBg,width:"6.9rem"};l.closeAll(),l.open("iframeMaintainPopup",{options:{src:ce,closeOnRouteChange:!1,zIndex:ae["modal-top-z-index"],style:le,className:"maintain-pop"}}).then(()=>{var k;O&&T(e);try{const M=(k=document.querySelector(".maintain-pop"))==null?void 0:k.querySelector(".ui-iframe-popup__content"),A=M==null?void 0:M.querySelector("iframe");A&&(A.onload=()=>{var V,Y;const m=(Y=(V=A.contentDocument)==null?void 0:V.body)==null?void 0:Y.querySelector(".matainContentWrap"),N=m==null?void 0:m.querySelector("#accessRestrictedImagePath"),c=m==null?void 0:m.querySelector("#accessRestrictedContent"),P=m==null?void 0:m.querySelector("#accessRestrictedLogInfo"),ue=c.querySelectorAll("img")||[],fe=[N,...Array.from(ue)].map(D=>new Promise((L,me)=>{const R=new Image;R.src=D.src,R.onload=()=>L(R),R.onerror=()=>me(new Error(`Failed to load image: ${D.src}`))}));Promise.all(fe).then(()=>{setTimeout(()=>{const D=(c==null?void 0:c.scrollHeight)>c.clientHeight?c.clientHeight:c==null?void 0:c.scrollHeight,L=Number(D)+Number(N==null?void 0:N.scrollHeight)+Number(P==null?void 0:P.scrollHeight)||0;A.style.height=`${L+10}px`,M.style.height=`${L+10}px`},150)}),Q().isRtlLayoutWithLeftAlign&&v(c)})}catch(M){console.warn(M)}})}},end:()=>{u&&l.close("iframeMaintainPopup"),se()}},[K,b]=await H(X(o,y)),ne=!K&&!!b;if(w&&O){if(ne){const s=Date.now();if(d.state!=="unknown"&&d.timestamp&&s-d.timestamp>=36e5&&(d.state="unknown",d.timestamp=null),d.state==="whiteList")return;if(d.state==="notWhiteList"){I.start(b);return}const n=new Date(b.start_time*1e3).getTime()<=Date.now(),[,i]=await H(Z("whiteList",n?2:void 0));i&&$(i),i&&i.areaStatus&&!i.siteMaintenanceStatus?d.state="whiteList":(d.state="notWhiteList",I.start(b))}else if(a){const e=await Z("area");$(e),typeof e.areaStatus=="boolean"&&!e.areaStatus&&Se(JSON.stringify({data:e}))}}else K?(S=t==null?void 0:t.onError)==null||S.call(t):I.start(b)}catch(l){}finally{J=!1,(g=t==null?void 0:t.onCallback)==null||g.call(t)}}};export{Ae as to503};

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.