PageSourceSearch

https://999y999.com/assets/theme-0/ReporterSensorsImp.D2rJsTig.js

js 999y999.com collected 2026-10-07 21:25:06 UTC 14,772 bytes, 1 lines download raw bytes

1import{sm as ve,em as S,sn as ge,so as Se,P as B,dW as Y,cm as oe,aE as he,sp as ye,p6 as Ee,sq as Te,l2 as Ce,sr as be,pI as we,pv as Le,o as H,aD as Ie,bQ as _e,ss as ke,V as Ae,st as Ne,fY as Pe,cp as Re,ar as De,p as Q,ig as Fe,i_ as Be,qz as M}from"./commonChunk.CbHrP2ip.js";import{S as Me}from"../vendors/vendor-stable.CbjAnMzp.js";import{r as Oe}from"./utils.D1yxfGaK.js";import{d as ze}from"./sensor.BoktszSy.js";import{g as je}from"./1_EmbeddedGameChunk.BX38WWGT.js";import"./vendorChunk.96TTY5fG.js";import"./0_RechargeCommonChunk.DDWWiKeW.js";import"./0_EntryLoginRegisterChunk.DMUz1wnE.js";import"../vendors/[email protected]";const xe=()=>B.isWebClip?"webclip":Y().isP2a?"pwa":Y().isFromShortcut?"desktopShortcut":B.package.isVest?"vest":B.package.isLite?"speed":"browser";function qe(){ve()&&S.doReport({rule:S.rules.SENSOR_BURIED,eventName:S.sensorEvents.CrossStationAlarm,payload:{validSiteCodes:Se().join(","),urlSiteCode:ge(),carrier:xe(),host:location.host}})}function Ge(){const{channelBlockMs:t,agentBlockMs:e}=oe();S.doReport({rule:S.rules.SENSOR_BURIED,eventName:S.sensorEvents.ClientDataInitializationCompeted,payload:{curLang:he().language,browserLang:navigator.language,...t!==void 0?{channelBlockMs:t}:{},...e!==void 0?{agentBlockMs:e}:{}}})}const Ue=Me(Ge,2e3);function f(t){(0,eval)(t)}function Ve(){const t={ES5:!0,ES6:!1,ES7:!1,ES8:!1,ES9:!1,ES10:!1,ES11:!1};try{f("class TestClass {}"),f("let x = (y = 1) => y;"),f("`template string test`;"),f("const promise = new Promise((resolve, reject) => {});"),f("const xxx = [...[]]"),t.ES6=!0}catch(e){}try{f("[1, 2, 3].includes(2);"),f("let exponent = 2**2;"),t.ES7=!0}catch(e){}try{f("async function asyncFunc() {}"),f("let obj = {a: 1, b: 2}; Object.values(obj);"),t.ES8=!0}catch(e){}try{f("let obj = {a: 1, b: 2}; let objCopy = {...obj};"),f("Promise.resolve().finally(() => {});"),t.ES9=!0}catch(e){}try{f("[1, [2, [3, [4]]]].flat(3);"),f("try { throw new Error('test') } catch {}"),t.ES10=!0}catch(e){}try{f("let a = null ?? 'default';"),f("let obj = {}; let value = obj?.a;"),t.ES11=!0}catch(e){}return t}var x,h,L,ae,P,se=-1,E=function(t){addEventListener("pageshow",function(e){e.persisted&&(se=e.timeStamp,t(e))},!0)},q=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},D=function(){var t=q();return t&&t.activationStart||0},p=function(t,e){var n=q(),i="navigate";return se>=0?i="back-forward-cache":n&&(document.prerendering||D()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:t,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},C=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver(function(r){Promise.resolve().then(function(){e(r.getEntries())})});return i.observe(Object.assign({type:t,buffered:!0},n||{})),i}}catch(r){}},m=function(t,e,n,i){var r,c;return function(o){e.value>=0&&(o||i)&&((c=e.value-(r||0))||r===void 0)&&(r=e.value,e.delta=c,e.rating=function(a,s){return a>s[1]?"poor":a>s[0]?"needs-improvement":"good"}(e.value,n),t(e))}},G=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},I=function(t){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t()})},F=function(t){var e=!1;return function(){e||(t(),e=!0)}},T=-1,W=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},R=function(t){document.visibilityState==="hidden"&&T>-1&&(T=t.type==="visibilitychange"?t.timeStamp:0,Ye())},$=function(){addEventListener("visibilitychange",R,!0),addEventListener("prerenderingchange",R,!0)},Ye=function(){removeEventListener("visibilitychange",R,!0),removeEventListener("prerenderingchange",R,!0)},U=function(){return T<0&&(T=W(),$(),E(function(){setTimeout(function(){T=W(),$()},0)})),{get firstHiddenTime(){return T}}},_=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},J=[1800,3e3],ce=function(t,e){e=e||{},_(function(){var n,i=U(),r=p("FCP"),c=C("paint",function(o){o.forEach(function(a){a.name==="first-contentful-paint"&&(c.disconnect(),a.startTime<i.firstHiddenTime&&(r.value=Math.max(a.startTime-D(),0),r.entries.push(a),n(!0)))})});c&&(n=m(t,r,J,e.reportAllChanges),E(function(o){r=p("FCP"),n=m(t,r,J,e.reportAllChanges),G(function(){r.value=performance.now()-o.timeStamp,n(!0)})}))})},K=[.1,.25],He=function(t,e){e=e||{},ce(F(function(){var n,i=p("CLS",0),r=0,c=[],o=function(s){s.forEac
1h(function(u){if(!u.hadRecentInput){var l=c[0],d=c[c.length-1];r&&u.startTime-d.startTime<1e3&&u.startTime-l.startTime<5e3?(r+=u.value,c.push(u)):(r=u.value,c=[u])}}),r>i.value&&(i.value=r,i.entries=c,n())},a=C("layout-shift",o);a&&(n=m(t,i,K,e.reportAllChanges),I(function(){o(a.takeRecords()),n(!0)}),E(function(){r=0,i=p("CLS",0),n=m(t,i,K,e.reportAllChanges),G(function(){return n()})}),setTimeout(n,0))}))},ue=0,O=1/0,k=0,Qe=function(t){t.forEach(function(e){e.interactionId&&(O=Math.min(O,e.interactionId),k=Math.max(k,e.interactionId),ue=k?(k-O)/7+1:0)})},We=function(){"interactionCount"in performance||x||(x=C("event",Qe,{type:"event",buffered:!0,durationThreshold:0}))},g=[],N=new Map,le=0,$e=function(){return(x?ue:performance.interactionCount||0)-le},Je=[],Ke=function(t){if(Je.forEach(function(r){return r(t)}),t.interactionId||t.entryType==="first-input"){var e=g[g.length-1],n=N.get(t.interactionId);if(n||g.length<10||t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var i={id:t.interactionId,latency:t.duration,entries:[t]};N.set(i.id,i),g.push(i)}g.sort(function(r,c){return c.latency-r.latency}),g.length>10&&g.splice(10).forEach(function(r){return N.delete(r.id)})}}},de=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=F(t),document.visibilityState==="hidden"?t():(n=e(t),I(t)),n},X=[200,500],Xe=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},_(function(){var n;We();var i,r=p("INP"),c=function(a){de(function(){a.forEach(Ke);var s,u=(s=Math.min(g.length-1,Math.floor($e()/50)),g[s]);u&&u.latency!==r.value&&(r.value=u.latency,r.entries=u.entries,i())})},o=C("event",c,{durationThreshold:(n=e.durationThreshold)!==null&&n!==void 0?n:40});i=m(t,r,X,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),I(function(){c(o.takeRecords()),i(!0)}),E(function(){le=0,g.length=0,N.clear(),r=p("INP"),i=m(t,r,X,e.reportAllChanges)}))}))},Z=[2500,4e3],z={},Ze=function(t,e){e=e||{},_(function(){var n,i=U(),r=p("LCP"),c=function(s){e.reportAllChanges||(s=s.slice(-1)),s.forEach(function(u){u.startTime<i.firstHiddenTime&&(r.value=Math.max(u.startTime-D(),0),r.entries=[u],n())})},o=C("largest-contentful-paint",c);if(o){n=m(t,r,Z,e.reportAllChanges);var a=F(function(){z[r.id]||(c(o.takeRecords()),o.disconnect(),z[r.id]=!0,n(!0))});["keydown","click"].forEach(function(s){addEventListener(s,function(){return de(a)},!0)}),I(a),E(function(s){r=p("LCP"),n=m(t,r,Z,e.reportAllChanges),G(function(){r.value=performance.now()-s.timeStamp,z[r.id]=!0,n(!0)})})}})},ee=[800,1800],et=function t(e){document.prerendering?_(function(){return t(e)}):document.readyState!=="complete"?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},tt=function(t,e){e=e||{};var n=p("TTFB"),i=m(t,n,ee,e.reportAllChanges);et(function(){var r=q();r&&(n.value=Math.max(r.responseStart-D(),0),n.entries=[r],i(!0),E(function(){n=p("TTFB",0),(i=m(t,n,ee,e.reportAllChanges))(!0)}))})},w={passive:!0,capture:!0},nt=new Date,te=function(t,e){h||(h=e,L=t,ae=new Date,pe(removeEventListener),fe())},fe=function(){if(L>=0&&L<ae-nt){var t={entryType:"first-input",name:h.type,target:h.target,cancelable:h.cancelable,startTime:h.timeStamp,processingStart:h.timeStamp+L};P.forEach(function(e){e(t)}),P=[]}},rt=function(t){if(t.cancelable){var e=(t.timeStamp>
11e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(n,i){var r=function(){te(n,i),o()},c=function(){o()},o=function(){removeEventListener("pointerup",r,w),removeEventListener("pointercancel",c,w)};addEventListener("pointerup",r,w),addEventListener("pointercancel",c,w)}(e,t):te(e,t)}},pe=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,rt,w)})},ne=[100,300],it=function(t,e){e=e||{},_(function(){var n,i=U(),r=p("FID"),c=function(s){s.startTime<i.firstHiddenTime&&(r.value=s.processingStart-s.startTime,r.entries.push(s),n(!0))},o=function(s){s.forEach(c)},a=C("first-input",o);n=m(t,r,ne,e.reportAllChanges),a&&(I(F(function(){o(a.takeRecords()),a.disconnect()})),E(function(){var s;r=p("FID"),n=m(t,r,ne,e.reportAllChanges),P=[],L=-1,h=null,pe(addEventListener),s=c,P.push(s),fe()}))})};function ot(){var e,n,i,r;const t=navigator.connection;return{effectiveType:(e=t==null?void 0:t.effectiveType)!=null?e:"",downlink:(n=t==null?void 0:t.downlink)!=null?n:null,rtt:(i=t==null?void 0:t.rtt)!=null?i:null,saveData:(r=t==null?void 0:t.saveData)!=null?r:!1}}function at(){const[t]=performance.getEntriesByType("navigation"),e=n=>n>0?parseFloat(n.toFixed(2)):0;return t?{dns:e(t.domainLookupEnd-t.domainLookupStart),tcp:e(t.connectEnd-t.connectStart),tls:t.secureConnectionStart>0?e(t.connectEnd-t.secureConnectionStart):0,redirect:e(t.redirectEnd-t.redirectStart),dcl:e(t.domContentLoadedEventEnd),loadTime:e(t.loadEventEnd)}:{dns:null,tcp:null,tls:null,redirect:null,dcl:null,loadTime:null}}function st(){const t=performance.getEntriesByType("resource"),e=o=>parseFloat((o/1024).toFixed(1));let n=0,i=0,r=0,c=0;for(const o of t){const a=o.transferSize||0;n+=a,o.initiatorType==="script"?i+=a:o.initiatorType==="link"||o.initiatorType==="css"?r+=a:o.initiatorType==="img"&&(c+=a)}return{resourceCount:t.length,resourceSize:e(n),jsSize:e(i),cssSize:e(r),imgSize:e(c)}}function ct(){return be.recordData.reduce((t,e)=>(t[`ms_${e.eventName}`]=e.cost,t),{})}function ut(){const t={FCP:null,FID:null,LCP:null,TTFB:null,INP:null,CLS:null,storageList:"",storageSize:0},e=a=>{t[a.name]=parseFloat(a.value.toFixed(2))};ce(e),tt(e),Ze(e,{reportAllChanges:!0}),He(e,{reportAllChanges:!0});let n=document.visibilityState==="hidden";document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(n=!0)});let i=!1;const r=()=>{var b;if(i)return;i=!0;const a=Oe();a.storageSize&&(t.storageList=a.storageList,t.storageSize=a.storageSize);const{score:s,version:u}=ye(),l=ot(),d=at(),v=st(),y=Ee(),V={...t,...ct(),deviceScore:s!=null?s:null,deviceScoreVersion:u||void 0,deviceQuality:Ce(),...Te(),lobbySupportMedia:(b=localStorage.getItem("lobby@support@media"))!=null?b:void 0,effectiveType:l.effectiveType,downlink:l.downlink,rtt:l.rtt,saveData:l.saveData,dnsTime:d.dns,tcpTime:d.tcp,tlsTime:d.tls,redirectTime:d.redirect,domContentLoaded:d.dcl,loadTime:d.loadTime,resourceCount:v.resourceCount,resourceSize:v.resourceSize,jsSize:v.jsSize,cssSize:v.cssSize,imgSize:v.imgSize,wasHidden:n,networkQuality:{quality:y.qual
1ity,confidence:y.confidence}};S.doReport({rule:S.rules.SENSOR_BURIED,eventName:S.sensorEvents.Performance,payload:V})};it(e),Xe(a=>{e(a),r()},{reportAllChanges:!0});const c=1e4,o=()=>setTimeout(r,c);document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})}let j=!1;const A=[];var ie;const re=(ie=ke)==null?void 0:ie.isForbidSeoAndInjectSite;class me extends we{constructor(){super(Le.Sensors),this.initialize()}initialize(){if(window.__ONLY_PRELOAD_ASSETS)return;let e="https://apiup-cf.cbfes.com";const n=window.LOBBY_SITE_CONFIG.sensorBaseUrl&&window.LOBBY_SITE_CONFIG.sensorBaseUrl[0]||"",i=re?H().siteInfos:window.LOBBY_SITE_CONFIG.INJECT_DATA.apiGetSiteInfo.data.data,r=a=>{const s="abcdefghijklmnopqrstuvwxyz0123456789";let u="";for(let l=0;l<a;l++){const d=Math.floor(Math.random()*s.length);u+=s[d]}return u};if(n&&((i==null?void 0:i.deployEnv)==="test"||(i==null?void 0:i.deployEnv)==="try"||(i==null?void 0:i.deployEnv)==="asiaPacific")){const a=Math.floor(Math.random()*9)+8,s=r(a);e=n.replace("*",s)}const o=(i==null?void 0:i.sensorsStatus)===1?e+"/sa?project=production":void 0;o&&this.importSensorScript(o)}importSensorScript(e){Ie({id:"script-Sensors",src:"/libs/monitor/sensorsdata.min.js?version=v1.0.1"}).parallel().then(()=>{this.onSensorsloaded(e)})}onSensorsloaded(e){window.sensorsDataAnalytic201505.init({server_url:e,is_track_single_page:!0,use_client_time:!0,send_type:"beacon",heatmap:{clickmap:"default",scroll_notice_map:"not_collect"}}),_e.collectPerformance()&&ut(),qe(),Ue(),ze.reReport(),je.reReport()}async initByManual(){var e;try{const n=window.sensorsDataAnalytic201505,{urlParams:i}=oe(),{cid:r,id:c}=i,o=re?H().siteInfos:window.LOBBY_SITE_CONFIG.INJECT_DATA.apiGetSiteInfo.data.data;if(n&&!j){const a=o==null?void 0:o.siteCode,s=o==null?void 0:o.parentSiteCode,{uuid:u,getXVersion:l}=Ae();let d={platform:Ne[Pe()],version:l(),siteCode:a,uuid:u,userAgent:navigator.userAgent.toLowerCase(),webPageType:"lobby",parent_sitecode:s,site_type:a==s?"mainSite":"subSite",cid:r,dlid:c,language:navigator.language,fbclid:(e=new URLSearchParams(location.search).get("fbclid"))!=null?e:void 0};Re.id,n.registerPage(d),n.quick("autoTrack"),n.quick("isReady",function(){n.track("initView",{renderTime:Math.floor(performance.now()),esFeatures:Object.entries(Ve()).filter(([v,y])=>!!y).map(([v])=>v).join(",")})}),j=!0}}catch(n){console.warn(n)}}report(e){var r,c,o,a,s,u;const n=window.LOBBY_SITE_CONFIG.siteCode,{ip:i}=De().ipCheck;try{j||this.initByManual();const l=window.sensorsDataAnalytic201505;e.payload={...e.payload,ip:i,currency:(r=Q().userInfos)==null?void 0:r.currency};const{role:d}=Fe(),v=(c=Be().clubLogoSetting)==null?void 0:c.clubName;d!==void 0&&(e.payload.club_role=d),v!==void 0&&(e.payload.club_name=v),e.payload.userIdx=(s=(o=e==null?void 0:e.payload)==null?void 0:o.username)!=null?s:(a=Q().userInfos)==null?void 0:a.username;const y={login:l.login,logout:l.logout};y[e.eventName]&&(e.eventName=="login"&&!e.payload.if_success||y[e.eventName](`${n}agent_${(u=e==null?void 0:e.payload)==null?void 0:u.userIdx}`)),new Set([M.Register,M.FirstRecharge,M.Recharge]).has(e.eventName)&&(e.payload={...e.payload,uploadPlatform:e.uploadPlatforms}),l.quick("isReady",function(){l.track(e.eventName,{...e.payload})}),l.quick("isReady",function(){A.length>0&&A.forEach(b=>{l.track(b.eventName,{...b.payload})}),A.length=0})}catch(l){me.uploadCache(e)}}static uploadCache(e){A.push(e)}}export{me as ReporterSensorsImp,me 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.