PageSourceSearch

https://myaccount.sbs.com.au/assets/8910a0c/index-LdT6ucNh.js

js sbs.com.au collected 2026-10-01 08:35:14 UTC 5,834 bytes, 1 lines download raw bytes

1import{E as F,l as n,i as S,G as B,H as D,f as p,I as m,J as A,K as v,M as O,w as d,s as b,n as E,N as x,P as k}from"./root-BiwJlakV.js";import{a as R,b as w}from"./nav-timing-CHjjxeJZ.js";import{A as K,s as j,g as C}from"./aggregate-base-Cz6n0qPK.js";import{V as P,a as q,f as L,b as _,c as I}from"./first-paint-Dx2giD_H.js";import{a as V}from"./traverse-eGeoT8Mx.js";import"./chunk-EPOLDU6W-Cy0pbNoL.js";import"./jsx-runtime-u17CrQMm.js";import"./index-DtBkVZC2.js";import"./index-hDuMSH-s.js";import"./mutation-BhTIUPuz.js";import"./QueryClientProvider-CC4TKqza.js";import"./main-DgKiPsY3.js";import"./status-announcer-provider-twgJHQuP.js";import"./i18nInstance-CHFDjdcJ.js";import"./constant-Xkv3-n4F.js";import"./Info.es-DNkcPahO.js";import"./data-layer-ChCkY7-u.js";import"./sbs-login-instance-BSFpe7xw.js";import"./user-provider-NaoA7uDd.js";import"./preload-helper-BXl3LOEh.js";import"./helpers-Dqt3x3rr.js";function H(a){const e=[],t=F();try{Object.keys(t.initializedAgents[a].features).forEach(r=>{switch(r){case n.ajax:e.push("xhr");break;case n.jserrors:e.push("err");break;case n.genericEvents:e.push("ins");break;case n.sessionTrace:e.push("stn");break;case n.softNav:case n.spa:e.push("spa");break}})}catch{}return e}const u=new P(q.TIME_TO_FIRST_BYTE);if(S&&B()&&!D&&window===window.parent)L(({value:a,attribution:e})=>{u.isValid||u.update({value:a,attrs:{navigationEntry:e.navigationEntry}})});else if(!u.isValid){const a={};for(let e in p?.performance?.timing||{})a[e]=Math.max(p?.performance?.timing[e]-m,0);u.update({value:a.responseStart,attrs:{navigationEntry:a}})}class U{#i;#t;#e;#r=!1;constructor(e){this.#i=e,this.processStoredDiff(),A(performance.now,Date.now)}get ready(){return this.#r}get correctedOriginTime(){return this.#t}get localTimeDiff(){return this.#e}processRumRequest(e,t,r,i){if(this.processStoredDiff(),this.#r)return;if(!i)throw new Error("nrServerTime not found");const f=(r-t)/2,s=t+f;if(this.#t=Math.floor(i-s),this.#e=m-this.#t,isNaN(this.#t))throw new Error("Failed to correct browser time to server time");this.#i?.write({serverTimeDiff:this.#e}),this.#r=!0}convertRelativeTimestamp(e){return m+e}convertAbsoluteTimestamp(e){return e-m}correctAbsoluteTimestamp(e){return e-this.#e}correctRelativeTimestamp(e){return this.correctAbsoluteTimestamp(this.convertRelativeTimestamp(e))}processStoredDiff(){if(this.#r)return;const e=this.#i?.read()?.serverTimeDiff;typeof e=="number"&&!isNaN(e)&&(this.#e=e,this.#t=m-this.#e,this.#r=!0)}}class ue extends K{static featureName=v;constructor(e){if(super(e,v),this.sentRum=!1,this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,this.retries=0,!O(e.info))return this.ee.abort(),d(43);e.runtime.timeKeeper=new U(e.runtime.session),S?(u.subscribe(({value:t,attrs:r})=>{const i=r.navigationEntry;this.timeToFirstByte=Math.max(t,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent)}),setTimeout(this.sendRum.bind(this),0)):this.sendRum()}sendRum(e=this.agentRef.info.jsAttributes){const t=this.agentRef.info,r={};t.queueTime&&(r.qt=t.queueTime),t.applicationTime&&(r.ap=t.applicationTime),r.be=this.timeToFirstByte,r.fe=this.firstByteToWindowLoad,r.dc=this.firstByteToDomContent;const i={tt:t.ttGuid,us:t.user,ac:t.account,pr:t.product,af:H(this.agentIdentifier).join(","),...r,xx:t.extra,ua:t.userAttributes,at:t.atts};this.agentRef.runtime.session&&(i.fsh=Number(this.agentRef.runtime.session.isNew));let f;if(typeof e=="object"&&Object.keys(e).length>0&&(f=V({ja:e},this.obfuscator.obfuscateString.bind(this.obfuscator),"string")),p.performance){if(B()){const s=p?.performance?.getEntriesByType("navigation")?.[0],c={timing:w(m,s,{}),navigation:R(s,{})};i.perf=b(c)}else if(typeof PerformanceTiming<"u"){const s={timing:w(m,p.performance.timing,{},!0),navigation:R(p.performance.navigation,{})};i.perf=b(s)}}i.fp=_.current.value,i.fcp=I.current.value,this.queryStringsBuilder=()=>{this.rumStartTime=E();const s=this.agentRef.runtime.timeKeeper;return s?.ready&&(i.timestamp=Math.floor(s.correctRelativeTimestamp(this.rumStartTime))),i},this.events.add(f),this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}).ranSend&&(this.sentRum=!0)}serializer(e){return e[0]}postHarvestCleanup({sent:e,status:t,responseText:r,xhr:i,retry:f}){const s=E();let c,T;try{({app:c,...T}=JSON.parse(r))}catch(o){d(53,o)}if(super.postHarvestCleanup({sent:e,retry:f}),this.isRetrying&&this.retries++<1){setTimeout(()=>this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}),5e3);return}if(t>=400||t===0){d(18,t),this.blocked=!0;const o=new TextEncoder,h=Object.values(newrelic.ee.backlog).reduce((l,y)=>{if(!y)return l;const N=o.encode(y);return l+N.byteLength},0),g="BCS/Error/",M={sm:[{params:{name:g+t},stats:{c:1}},{params:{name:g+"Dropped/Bytes"},stats:{c:1,t:h}},{params:{name:g+"Duration/Ms"},stats:{c:1,t:s-this.rumStartTime}}]};j(this.agentRef,{endpoint:k[n.metrics],payload:{body:M},submitMethod:C(),featureName:n.metrics}),this.ee.abort();return}try{const o=this.agentRef.runtime.timeKeeper.ready;if(this.agentRef.runtime.timeKeeper.processRumRequest(i,this.rumStartTime,s,c.nrServerTime),!this.agentRef.runtime.timeKeeper.ready)throw new Error("TimeKeeper not ready");const h=this.agentRef.runtime.timeKeeper.correctedOriginTime-c.nrServerTime;o&&h>0&&this.reportSupportabilityMetric("Generic/TimeKeeper/InvalidTimestamp/Seen",h)}catch(o){this.ee.abort(),this.blocked=!0,d(17,o);return}Object.keys(this.agentRef.runtime.appMetadata).length||(this.agentRef.runtime.appMetadata=c),this.drain(),this.agentRef.runtime.harvester.startTimer(),x(T,this.agentRef)}}
1export{ue as Aggregate};

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.