1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[397],{3397:(t,e,n)=>{n.r(e),n.d(e,{NetworkObservers:()=>h});var r=n(1450),o=n(7449),s=n(1602),i=function(t){return void 0!==t&&("boolean"==typeof t?t:!1!==t.enabled)},a=function(t){var e;return"object"==typeof t&&null!==t?{allowlist:null!=(e=t.allowlist)?e:[],excludelist:t.excludelist||t.blocklist||[]}:{allowlist:[],excludelist:[]}},u=function(t,e,n){if(0===e.length&&0===n.length)return t;var r=e.length>0?e:["/**"];try{var o=JSON.parse(t);return(0,s.D7)(o,r,n),JSON.stringify(o)}catch(e){return t}},l=function(t,e,n,r){var o=a(e);return r(u(t,o.allowlist,o.excludelist),n)},c=["image/","audio/","video/","application/octet-stream","font/"];function f(t,e){if(new Blob([t]).size<=e)return{value:t,truncated:!1};for(var n=0,r=Math.min(t.length,e);n<r;){var o=Math.ceil((n+r)/2);new Blob([t.slice(0,o)]).size<=e?n=o:r=o-1}return n>0&&t.charCodeAt(n-1)>=55296&&56319>=t.charCodeAt(n-1)&&(n-=1),{value:t.slice(0,n),truncated:!0}}var h=function(){function t(){this.fetchObserver=null}return t.prototype.start=function(t,e){this.eventCallback=t,this.networkConfig=e,this.observeFetch()},t.prototype.stop=function(){var t;null==(t=this.fetchObserver)||t.call(this),this.fetchObserver=null,this.eventCallback=void 0,this.networkConfig=void 0},t.prototype.notifyEvent=function(t){var e;null==(e=this.eventCallback)||e.call(this,t)},t.prototype.observeFetch=function(){var t=this,e=(0,o.m)();if(e){var n=e.fetch;n&&(e.fetch=function(e,o){return(0,r.sH)(t,void 0,void 0,function(){var t,s,a,u,h,v,d,p,y,b,w,m,g=this;return(0,r.YH)(this,function(r){switch(r.label){case 0:s={timestamp:t=Date.now(),type:"fetch",method:(null==o?void 0:o.method)||"GET",url:e.toString(),requestHeaders:null==o?void 0:o.headers},(a=null==(w=this.networkConfig)?void 0:w.body)&&i(a.request)&&void 0!==(u=function(t){if(null!=t){if("string"==typeof t)return t;if(t instanceof URLSearchParams)return t.toString();if(t instanceof FormData){var e=[];return t.forEach(function(t,n){e.push("".concat(n,"=").concat("string"==typeof t?t:"[File]"))}),e.join("&")}}}(null==o?void 0:o.body))&&(h=null!=(m=a.maxBodySizeBytes)?m:10240,s.requestBody=l(u,a.request,h,f).value),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n(e,o)];case 2:if(v=r.sent(),d=Date.now(),s.status=v.status,s.duration=d-t,p={},v.headers.forEach(function(t,e){p[e]=t}),s.responseHeaders=p,a&&i(a.response)){var k;(k=p["content-type"]||null)&&c.some(function(t){return k.toLowerCase().startsWith(t)})?(s.responseBodyStatus="skipped_binary",this.notifyEvent(s)):v.clone().text().then(function(t){var e,n=null!=(e=a.maxBodySizeBytes)?e:10240,r=l(t,a.response,n,f),o=r.value,i=r.truncated;s.responseBody=o,s.responseBodyStatus=i?"truncated":"captured",g.notifyEvent(s)},function(){s.responseBodyStatus="error",g.notifyEvent(s)})}else this.notifyEvent(s);return[2,v];case 3:throw y=r.sent(),d=Date.now(),s.duration=d-t,b=y,s.error={name:b.name||"UnknownError",message:b.message||"An unknown error occurred"},this.notifyEvent(s),y;case 4:return[2]}})})},this.fetchObserver=function(){e.fetch=n})}},t}()}}]);
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.