PageSourceSearch

https://www.governor.vic.gov.au/_nuxt/Bdco6NRK.js

js governor.vic.gov.au collected 2026-09-24 23:19:38 UTC 8,132 bytes, 1 lines download raw bytes

1import{bu as T}from"./K8mPX5Ll.js";import{$ as E,U as F,c as f,V as r,aE as A,ay as b,X as v,k as C,z as O,aA as I,w as g,n as L,a0 as U,b3 as N,b4 as k}from"./Cd_nNH93.js";import{d as M,e as n,T as h,f as w,R,Q as z}from"./Cc8XaAEn.js";import{A as P}from"./DSGWNljW.js";import{o as B}from"./CCOG6wUv.js";import{s as D}from"./BueGSKLZ.js";import{O as V}from"./fQJp7kNU.js";import"./BguSgUCX.js";import"./DpWrbLnI.js";import"./Wo4AIfge.js";let _;const G=new Promise(S=>{_=S}),H=Object.freeze({onReplayReady:_,sessionReplayInitialized:G});class $ extends P{static featureName=M;mode=null;constructor(e,t){super(e,M),this.obfuscator=new V(e,E.SR),this.initialized=!1,this.blocked=!1,this.gzipper=void 0,this.u8=void 0,this.shouldCompress=!0,this.entitled=!1,this.timeKeeper=void 0,this.instrumentClass=t,this.recorder=this.instrumentClass?.recorder,this.harvestOpts.raw=!0,this.isSessionTrackingEnabled=F(e.init)&&!!e.runtime.session,this.reportSupportabilityMetric("Config/SessionReplay/Enabled"),this.ee.on(f.RESET,()=>{this.abort(n.RESET)}),this.ee.on(f.PAUSE,()=>{this.recorder?.stopRecording()}),this.ee.on(f.RESUME,()=>{this.recorder&&(this.mode=e.runtime.session.state.sessionReplayMode,!(!this.initialized||this.mode===r.OFF||!this.mode)&&this.recorder?.startRecording(h.RESUME,this.mode))}),this.ee.on(f.UPDATE,(o,a)=>{!this.recorder||!this.initialized||this.blocked||o!==A.CROSS_TAB||(this.mode!==r.OFF&&a.sessionReplayMode===r.OFF&&this.abort(n.CROSS_TAB),this.mode=a.sessionReplayMode)}),b(v,()=>{this.forceStop(this.mode===r.FULL)},this.featureName,this.ee),b(w,o=>{this.handleError(o)},this.featureName,this.ee);const{error_sampling_rate:i,sampling_rate:s,autoStart:l,block_selector:d,mask_text_selector:p,mask_all_inputs:m,inline_images:u,collect_fonts:c}=e.init.session_replay;this.waitForFlags(["srs","sr"]).then(([o,a])=>{if(this.entitled=!!a,!this.entitled){this.mode=r.OFF,this.#e({sessionReplayMode:this.mode}),this.deregisterDrain(),this.agentRef.runtime.isRecording&&(this.abort(n.ENTITLEMENTS),this.reportSupportabilityMetric("SessionReplay/EnabledNotEntitled/Detected"));return}this.initializeRecording(o).then(()=>{this.drain()})}).then(()=>{if(!this.mode)for(this.recorder?.stopRecording();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.();H.onReplayReady(this.mode)}),l||this.reportSupportabilityMetric("Config/SessionReplay/AutoStart/Modified"),c===!0&&this.reportSupportabilityMetric("Config/SessionReplay/CollectFonts/Modified"),u===!0&&this.reportSupportabilityMetric("Config/SessionReplay/InlineImages/Modifed"),m!==!0&&this.reportSupportabilityMetric("Config/SessionReplay/MaskAllInputs/Modified"),d!=="[data-nr-block]"&&this.reportSupportabilityMetric("Config/SessionReplay/BlockSelector/Modified"),p!=="*"&&this.reportSupportabilityMetric("Config/SessionReplay/MaskTextSelector/Modified"),this.reportSupportabilityMetric("Config/SessionReplay/SamplingRate/Value",s),this.reportSupportabilityMetric("Config/SessionReplay/ErrorSamplingRate/Value",i)}replayIsActive(){return!!(this.recorder&&this.mode===r.FULL&&!this.blocked&&this.entitled)}handleError(e){this.recorder&&(this.recorder.events.hasError=!0),this.mode===r.ERROR&&C?.document.visibilityState==="visible"&&this.switchToFull()}switchToFull(){!this.entitled||this.blocked||(this.mode=r.FULL,this.recorder&&this.initialized?(this.agentRef.runtime.isRecording||this.recorder.startRecording(h.SWITCH_TO_FULL,this.mode),this.#e({sessionReplayMode:this.mode})):this.initializeRecording(r.FULL,!0,h.SWITCH_TO_FULL))}async initializeRecording(e,t,i=h.INITIALIZE){if(this.initialized=!0,!this.entitled)return;const{session:s,timeKeeper:l}=this.agentRef.runtime;if(this.timeKeeper=l,this.recorder?.trigger===h.API&&this.agentRef.runtime.isRecording?this.mode=r.FULL:s.state.sessionReplayMode!==null&&!t?this.mode=s.state.sessionReplayMode:this.mode=e,this.mode!==r.OFF){try{this.recorder??=await this.instrumentClass.importRecorder()}catch(d){return this.abort(n.IMPORT,d)}this.mode===r.ERROR&&this.instrumentClass.errorNoticed&&(this.mode=r.FULL),await this.prepUtils(),this.agentRef.runtime.isRecording||this.recorder.startRecording(i,this.mode)}this.#e({sessionReplayMode:this.mode})}async prepUtils(){try{const{gzipSync:e,strToU8:t}=await T(async()=>{const{gzipSync:i,strToU8:s}=await import("./CXh1ITwj.js");return{gzipSync:i,strToU8:s}},[],import.meta.url);this.gzipper=e,this.u8=t}catch{this.shouldCompress=!1}}makeHarvestPayload(){if(this.isRetrying)return this.recorder.retryPayload;if(this.mode!==r.FULL||this.blocked||this.shouldCompress&&!this.gzipper||!this.recorder||!this.timeKeeper?.ready||!(this.recorder.hasSeenSnapshot&&this.recorder.hasSeenMeta))return;const e=this.recorder.getEvents();if(!e.events.length)return;const t=this.getHarvestContents(e);if(!t.body.length){this.recorder.clearBuffer();return}this.reportSupportabilityMetric("SessionReplay/Harvest/Attempts");let i=0;if(this.gzipper&&this.u8)t.body=this.gzipper(this.u8("[".concat(t.body.map(({__serialized:s})=>s).join(","),"]"))),i=t.body.length;else{for(let s in t.body)delete t.body[s].__serialized;i=O(t.body).length}if(i>I){this.abort(n.TOO_BIG,i);return}return this.agentRef.runtime.session.state.sessionReplaySentFirstChunk||this.#e({sessionReplaySentFirstChunk:!0}),this.recorder.clearBuffer(),this.agentRef.runtime.session.state.traceHarvestStarted||g(59,JSON.stringify(this.agentRef.runtime.session.state)),this.recorder.retryPayload=t,t}getFirstAndLastNodes(e=[]){const t={firstEvent:e[0],lastEvent:e[e.length-1]};return e.forEach(i=>
1{const s=i?.timestamp;(!t.firstEvent?.timestamp||(s||1/0)<t.firstEvent.timestamp)&&(t.firstEvent=i),(!t.lastEvent?.timestamp||(s||-1/0)>t.lastEvent.timestamp)&&(t.lastEvent=i)}),t}getHarvestContents(e){e??=this.recorder.getEvents();let t=e.events;const i=this.agentRef.runtime,s=this.agentRef.info.jsAttributes?.["enduser.id"];t?.[0]?.type===R.FullSnapshot&&this.recorder.lastMeta&&(e.hasMeta=!0,t.unshift(this.recorder.lastMeta),this.recorder.lastMeta=void 0),t[t.length-1]?.type===R.Meta&&(this.recorder.lastMeta=t[t.length-1],t=t.slice(0,t.length-1),e.hasMeta=!!t.find(y=>y.type===R.Meta));const p=L(),{firstEvent:m,lastEvent:u}=this.getFirstAndLastNodes(t),c=m?.timestamp||Math.floor(this.timeKeeper.correctAbsoluteTimestamp(e.cycleTimestamp)),o=u?.timestamp||Math.floor(this.timeKeeper.correctRelativeTimestamp(p)),a=i.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:this.agentRef.info.licenseKey,type:E.SR,app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:c,attributes:B({...!!this.gzipper&&!!this.u8&&{content_encoding:"gzip"},...a.entityGuid&&{entityGuid:a.entityGuid},harvestId:[i.session?.state.value,i.ptid,i.harvestCount].filter(y=>y).join("_"),"replay.firstTimestamp":c,"replay.lastTimestamp":o,"replay.nodes":t.length,"session.durationMs":i.session.getDuration(),agentVersion:i.version,session:i.session.state.value,rst:p,hasMeta:e.hasMeta||!1,hasSnapshot:e.hasSnapshot||!1,hasError:e.hasError||!1,isFirstChunk:i.session.state.sessionReplaySentFirstChunk===!1,decompressedBytes:e.payloadBytesEstimation,invalidStylesheetsDetected:D.invalidStylesheetsDetected,inlinedAllStylesheets:e.inlinedAllStylesheets,"rrweb.version":N+"@"+k,"payload.type":e.type,...s&&{"enduser.id":this.obfuscator.obfuscateString(s)},currentUrl:this.obfuscator.obfuscateString(U(""+location))},z).substring(1)},body:t}}postHarvestCleanup(e){e.sent&&(e.retry?(g(70),this.isRetrying=!0,this.forceStop()):(this.recorder.retryPayload=void 0,this.isRetrying&&(this.isRetrying=!1,this.switchToFull())))}forceStop(e){e&&this.agentRef.runtime.harvester.triggerHarvestFor(this),this.mode=r.OFF,this.recorder?.stopRecording?.(),this.#e({sessionReplayMode:this.mode})}abort(e={},t){for(g(33,e.message),this.reportSupportabilityMetric("SessionReplay/Abort/".concat(e.sm),t),this.blocked=!0,this.mode=r.OFF,this.recorder?.stopRecording?.(),this.#e({sessionReplayMode:this.mode}),this.recorder?.clearTimestamps?.();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.()}#e(e={}){this.isSessionTrackingEnabled&&this.agentRef.runtime.session.write(e)}}export{$ 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.