1(function(){"use strict";function k(){var e,t;if(typeof window=="undefined")return!1;try{return(e=window.__APM_CONFIG__)!=null&&e.debug?!0:localStorage.getItem("apm_ws_debug")==="1"}catch(n){return!!((t=window.__APM_CONFIG__)!=null&&t.debug)}}function p(e,t){k()&&(t!==void 0?console.log("[APM-WS]",e,t):console.log("[APM-WS]",e))}function te(e,t){typeof window!="undefined"&&(window.__APM_WS_PATCH_META__={patchedAt:Date.now(),nativeRef:e,wrapperRef:t})}function ne(){if(typeof window=="undefined")return;const e=window;e.__APM_WS_DEBUG_SNAPSHOT__=()=>{const t=e.__APM_WS_PATCH_META__,n=window.WebSocket,o=e;return{debugEnabled:k(),hasNativeRef:!!o.__APM_NATIVE_WEBSOCKET__,patchMeta:t?{patchedAt:t.patchedAt,wrapperStillActive:n===t.wrapperRef,nativeStillNative:t.nativeRef!==n}:null,queueLength:Array.isArray(e.__APM_QUEUE__)?e.__APM_QUEUE__.length:null,mainLoaded:!!e.__APM__,currentWebSocketType:typeof n}}}const re=200;function oe(){typeof window!="undefined"&&(window.__APM_QUEUE__||(window.__APM_QUEUE__=[]))}function v(e){if(typeof window=="undefined"||!window.__APM_QUEUE__)return;const t=window.__APM_QUEUE__;if(t.length>=re&&t.shift(),t.push(e),e.type==="ws"){const n=e.data;p("queue.push",{eventName:n==null?void 0:n.eventName,url:n==null?void 0:n.url,queueLength:t.length})}}const ae=Object.freeze(["*.lbk.world","*.lbktech.com","*.rerrkvifj.com"]),_={HTTP_NOT_FOUND:"http_not_found",HTTP_CLIENT_ERROR:"http_client_error",HTTP_SERVER_ERROR:"http_server_error",DECODE_ERROR:"decode_error",NETWORK_ERROR:"network_error",STATUS_UNKNOWN:"status_unknown"},L="lbk_device_id",ie="apm_device_id";function se(){if(typeof localStorage=="undefined")return null;try{const e=localStorage.getItem(L);if(e)return e;const t=localStorage.getItem(ie);if(t){try{localStorage.setItem(L,t)}catch(n){}return t}}catch(e){}return null}function C(e){const t=e.match(/^\/(.+)\/([gimsuy]*)$/);if(t)try{return new RegExp(t[1],t[2])}catch(n){return e}return e}function ce(e){return typeof e=="string"?C(e):e}function de(e,t){const n=ce(t);return n instanceof RegExp?n.test(e):e.includes(n)}function ue(e,t){return t!=null&&t.length?t.some(n=>de(e,n)):!1}function le(e){return e instanceof HTMLImageElement?e.currentSrc||e.src||"":e instanceof HTMLLinkElement?e.href||"":e instanceof HTMLScriptElement&&e.src||""}function fe(e){if(!e||typeof performance=="undefined"||typeof performance.getEntriesByName!="function")return{failureReason:_.NETWORK_ERROR};const t=performance.getEntriesByName(e),n=t[t.length-1];if(!n)return{failureReason:_.NETWORK_ERROR};const o=n.responseStatus,r=n.initiatorType||void 0,a=n.duration>0?Math.round(n.duration*100)/100:void 0,i={failureReason:pe(o,n)};return o&&o>0&&(i.statusCode=o),r&&(i.resourceType=r),a!==void 0&&(i.duration=a),i}function pe(e,t){return e===404?_.HTTP_NOT_FOUND:e&&e>=500?_.HTTP_SERVER_ERROR:e&&e>=400?_.HTTP_CLIENT_ERROR:e&&e>=200&&e<400?_.DECODE_ERROR:e===0?t.transferSize===0&&t.decodedBodySize===0?_.NETWORK_ERROR:_.STATUS_UNKNOWN:_.NETWORK_ERROR}var me=Object.defineProperty,D=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,W=(e,t,n)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))we.call(t,n)&&W(e,n,t[n]);if(D)for(var n of D(t))_e.call(t,n)&&W(e,n,t[n]);return e};function U(e){const t=e==null?void 0:e.__sentryEventId__;return typeof t=="string"&&t?t:void 0}function ye(){typeof window!="undefined"&&(window.onerror=function(e,t,n,o,r){const a=Date.now(),i=U(r),u={type:"error",timestamp:a,data:N({message:e,filename:t,lineno:n,colno:o,error:r},i?{sentryId:i}:{})};return v(u),!1},window.addEventListener("unhandledrejection",e=>{const t=e,n=Date.now(),o=U(t.reason),r={type:"error",timestamp:n,data:N({reason:t.reason,type:"unhandledrejection"},o?{sentryId:o}:{})};v(r)}),window.addEventListener("error",e=>{var t;if(e instanceof ErrorEvent)return;const n=e.target;if(n&&n instanceof HTMLElement){const o=Date.now(),r=((t=n.tagName)==null?void 0:t.toUpperCase())||"",a=le(n);setTimeout(()=>{const i=fe(a),u={type:"error",timestamp:o,data:N({tag:r,src:a,eventType:"resource"},i)};v(u)},0)}},!0))}
1const he=Promise.reject.bind(Promise);function ge(){typeof window!="undefined"&&(Promise.reject=function(e){if(e!=null&&typeof e=="object"&&!(e instanceof Error))try{const t=new Error().stack;Object.defineProperty(e,"__apm_stack__",{value:t,enumerable:!1,writable:!1,configurable:!0})}catch(t){}return he(e)})}var ve=Object.defineProperty,j=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))Ee.call(t,n)&&$(e,n,t[n]);if(j)for(var n of j(t))Te.call(t,n)&&$(e,n,t[n]);return e};function Se(e){if(typeof window=="undefined")return e;try{return new URL(e,window.location.href).href}catch(t){return e}}function y(e){if(!(e<=0)&&!(typeof performance=="undefined"||performance.timeOrigin===void 0))return Math.round(performance.timeOrigin+e)}function be(e){return Math.round(e*100)/100}function E(e,t){if(!(e<=0||t<=0||e<t))return be(e-t)}function Oe(e,t){if(typeof performance=="undefined"||typeof performance.getEntriesByName!="function")return;const n=Se(e),o=performance.getEntriesByName(n,"resource"),r=o.length>0?o:performance.getEntriesByName(n);if(r.length===0)return;const a=r.filter(i=>i.fetchStart>=t-1);return a.length>0?a[a.length-1]:r[r.length-1]}function Re(e){const{connectStart:t,connectEnd:n,secureConnectionStart:o}=e;if(t<=0||n<=0||n<t)return{};if(o>0&&o>=t){const a=E(o,t),i=E(n,o);return q(q({},a!==void 0?{connectCost:a}:{}),i!==void 0?{sslCost:i}:{})}const r=E(n,t);return r!==void 0?{connectCost:r}:{}}function B(e,t){const n=Oe(e,t);if(!n)return;const o={};n.nextHopProtocol&&(o.protocol=n.nextHopProtocol);const r=y(n.domainLookupStart),a=y(n.domainLookupEnd);r!==void 0&&(o.dnsStart=r),a!==void 0&&(o.dnsEnd=a);const i=E(n.domainLookupEnd,n.domainLookupStart);i!==void 0&&(o.dnsCost=i);const u=y(n.connectStart),f=y(n.connectEnd);u!==void 0&&(o.connectStart=u),f!==void 0&&(o.connectEnd=f),Object.assign(o,Re(n));const m=n.secureConnectionStart>0?y(n.secureConnectionStart):void 0;m!==void 0&&(o.sslStart=m);const c=y(n.responseStart),h=y(n.responseEnd);c!==void 0&&(o.responseStart=c),h!==void 0&&(o.responseEnd=h);const g=E(n.responseEnd,n.responseStart);g!==void 0&&(o.responseCost=g);const s=E(n.responseStart,n.requestStart);return s!==void 0&&(o.ttfb=s),n.transferSize>0?o.responseSize=n.transferSize:n.encodedBodySize>0&&(o.responseSize=n.encodedBodySize),Object.keys(o).length>0?o:void 0}function Ne(e,t,n){const o=B(e,t);if(o){n(o);return}setTimeout(()=>{n(B(e,t))},0)}let O=0;function Pe(){return se()||"unknown"}function x(){if(typeof BigInt=="undefined")return"";O=(O+1)%1e4;const e=Pe(),t=Math.floor(Math.random()*90)+10,n=(BigInt(Date.now())*BigInt(1e4)+BigInt(O)).toString();return`traceId:${e}.${t}.${n},spanId:${O},osType:web`}function P(e,t){if(!t||t.length===0)return!1;if(t.includes("*"))return!0;let n,o;try{const r=new URL(e,window.location.origin);n=r.href,o=r.host}catch(r){n=e,o=""}return t.some(r=>{if(!r)return!1;if(/^https?:\/\//i.test(r))return n.startsWith(r);if(!o)return!1;if(r.startsWith("*.")){const a=r.slice(2);return a?o===a||o.endsWith("."+a):!1}return o===r||o.endsWith("."+r)})}var Ie=Object.defineProperty,He=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,G=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))Me.call(t,n)&&G(e,n,t[n]);if(K)for(var n of K(t))ke.call(t,n)&&G(e,n,t[n]);return e},Le=(e,t)=>He(e,Ae(t));function F(e){const t=typeof window!="undefined"?window.__APM_CONFIG__:void 0,n=t!=null?t:e,o=Array.isArray(n.traceHosts)?n.traceHosts:[...ae];return{enableTrace:n.enableTrace!==!1,traceHeaderName:n.traceHeaderName||"sw8-correlationvalue",backendTraceHeaderName:n.backendTraceHeaderName||"backendtraceid",traceHosts:o}}const H=typeof window!="undefined"?window.fetch:null,Ce=typeof window!="undefined"&&window.XMLHttpRequest?window.XMLHttpRequest.prototype.open:null,De=typeof window!="undefined"&&window.XMLHttpRequest?window.XMLHttpRequest.prototype.send:null,A=new WeakMap;function V(){if(!(typeof performance=="undefined"||typeof performance.now!="function"))return performance.now()}function T(e,t,n){const o=a=>{const i={type:"http",timestamp:a.timestamp,data:a};v(i)},r=typeof e.url=="string"?e.url:"";if(t!==void 0&&r){Ne(r,t,a=>{o(a?I(I({},e),a):e)});return}o(e)}function We(e){var t,n;const o=typeof window!="undefined"?window.__APM_CONFIG__:void 0,r=o!=null?o:e,a=((t=r.ignoreErrors)!=null?t:[]).map(i=>typeof i=="string"?C(i):i);
1return{reportUrl:r.reportUrl,ignoreUrls:(n=r.ignoreUrls)!=null?n:[],ignoreErrors:a}}function Ue(e,t){const{reportUrl:n,ignoreUrls:o,ignoreErrors:r}=We(t);if(e.startsWith(n))return!0;for(const a of o)if(e.includes(a))return!0;return ue(e,r)}function je(e){typeof window=="undefined"||!H||(window.fetch=function(t,n){const o=typeof t=="string"?t:t instanceof URL?t.toString():t.url,{enableTrace:r,traceHeaderName:a,backendTraceHeaderName:i,traceHosts:u}=F(e);let f,m=[t,n];if(r&&P(o,u)){const s=t instanceof Request?new Headers(t.headers):new Headers(n==null?void 0:n.headers),w=s.get(a);w?f=w:(f=x(),f&&(s.set(a,f),typeof t=="string"||t instanceof URL?m=[t,Le(I({},n),{headers:s})]:m=[new Request(t,{headers:s}),void 0]))}if(Ue(o,e))return H.call(window,...m);const c=Date.now(),h=V(),g=((n==null?void 0:n.method)||"GET").toUpperCase();return H.call(window,...m).then(s=>{const w=Date.now(),d=Date.now(),l=s.clone();let S;if(r&&P(o,u))try{S=s.headers.get(i)||void 0}catch(M){}return T({url:o,method:g,status:s.status,statusText:s.statusText,startTime:c,endTime:w,duration:w-c,response:l,headers:s.headers,ok:s.ok,traceId:f,backendTraceId:S,timestamp:d},h),s}).catch(s=>{const w=Date.now(),d=Date.now();throw T({url:o,method:g,startTime:c,endTime:w,duration:w-c,error:s,errorType:s.name||"fetch_error",traceId:f,timestamp:d},h),s})})}function $e(e){if(typeof window=="undefined"||!window.XMLHttpRequest)return;const t=window.XMLHttpRequest,n=t.prototype.setRequestHeader;t.prototype.setRequestHeader=function(o,r){const a=A.get(this);return a&&(a.headersSet||(a.headersSet=new Map),a.headersSet.set(o.toLowerCase(),r)),n.call(this,o,r)},t.prototype.open=function(o,r,a,i,u){const f=typeof r=="string"?r:r.toString();return A.set(this,{method:o.toUpperCase(),url:f,startTime:Date.now(),perfStart:V()}),Ce.call(this,o,r,a!=null?a:!0,i!=null?i:void 0,u!=null?u:void 0)},t.prototype.send=function(o){const r=A.get(this);if(r){const{enableTrace:a,traceHeaderName:i,backendTraceHeaderName:u,traceHosts:f}=F(e),m=a&&P(r.url,f);if(r.traceHostMatched=m,r.backendTraceHeaderName=u,m){const d=r.headersSet?r.headersSet.get(i.toLowerCase()):void 0;if(d)r.traceId=d;else{const l=x();if(l){r.traceId=l;try{n.call(this,i,l),r.headersSet&&r.headersSet.set(i.toLowerCase(),l)}catch(S){}}}}const c=this,h=()=>{const d=Date.now(),l=Date.now();let S;if(r.traceHostMatched)try{S=c.getResponseHeader(r.backendTraceHeaderName)||void 0}catch(b){}let M;try{const b=c.responseType;(b===""||b==="text")&&(M=c.responseText)}catch(b){}let ee;try{ee=c.getAllResponseHeaders()}catch(b){}T({url:r.url,method:r.method,status:c.status,statusText:c.statusText,startTime:r.startTime,endTime:d,duration:d-r.startTime,responseText:M,responseHeaders:ee,ok:c.status>=200&&c.status<300,traceId:r.traceId,backendTraceId:S,initiatorType:"xmlhttprequest",timestamp:l},r.perfStart),r.originalOnload&&r.originalOnload.call(c)},g=()=>{const d=Date.now(),l=Date.now();T({url:r.url,method:r.method,startTime:r.startTime,endTime:d,duration:d-r.startTime,error:"networkError",traceId:r.traceId,initiatorType:"xmlhttprequest",timestamp:l},r.perfStart),r.originalOnerror&&r.originalOnerror.call(c)},s=()=>{const d=Date.now(),l=Date.now();T({url:r.url,method:r.method,startTime:r.startTime,endTime:d,duration:d-r.startTime,error:"timeoutError",traceId:r.traceId,initiatorType:"xmlhttprequest",timestamp:l},r.perfStart),r.originalOntimeout&&r.originalOntimeout.call(c)},w=()=>{const d=Date.now(),l=Date.now();T({url:r.url,method:r.method,startTime:r.startTime,endTime:d,duration:d-r.startTime,error:"cancelError",traceId:r.traceId,initiatorType:"xmlhttprequest",timestamp:l},r.perfStart),r.originalOnabort&&r.originalOnabort.call(c)};r.originalOnload=this.onload,r.originalOnerror=this.onerror,r.originalOntimeout=this.ontimeout,r.originalOnabort=this.onabort,this.onload=h,this.onerror=g,this.ontimeout=s,this.onabort=w}return De.call(this,o)}}function z(){if(typeof window=="undefined")return null;const e=window;return e.__APM_NATIVE_WEBSOCKET__||(e.__APM_NATIVE_WEBSOCKET__=window.WebSocket),e.__APM_NATIVE_WEBSOCKET__}const Q=typeof window!="undefined"?z():null;let X=null;function R(e){var t,n;const o=(t=e.data)==null?void 0:t.eventName,r=(n=e.data)==null?void 0:n.url;p("emitWS",{eventName:o,url:r,viaOverride:!1}),v(e)}function qe(e,t,n){e.addEventListener("open",function(o){p("WebSocket event: open",{url:t}
1),R({type:"ws",timestamp:Date.now(),data:{url:t,ws:e,eventName:"open",event:o,connectStartTime:n}})}),e.addEventListener("close",function(o){const r=o;p("WebSocket event: close",{url:t,code:r.code}),R({type:"ws",timestamp:Date.now(),data:{url:t,ws:e,eventName:"close",event:o,connectStartTime:n,code:r.code}})}),e.addEventListener("error",function(o){p("WebSocket event: error",{url:t}),R({type:"ws",timestamp:Date.now(),data:{url:t,ws:e,eventName:"error",event:o,connectStartTime:n}})}),e.addEventListener("message",function(o){R({type:"ws",timestamp:Date.now(),data:{url:t,ws:e,eventName:"message",event:o,connectStartTime:n}})})}function Be(){const e=Q!=null?Q:z();if(typeof window=="undefined"||!e){p("patchWebSocket skipped",{reason:"no window or native WebSocket"});return}const t=function(n,o){const r=new e(n,o),a=typeof n=="string"?n:n.toString(),i=Date.now();return p("WebSocket constructed",{url:a}),qe(r,a,i),r};t.CONNECTING=e.CONNECTING,t.OPEN=e.OPEN,t.CLOSING=e.CLOSING,t.CLOSED=e.CLOSED,t.prototype=e.prototype,X=t,window.WebSocket=t,te(e,t),p("patchWebSocket applied",{wrapperStillActive:window.WebSocket===X})}var xe=Object.defineProperty,Ke=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,J=(e,t,n)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t)=>{for(var n in t||(t={}))Fe.call(t,n)&&J(e,n,t[n]);if(Y)for(var n of Y(t))Ve.call(t,n)&&J(e,n,t[n]);return e},Qe=(e,t)=>Ke(e,Ge(t));function Xe(e){v(e)}function Ye(){typeof window=="undefined"||typeof window.addEventListener!="function"||(p("registerLbankWsListener"),window.addEventListener("lbank:ws-apm",e=>{const t=e.detail;if(!t||typeof t!="object")return;const n=t,o=typeof n.eventName=="string"?n.eventName:void 0,r=typeof n.url=="string"?n.url:"";o&&(o!=="open"&&o!=="close"&&o!=="error"&&o!=="message"||o==="message"&&n.kind!=="pong"||(Xe({type:"ws",timestamp:typeof n.ts=="number"?n.ts:Date.now(),data:Qe(ze({},n),{url:r,eventName:o})}),p("lbank:ws-apm \u2192 emitWS",{eventName:o,url:r})))}))}function Z(e){const t=e.mainUrl,n=document.createElement("script");"noModule"in HTMLScriptElement.prototype?(n.type="module",n.src=`${t}.mjs`):n.src=`${t}.umd.js`,n.onerror=()=>{e.debug&&console.warn("[APM] Failed to load main SDK")},document.head.appendChild(n)}function Je(){if(typeof window=="undefined")return;const e=window.__APM_CONFIG__;if(!e){typeof console!="undefined"&&console.warn&&console.warn("[APM] No config found in window.__APM_CONFIG__");return}oe(),ge(),je(e),$e(e),Be(),Ye(),ne(),p("core init complete",{hasConfig:!!e,mainUrl:e.mainUrl,hasNativeRef:!!window.__APM_NATIVE_WEBSOCKET__}),ye(),document.head?Z(e):document.addEventListener("DOMContentLoaded",()=>{Z(e)})}Je()})();
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.