PageSourceSearch

https://rac.com.au/common/_next/static/chunks/9390-c91a258c70d1a355.js

js rac.com.au collected 2026-09-24 20:15:11 UTC 151,816 bytes, 28 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9390],{5599:(e,t,r)=>{let n,i,s;r.d(t,{R:()=>ea});var o,a,l,u,c,h,d,p,f,m,_=r(51718),g=r(65070),v=r(25090),y=r(19867),b=r(46607),T=r(10938),S=r(41410);(o=h||(h={})).CONNECT_END="connectEnd",o.CONNECT_START="connectStart",o.DECODED_BODY_SIZE="decodedBodySize",o.DOM_COMPLETE="domComplete",o.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",o.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",o.DOM_INTERACTIVE="domInteractive",o.DOMAIN_LOOKUP_END="domainLookupEnd",o.DOMAIN_LOOKUP_START="domainLookupStart",o.ENCODED_BODY_SIZE="encodedBodySize",o.FETCH_START="fetchStart",o.LOAD_EVENT_END="loadEventEnd",o.LOAD_EVENT_START="loadEventStart",o.NAVIGATION_START="navigationStart",o.REDIRECT_END="redirectEnd",o.REDIRECT_START="redirectStart",o.REQUEST_START="requestStart",o.RESPONSE_END="responseEnd",o.RESPONSE_START="responseStart",o.SECURE_CONNECTION_START="secureConnectionStart",o.START_TIME="startTime",o.UNLOAD_EVENT_END="unloadEventEnd",o.UNLOAD_EVENT_START="unloadEventStart";var E=r(76340);function k(e,t){return"string"==typeof t?e===t:!!e.match(t)}function w(e,t){if(!t)return!1;for(let r of t)if(k(e,r))return!0;return!1}function C(e,t,r,n=!0){if(t in r&&"number"==typeof r[t]&&!(n&&0===r[t]))return e.addEvent(t,r[t])}function A(e,t,r=!1,n,i){if(void 0===n&&(n=0!==t[h.START_TIME]),r||(C(e,h.FETCH_START,t,n),C(e,h.DOMAIN_LOOKUP_START,t,n),C(e,h.DOMAIN_LOOKUP_END,t,n),C(e,h.CONNECT_START,t,n),C(e,h.SECURE_CONNECTION_START,t,n),C(e,h.CONNECT_END,t,n),C(e,h.REQUEST_START,t,n),C(e,h.RESPONSE_START,t,n),C(e,h.RESPONSE_END,t,n)),!i){let r=t[h.ENCODED_BODY_SIZE];void 0!==r&&e.setAttribute("http.response_content_length",r);let n=t[h.DECODED_BODY_SIZE];void 0!==n&&r!==n&&e.setAttribute("http.response_content_length_uncompressed",n)}}function O(){return"u">typeof location?location.origin:void 0}function L(e,t,r,n,i=new WeakSet,s){var o,a,l,u,c,d;let p,f,m,_=P(e),g=(o=e=_.toString(),a=t,l=r,u=n,c=i,d=s,p=(0,E.u5)(a),f=(0,E.u5)(l),(m=u.filter(e=>{let t=(0,E.u5)((0,E.KJ)(e[h.FETCH_START])),r=(0,E.u5)((0,E.KJ)(e[h.RESPONSE_END]));return e.initiatorType.toLowerCase()===(d||"xmlhttprequest")&&e.name===o&&t>=p&&r<=f})).length>0&&(m=m.filter(e=>!c.has(e))),m);if(0===g.length)return{mainRequest:void 0};if(1===g.length)return{mainRequest:g[0]};let v=g.slice().sort((e,t)=>{let r=e[h.FETCH_START],n=t[h.FETCH_START];return r>n?1:r<n?-1:0});if(_.origin===O()||!(v.length>1))return{mainRequest:g[0]};{let e=v[0],t=function(e,t,r){let n,i=(0,E.u5)(r),s=(0,E.u5)((0,E.KJ)(t)),o=e[1],a=e.length;for(let t=1;t<a;t++){let r=e[t],a=(0,E.u5)((0,E.KJ)(r[h.FETCH_START])),l=i-(0,E.u5)((0,E.KJ)(r[h.RESPONSE_END]));a>=s&&(!n||l<n)&&(n=l,o=r)}return o}(v,e[h.RESPONSE_END],r),n=e[h.RESPONSE_END];return t[h.FETCH_START]<n&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}}function P(e){if("function"==typeof URL)return new URL(e,"u">typeof document?document.baseURI:"u">typeof location?location.href:void 0);let t=(n||(n=document.createElement("a")),n);return t.href=e,t}function R(e,t){let r=t||[];return("string"==typeof r||r instanceof RegExp)&&(r=[r]),P(e).origin===O()||r.some(t=>k(e,t))}var x=r(63721);function N(e,t,r){let n,i;try{i=e()}catch(e){n=e}finally{if(t(n,i),n&&!r)throw n;return i}}var D=r(30972);(a=d||(d={})).DOCUMENT_LOAD="documentLoad",a.DOCUMENT_FETCH="documentFetch",a.RESOURCE_FETCH="resourceFetch",(l=p||(p={})).FIRST_PAINT="firstPaint",l.FIRST_CONTENTFUL_PAINT="firstContentfulPaint";let I={"first-paint":p.FIRST_PAINT,"first-contentful-paint":p.FIRST_CONTENTFUL_PAINT};class M extends x.O{component="document-load";version="1";moduleName=this.component;constructor(e={}){super("@opentelemetry/instrumentation-document-load","0.67.0",e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){let t=T.ug.getEntriesByType?.("resource");t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){let e=Array.from(document.getElementsByTagName("meta")).find(e=>e.getAttribute("name")===S.ZS),t=(()=>{let e={},t=T.ug.getEntriesByType?.("navigation")[0];
1if(t)Object.values(h).forEach(r=>{if(r in t){let n=t[r];"number"==typeof n&&(e[r]=n)}});else{let t=T.ug.timing;t&&Object.values(h).forEach(r=>{if(r in t){let n=t[r];"number"==typeof n&&(e[r]=n)}})}return e})(),r=e&&e.content||"";g._.with(v.$.extract(y.l,{traceparent:r}),()=>{let e=this._startSpan(d.DOCUMENT_LOAD,h.FETCH_START,t);if(e){let r;g._.with(b.u.setSpan(g._.active(),e),()=>{let e=this._startSpan(d.DOCUMENT_FETCH,h.FETCH_START,t);e&&(e.setAttribute(D.WQZ,location.href),g._.with(b.u.setSpan(g._.active(),e),()=>{A(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,h.RESPONSE_END,t)}))}),e.setAttribute(D.WQZ,location.href),e.setAttribute(D.MzX,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||(C(e,h.FETCH_START,t),C(e,h.UNLOAD_EVENT_START,t),C(e,h.UNLOAD_EVENT_END,t),C(e,h.DOM_INTERACTIVE,t),C(e,h.DOM_CONTENT_LOADED_EVENT_START,t),C(e,h.DOM_CONTENT_LOADED_EVENT_END,t),C(e,h.DOM_COMPLETE,t),C(e,h.LOAD_EVENT_START,t),C(e,h.LOAD_EVENT_END,t)),!this.getConfig().ignorePerformancePaintEvents&&(r=T.ug.getEntriesByType?.("paint"))&&r.forEach(({name:t,startTime:r})=>{t in I&&e.addEvent(I[t],r)}),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,h.LOAD_EVENT_END,t)}})}_endSpan(e,t,r){e&&(t in r?e.end(r[t]):e.end())}_initResourceSpan(e,t){let r=this._startSpan(d.RESOURCE_FETCH,h.FETCH_START,e,t);r&&(r.setAttribute(D.WQZ,e.name),A(r,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(r,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(r,h.RESPONSE_END,e))}_startSpan(e,t,r,n){if(t in r&&"number"==typeof r[t])return this.tracer.startSpan(e,{startTime:r[t]},n?b.u.setSpan(g._.active(),n):void 0)}_waitForPageLoad(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&N(()=>t(e),e=>{e&&this._diag.error("addCustomAttributesOnSpan",e)},!0)}_addCustomAttributesOnResourceSpan(e,t,r){r&&N(()=>r(e,t),e=>{e&&this._diag.error("addCustomAttributesOnResourceSpan",e)},!0)}enable(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener("load",this._onDocumentLoaded)}}var j=r(34897),$=r(88580),z=r(24835);let U=_.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"}),F=new TextEncoder;function Z(e){return F.encode(e).byteLength}let B={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},H={"https:":"443","http:":"80"},V="0.222.0",q="u">typeof PerformanceObserver;class W extends x.O{component="fetch";version=V;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;constructor(e={}){super("@opentelemetry/instrumentation-fetch",V,e)}init(){}_addChildSpan(e,t){let r=this.tracer.startSpan("CORS Preflight",{startTime:t[h.FETCH_START]},b.u.setSpan(g._.active(),e));A(r,t,this.getConfig().ignoreNetworkEvents,void 0,!0),r.end(t[h.RESPONSE_END])}_addFinalSpanAttributes(e,t){let r,n=P(t.url);e.setAttribute(D.ORx,t.status),e.setAttribute(D.Tu$,n.hostname);let i=(r=Number(n.port||H[n.protocol]))&&!isNaN(r)?r:void 0;i&&e.setAttribute(D.A2j,i)}_addHeaders(e,t){if(!R(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};v.$.inject(g._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(e instanceof Request)v.$.inject(g._.active(),e.headers,{set:(e,t,r)=>e.set(t,"string"==typeof r?r:String(r))});else{let t=new Headers(e.headers);v.$.inject(g._.active(),t,{set:(e,t,r)=>e.set(t,"string"==typeof r?r:String(r))}),e.headers=t}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){var r;let n,s;if(w(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let o={},a=t.method,l=(r=t.method||"GET",n=function(){if(void 0===i){let e=(0,z.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(i={}
1,e.forEach(e=>{i[e]=!0})):i=B}return i}(),(s=r.toUpperCase())in n?s:"_OTHER");return o[D.n4R]=l,l!==a&&(o[D.nWg]=a),o[D.WQZ]=e,this.tracer.startSpan(l,{kind:j.v.CLIENT,attributes:o})}_findResourceAndAddNetworkEvents(e,t,r){let n=t.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}let i=L(t.spanUrl,t.startTime,r,n,this._usedResources,"fetch");if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let r=i.corsPreFlightRequest;r&&(this._addChildSpan(e,r),this._markResourceAsUsed(r)),A(e,t,this.getConfig().ignoreNetworkEvents,void 0,!0)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,r){let n=E.lg(Date.now()),i=E._5();this._addFinalSpanAttributes(e,r),r.status>=400&&(e.setStatus({code:$.s.ERROR}),e.setAttribute(D.oJb,String(r.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(n)},300)}_patchConstructor(){return e=>{let t=this;return function(...r){let n;if(!t._isEnabled)return e.apply(this,r);let i=this,s=P(r[0]instanceof Request?r[0].url:String(r[0])).href;n=r[0]instanceof Request?null!=r[1]?new Request(r[0],r[1]):r[0]:r[1]||{};let o=t._createSpan(s,n);if(!o)return e.apply(this,r);let a=t._prepareSpanData(s);function l(e,r){t._applyAttributesAfterFetch(e,n,r),t._endSpan(e,a,{status:r.status||0,statusText:r.message,url:s})}function u(e,r){t._applyAttributesAfterFetch(e,n,r),r.status>=200&&r.status<400?t._endSpan(e,a,r):t._endSpan(e,a,{status:r.status,statusText:r.statusText,url:s})}function c(e,r){try{let t=r.clone().body;if(t){let n=t.getReader(),i=()=>{n.read().then(({done:t})=>{t?u(e,r):i()},t=>{l(e,t)})};i()}else u(e,r)}catch(r){t._diag.error("Failed to read fetch response body",r),t._endSpan(e,a,{status:0,url:s})}return r}function h(e,r){try{l(e,r)}catch(n){t._diag.error("Failed to end span on fetch error",n),t._endSpan(e,a,{status:r.status||0,url:s})}throw r}return t.getConfig().measureRequestSize&&(function(...e){if(e[0]instanceof URL||"string"==typeof e[0]){let t=e[1];if(!t?.body)return Promise.resolve();if(!(t.body instanceof ReadableStream))return Promise.resolve(function(e){return"u">typeof Document&&e instanceof Document?new XMLSerializer().serializeToString(document).length:"string"==typeof e?Z(e):e instanceof Blob?e.size:e instanceof FormData?function(e){let t=0;for(let[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}(e):e instanceof URLSearchParams?Z(e.toString()):void 0!==e.byteLength?e.byteLength:void U.warn("unknown body type")}(t.body));{let{body:e,length:r}=function(e){let t;if(!e.pipeThrough)return U.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let r=0,n=new Promise(e=>{t=e}),i=new TransformStream({start(){},async transform(e,t){let n=await e;r+=n.byteLength,t.enqueue(e)},flush(){t(r)}});return{body:e.pipeThrough(i),length:n}}(t.body);return t.body=e,r}}{let t=e[0];return t?.body?t.clone().text().then(e=>Z(e)):Promise.resolve()}})(...r).then(e=>{e&&o.setAttribute("http.request.body.size",e)}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}),g._.with(b.u.setSpan(g._.active(),o),()=>(t._callRequestHook(o,n),t._addHeaders(n,s),t._tasksCount++,e.apply(i,n instanceof Request?[n]:[s,n]).then(c.bind(i,o),h.bind(i,o))))}}}_applyAttributesAfterFetch(e,t,r){let n=this.getConfig().applyCustomAttributesOnSpan;n&&N(()=>n(e,t,r),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_callRequestHook(e,t){let r=this.getConfig().requestHook;r&&N(()=>r(e,t),e=>{e&&this._diag.error("requestHook",e)},!0)}_prepareSpanData(e){let t=E._5(),r=[];if("function"!=typeof PerformanceObserver)return{entries:r,startTime:t,spanUrl:e};let n=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{"fetch"===t.initiatorType&&t.name===e&&r.push(t)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:t,spanUrl:e}}enable(){if(!q)return void this._diag.warn("this instrumentation is intended for web usage only, it does not instrument server-side fetch()");if(!this._isEnabled){if(this._isFetchPatched){this._diag.debug("fetch constructor already patched"),this._isEnabled=!0;return}try{this._wrap(globalThis,"fetch",this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(e){this._diag.warn("Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.",e)}}}disable(){!q||this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}}(u=f||(f={})).EVENT_TYPE="event_type",u.TARGET_ELEMENT="target_element",u.TARGET_XPATH="target_xpath",u.URL_FULL="url.full";let G="0.66.0",K=["click"],J=(()=>{try{let e=Symbol();return new WeakMap().set(e,!0),!0}catch{return!1}})();function X(){return!1}class Q extends x.O{version=G;moduleName="user-interaction";_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super("@opentelemetry/instrumentation-user-interaction",G,e),this._eventNames=new Set(e?.eventNames??K),this._shouldPreventSpanCreation="function"==typeof e?.shouldPreventSpanCreation?e.shouldPreventSpanCreation:X}init(){}_checkForTimeout(e,t){let r=this._spansData.get(t);r&&("setTimeout"===e.source?r.hrTimeLastTimeout=(0,E._5)():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(r.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,r){if(!(!this._isEnabled||!(e instanceof HTMLElement)||!e.getAttribute||e.hasAttribute("disabled"))&&this._allowEventName(t))try{let n=function e(t,r){if(t.no
1deType===Node.DOCUMENT_NODE)return"/";let n=function(e,t){let r,n=e.nodeType,i=function(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return(r=r.filter(r=>{let n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName})).length>=1?r.indexOf(e)+1:0}(e);if(n===Node.ELEMENT_NODE){let n=e.getAttribute("id");if(t&&n)return`//*[@id="${n}"]`;r=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)r="text()";else{if(n!==Node.COMMENT_NODE)return"";r="comment()"}return r&&i>1?`/${r}[${i}]`:`/${r}`}(t,r);if(r&&n.indexOf("@id")>0)return n;let i="";return t.parentNode&&(i+=e(t.parentNode,r)),i+=n}(e,!0),i=this.tracer.startSpan(t,{attributes:{[f.EVENT_TYPE]:t,[f.TARGET_ELEMENT]:e.tagName,[f.TARGET_XPATH]:n,[f.URL_FULL]:window.location.href}},r?b.u.setSpan(g._.active(),r):void 0);if(!0===this._shouldPreventSpanCreation(t,e,i))return;return this._spansData.set(i,{taskCount:0}),i}catch(e){this._diag.error("failed to start create new user interaction span",e)}}_decrementTask(e){let t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){let t=e.get("OT_ZONE_CONTEXT");return t?b.u.getSpan(t):t}_incrementTask(e){let t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,r,n){let i=this._wrappedListeners.get(r);i||(i=new Map,this._wrappedListeners.set(r,i));let s=i.get(t);return s||(s=new WeakMap,i.set(t,s)),!s.has(e)&&(s.set(e,n),!0)}removePatchedListener(e,t,r){let n=this._wrappedListeners.get(r);if(!n)return;let i=n.get(t);if(!i)return;let s=i.get(e);return s&&i.delete(e),s}_invokeListener(e,t,r){return"function"==typeof e?e.apply(t,r):e.handleEvent(r[0])}_patchAddEventListener(){let e=this;return t=>function(r,n,i){if(!n||("object"!=typeof this||null===this)&&"function"!=typeof this&&("symbol"!=typeof this||void 0!==Symbol.keyFor(this)||!J))return t.call(this,r,n,i);let s=i&&"object"==typeof i&&i.once,o=function(...t){let i,o=t[0],a=o?.target;o&&(i=e._eventsSpanMap.get(o)),s&&e.removePatchedListener(this,r,n);let l=e._createSpan(a,r,i);return l?(o&&e._eventsSpanMap.set(o,l),g._.with(b.u.setSpan(g._.active(),l),()=>{let r=e._invokeListener(n,this,t);return l.end(),r})):e._invokeListener(n,this,t)};if(e.addPatchedListener(this,r,n,o))return t.call(this,r,o,i)}}_patchRemoveEventListener(){let e=this;return t=>function(r,n,i){let s=e.removePatchedListener(this,r,n);return s?t.call(this,r,s,i):t.call(this,r,n,i)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._isEnabled&&(this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod()))}_patchHistoryMethod(){let e=this;return t=>function(...r){if(!e._isEnabled)return t.apply(this,r);let n=`${location.pathname}${location.hash}${location.search}`,i=t.apply(this,r),s=`${location.pathname}${location.hash}${location.search}`;return n!==s&&e._updateInteractionName(s),i}}_updateInteractionName(e){let t=b.u.getSpan(g._.active());t&&"function"==typeof t.updateName&&t.updateName(`Navigation: ${e}`)}_patchZoneCancelTask(){let e=this;return t=>function(r){let n=Zone.current,i=e._getCurrentSpan(n);return i&&e._shouldCountTask(r,n)&&e._decrementTask(i),t.call(this,r)}}_patchZoneScheduleTask(){let e=this;return t=>function(r){let n=Zone.current,i=e._getCurrentSpan(n);return i&&e._shouldCountTask(r,n)&&(e._incrementTask(i),e._checkForTimeout(r,i)),t.call(this,r)}}_patchZoneRunTask(){let e=this;return t=>function(r,n,i){let s,o=Array.isArray(i)&&i[0]instanceof Event?i[0]:void 0,a=o?.target;if(a){if(s=e._createSpan(a,r.eventName))return e._incrementTask(s),this.run(()=>{try{return g._.with(b.u.setSpan(g._.active(),s),()=>{let e=Zone.current;return r._zone=e,t.call(e,r,n,i)})}finally{e._decrementTask(s)}})}else s=e._getCurrentSpan(this);try{return t.call(this,r,n,i)}finally{s&&e._shouldCountTask(r,this)&&e._decrementTask(s)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;let r=this._getCurrentSpan(t);return!!r&&!!this._spansData.get(r)&&("macroTask"===e.type||"microTask"===e.type)}_tryToEndSpan(e,t){e&&this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}enable(){if(this._isEnabled||(this._isEnabled=!0,"boolean"==typeof this._zonePatched))return;let e=this._getZoneWithPrototype();this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!e),e?(this._zonePatched=!0,this._wrap(e.prototype,"runTask",this._patchZoneRunTask()),this._wrap(e.prototype,"scheduleTask",this._patchZoneSc
1heduleTask()),this._wrap(e.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(e=>{this._wrap(e,"addEventListener",this._patchAddEventListener()),this._wrap(e,"removeEventListener",this._patchRemoveEventListener())})),this._patchHistoryApi()}disable(){this._isEnabled&&(this._isEnabled=!1)}_getZoneWithPrototype(){return window.Zone}}(c=m||(m={})).METHOD_OPEN="open",c.METHOD_SEND="send",c.EVENT_ABORT="abort",c.EVENT_ERROR="error",c.EVENT_LOAD="loaded",c.EVENT_TIMEOUT="timeout";let Y=_.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"}),ee=new TextEncoder;function et(e){return ee.encode(e).byteLength}let er={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},en={"https:":"443","http:":"80"},ei="0.222.0";class es extends x.O{component="xml-http-request";version=ei;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;constructor(e={}){super("@opentelemetry/instrumentation-xml-http-request",ei,e)}init(){}_addHeaders(e,t){if(!R(P(t).href,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};v.$.inject(g._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}let r={};v.$.inject(g._.active(),r),Object.keys(r).forEach(t=>{e.setRequestHeader(t,String(r[t]))})}_addChildSpan(e,t){g._.with(b.u.setSpan(g._.active(),e),()=>{let e=this.tracer.startSpan("CORS Preflight",{startTime:t[h.FETCH_START]});A(e,t,this.getConfig().ignoreNetworkEvents,void 0,!0),e.end(t[h.RESPONSE_END])})}_addFinalSpanAttributes(e,t){t.status&&e.setAttribute(D.ORx,t.status)}_applyAttributesAfterXHR(e,t){let r=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof r&&N(()=>r(e,t),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_addResourceObserver(e,t){let r=this._xhrMem.get(e);r&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(r.createdResources={observer:new PerformanceObserver(e=>{let n=e.getEntries(),i=P(t);n.forEach(e=>{"xmlhttprequest"===e.initiatorType&&e.name===i.href&&r.createdResources&&r.createdResources.entries.push(e)})}),entries:[]},r.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(T.ug.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,r,n,i){if(!r||!n||!i||!e.createdResources)return;let s=e.createdResources.entries;s&&s.length||(s=T.ug.getEntriesByType("resource"));let o=L(P(r).href,n,i,s,this._usedResources);if(o.mainRequest){let e=o.mainRequest;this._markResourceAsUsed(e);let r=o.corsPreFlightRequest;r&&(this._addChildSpan(t,r),this._markResourceAsUsed(r)),A(t,e,this.getConfig().ignoreNetworkEvents,void 0,!0)}}_cleanPreviousSpanInformation(e){let t=this._xhrMem.get(e);if(t){let r=t.callbackToRemoveEvents;r&&r(),this._xhrMem.delete(e)}}_createSpan(e,t,r){let n,i,o,a=P(t);if(w(a.href,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let l={},u=(n=function(){if(void 0===s){let e=(0,z.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(s={},e.forEach(e=>{s[e]=!0})):s=er}return s}(),(i=r.toUpperCase())in n?i:"_OTHER");l[D.n4R]=u,u!==r&&(l[D.nWg]=r),l[D.WQZ]=a.toString(),l[D.Tu$]=a.hostname;let c=(o=Number(a.port||en[a.protocol]))&&!isNaN(o)?o:void 0;c&&(l[D.A2j]=c);let h=this.tracer.startSpan(u,{kind:j.v.CLIENT,attributes:l});return h.addEvent(m.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:h,spanUrl:t}),h}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{let t=this;return function(...r){if(!t._isEnabled)return e.apply(this,r);let n=r[0],i=r[1];return t._createSpan(this,i,n),e.apply(this,r)}}}_patchSend(){let e=this;function t(t,r,n,i){let s=e._xhrMem.get(r);if(!s)return;if(s.status=r.status,s.statusText=r.statusText,e._xhrMem.delete(r),s.span){let t=s.span;e._applyAttributesAfterXHR(t,r),n?i&&(t.setStatus({code:$.s.ERROR,message:i}),t.setAttribute(D.oJb,i)):s.status&&s.status>=400&&(t.setStatus({code:$.s.ERROR}),t.setAttribute(D.oJb,String(s.status)))}let o=(0,E._5)(),a=Date.now();setTimeout(()=>{!function(t,r,n,i){let s=r.callbackToRemoveEvents;"function"==typeof s&&s();let{span:o,spanUrl:a,sendStartTime:l}=r;o&&(e._findResourceAndAddNetworkEvents(r,o,a,l,n),o.addEvent(t,i),e._addFinalSpanAttributes(o,r),o.end(i),e._tasksCount--),e._clearResources()}(t,s,o,a)},300)}function r(){t(m.EVENT_ERROR,this,!0,"error")}function n(){t(m.EVENT_ABORT,this,!1)}function i(){t(m.EVENT_TIMEOUT,this,!0,"timeout")}function s(){this.status<299?t(m.EVENT_LOAD,this,!1):t(m.EVENT_ERROR,this,!1)}return t=>function(...o){if(!e._isEnabled)return t.apply(this,o);let a=e._xhrMem.get(this);if(!a)return t.apply(this,o);let l=a.span,u=a.spanUrl;if(l&&u){if(e.getConfig().measureRequestSize&&o?.[0]){var c,h;let e=(h=c=o[0],"u">typeof Document&&h instanceof Document)?new XMLSerializer().serializeToString(document).length:"string"==typeof c?et(c):c instanceof Blob?c.size:c instanceof FormData?function(e){let t=0;for(let[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}(c):c instanceof URLSearchParams?et(c.toString()):void 0!==c.byteLength?c.byteLength:void Y.warn("unknown body type");void 0!==e&&l.setAttribute("http.request.body.size",e)}g._.with(b.u.setSpan(g._.active(),l),()=>{e._tasksCount++,a.sendStartTime=(0,E._5)(),l.addEvent(m.METHOD_SEND),this.addEventListener("abort",n),this.addEventListener("error",r),this.addEventListener("load",s),this.addEventListener("timeout",i),a.callbackToRemoveEvents=()=>{let t;this.removeEventListener("abort",n),this.removeEventListener("error",r),this.removeEventListener("load",s),this.removeEventListener("timeout",i),(t=e._xhrMem.get(this))&&(t.callbackToRemoveEvents=void 0),a.createdResources&&a.createdResources.observer.disconnect()},e._addHeaders(this,u),e._addResourceObserver(this,u)})}return t.apply(this,o)}}enable(){if(!this._isEnabled){if(this._isXhrPatched){this._diag.debug("reactivating existing patch on",this.moduleName,this.version),this._isEnabled=!0;return}try{this._diag.debug("applying patch to",this.moduleName,this.version),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend()),this._isXhrPatched=!0,this._isEnabled=!0}catch(e){this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.warn("Failed to patch globalThis.XMLHttpRequest; instrumentation will not be enabled. Another script may have locked globalThis.XMLHttpRequest via Object.defineProperty.",e)}}}disable(){this._isEnabled&&(this._isEnabled=!1,this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}}let eo={"@opentelemetry/instrumentation-document-load":M,"@opentelemetry/instrumentation-fetch":W,"@opentelemetry/instrumentation-user-interaction":Q,"@opentelemetry/instrumentation-xml-http-request":es};function ea(e={}){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(eo,t)){_.s.error(`Provided instrumentation name "${t}" not found`);continue}let t=[];for(let r of Object.keys(eo)){let n=eo[r],i=e[r]??{};if(!1===i.enabled){_.s.debug(`Disabling instrumentation for ${r}`);continue}try{_.s.debug(`Loading instrumentation for ${r}`),t.push(new n(i))}catch(e){_.s.error(e)}}return t}},7797:(e,t,r)=>{let n;r.d(t,{gk:()=>c,QZ:()=>u});var i=r(51718),s=r(30972);let o={[s.Jqu]:"opentelemetry","process.runtime.name":"browser",[s.E$0]:s.qVR,[s.aJA]:"2.11.0"},a=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class l{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let r=new l({},t);return r._rawAttributes=h(e),r._asyncAttributesPending=e.filter(([e,t])=>a(t)).length>0,r}constructor(e,t){const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([e,t])=>(a(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=h(this._rawAttributes),this._schemaUrl=function(e){if("string"==typeof e||void 0===e)return e;i.s.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,r]=this._rawAttributes[e];this._rawAttributes[e]=[t,a(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&i.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};
1for(let[t,r]of this._rawAttributes){if(a(r)){i.s.debug(`Unsettled resource attribute ${t} skipped`);continue}null!=r&&(e[t]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){var t,r;let n,s,o;if(null==e)return this;let a=(t=this,r=e,n=t?.schemaUrl,o=void 0===(s=r?.schemaUrl)||""===s,void 0===n||""===n?s:o||n===s?n:void i.s.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,s));return l.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],a?{schemaUrl:a}:void 0)}}function u(e,t){return l.FromAttributeList(Object.entries(e),t)}function c(){return u({[s.UX4]:function(){if(void 0===n)try{let e=globalThis.process.argv0;n=e?`unknown_service:${e}`:"unknown_service"}catch{n="unknown_service"}return n}(),[s.E$0]:o[s.E$0],[s.Jqu]:o[s.Jqu],[s.aJA]:o[s.aJA]})}function h(e){return e.map(([e,t])=>a(t)?[e,t.catch(t=>{i.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}},10938:(e,t,r)=>{r.d(t,{ug:()=>n});let n=performance},11550:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var n=r(53564),i=r(56689),s=r(48491),o=r(28788),a=r(1296);function l(e){let{options:t,CacheProvider:r=s.C,children:l}=e,[u]=n.useState(()=>{let e=(0,i.A)({...t,key:t?.key??"mui"});e.compat=!0;let r=e.insert,n=[];return e.insert=(...i)=>{t?.enableCssLayer&&!i[1].styles.match(/^@layer\s+[^{]*$/)&&(i[1].styles=`@layer mui {${i[1].styles}}`);let[s,o]=i;return void 0===e.inserted[o.name]&&n.push({name:o.name,isGlobal:!s}),r(...i)},{cache:e,flush:()=>{let e=n;return n=[],e}}});return(0,o.useServerInsertedHTML)(()=>{let e=u.flush();if(0===e.length)return null;let r="",i=u.cache.key,s=[];return e.forEach(({name:e,isGlobal:t})=>{let n=u.cache.inserted[e];"string"==typeof n&&(t?s.push({name:e,style:n}):(r+=n,i+=` ${e}`))}),(0,a.jsxs)(n.Fragment,{children:[s.map(({name:e,style:r})=>(0,a.jsx)("style",{nonce:t?.nonce,"data-emotion":`${u.cache.key}-global ${e}`,dangerouslySetInnerHTML:{__html:r}},e)),r&&(0,a.jsx)("style",{nonce:t?.nonce,"data-emotion":i,dangerouslySetInnerHTML:{__html:r}})]})}),(0,a.jsx)(r,{value:u.cache,children:l})}},11637:(e,t,r)=>{r.d(t,{IP:()=>u,YA:()=>l,hX:()=>a});var n=r(26476),i=r(31360);let s=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function o(e,t){if("string"!=typeof e||e.length!==t)return!1;let r=0;for(let t=0;t<e.length;t+=4)r+=(0|s[e.charCodeAt(t)])+(0|s[e.charCodeAt(t+1)])+(0|s[e.charCodeAt(t+2)])+(0|s[e.charCodeAt(t+3)]);return r===t}function a(e){return o(e,32)&&e!==n.RH}function l(e){var t;return a(e.traceId)&&o(t=e.spanId,16)&&t!==n.w9}function u(e){return new i.d(e)}},17829:(e,t,r)=>{r.r(t),r.d(t,{CssVarsProvider:()=>m,Experimental_CssVarsProvider:()=>d,getInitColorSchemeScript:()=>f,useColorScheme:()=>c});var n=r(8240),i=r(72303),s=r(93975),o=r(44776),a=r(86622),l=r(1296);let{CssVarsProvider:u,useColorScheme:c,getInitColorSchemeScript:h}=(0,i.default)({themeId:a.A,theme:()=>(0,s.A)({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t={...e,typography:(0,o.A)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,n.A)({sx:e,theme:this})},t}});function d(e){return(0,l.jsx)(u,{...e})}let p=!1,f=e=>(p||(console.warn("MUI: The getInitColorSchemeScript function has been deprecated.\n\nYou should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`\nand replace the function call with `<InitColorSchemeScript />` instead."),p=!0),h(e)),m=u},19563:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(46607),i=r(25060),s=r(78392);function o(e){let t=e.tracerProvider||n.u.getTracerProvider(),r=e.meterProvider||i.q.getMeterProvider(),o=e.loggerProvider||s.K9.getLoggerProvider(),a=e.instrumentations?.flat()??[];for(let e=0,n=a.length;e<n;e++){let n=a[e];t&&n.setTracerProvider(t),r&&n.setMeterProvider(r),o&&n.setLoggerProvider&&n.setLoggerProvider(o),n.getConfig().enabled||n.enable()}return()=>
1{a.forEach(e=>e.disable())}}},19867:(e,t,r)=>{function n(e){return Symbol.for(e)}r.d(t,{l:()=>s,n:()=>n});class i{constructor(e){const t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,r)=>{let n=new i(t._currentContext);return n._currentContext.set(e,r),n},t.deleteValue=e=>{let r=new i(t._currentContext);return r._currentContext.delete(e),r}}}let s=new i},23938:(e,t,r)=>{var n,i;r.d(t,{V:()=>n}),(i=n||(n={}))[i.SUCCESS=0]="SUCCESS",i[i.FAILED=1]="FAILED"},24835:(e,t,r)=>{function n(e){}function i(e){}function s(e){}r.d(t,{HF:()=>n,Jk:()=>i,f7:()=>s})},25060:(e,t,r)=>{r.d(t,{q:()=>c});var n=r(33371);class i{getMeter(e,t,r){return n.Dq}}let s=new i;var o=r(65491),a=r(56366);let l="metrics";class u{static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalMeterProvider(e){return(0,o.$G)(l,e,a.K.instance())}getMeterProvider(){return(0,o.mS)(l)||s}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,o.kv)(l,a.K.instance())}}let c=u.getInstance()},25090:(e,t,r)=>{r.d(t,{$:()=>v});var n=r(65491);class i{inject(e,t){}extract(e,t){return e}fields(){return[]}}let s={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},o={set(e,t,r){null!=e&&(e[t]=r)}};var a=r(56158);let l=(0,r(19867).n)("OpenTelemetry Baggage Key");function u(e){return e.getValue(l)||void 0}function c(){return u(a._.getInstance().active())}function h(e,t){return e.setValue(l,t)}function d(e){return e.deleteValue(l)}var p=r(55186),f=r(56366);let m="propagation",_=new i;class g{constructor(){this.createBaggage=p.L,this.getBaggage=u,this.getActiveBaggage=c,this.setBaggage=h,this.deleteBaggage=d}static getInstance(){return this._instance||(this._instance=new g),this._instance}setGlobalPropagator(e){return(0,n.$G)(m,e,f.K.instance())}inject(e,t,r=o){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=s){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.kv)(m,f.K.instance())}_getGlobalPropagator(){return(0,n.mS)(m)||_}}let v=g.getInstance()},26476:(e,t,r)=>{r.d(t,{RH:()=>s,dM:()=>o,w9:()=>i});var n=r(45407);let i="0000000000000000",s="00000000000000000000000000000000",o={traceId:s,spanId:i,traceFlags:n.X.NONE}},30972:(e,t,r)=>{r.d(t,{A2j:()=>h,E$0:()=>p,Jqu:()=>m,MbS:()=>s,MzX:()=>v,ORx:()=>u,Tu$:()=>c,UX4:()=>d,WQZ:()=>g,aJA:()=>_,d62:()=>o,n4R:()=>a,nWg:()=>l,oJb:()=>n,qVR:()=>f,wLW:()=>i});let n="error.type",i="exception.message",s="exception.stacktrace",o="exception.type",a="http.request.method",l="http.request.method_original",u="http.response.status_code",c="server.address",h="server.port",d="service.name",p="telemetry.sdk.language",f="webjs",m="telemetry.sdk.name",_="telemetry.sdk.version",g="url.full",v="user_agent.original"},31360:(e,t,r)=>{r.d(t,{d:()=>i});var n=r(26476);class i{constructor(e=n.dM){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}},33371:(e,t,r)=>{r.d(t,{Ac:()=>T,Dq:()=>p});class n{createGauge(e,t){return m}createHistogram(e,t){return _}createCounter(e,t){return f}createUpDownCounter(e,t){return g}createObservableGauge(e,t){return y}createObservableCounter(e,t){return v}createObservableUpDownCounter(e,t){return b}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}class i{}class s extends i{add(e,t){}}class o extends i{add(e,t){}}class a extends i{record(e,t){}}class l extends i{record(e,t){}}class u{addCallback(e){}removeCallback(e){}}class c extends u{}class h extends u{}class d extends u{}let p=new n,f=new s,m=new a,_=new l,g=new o,v=new c,y=new h,b=new d;function T(){return p}},34897:(e,t,r)=>{var n,i;r.d(t,{v:()=>n}),(i=n||(n={}))[i.INTERNAL=0]="INTERNAL",i[i.SERVER=1]="SERVER",i[i.CLIENT=2]="CLIENT",i[i.PRODUCER=3]="PRODUCER",i[i.CONSUMER=4]="CONSUMER"},41410:(e,t,r)=>{r.d(t,{ZS:()=>m,lm:()=>v});var n=r(46607),i=r(11637),s=r(45407),o=r(45555);let a="[_0-9a-z-*/]",l=`[a-z]${a}{0,255}`,u=`[a-z0-9]${a}{0,240}@[a-z]${a}{0,13}`,c=RegExp(`^(?:${l}|${u})$`),h=/^[ -~]{0,255}[!-~]$/,d=/,|=/;function p(e){return h.test(e)&&!d.test(e)}class f{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState="string"==typeof e?e:"",this._length=this._rawTraceState.length}set(e,t){if(!c.test(e)||!p(t))return this;let r=this._getState(),n=r.get(e),i=this._length;if("string"==typeof n?i+=t.length-n.length:i+=e.length+t.length+(r.size>0?2:1),i>512)return this;let s=new Map(r);return s.delete(e),s.set(e,t),this._fromState(s,i)}unset(e){let t=this._getState(),r=t.get(e);if("string"!=typeof r)return this;let n=this._length-(e.length+r.length+1);t.size>1&&(n-=1);let i=new Map(t);return i.delete(e),this._fromState(i,n)}get(e){return this._getState().get(e)}serialize(){let e="",t=0;for(let r of this._getState())t>0&&(e=","+e),e=`${r[0]}=${r[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(","),t=new Map,r=0;for(let n of e){let e=n.trim(),i=e.indexOf("=");if(-1===i)continue;let s=e.slice(0,i),o=e.slice(i+1);if(!c.test(s)||!p(o))continue;let a=r+e.length+ +(t.size>0);if(!(a>512)&&(t.set(s,o),r=a,t.size>=32))break}return this._length=r,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(e,t){let r=Object.create(f.prototype);return r._internalState=e,r._length=t,r}}let m="traceparent",_="tracestate",g=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class v{inject(e,t,r){let a=n.u.getSpanContext(e);if(!a||(0,o.Zf)(e)||!(0,i.YA)(a))return;let l=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||s.X.NONE).toString(16)}`;r.set(t,m,l),a.traceState&&r.set(t,_,a.traceState.serialize())}extract(e,t,r){let i,s=r.get(t,m);if(!s)return e;let o=Array.isArray(s)?s[0]:s;if("string"!=typeof o)return e;let a=(i=g.exec(o))&&("00"!==i[1]||!i[5])?{traceId:i[2],spanId:i[3],traceFlags:parseInt(i[4],16)}:null;if(!a)return e;a.isRemote=!0;let l=r.get(t,_);
1if(l){let e=Array.isArray(l)?l.join(","):l;a.traceState=new f("string"==typeof e?e:void 0)}return n.u.setSpanContext(e,a)}fields(){return[m,_]}}},45407:(e,t,r)=>{var n,i;r.d(t,{X:()=>n}),(i=n||(n={}))[i.NONE=0]="NONE",i[i.SAMPLED=1]="SAMPLED"},45555:(e,t,r)=>{r.d(t,{M1:()=>i,Zf:()=>s});let n=(0,r(19867).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(e){return e.setValue(n,!0)}function s(e){return!0===e.getValue(n)}},46607:(e,t,r)=>{r.d(t,{u:()=>w});var n=r(65491),i=r(56158),s=r(19867),o=r(31360);let a=(0,s.n)("OpenTelemetry Context Key SPAN");function l(e){return e.getValue(a)||void 0}function u(){return l(i._.getInstance().active())}function c(e,t){return e.setValue(a,t)}function h(e){return e.deleteValue(a)}function d(e,t){return c(e,new o.d(t))}function p(e){var t;return null==(t=l(e))?void 0:t.spanContext()}var f=r(11637);let m=i._.getInstance();class _{startSpan(e,t,r=m.active()){var n;if(null==t?void 0:t.root)return new o.d;let i=r&&p(r);return null!==(n=i)&&"object"==typeof n&&"spanId"in n&&"string"==typeof n.spanId&&"traceId"in n&&"string"==typeof n.traceId&&"traceFlags"in n&&"number"==typeof n.traceFlags&&(0,f.YA)(i)?new o.d(i):new o.d}startActiveSpan(e,t,r,n){let i,s,o;if(arguments.length<2)return;2==arguments.length?o=t:3==arguments.length?(i=t,o=r):(i=t,s=r,o=n);let a=null!=s?s:m.active(),l=this.startSpan(e,i,a),u=c(a,l);return m.with(u,o,void 0,l)}}let g=new _;class v{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):g}}class y{getTracer(e,t,r){return new _}}let b=new y;class T{getTracer(e,t,r){var n;return null!=(n=this.getDelegateTracer(e,t,r))?n:new v(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:b}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(e,t,r)}}var S=r(56366);let E="trace";class k{constructor(){this._proxyTracerProvider=new T,this.wrapSpanContext=f.IP,this.isSpanContextValid=f.YA,this.deleteSpan=h,this.getSpan=l,this.getActiveSpan=u,this.getSpanContext=p,this.setSpan=c,this.setSpanContext=d}static getInstance(){return this._instance||(this._instance=new k),this._instance}setGlobalTracerProvider(e){let t=(0,n.$G)(E,this._proxyTracerProvider,S.K.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.mS)(E)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.kv)(E,S.K.instance()),this._proxyTracerProvider=new T}}let w=k.getInstance()},51718:(e,t,r)=>{r.d(t,{s:()=>n});let n=r(56366).K.instance()},52406:(e,t,r)=>{r.d(t,{T:()=>s});var n=r(19867);let i="OT_ZONE_CONTEXT";class s{_enabled=!1;_bindFunction(e,t){let r=this,n=function(...n){return r.with(e,()=>t.apply(this,n))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),n}_bindListener(e,t){return void 0!==t.__ot_listeners||(t.__ot_listeners={},"function"==typeof t.addEventListener&&(t.addEventListener=this._patchAddEventListener(t,t.addEventListener,e)),"function"==typeof t.removeEventListener&&(t.removeEventListener=this._patchRemoveEventListener(t,t.removeEventListener))),t}_createZone(e,t){return Zone.current.fork({name:e,properties:{[i]:t},onCancelTask:(e,t,r,n)=>"notScheduled"===n.state||"running"===n.state?n:e.cancelTask(r,n)})}_patchAddEventListener(e,t,r){let n=this;return function(i,s,o){void 0===e.__ot_listeners&&(e.__ot_listeners={});let a=e.__ot_listeners[i];void 0===a&&(a=new WeakMap,e.__ot_listeners[i]=a);let l=n.bind(r,s);return a.set(s,l),t.call(this,i,l,o)}}_patchRemoveEventListener(e,t){return function(r,n){if(void 0===e.__ot_listeners||void 0===e.__ot_listeners[r])return t.call(this,r,n);let i=e.__ot_listeners[r],s=i.get(n);return i.delete(n),t.call(this,r,s||n)}}active(){return this._enabled&&Zone.current&&Zone.current.get(i)||n.l}bind(e,t){return"function"==typeof t?this._bindFunction(e,t):("object"==typeof t&&null!==t&&"addEventListener"in t&&"function"==typeof t.addEventListener&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&this._bindListener(e,t),t)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(e,t,r,...n){let i="otel:with";return t.name&&(i+=`:${t.name}`),this._createZone(i,e).run(t,r,n)}}r(60273)},52677:(e,t,r)=>{r.d(t,{default:()=>u});var n=r(53564),i=r(82341),s=r(86622),o=r(1296);function a({theme:e,...t}){let r=s.A in e?e[s.A]:void 0;return(0,o.jsx)(i.default,{...t,themeId:r?s.A:void 0,theme:r||e})}var l=r(17829);function u({theme:e,...t}){let r=n.useMemo(()=>
1{if("function"==typeof e)return e;let t=s.A in e?e[s.A]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return r?(0,o.jsx)(a,{theme:r,...t}):(0,o.jsx)(l.CssVarsProvider,{theme:e,...t})}},54505:(e,t,r)=>{r.d(t,{default:()=>h});var n=r(53564),i=r(94356),s=r(13847),o=r(1296);let a="function"==typeof(0,i.Dp)({}),l=(e,t=!1)=>{let r={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,n])=>{let i=e.getColorSchemeSelector(t);i.startsWith("@")?r[i]={":root":{colorScheme:n.palette?.mode}}:r[i.replace(/\s*&/,"")]={colorScheme:n.palette?.mode}});let n={html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...{color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}},"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(n=[n,i]),n},u="mui-ecs",c=(0,i.Dp)(a?({theme:e,enableColorScheme:t})=>l(e,t):({theme:e})=>{let t,r;return r=Array.isArray(t=l(e,!1))?t[0]:t,!e.vars&&r&&(r.html[`:root:has(${u})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,n])=>{let i=e.getColorSchemeSelector(t);i.startsWith("@")?r[i]={[`:root:not(:has(.${u}))`]:{colorScheme:n.palette?.mode}}:r[i.replace(/\s*&/,"")]={[`&:not(:has(.${u}))`]:{colorScheme:n.palette?.mode}}}),t}),h=function(e){let{children:t,enableColorScheme:r=!1}=(0,s.b)({props:e,name:"MuiCssBaseline"});return(0,o.jsxs)(n.Fragment,{children:[a&&(0,o.jsx)(c,{enableColorScheme:r}),!a&&!r&&(0,o.jsx)("span",{className:u,style:{display:"none"}}),t]})}},55186:(e,t,r)=>{r.d(t,{B:()=>l,L:()=>a});var n=r(56366);class i{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,t){let r=new i(this._entries);return r._entries.set(e,t),r}removeEntry(e){let t=new i(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new i(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new i}}let s=Symbol("BaggageEntryMetadata"),o=n.K.instance();function a(e={}){return new i(new Map(Object.entries(e)))}function l(e){return"string"!=typeof e&&(o.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:s,toString:()=>e}}},55986:(e,t,r)=>{r.d(t,{Q:()=>w});class n{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}setMetrics(e){this._delegate.setMetrics(e)}}function i(e,t){return Object.keys(e).map(r=>{var n,i;return n=r,i=e[r],{key:n,value:function e(t,r){let n=typeof t;if("string"===n)return{stringValue:t};if("number"===n)return Number.isInteger(t)?{intValue:t}:{doubleValue:t};if("boolean"===n)return{boolValue:t};if(t instanceof Uint8Array)return{bytesValue:r.encodeUint8Array(t)};if(Array.isArray(t)){let n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=e(t[i],r);return{arrayValue:{values:n}}}if("object"===n&&null!=t){let n=Object.keys(t),i=Array(n.length);for(let s=0;s<n.length;s++)i[s]={key:n[s],value:e(t[n[s]],r)};return{kvlistValue:{values:i}}}return{}}(i,t)}})}function s(e,t){let r=255&e|256;return t&&(r|=512),r}var o=r(76340),a=r(31208).Buffer;function l(e){return e}let u={encodeHrTime:"u">typeof BigInt?function(e){let t;return(t=BigInt(1e9),BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))).toString()}:o.u5,encodeSpanContext:l,encodeOptionalSpanContext:l,encodeUint8Array:e=>{if(void 0!==a)return a.from(e).toString("base64");let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return btoa(t.join(""))}};var c=r(51718);let h={serializeRequest:e=>{let t={resourceSpans:function(e,t){let r=function(e){let t=new Map;for(let r of e){let e=t.get(r.resource);e||(e=new Map,t.set(r.resource,e));let n=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`,i=e.get(n);i||(i=[],e.set(n,i)),i.push(r)}return t}(e),n=[],o=r.entries(),a=o.next();for(;!a.done;){let[e,r]=a.value,l=[],u=r.values(),c=u.next();for(;!c.done;){let e=c.value;if(e.length>0){let r=e.map(e=>(function(e,t){let r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:i(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>{var r,n;return r=e,n=t,{attributes:r.attributes?i(r.attributes,n):[],name:r.name,timeUnixNano:n.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(e=>{var r,n;return r=e,n=t,{attributes:r.attributes?i(r.attributes,n):[],spanId:n.encodeSpanContext(r.context.spanId),traceId:n.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0,flags:s(r.context.traceFlags,r.context.
1isRemote)}}),droppedLinksCount:e.droppedLinksCount,flags:s(r.traceFlags,e.parentSpanContext?.isRemote)}})(e,t));l.push({scope:function(e,t){let r={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(r.attributes=i(e.attributes,t),r.droppedAttributesCount=e.droppedAttributesCount??0),r}(e[0].instrumentationScope,t),spans:r,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=u.next()}let h=function(e,t){let r={attributes:i(e.attributes,t),droppedAttributesCount:0},n=e.schemaUrl;return n&&""!==n&&(r.schemaUrl=n),r}(e,t),d={resource:h,scopeSpans:l,schemaUrl:h.schemaUrl};n.push(d),a=o.next()}return n}(e,u)};return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(0===e.length)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return c.s.warn(`Failed to parse trace export response: ${e.message}. Returning empty response`),{}}}},d={name:"span",countItems:e=>e.length};class p{_transport;constructor(e){this._transport=e}retry(e,t,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(e,t).then(n,i)},r)})}async send(e,t){let r=5,n=1e3,i=Date.now()+t,s=await this._transport.send(e,t);for(;"retryable"===s.status&&r>0;){r--;let t=Math.max(Math.min(n*(1+(.4*Math.random()-.2)),5e3),0);n*=1.5;let o=s.retryInMillis??t,a=i-Date.now();if(o>a)return c.s.info(`Export retry time ${Math.round(o)}ms exceeds remaining timeout ${Math.round(a)}ms, not retrying further.`),s;c.s.verbose(`Scheduling export retry in ${Math.round(o)}ms`),s=await this.retry(e,a,o)}return"success"===s.status?c.s.verbose(`Export succeeded after ${5-r} retry attempts.`):"retryable"===s.status?c.s.info("Export failed after maximum retry attempts (5)."):c.s.info(`Export failed with non-retryable error: ${s.error}`),s}shutdown(){return this._transport.shutdown()}}class f{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}var m=r(23938);class _ extends Error{code;name="OTLPExporterError";data;constructor(e,t,r){super(e),this.data=r,this.code=t}}class g{_metrics;_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(e,t,r,n,i,s){this._transport=e,this._serializer=t,this._responseHandler=r,this._promiseQueue=n,this._timeout=s,this._diagLogger=c.s.createComponentLogger({namespace:"OTLPExportDelegate"}),this._metrics=i}export(e,t){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void t({code:m.V.FAILED,error:Error("Concurrent export limit reached")});let r=this._serializer.serializeRequest(e);if(null==r)return void t({code:m.V.FAILED,error:Error("Nothing to send")});let n=this._metrics.startExport(e);this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(e=>{if("success"===e.status){if(n(void 0),null!=e.data)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:m.V.SUCCESS});return}if("failure"===e.status&&e.error){n(e.error),t({code:m.V.FAILED,error:e.error});return}"retryable"===e.status?(n("export_max_retries"),t({code:m.V.FAILED,error:e.error??new _("Export failed with retryable status")})):(n("export_failed"),t({code:m.V.FAILED,error:new _("Export failed with unknown error")}))},e=>{n(e),t({code:m.V.FAILED,error:e})}))}forceFlush(){return this._promiseQueue.awaitAll()}setMetrics(e){this._metrics=e}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}let v=0,y=0;class b{_parameters;constructor(e){this._parameters=e}async send(e,t){var r,n;let i=new AbortController,s=setTimeout(()=>i.abort(),t),o=globalThis.fetch;"function"==typeof o.__original&&(o=o.__original);let a=e.byteLength,l=v+a>61440,u=y>=9,h=!l&&!u;h?(v+=a,y++):c.s.debug(`keepalive disabled: ${(a/1024).toFixed(1)}KB payload, ${y} pending (${l?"size limit":"count limit"})`);try{let t=new URL(this._parameters.url),n=await o(t.href,{method:"POST",headers:await this._parameters.headers(),body:e,signal:i.signal,keepalive:h,mode:globalThis.location?globalThis.location.origin===t.origin?"same-origin":"cors":"no-cors"});if(n.status>=200&&n.status<=299)return c.s.debug(`export response success (status: ${n.status})`),{status:"success"};if(r=n.status,429===r||502===r||503===r||504===r){c.s.warn(`export response retryable (status: ${n.status})`);let e=n.headers.get("Retry-After"),t=function(e){if(null==e)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;let r=new Date(e).getTime()-Date.now();return r>=0?r:0}(e);return{status:"retryable",retryInMillis:t}}return c.s.error(`export response failure (status: ${n.status})`),{status:"failure",error:Error(`Fetch request failed with non-retryable status ${n.status}`)}}catch(e){if((n=e)instanceof TypeError&&!n.cause)return c.s.warn(`export request retryable (network error: ${e})`),{status:"retryable",error:Error("Fetch request encountered a network error",{cause:e})};return c.s.error(`export request failure (error: ${e})`),{status:"failure",error:Error("Fetch request errored",{cause:e})}}finally{clearTimeout(s),h&&(v-=a,y--)}}shutdown(){}}let T="http.response.status_code";var S=r(33371);let E=new Map;class k{inflight;exported;duration;standardAttrs;responseAttributesFromError;helper;constructor(e){const{componentType:t,metricsHelper:r,meterProvider:n,url:i,responseAttributesFromError:s}=e;this.responseAttributesFromError=s;const o=n?n.getMeter("@opentelemetry/otlp-exporter","0.222.0"):(0,S.Ac)(),a=E.get(t)??0;if(E.set(t,a+1),this.standardAttrs={"otel.component.type":t,"otel.component.name":`${t}/${a}`},i){let e=i;i.includes("://")||(e=`http://${i}`);try{let t;
1const r=new URL(e);this.standardAttrs["server.address"]=r.hostname,r.port?t=Number(r.port):"http:"===r.protocol?t=80:"https:"===r.protocol&&(t=443),"number"==typeof t&&(this.standardAttrs["server.port"]=t)}catch{}}this.helper=r,this.inflight=o.createUpDownCounter(`otel.sdk.exporter.${this.helper.name}.inflight`,{unit:`{${this.helper.name}}`,description:`The number of ${this.helper.name}s which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).`}),this.exported=o.createCounter(`otel.sdk.exporter.${this.helper.name}.exported`,{unit:`{${this.helper.name}}`,description:`The number of ${this.helper.name}s for which the export has finished, either successful or failed.`}),this.duration=o.createHistogram("otel.sdk.exporter.operation.duration",{unit:"s",description:"The duration of exporting a batch of telemetry records.",advice:{explicitBucketBoundaries:[]}})}startExport(e){let t=this.helper.countItems(e),r=(0,o._5)();return this.inflight.add(t,this.standardAttrs),e=>{let n=(0,o._5)();this.inflight.add(-t,this.standardAttrs);let i=e?{...this.standardAttrs,"error.type":e instanceof Error?e.name:"export_failed"}:this.standardAttrs;this.exported.add(t,i);let s={...i,...this.responseAttributesFromError(e)},a=(0,o.JU)((0,o.W5)(r,n))/1e3;this.duration.record(a,s)}}}class w extends n{constructor(e={}){super(function(e,t,r,n,i,s,o){var a,l,u,h,d,m,_,v,y,S,E;let w=(a={url:e.url,timeoutMillis:e.timeoutMillis,headers:function(e){if("function"==typeof e.headers)return e.headers;var t=e.headers;return null!=t?async()=>t:void 0}(e),concurrencyLimit:e.concurrencyLimit},{...(l={},u={timeoutMillis:1e4,concurrencyLimit:30,compression:"none",headers:async()=>o,url:"http://localhost:4318/"+s},{timeoutMillis:function(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}(a.timeoutMillis??l.timeoutMillis??u.timeoutMillis),concurrencyLimit:a.concurrencyLimit??l.concurrencyLimit??u.concurrencyLimit,compression:a.compression??l.compression??u.compression}),headers:(h=a.headers,d=l.headers,m=u.headers,async()=>{var e;let t,r={...await m()},n={};return null!=d&&Object.assign(n,await d()),null!=h&&Object.assign(n,(e=await h(),t={},Object.entries(e??{}).forEach(([e,r])=>{void 0!==r?t[e]=String(r):c.s.warn(`Header "${e}" has invalid value (${r}) and will be ignored`)}),t)),Object.assign(n,r)}),url:function(e){if(null!=e)try{let t=globalThis.location?.href;return new URL(e,t).href}
1catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}(a.url)??l.url??u.url});return _=w,v=t,y=new k({componentType:r,metricsHelper:n,url:w.url,meterProvider:e.selfObsMeterProvider,responseAttributesFromError:e=>e?e instanceof Error&&e.message.startsWith("Fetch request failed with non-retryable status ")?{[T]:Number(e.message.substring(47))}:{}:{[T]:200}}),S={transport:new p({transport:new b(_)}.transport),serializer:v,promiseHandler:new f(_.concurrencyLimit),metrics:y},E={timeout:_.timeoutMillis},new g(S.transport,S.serializer,{handleResponse(e){null!=e&&Object.prototype.hasOwnProperty.call(e,"partialSuccess")&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&c.s.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}},S.promiseHandler,S.metrics,E.timeout)}(e,h,"otlp_http_span_exporter",d,e.selfObsMeterProvider,"v1/traces",{"Content-Type":"application/json"}))}}},56158:(e,t,r)=>{r.d(t,{_:()=>u});var n=r(19867);class i{active(){return n.l}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}var s=r(65491),o=r(56366);let a="context",l=new i;class u{static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalContextManager(e){return(0,s.$G)(a,e,o.K.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,s.mS)(a)||l}disable(){this._getContextManager().disable(),(0,s.kv)(a,o.K.instance())}}},56366:(e,t,r)=>{r.d(t,{K:()=>l});var n,i,s=r(65491);class o{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return a("debug",this._namespace,e)}error(...e){return a("error",this._namespace,e)}info(...e){return a("info",this._namespace,e)}warn(...e){return a("warn",this._namespace,e)}verbose(...e){return a("verbose",this._namespace,e)}}function a(e,t,r){let n=(0,s.mS)("diag");if(n)return n[e](t,...r)}(n=i||(i={}))[n.NONE=0]="NONE",n[n.ERROR=30]="ERROR",n[n.WARN=50]="WARN",n[n.INFO=60]="INFO",n[n.DEBUG=70]="DEBUG",n[n.VERBOSE=80]="VERBOSE",n[n.ALL=9999]="ALL";class l{static instance(){return this._instance||(this._instance=new l),this._instance}constructor(){function e(e){return function(...t){let r=(0,s.mS)("diag");if(r)return r[e](...t)}}const t=this;t.setLogger=(e,r={logLevel:i.INFO})=>{var n,o,a;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(n=e.stack)?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let l=(0,s.mS)("diag"),u=function(e,t){function r(r,n){let i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<i.NONE?e=i.NONE:e>i.ALL&&(e=i.ALL),t=t||{},{error:r("error",i.ERROR),warn:r("warn",i.WARN),info:r("info",i.INFO),debug:r("debug",i.DEBUG),verbose:r("verbose",i.VERBOSE)}}(null!=(o=r.logLevel)?o:i.INFO,e);if(l&&!r.suppressOverrideMessage){let e=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";l.warn(`Current logger will be overwritten from ${e}
1`),u.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,s.$G)("diag",u,t,!0)},t.disable=()=>{(0,s.kv)("diag",t)},t.createComponentLogger=e=>new o(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}}},60273:()=>{var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,a=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))s.call(t,r)&&o(e,r,t[r]);return e},l=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),u=globalThis;function c(e){return(u.__Zone_symbol_prefix||"__zone_symbol__")+e}var h=Object.getOwnPropertyDescriptor,d=Object.defineProperty,p=Object.getPrototypeOf,f=Object.create,m=Array.prototype.slice,_="addEventListener",g="removeEventListener",v=c(_),y=c(g),b="true",T="false",S=c("");function E(e,t){return Zone.current.wrap(e,t)}function k(e,t,r,n,i){return Zone.current.scheduleMacroTask(e,t,r,n,i)}var w="u">typeof window,C=w?window:void 0,A=w&&C||globalThis;function O(e,t){for(let r=e.length-1;r>=0;r--)"function"==typeof e[r]&&(e[r]=E(e[r],t+"_"+r));return e}function L(e){return!e||!1!==e.writable&&("function"!=typeof e.get||void 0!==e.set)}var P="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,R=!("nw"in A)&&void 0!==A.process&&"[object process]"===A.process.toString(),x=!R&&!P&&!!(w&&C.HTMLElement),N=void 0!==A.process&&"[object process]"===A.process.toString()&&!P&&!!(w&&C.HTMLElement),D={},I=c("enable_beforeunload"),M=function(e){let t;if(!(e=e||A.event))return;let r=D[e.type];r||(r=D[e.type]=c("ON_PROPERTY"+e.type));let n=this||e.target||A,i=n[r];if(x&&n===C&&"error"===e.type){let r=e;!0===(t=i&&i.call(this,r.message,r.filename,r.lineno,r.colno,r.error))&&e.preventDefault()}else t=i&&i.apply(this,arguments),"beforeunload"===e.type&&A[I]&&"string"==typeof t?e.returnValue=t:void 0==t||t||e.preventDefault();return t};function j(e,t,r){let n=h(e,t);if(!n&&r&&h(r,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let i=c("on"+t+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete n.writable,delete n.value;let s=n.get,o=n.set,a=t.slice(2),l=D[a];l||(l=D[a]=c("ON_PROPERTY"+a)),n.set=function(t){let r=this;r||e!==A||(r=A),r&&("function"==typeof r[l]&&r.removeEventListener(a,M),null==o||o.call(r,null),r[l]=t,"function"==typeof t&&r.addEventListener(a,M,!1))},n.get=function(){let r=this;if(r||e!==A||(r=A),!r)return null;let i=r[l];if(i)return i;if(s){let e=s.call(this);if(e)return n.set.call(this,e),"function"==typeof r.removeAttribute&&r.removeAttribute(t),e}return null},d(e,t,n),e[i]=!0}function $(e,t,r){if(t)for(let n=0;n<t.length;n++)j(e,"on"+t[n],r);else{let t=[];for(let r in e)"on"==r.slice(0,2)&&t.push(r);for(let n=0;n<t.length;n++)j(e,t[n],r)}}var z=c("originalInstance");function U(e){let t,r=A[e];if(!r)return;A[c(e)]=r,A[e]=function(){let t=O(arguments,e);switch(t.length){case 0:this[z]=new r;break;case 1:this[z]=new r(t[0]);break;case 2:this[z]=new r(t[0],t[1]);break;case 3:this[z]=new r(t[0],t[1],t[2]);break;case 4:this[z]=new r(t[0],t[1],t[2],t[3]);break;default:throw Error("Arg list too long.")}},B(A[e],r);let n=new r(function(){});for(t in n)("XMLHttpRequest"!==e||"responseBlob"!==t)&&function(t){"function"==typeof n[t]?A[e].prototype[t]=function(){return this[z][t].apply(this[z],arguments)}
1:d(A[e].prototype,t,{set:function(r){"function"==typeof r?(this[z][t]=E(r,e+"."+t),B(this[z][t],r)):this[z][t]=r},get:function(){return this[z][t]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&(A[e][t]=r[t])}function F(e,t,r){let n=e;for(;n&&!n.hasOwnProperty(t);)n=p(n);!n&&e[t]&&(n=e);let i=c(t),s=null;if(n&&(!(s=n[i])||!n.hasOwnProperty(i))&&(s=n[i]=n[t],L(n&&h(n,t)))){let e=r(s,i,t);n[t]=function(){return e(this,arguments)},B(n[t],s)}return s}function Z(e,t,r){let n=null;function i(e){let t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},n.apply(t.target,t.args),e}n=F(e,t,e=>function(t,n){let s=r(t,n);return s.cbIdx>=0&&"function"==typeof n[s.cbIdx]?k(s.name,n[s.cbIdx],s,i):e.apply(t,n)})}function B(e,t){e[c("OriginalDelegate")]=t}function H(e){return"function"==typeof e}function V(e){return"number"==typeof e}var q={useG:!0},W={},G={},K=RegExp("^"+S+"(\\w+)(true|false)$"),J=c("propagationStopped");function X(e,t){let r=(t?t(e):e)+T,n=(t?t(e):e)+b;W[e]={},W[e][T]=S+r,W[e][b]=S+n}function Q(e,n,i,s){let o=s&&s.add||_,l=s&&s.rm||g,u=s&&s.listeners||"eventListeners",h=s&&s.rmAll||"removeAllListeners",d=c(o),f="."+o+":",m="prependListener",v="."+m+":",y=function(e,t,r){let n;if(e.isRemoved)return;let i=e.callback;"object"==typeof i&&i.handleEvent&&(e.callback=e=>i.handleEvent(e),e.originalDelegate=i);try{e.invoke(e,t,[r])}catch(e){n=e}let s=e.options;if(s&&"object"==typeof s&&s.once){let n=e.originalDelegate?e.originalDelegate:e.callback;t[l].call(t,r.type,n,s)}return n};function E(t,r,i){if(!(r=r||e.event))return;let s=t||r.target||e,o=s[W[r.type][i?b:T]];if(o){let e=[];
1if(1===o.length){let t=y(o[0],s,r);t&&e.push(t)}else{let t=o.slice();for(let n=0;n<t.length&&(!r||!0!==r[J]);n++){let i=y(t[n],s,r);i&&e.push(i)}}if(1===e.length)throw e[0];for(let t=0;t<e.length;t++){let r=e[t];n.nativeScheduleMicroTask(()=>{throw r})}}}let k=function(e){return E(this,e,!1)},w=function(e){return E(this,e,!0)},C=[];for(let n=0;n<i.length;n++)C[n]=function(n,i){let s;if(!n)return!1;let _=!0;i&&void 0!==i.useG&&(_=i.useG);let g=i&&i.vh,y=!0;i&&void 0!==i.chkDup&&(y=i.chkDup);let E=!1;i&&void 0!==i.rt&&(E=i.rt);let C=n;for(;C&&!C.hasOwnProperty(o);)C=p(C);if(!C&&n[o]&&(C=n),!C||C[d])return!1;let A=i&&i.eventNameToString,O={},L=C[d]=C[o],P=C[c(l)]=C[l],x=C[c(u)]=C[u],N=C[c(h)]=C[h];i&&i.prepend&&(s=C[c(i.prepend)]=C[i.prepend]);let D=_?function(e){if(!O.isExisting)return L.call(O.target,O.eventName,O.capture?w:k,O.options)}:function(e){return L.call(O.target,O.eventName,e.invoke,O.options)},I=_?function(e){if(!e.isRemoved){let t,r=W[e.eventName];r&&(t=r[e.capture?b:T]);let n=t&&e.target[t];if(n){for(let r=0;r<n.length;r++)if(n[r]===e){n.splice(r,1),e.isRemoved=!0,e.removeAbortListener&&(e.removeAbortListener(),e.removeAbortListener=null),0===n.length&&(e.allRemoved=!0,e.target[t]=null);break}}}if(e.allRemoved)return P.call(e.target,e.eventName,e.capture?w:k,e.options)}:function(e){return P.call(e.target,e.eventName,e.invoke,e.options)},M=(null==i?void 0:i.diff)||function(e,t){let r=typeof t;return"function"===r&&e.callback===t||"object"===r&&e.originalDelegate===t},j=Zone[c("UNPATCHED_EVENTS")],$=e[c("PASSIVE_EVENTS")],z=function(n,s,o,l,u=!1,c=!1){return function(){let h,d=this||e,p=arguments[0];i&&i.transferEventName&&(p=i.transferEventName(p));let f=arguments[1];if(!f||R&&"uncaughtException"===p)return n.apply(this,arguments);let m=!1;if("function"!=typeof f){if(!f.handleEvent)return n.apply(this,arguments);m=!0}if(g&&!g(n,f,d,arguments))return;let v=!!$&&-1!==$.indexOf(p),S=function(e){if("object"==typeof e&&null!==e){let t=a({},e);return e.signal&&(t.signal=e.signal),t}return e}(function(e,n){if(!n)return e;if("boolean"==typeof e)return{capture:e,passive:!0};if(!e)return{passive:!0};if("object"==typeof e&&!1!==e.passive)return t(a({},e),r({passive:!0}));return e}(arguments[2],v)),E=null==S?void 0:S.signal;if(null==E?void 0:E.aborted)return;if(j){for(let e=0;e<j.length;e++)if(p===j[e])if(v)return n.call(d,p,f,S);else return n.apply(this,arguments)}let k=!!S&&("boolean"==typeof S||S.capture),w=!!S&&"object"==typeof S&&S.once,C=Zone.current,L=W[p];L||(X(p,A),L=W[p]);let P=L[k?b:T],x=d[P],N=!1;if(x){if(N=!0,y){for(let e=0;e<x.length;e++)if(M(x[e],f))return}}else x=d[P]=[];let D=d.constructor.name,I=G[D];I&&(h=I[p]),h||(h=D+s+(A?A(p):p)),O.options=S,w&&(O.options.once=!1),O.target=d,O.capture=k,O.eventName=p,O.isExisting=N;let z=_?q:void 0;z&&(z.taskData=O),E&&(O.options.signal=void 0);let U=C.scheduleEventTask(h,f,z,o,l);if(E){O.options.signal=E;let e=()=>U.zone.cancelTask(U);n.call(E,"abort",e,{once:!0}),U.removeAbortListener=()=>E.removeEventListener("abort",e)}if(O.target=null,z&&(z.taskData=null),w&&(O.options.once=!0),"boolean"!=typeof U.options&&(U.options=S),U.target=d,U.capture=k,U.eventName=p,m&&(U.originalDelegate=f),c?x.unshift(U):x.push(U),u)return d}};return C[o]=z(L,f,D,I,E),s&&(C[m]=z(s,v,function(e){return s.call(O.target,O.eventName,e.invoke,O.options)},I,E,!0)),C[l]=function(){let t,r=this||e,n=arguments[0];i&&i.transferEventName&&(n=i.transferEventName(n));let s=arguments[2],o=!!s&&("boolean"==typeof s||s.capture),a=arguments[1];if(!a)return P.apply(this,arguments);if(g&&!g(P,a,r,arguments))return;let l=W[n];l&&(t=l[o?b:T]);let u=t&&r[t];if(u)for(let e=0;e<u.length;e++){let i=u[e];if(M(i,a)){if(u.splice(e,1),i.isRemoved=!0,0===u.length&&(i.allRemoved=!0,r[t]=null,o||"string"!=typeof n||(r[S+"ON_PROPERTY"+n]=null)),i.zone.cancelTask(i),E)return r;return}}return P.apply(this,arguments)},C[u]=function(){let t=this||e,r=arguments[0];i&&i.transferEventName&&(r=i.transferEventName(r));let n=[],s=Y(t,A?A(r):r);for(let e=0;e<s.length;e++){let t=s[e],r=t.originalDelegate?t.originalDelegate:t.callback;n.push(r)}return n},C[h]=function(){let t=this||e,r=arguments[0];if(r){i&&i.transferEventName&&(r=i.transferEventName(r));let e=W[r];if(e){let n=e[T],i=e[b],s=t[n],o=t[i];if(s){let e=s.slice();for(let t=0;t<e.length;t++){let n=e[t],i=n.originalDelegate?n.originalDelegate:n.callback;this[l].call(this,r,i,n.options)}}if(o){let e=o.slice();for(let t=0;t<e.length;t++){let n=e[t],i=n.originalDelegate?n.originalDelegate:n.callback;this[l].call(this,r,i,n.options)}}}}else{let e=Object.keys(t);for(let t=0;t<e.length;t++){let r=e[t],n=K.exec(r),i=n&&n[1];i&&"removeListener"!==i&&this[h].call(this,i)}this[h].call(this,"removeListener")}if(E)return this},B(C[o],L),B(C[l],P),N&&B(C[h],N),x&&B(C[u],x),!0}(i[n],s);return C}function Y(e,t){if(!t){let r=[];for(let n in e){let i=K.exec(n),s=i&&i[1];if(s&&(!t||s===t)){let t=e[n];if(t)for(let e=0;e<t.length;e++)r.push(t[e])}}return r}let r=W[t];r||(X(t),r=W[t]);let n=e[r[T]],i=e[r[b]];return n?i?n.concat(i):n.slice():i?i.slice():[]}function ee(e,t){let r=e.Event;r&&r.prototype&&t.patchMethod(r.prototype,"stopImmediatePropagation",e=>function(t,r){t[J]=!0,e&&e.apply(t,r)}
1)}var et=c("zoneTask");function er(e,t,r,n){let i=null,s=null;t+=n,r+=n;let o={};function a(t){let r=t.data;r.args[0]=function(){return t.invoke.apply(this,arguments)};let n=i.apply(e,r.args);return V(n)?r.handleId=n:(r.handle=n,r.isRefreshable=H(n.refresh)),t}function l(t){let{handle:r,handleId:n}=t.data;return s.call(e,null!=r?r:n)}i=F(e,t,r=>function(i,s){var u;if(!H(s[0]))return r.apply(e,s);{let e={isRefreshable:!1,isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?s[1]||0:void 0,args:s},r=s[0];s[0]=function(){try{return r.apply(this,arguments)}finally{let{handle:t,handleId:r,isPeriodic:n,isRefreshable:i}=e;n||i||(r?delete o[r]:t&&(t[et]=null))}};let i=k(t,s[0],e,a,l);if(!i)return i;let{handleId:c,handle:h,isRefreshable:d,isPeriodic:p}=i.data;if(c)o[c]=i;else if(h&&(h[et]=i,d&&!p)){let e=h.refresh;h.refresh=function(){let{zone:t,state:r}=i;return"notScheduled"===r?(i._state="scheduled",t._updateTaskCount(i,1)):"running"===r&&(i._state="scheduling"),e.call(this)}}return null!=(u=null!=h?h:c)?u:i}}),s=F(e,r,t=>function(r,n){let i,s=n[0];V(s)?(i=o[s],delete o[s]):(i=null==s?void 0:s[et])?s[et]=null:i=s,(null==i?void 0:i.type)?i.cancelFn&&i.zone.cancelTask(i):t.apply(e,n)})}function en(e,t,r){if(!r||0===r.length)return t;let n=r.filter(t=>t.target===e);if(0===n.length)return t;let i=n[0].ignoreProperties;return t.filter(e=>-1===i.indexOf(e))}function ei(e,t,r,n){if(!e)return;let i=en(e,t,r);$(e,i,n)}function es(e){return Object.getOwnPropertyNames(e).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function eo(e,t,r,n,i){let s=Zone.__symbol__(n);if(t[s])return;let o=t[s]=t[n];t[n]=function(s,a,l){return a&&a.prototype&&i.forEach(function(t){let i=`${r}.${n}::`+t,s=a.prototype;try{if(s.hasOwnProperty(t)){let r=e.ObjectGetOwnPropertyDescriptor(s,t);r&&r.value?(r.value=e.wrapWithCurrentZone(r.value,i),e._redefineProperty(a.prototype,t,r)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],i))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],i))}catch(e){}}),o.call(t,s,a,l)},e.attachOriginToPatched(t[n],o)}var ea=function(){let e=globalThis,t=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone&&(t||"function"!=typeof e.Zone.__symbol__))throw Error("Zone already loaded.");return null!=e.Zone||(e.Zone=function(){let e,t=u.performance;function r(e){t&&t.mark&&t.mark(e)}function n(e,r){t&&t.measure&&t.measure(e,r)}r("Zone");let i=class e{constructor(e,t){l(this,"_parent"),l(this,"_name"),l(this,"_properties"),l(this,"_zoneDelegate"),this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(u.Promise!==P.ZoneAwarePromise)throw Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=e.current;for(;t.parent;)t=t.parent;return t}static get current(){return x.zone}static get currentTask(){return N}static __load_patch(t,i,s=!1){if(P.hasOwnProperty(t)){let e=!0===u[c("forceDuplicateZoneCheck")];if(!s&&e)throw Error("Already loaded patch: "+t)}else if(!u["__Zone_disable_"+t]){let s="Zone:"+t;r(s),P[t]=i(u,e,R),n(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){let t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw Error("Expecting function got: "+e);let r=this._zoneDelegate.intercept(this,e,t),n=this;return function(){return n.runGuarded(r,this,arguments,t)}}run(e,t,r,n){x={parent:x,zone:this};try{return this._zoneDelegate.invoke(this,e,t,r,n)}finally{x=x.parent}}runGuarded(e,t=null,r,n){x={parent:x,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,r,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{x=x.parent}}runTask(e,t,r){if(e.zone!=this)throw Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");let{type:n,data:{isPeriodic:i=!1,isRefreshable:s=!1}={}}=e;if(e.state===T&&(n===L||n===O))return;let o=e.state!=k;o&&e._transitionTo(k,E);let a=N;N=e,x={parent:x,zone:this};try{n!=O||!e.data||i||s||(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{let t=e.state;if(t!==T&&t!==C)if(n==L||i||s&&t===S)o&&e._transitionTo(E,k,S);else{let t=e._zoneDelegates;this._updateTaskCount(e,-1),o&&e._transitionTo(T,k,T),s&&(e._zoneDelegates=t)}x=x.parent,N=a}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(S,T);let t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(C,S,T),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==S&&e._transitionTo(E,S),e}scheduleMicroTask(e,t,r,n){return this.scheduleTask(new a(A,e,t,r,n,void 0))}scheduleMacroTask(e,t,r,n,i){return this.scheduleTask(new a(O,e,t,r,n,i)
1)}scheduleEventTask(e,t,r,n,i){return this.scheduleTask(new a(L,e,t,r,n,i))}cancelTask(e){if(e.zone!=this)throw Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");if(e.state===E||e.state===k){e._transitionTo(w,E,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(C,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(T,w),e.runCount=-1,e}}_updateTaskCount(e,t){let r=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let n=0;n<r.length;n++)r[n]._updateTaskCount(e.type,t)}};l(i,"__symbol__",c);let s={name:"",onHasTask:(e,t,r,n)=>e.hasTask(r,n),onScheduleTask:(e,t,r,n)=>e.scheduleTask(r,n),onInvokeTask:(e,t,r,n,i,s)=>e.invokeTask(r,n,i,s),onCancelTask:(e,t,r,n)=>e.cancelTask(r,n)};class o{constructor(e,t,r){l(this,"_zone"),l(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),l(this,"_forkDlgt"),l(this,"_forkZS"),l(this,"_forkCurrZone"),l(this,"_interceptDlgt"),l(this,"_interceptZS"),l(this,"_interceptCurrZone"),l(this,"_invokeDlgt"),l(this,"_invokeZS"),l(this,"_invokeCurrZone"),l(this,"_handleErrorDlgt"),l(this,"_handleErrorZS"),l(this,"_handleErrorCurrZone"),l(this,"_scheduleTaskDlgt"),l(this,"_scheduleTaskZS"),l(this,"_scheduleTaskCurrZone"),l(this,"_invokeTaskDlgt"),l(this,"_invokeTaskZS"),l(this,"_invokeTaskCurrZone"),l(this,"_cancelTaskDlgt"),l(this,"_cancelTaskZS"),l(this,"_cancelTaskCurrZone"),l(this,"_hasTaskDlgt"),l(this,"_hasTaskDlgtOwner"),l(this,"_hasTaskZS"),l(this,"_hasTaskCurrZone"),this._zone=e,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const n=r&&r.onHasTask,i=t&&t._hasTaskZS;(n||i)&&(this._hasTaskZS=n?r:s,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,r):t}invoke(e,t,r,n,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,r,n,i):t.apply(r,n)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),(r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else if(t.type==A)v(t);else throw Error("Task is missing scheduleFn.");return r}invokeTask(e,t,r,n){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,r,n):t.callback.apply(r,n)}cancelTask(e,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(t){this.handleError(e,t)}}_updateTaskCount(e,t){let r=this._taskCounts,n=r[e],i=r[e]=n+t;if(i<0)throw Error("More tasks executed then were scheduled.");
1if(0==n||0==i){let t={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:e};this.hasTask(this._zone,t)}}}class a{constructor(e,t,r,n,i,s){if(l(this,"type"),l(this,"source"),l(this,"invoke"),l(this,"callback"),l(this,"data"),l(this,"scheduleFn"),l(this,"cancelFn"),l(this,"_zone",null),l(this,"runCount",0),l(this,"_zoneDelegates",null),l(this,"_state","notScheduled"),this.type=e,this.source=t,this.data=n,this.scheduleFn=i,this.cancelFn=s,!r)throw Error("callback is not defined");this.callback=r;const o=this;e===L&&n&&n.useG?this.invoke=a.invokeTask:this.invoke=function(){return a.invokeTask.call(u,o,this,arguments)}}static invokeTask(e,t,r){e||(e=this),D++;try{return e.runCount++,e.zone.runTask(e,t,r)}finally{1!==D||u[f]||y(),D--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(T,S)}_transitionTo(e,t,r){if(this._state===t||this._state===r)this._state=e,e==T&&(this._zoneDelegates=null);else throw Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let h=c("setTimeout"),d=c("Promise"),p=c("then"),f=c("enable_native_microtask_draining"),m=[],_=!1;function g(t){var r;!e&&u[d]&&(e=u[d].resolve(0)),e?(null!=(r=e[p])?r:e.then).call(e,t):u[h](t,0)}function v(e){let t=u[f],r=t&&0===m.length&&!_,n=!t&&0===D&&0===m.length;(r||n)&&g(y),e&&m.push(e)}function y(){if(!_){for(_=!0;m.length;){let e=m;for(let t of(m=[],e))try{t.zone.runTask(t,null,null)}catch(e){R.onUnhandledError(e)}}u[f]?(_=!1,R.microtaskDrainDone()):(R.microtaskDrainDone(),_=!1)}}let b={name:"NO ZONE"},T="notScheduled",S="scheduling",E="scheduled",k="running",w="canceling",C="unknown",A="microTask",O="macroTask",L="eventTask",P={},R={symbol:c,currentZoneFrame:()=>x,onUnhandledError:I,microtaskDrainDone:I,scheduleMicroTask:v,showUncaughtError:()=>!i[c("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:I,patchMethod:()=>I,bindArguments:()=>[],patchThen:()=>I,patchMacroTask:()=>I,patchEventPrototype:()=>I,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>I,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>I,wrapWithCurrentZone:()=>I,filterProperties:()=>[],attachOriginToPatched:()=>I,_redefineProperty:()=>I,patchCallbacks:()=>I,nativeScheduleMicroTask:g},x={parent:null,zone:new i(null,null)},N=null,D=0;function I(){}return n("Zone","Zone"),i}()),e.Zone}();ea.__load_patch("ZoneAwarePromise",(e,t,r)=>{let n=Object.getOwnPropertyDescriptor,i=Object.defineProperty,s=r.symbol,o=[],a=!1!==e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=s("Promise"),u=s("then");r.onUnhandledError=e=>{if(r.showUncaughtError()){let t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},r.microtaskDrainDone=()=>{for(;o.length;){let e=o.shift();try{e.zone.runGuarded(()=>{if(e.throwOriginal)throw e.rejection;throw e})}catch(e){!function(e){r.onUnhandledError(e);try{let r=t[c];"function"==typeof r&&r.call(this,e)}catch(e){}}(e)}}};let c=s("unhandledPromiseRejectionHandler");function h(e){return e&&"function"==typeof e.then}function d(e){return e}function p(e){return O.reject(e)}let f=s("state"),m=s("value"),_=s("finally"),g=s("parentPromiseValue"),v=s("parentPromiseState");function y(e,t){return r=>{try{S(e,t,r)}catch(t){S(e,!1,t)}}}let b=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},T=s("currentTaskTrace");function S(e,n,s){let l=b();if(e===s)throw TypeError("Promise resolved with itself");if(null===e[f]){let c=null;try{("object"==typeof s||"function"==typeof s)&&(c=s&&s.then)}catch(t){return l(()=>{S(e,!1,t)})(),e}if(!1!==n&&s instanceof O&&s.hasOwnProperty(f)&&s.hasOwnProperty(m)&&null!==s[f])k(s),S(e,s[f],s[m]);else if(!1!==n&&"function"==typeof c)try{c.call(s,l(y(e,n)),l(y(e,!1)))}catch(t){l(()=>{S(e,!1,t)})()}else{e[f]=n;let l=e[m];if(e[m]=s,e[_]===_&&!0===n&&(e[f]=e[v],e[m]=e[g]),!1===n&&s instanceof Error){let e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&i(s,T,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<l.length;)w(e,l[t++],l[t++],l[t++],l[t++]);if(0==l.length&&!1==n){e[f]=0;let n=s;try{var u;throw Error("Uncaught (in promise): "+((u=s)&&u.toString===Object.prototype.toString?(u.constructor&&u.constructor.name||"")+": "+JSON.stringify(u):u?u.toString():Object.prototype.toString.call(u))+(s&&s.stack?"\n"+s.stack:""))}catch(e){n=e}a&&(n.throwOriginal=!0),n.rejection=s,n.promise=e,n.zone=t.current,n.task=t.currentTask,o.push(n),r.scheduleMicroTask()}}}return e}let E=s("rejectionHandledHandler");function k(e){if(0===e[f]){try{let r=t[E];r&&"function"==typeof r&&r.call(this,{rejection:e[m],promise:e})}catch(e){}e[f]=!1;for(let t=0;t<o.length;t++)e===o[t].promise&&o.splice(t,1)}}function w(e,t,r,n,i){k(e);let s=e[f],o=s?"function"==typeof n?n:d:"function"==typeof i?i:p;t.scheduleMicroTask("Promise.then",()=>{try{let n=e[m],i=!!r&&_===r[_];i&&(r[g]=n,r[v]=s);let a=t.run(o,void 0,i&&o!==p&&o!==d?[]:[n]);S(r,!0,a)}catch(e){S(r,!1,e)}},r)}let C=function(){},A=e.AggregateError;class O{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return e instanceof O?e:S(new this(null),!0,e)}static reject(e){return S(new this(null),!1,e)}static withResolvers(){let e={};return e.promise=new O((t,r)=>{e.resolve=t,e.reject=r}),e}static any(e){if(!e||"function"!=typeof e[Symbol.iterator])return Promise.reject(new A([],"All promises were rejected"));let t=[],r=0;
1try{for(let n of e)r++,t.push(O.resolve(n))}catch(e){return Promise.reject(new A([],"All promises were rejected"))}if(0===r)return Promise.reject(new A([],"All promises were rejected"));let n=!1,i=[];return new O((e,s)=>{for(let o=0;o<t.length;o++)t[o].then(t=>{n||(n=!0,e(t))},e=>{i.push(e),0==--r&&(n=!0,s(new A(i,"All promises were rejected")))})})}static race(e){let t,r,n=new this((e,n)=>{t=e,r=n});function i(e){t(e)}function s(e){r(e)}for(let t of e)h(t)||(t=this.resolve(t)),t.then(i,s);return n}static all(e){return O.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof O?this:O).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let r,n,i=new this((e,t)=>{r=e,n=t}),s=2,o=0,a=[];for(let i of e){h(i)||(i=this.resolve(i));let e=o;try{i.then(n=>{a[e]=t?t.thenCallback(n):n,s--,0===s&&r(a)},i=>{t?(a[e]=t.errorCallback(i),s--,0===s&&r(a)):n(i)})}catch(e){n(e)}s++,o++}return 0==(s-=2)&&r(a),i}constructor(e){if(!(this instanceof O))throw Error("Must be an instanceof Promise.");this[f]=null,this[m]=[];try{const t=b();e&&e(t(y(this,!0)),t(y(this,!1)))}catch(e){S(this,!1,e)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return O}then(e,r){var n;let i=null==(n=this.constructor)?void 0:n[Symbol.species];i&&"function"==typeof i||(i=this.constructor||O);let s=new i(C),o=t.current;return null==this[f]?this[m].push(o,s,e,r):w(this,o,s,e,r),s}catch(e){return this.then(null,e)}finally(e){var r;let n=null==(r=this.constructor)?void 0:r[Symbol.species];n&&"function"==typeof n||(n=O);let i=new n(C);i[_]=_;let s=t.current;return null==this[f]?this[m].push(s,i,e,e):w(this,s,i,e,e),i}}O.resolve=O.resolve,O.reject=O.reject,O.race=O.race,O.all=O.all;let L=e[l]=e.Promise;e.Promise=O;let P=s("thenPatched");function R(e){let t=e.prototype,r=n(t,"then");if(r&&(!1===r.writable||!r.configurable))return;let i=t.then;t[u]=i,e.prototype.then=function(e,t){return new O((e,t)=>{i.call(this,e,t)}).then(e,t)},e[P]=!0}if(r.patchThen=R,L){R(L);let t=L.try;t&&"function"==typeof t&&(O.try=t),F(e,"fetch",e=>function(t,r){let n=e.apply(t,r);if(n instanceof O)return n;let i=n.constructor;return i[P]||R(i),n})}return Promise[t.__symbol__("uncaughtPromiseErrors")]=o,O}),ea.__load_patch("toString",e=>{let t=Function.prototype.toString,r=c("OriginalDelegate"),n=c("Promise"),i=c("Error"),s=function(){if("function"==typeof this){let s=this[r];if(s)if("function"==typeof s)return t.call(s);else return Object.prototype.toString.call(s);if(this===Promise){let r=e[n];if(r)return t.call(r)}if(this===Error){let r=e[i];if(r)return t.call(r)}}return t.call(this)};s[r]=t,Function.prototype.toString=s;let o=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":o.call(this)}}),ea.__load_patch("util",(e,t,r)=>{let n=es(e);r.patchOnProperties=$,r.patchMethod=F,r.bindArguments=O,r.patchMacroTask=Z;let i=t.__symbol__("BLACK_LISTED_EVENTS"),s=t.__symbol__("UNPATCHED_EVENTS");e[s]&&(e[i]=e[s]),e[i]&&(t[i]=t[s]=e[i]),r.patchEventPrototype=ee,r.patchEventTarget=Q,r.ObjectDefineProperty=d,r.ObjectGetOwnPropertyDescriptor=h,r.ObjectCreate=f,r.ArraySlice=m,r.patchClass=U,r.wrapWithCurrentZone=E,r.filterProperties=en,r.attachOriginToPatched=B,r._redefineProperty=Object.defineProperty,r.patchCallbacks=eo,r.getGlobalObjects=()=>({globalSources:G,zoneSymbolEventNames:W,eventNames:n,isBrowser:x,isMix:N,isNode:R,TRUE_STR:b,FALSE_STR:T,ZONE_SYMBOL_PREFIX:S,ADD_EVENT_LISTENER_STR:_,REMOVE_EVENT_LISTENER_STR:g})}),ea.__load_patch("timers",e=>{let t="clear";er(e,"set",t,"Timeout"),er(e,"set",t,"Interval"),er(e,"set",t,"Immediate")}),ea.__load_patch("requestAnimationFrame",e=>{er(e,"request","cancel","AnimationFrame"),er(e,"mozRequest","mozCancel","AnimationFrame"),er(e,"webkitRequest","webkitCancel","AnimationFrame")}),ea.__load_patch("blocking",(e,t)=>{let r=["alert","prompt","confirm"];for(let n=0;n<r.length;n++)F(e,r[n],(r,n,i)=>function(n,s){return t.current.run(r,e,s,i)})}),ea.__load_patch("EventTarget",(e,t,r)=>{r.patchEventPrototype(e,r),function(e,t){if(Zone[t.symbol("patchEventTarget")])return;let{eventNames:r,zoneSymbolEventNames:n,TRUE_STR:i,FALSE_STR:s,ZONE_SYMBOL_PREFIX:o}=t.getGlobalObjects();for(let e=0;e<r.length;e++){let t=r[e],a=o+(t+s),l=o+(t+i);n[t]={},n[t][s]=a,n[t][i]=l}let a=e.EventTarget;a&&a.prototype&&t.patchEventTarget(e,t,[a&&a.prototype])}(e,r);let n=e.XMLHttpRequestEventTarget;n&&n.prototype&&r.patchEventTarget(e,r,[n.prototype])}),ea.__load_patch("MutationObserver",(e,t,r)=>{U("MutationObserver"),U("WebKitMutationObserver")}),ea.__load_patch("IntersectionObserver",(e,t,r)=>{U("IntersectionObserver")}),ea.__load_patch("FileReader",(e,t,r)=>{U("FileReader")}),ea.__load_patch("on_property",(e,t,r)=>{!function(e,t){if(R&&!N||Zone[e.symbol("patchEvents")])return;let r=t.__Zone_ignore_on_properties,n=[];if(x){let e=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),ei(e,es(e),r,p(e))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let e=0;e<n.length;e++){let i=t[n[e]];(null==i?void 0:i.prototype)&&ei(i.prototype,es(i.prototype),r)}}(r,e)}),ea.__load_patch("customElements",(e,t,r)=>{!function(e,t){let{isBrowser:r,isMix:n}=t.getGlobalObjects();(r||n)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(e,r)}),ea.__load_patch("XHR",(e,t)=>{!function(e){let l=e.XMLHttpRequest;if(!l)return;let u=l.prototype,h=u[v],d=u[y];if(!h){let t=e.XMLHttpRequestEventTarget;if(t){let e=t.prototype;h=e[v],d=e[y]}}let p="readystatechange",f="scheduled";function m(e){let n=e.data,o=n.target;o[s]=!1,o[a]=!1;let l=o[i];h||(h=o[v],d=o[y]),l&&d.call(o,p,l);let u=o[i]=()=>
1{if(o.readyState===o.DONE)if(!n.aborted&&o[s]&&e.state===f){let r=o[t.__symbol__("loadfalse")];if(0!==o.status&&r&&r.length>0){let i=e.invoke;e.invoke=function(){let r=o[t.__symbol__("loadfalse")];for(let t=0;t<r.length;t++)r[t]===e&&r.splice(t,1);n.aborted||e.state!==f||i.call(e)},r.push(e)}else e.invoke()}else n.aborted||!1!==o[s]||(o[a]=!0)};return h.call(o,p,u),o[r]||(o[r]=e),E.apply(o,n.args),o[s]=!0,e}function _(){}function g(e){let t=e.data;return t.aborted=!0,w.apply(t.target,t.args)}let b=F(u,"open",()=>function(e,t){return e[n]=!1==t[2],e[o]=t[1],b.apply(e,t)}),T=c("fetchTaskAborting"),S=c("fetchTaskScheduling"),E=F(u,"send",()=>function(e,r){if(!0===t.current[S]||e[n])return E.apply(e,r);{let t={target:e,url:e[o],isPeriodic:!1,args:r,aborted:!1},n=k("XMLHttpRequest.send",_,t,m,g);e&&!0===e[a]&&!t.aborted&&n.state===f&&n.invoke()}}),w=F(u,"abort",()=>function(e,n){let i=e[r];if(i&&"string"==typeof i.type){if(null==i.cancelFn||i.data&&i.data.aborted)return;i.zone.cancelTask(i)}else if(!0===t.current[T])return w.apply(e,n)})}(e);let r=c("xhrTask"),n=c("xhrSync"),i=c("xhrListener"),s=c("xhrScheduled"),o=c("xhrURL"),a=c("xhrErrorBeforeScheduled")}),ea.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,t){let r=e.constructor.name;for(let n=0;n<t.length;n++){let i=t[n],s=e[i];if(s){if(!L(h(e,i)))continue;e[i]=(e=>{let t=function(){return e.apply(this,O(arguments,r+"."+i))};return B(t,e),t})(s)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),ea.__load_patch("PromiseRejectionEvent",(e,t)=>{function r(t){return function(r){Y(e,t).forEach(n=>{let i=e.PromiseRejectionEvent;if(i){let e=new i(t,{promise:r.promise,reason:r.rejection});n.invoke(e)}})}}e.PromiseRejectionEvent&&(t[c("unhandledPromiseRejectionHandler")]=r("unhandledrejection"),t[c("rejectionHandledHandler")]=r("rejectionhandled"))}),ea.__load_patch("queueMicrotask",(e,t,r)=>{r.patchMethod(e,"queueMicrotask",e=>function(e,t){Zone.current.scheduleMicroTask("queueMicrotask",t[0])})})},63149:(e,t,r)=>{r.d(t,{A:()=>v});var n=r(53564),i=r(62938),s=r(67090),o=r(70326),a=r(79236),l=r(13847),u=r(96610),c=r(66668),h=r(596),d=r(52340),p=r(5328);function f(e){return(0,p.Ay)("MuiAppBar",e)}(0,d.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var m=r(1296);let _=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,g=(0,o.default)(h.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${(0,u.A)(r.position)}`],t[`color${(0,u.A)(r.color)}`]]}})((0,a.A)(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter((0,c.A)(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?_(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?_(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),v=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:a=!1,position:c="fixed",...h}=r,d={...r,color:o,position:c,enableColorOnDark:a},p=(e=>{let{color:t,position:r,classes:n}=e,i={root:["root",`color${(0,u.A)(t)}`,`position${(0,u.A)(r)}
1`]};return(0,s.A)(i,f,n)})(d);return(0,m.jsx)(g,{square:!0,component:"header",ownerState:d,elevation:4,className:(0,i.A)(p.root,n,"fixed"===c&&"mui-fixed"),ref:t,...h})})},63721:(e,t,r)=>{r.d(t,{O:()=>m});var n=r(51718),i=r(46607),s=r(25060),o=r(78392);let a=console.error.bind(console);function l(e,t,r){let n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}let u=(e,t,r)=>{if(!e||!e[t])return void a("no original function "+String(t)+" to wrap");if(!r){a("no wrapper function"),a(Error().stack);return}let n=e[t];if("function"!=typeof n||"function"!=typeof r)return void a("original object and wrapper must be functions");let i=r(n,t);return l(i,"__original",n),l(i,"__unwrap",()=>{e[t]===i&&l(e,t,n)}),l(i,"__wrapped",!0),l(e,t,i),i},c=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{a("must provide one or more modules to patch"),a(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{u(e,t,r)})}):a("must provide one or more functions to wrap on modules")},h=(e,t)=>{if(!e||!e[t]){a("no function to unwrap."),a(Error().stack);return}let r=e[t];r.__unwrap?r.__unwrap():a("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},d=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{a("must provide one or more modules to patch"),a(Error().stack);return}t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{h(e,t)})}):a("must provide one or more functions to unwrap on modules")};function p(e){e&&e.logger&&("function"!=typeof e.logger?a("new logger isn't a function, not replacing"):a=e.logger)}p.wrap=u,p.massWrap=c,p.unwrap=h,p.massUnwrap=d;class f{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,t,r){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(r),this._diag=n.s.createComponentLogger({namespace:e}),this._tracer=i.u.getTracer(e,t),this._meter=s.q.getMeter(e,t),this._logger=o.K9.getLogger(e,t),this._updateMetricInstruments()}_wrap=u;_unwrap=h;_massWrap=c;_massUnwrap=d;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,r,n){if(e)try{e(r,n)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}class m extends f{constructor(e,t,r){super(e,t,r),this._config.enabled&&this.enable()}}},65070:(e,t,r)=>{r.d(t,{_:()=>n});let n=r(56158)._.getInstance()},65227:(e,t,r)=>{let n;r.d(t,{IN:()=>C,fK:()=>z,rH:()=>M});let i=-1,s=e=>{addEventListener("pageshow",t=>{t.persisted&&(i=t.timeStamp,e(t))},!0)},o=(e,t,r,n)=>{let i,s;return o=>{let a;t.value>=0&&(o||n)&&((s=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=s,a=t.value,t.rating=a>r[1]?"poor":a>r[0]?"needs-improvement":"good",e(t))}},a=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},l=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},u=()=>l()?.activationStart??0,c=-1,h=new Set,d=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,p=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(let e of h)e();isFinite(c)||(c="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",p,!0))}},f=(e=!1)=>{if(e&&(c=1/0),c<0){let e=u();c=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime)??d(),addEventListener("visibilitychange",p,!0),addEventListener("prerenderingchange",p,!0),s(()=>{setTimeout(()=>{c=d()})})}return{get firstHiddenTime(){return c},onHidden(e){h.add(e)}}},m=e=>PerformanceObserver.supportedEntryTypes.includes("soft-navigation")&&e&&e.reportSoftNavs,_=e=>{if(!e)return;let t=window.performance.getEntriesByType("soft-navigation").filter(t=>t.navigationId===e);return t?t[0]:void 0},g=(e,t=-1,r,n=0)=>{let s=l()?.navigationId||0,o=l(),a="navigate";return r?a=r:i>
1=0?a="back-forward-cache":o&&(document.prerendering||u()>0?a="prerender":document.wasDiscarded?a="restore":o.type&&(a=o.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(0x82f79cd8fff*Math.random())+1e12}`,navigationType:a,navigationId:n||s,navigationURL:_(n)?.name||l()?.name}},v=new WeakMap;function y(e,t){return v.get(e)||v.set(e,new t),v.get(e)}class b{t;i=0;o=[];l(e){if(e.hadRecentInput)return;let t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}let T=(e,t,r={})=>{let n=[e],i=m(r);"event"===e&&n.push("first-input"),i&&("largest-contentful-paint"!==e&&"event"!==e&&"layout-shift"!==e||n.push("soft-navigation"),"largest-contentful-paint"===e&&n.push("interaction-contentful-paint"));try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let e=new PerformanceObserver(e=>{queueMicrotask(()=>{let r=e.getEntries();r.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(r)})});for(let t of n)e.observe(Object.assign({type:t,buffered:!0,includeSoftNavigationObservations:i,...r},r||{}));return e}}catch{}},S=e=>{let t=!1;return()=>{t||(e(),t=!0)}},E=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},k=[1800,3e3],w=[.1,.25],C=(e,t={})=>{let r=f();((e,t={})=>{let r=m(t=t||{});E(()=>{let n=f(),i,l=g("FCP"),c=e=>{for(let t of e)"first-contentful-paint"===t.name&&(h.disconnect(),t.startTime<n.firstHiddenTime&&(l.value=Math.max(t.startTime-u(),0),l.entries.push(t),l.navigationId=t.navigationId||0,i(!0)))},h=T("paint",c,t);h&&(i=o(e,l,k,t.reportAllChanges),s(r=>{i=o(e,l=g("FCP",0,"back-forward-cache",l.navigationId),k,t.reportAllChanges),a(()=>{l.value=performance.now()-r.timeStamp,i(!0)})})),r&&T("soft-navigation",r=>{r.forEach(r=>{c(h.takeRecords()),(i=o(e,l=g("FCP",(r.presentationTime||r.paintTime||0)-r.startTime,"soft-navigation",r.navigationId),k,t.reportAllChanges))(!0)})},t)})})(S(()=>{let n,i=g("CLS",0),l=y(t,b),u=(r,s)=>{i=g("CLS",0,r,s),l.i=0,n=o(e,i,w,t.reportAllChanges)},c=r=>{h(d?.takeRecords()),n(!0),u("soft-navigation",r.navigationId),n=o(e,i,w,t.reportAllChanges)},h=e=>{for(let t of e)"largestInteractionContentfulPaint"in t?c(t):l.l(t);l.i>i.value&&(i.value=l.i,i.entries=l.o,n())},d=T("layout-shift",h,t);d&&(n=o(e,i,w,t.reportAllChanges),r.onHidden(()=>{h(d.takeRecords()),n(!0)}),s(()=>{u("back-forward-cache",i.navigationId),a(n)}),setTimeout(n))}))},A=0,O=1/0,L=0,P=e=>{for(let t of e)t.interactionId&&(O=Math.min(O,t.interactionId),A=(L=Math.max(L,t.interactionId))?(L-O)/7+1:0)},R=()=>n?A:performance.interactionCount??0,x=0;class N{h=[];u=new Map;v;m;p(){x=R(),this.h.length=0,this.u.clear()}P(){let e=Math.min(this.h.length-1,Math.floor((R()-x)/50));return this.h[e]}l(e){if(this.v?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.h.at(-1),r=this.u.get(e.interactionId);if(r||this.h.length<10||e.duration>t.T){if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.u.set(r.id,r),this.h.push(r)),this.h.sort((e,t)=>t.T-e.T),this.h.length>10)for(let e of this.h.splice(10))this.u.delete(e.id);this.m?.(r)}}}let D=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{let n=S(e),i=-1,s=()=>{r(i),n()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),i=t(()=>{removeEventListener("visibilitychange",s,{capture:!0}),n()})}},I=[200,500],M=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let r=f();E(()=>{"interactionCount"in performance||n||(n=T("event",P,{durationThreshold:0}));let i,l=g("INP"),u=y(t,N),c=(r,n)=>{u.p(),i=o(e,l=g("INP",-1,r,n),I,t.reportAllChanges)},h=()=>{let e=u.P();e&&e.T!==l.value&&(l.value=e.T,l.entries=e.entries,i())},d=(e,t=!0)=>{t&&p(f?.takeRecords()),h(),i(!0),c("soft-navigation",e.navigationId)},p=e=>{D(()=>
1{if(0!==e.filter(e=>e.interactionId).length){for(let t of e)"largestInteractionContentfulPaint"in t?d(t,!1):u.l(t);h()}})},f=T("event",p,{...t,durationThreshold:t.durationThreshold??40});i=o(e,l,I,t.reportAllChanges),f&&(r.onHidden(()=>{p(f.takeRecords()),i(!0)}),s(()=>{u.p(),c("back-forward-cache",l.navigationId),a(()=>i()),i=o(e,l=g("INP"),I,t.reportAllChanges)}))})};class j{v;l(e){this.v?.(e)}}let $=[2500,4e3],z=(e,t={})=>{let r=!1,n=m(t);E(()=>{let i,l=f(),c=g("LCP"),h=y(t,j),d=(n,s)=>{i=o(e,c=g("LCP",0,n,s),$,t.reportAllChanges),r=!1,"soft-navigation"===n&&(l=f(!0))},p=e=>{m(v.takeRecords()),r||i(!0),d("soft-navigation",e.navigationId),m([e.largestInteractionContentfulPaint])},m=e=>{for(let r of(t.reportAllChanges||n||(e=e.slice(-1)),e))if("largestInteractionContentfulPaint"in r)p(r);else if(r){let e=0;if(r instanceof LargestContentfulPaint)e=Math.max(r.startTime-u(),0);else{if(!c.navigationId)continue;let t=_(c.navigationId);if(!t||"interactionId"in r&&r.interactionId!=t.interactionId)continue;e=Math.max(r.renderTime-t.startTime,0)}h.l(r),r.startTime<l.firstHiddenTime&&(c.value=e,c.entries=[r],i())}},v=T("largest-contentful-paint",m,t);if(v){i=o(e,c,$,t.reportAllChanges);let l=e=>{e.isTrusted&&!r&&D(()=>{r||(m(v.takeRecords()),n||(v.disconnect(),removeEventListener(e.type,l)),r=!0,i(!0))})};for(let e of["keydown","click","visibilitychange"])addEventListener(e,l,{capture:!0});s(n=>{d("back-forward-cache",c.navigationId),i=o(e,c,$,t.reportAllChanges),a(()=>{c.value=performance.now()-n.timeStamp,r=!0,i(!0)})})}})}},65491:(e,t,r)=>{r.d(t,{mS:()=>c,$G:()=>u,kv:()=>h});let n="1.9.1",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s=function(e){let t=new Set([e]),r=new Set,n=e.match(i);if(!n)return()=>!1;let s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=s.prerelease)return function(t){return t===e};function o(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(i);if(!n)return o(e);let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease||s.major!==a.major)return o(e);if(0===s.major)return s.minor===a.minor&&s.patch<=a.patch?(t.add(e),!0):o(e);return s.minor<=a.minor?(t.add(e),!0):o(e)}}(n),o=n.split(".")[0],a=Symbol.for(`opentelemetry.js.api.${o}`),l="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function u(e,t,r,i=!1){var s;let o=l[a]=null!=(s=l[a])?s:{version:n};if(!i&&o[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(o.version!==n){let t=Error(`@opentelemetry/api: Registration of version v${o.version} for ${e} does not match previously registered API v${n}`);return r.error(t.stack||t.message),!1}return o[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${n}.`),!0}function c(e){var t,r;let n=null==(t=l[a])?void 0:t.version;if(n&&s(n))return null==(r=l[a])?void 0:r[e]}function h(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${n}.`);let r=l[a];r&&delete r[e]}},72303:(e,t,r)=>{r.r(t),r.d(t,{DISABLE_CSS_TRANSITION:()=>_,default:()=>g});var n=r(53564),i=r(12259),s=r(12236),o=r(86960),a=r(82341),l=r(1296);let u="mode",c="color-scheme";function h(){}let d=({key:e,storageWindow:t})=>(!t&&"u">typeof window&&(t=window),{get(r){let n;if("u">typeof window){if(!t)return r;try{n=t.localStorage.getItem(e)}catch{}return n||r}},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return h;let n=t=>{let n=t.newValue;t.key===e&&r(n)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function p(){}function f(e){if("u">typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function m(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}let _="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function g(e){let{themeId:t,theme:r={},modeStorageKey:h=u,colorSchemeStorageKey:g=c,disableTransitionOnChange:v=!1,defaultColorScheme:y,resolveTheme:b}=e,T={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},S=n.createContext(void 0),E={},k={},w="string"==typeof y?y:y.light,C="string"==typeof y?y:y.dark;
1return{CssVarsProvider:function(e){let{children:T,theme:w,modeStorageKey:C=h,colorSchemeStorageKey:A=g,disableTransitionOnChange:O=v,storageManager:L,storageWindow:P="u"<typeof window?void 0:window,documentNode:R="u"<typeof document?void 0:document,colorSchemeNode:x="u"<typeof document?void 0:document.documentElement,disableNestedContext:N=!1,disableStyleSheetGeneration:D=!1,defaultMode:I="system",forceThemeRerender:M=!1,noSsr:j}=e,$=n.useRef(!1),z=(0,s.A)(),U=n.useContext(S),F=!!U&&!N,Z=n.useMemo(()=>w||("function"==typeof r?r():r),[w]),B=Z[t],H=B||Z,{colorSchemes:V=E,components:q=k,cssVarPrefix:W}=H,G=Object.keys(V).filter(e=>!!V[e]).join(","),K=n.useMemo(()=>G.split(","),[G]),J="string"==typeof y?y:y.light,X="string"==typeof y?y:y.dark,Q=V[J]&&V[X]?I:V[H.defaultColorScheme]?.palette?.mode||H.palette?.mode,{mode:Y,setMode:ee,systemMode:et,lightColorScheme:er,darkColorScheme:en,colorScheme:ei,setColorScheme:es}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:s=[],modeStorageKey:o=u,colorSchemeStorageKey:a=c,storageWindow:l="u"<typeof window?void 0:window,storageManager:h=d,noSsr:_=!1}=e,g=s.join(","),v=s.length>1,y=n.useMemo(()=>h?.({key:o,storageWindow:l}),[h,o,l]),b=n.useMemo(()=>h?.({key:`${a}-light`,storageWindow:l}),[h,a,l]),T=n.useMemo(()=>h?.({key:`${a}-dark`,storageWindow:l}),[h,a,l]),[S,E]=n.useState(()=>{let e=y?.get(t)||t,n=b?.get(r)||r,s=T?.get(i)||i;return{mode:e,systemMode:f(e),lightColorScheme:n,darkColorScheme:s}}),[k,w]=n.useState(_||!v);n.useEffect(()=>{w(!0)},[]);let C=m(S,e=>"light"===e?S.lightColorScheme:"dark"===e?S.darkColorScheme:void 0),A=n.useCallback(e=>{E(r=>{if(e===r.mode)return r;let n=e??t;return y?.set(n),{...r,mode:n,systemMode:f(n)}})},[y,t]),O=n.useCallback(e=>{e?"string"==typeof e?e&&!g.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):E(t=>{let r={...t};return m(t,t=>{"light"===t&&(b?.set(e),r.lightColorScheme=e),"dark"===t&&(T?.set(e),r.darkColorScheme=e)}),r}):E(t=>{let n={...t},s=null===e.light?r:e.light,o=null===e.dark?i:e.dark;return s&&(g.includes(s)?(n.lightColorScheme=s,b?.set(s)):console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)),o&&(g.includes(o)?(n.darkColorScheme=o,T?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),n}):E(e=>(b?.set(r),T?.set(i),{...e,lightColorScheme:r,darkColorScheme:i}))},[g,b,T,r,i]),L=n.useCallback(e=>{"system"===S.mode&&E(t=>{let r=e?.matches?"dark":"light";return t.systemMode===r?t:{...t,systemMode:r}})},[S.mode]),P=n.useRef(L);return P.current=L,n.useEffect(()=>{if("function"!=typeof window.matchMedia||!v)return;let e=(...e)=>P.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[v]),n.useEffect(()=>{if(v){let e=y?.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&A(e||t)})||p,r=b?.subscribe(e=>{(!e||g.match(e))&&O({light:e})})||p,n=T?.subscribe(e=>{(!e||g.match(e))&&O({dark:e})})||p;return()=>{e(),r(),n()}}},[O,A,g,t,l,v,y,b,T]),{...S,mode:k?S.mode:void 0,systemMode:k?S.systemMode:void 0,colorScheme:k?C:void 0,setMode:A,setColorScheme:O}}({supportedColorSchemes:K,defaultLightColorScheme:J,defaultDarkColorScheme:X,modeStorageKey:C,colorSchemeStorageKey:A,defaultMode:Q,storageManager:L,storageWindow:P,noSsr:j}),eo=Y,ea=ei;F&&(eo=U.mode,ea=U.colorScheme);let el=ea||H.defaultColorScheme;H.vars&&!M&&(el=H.defaultColorScheme);let eu=n.useMemo(()=>{let e=H.generateThemeVars?.()||H.vars,t={...H,components:q,colorSchemes:V,cssVarPrefix:W,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),el){let e=V[el];e&&"object"==typeof e&&Object.keys(e).forEach(r=>{e[r]&&"object"==typeof e[r]?t[r]={...t[r],...e[r]}:t[r]=e[r]})}return b?b(t):t},[H,el,q,V,W]),ec=H.colorSchemeSelector;(0,o.A)(()=>{if(ea&&x&&ec&&"media"!==ec){let e=ec;if("class"===ec&&(e=".%s"),"data"===ec&&(e="[data-%s]"),ec?.startsWith("data-")&&!ec.includes("%s")&&(e=`[${ec}="%s"]`),e.startsWith("."))x.classList.remove(...K.map(t=>e.substring(1).replace("%s",t))),x.classList.add(e.substring(1).replace("%s",ea));else{let t=e.replace("%s",ea).match(/\[([^\]]+)\]/);if(t){let[e,r]=t[1].split("=");
1r||K.forEach(t=>{x.removeAttribute(e.replace(ea,t))}),x.setAttribute(e,r?r.replace(/"|'/g,""):"")}else x.setAttribute(e,ea)}}},[ea,ec,x,K]),n.useEffect(()=>{let e;if(O&&$.current&&R){let t=R.createElement("style");t.appendChild(R.createTextNode(_)),R.head.appendChild(t),window.getComputedStyle(R.body),e=setTimeout(()=>{R.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ea,O,R]),n.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]);let eh=n.useMemo(()=>({allColorSchemes:K,colorScheme:ea,darkColorScheme:en,lightColorScheme:er,mode:eo,setColorScheme:es,setMode:ee,systemMode:et}),[K,ea,en,er,eo,es,ee,et,eu.colorSchemeSelector]),ed=!0;(D||!1===H.cssVariables||F&&z?.cssVarPrefix===W)&&(ed=!1);let ep=(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(a.default,{themeId:B?t:void 0,theme:eu,children:T}),ed&&(0,l.jsx)(i.A,{styles:eu.generateStyleSheets?.()||[]})]});return F?ep:(0,l.jsx)(S.Provider,{value:eh,children:ep})},useColorScheme:()=>n.useContext(S)||T,getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:i=u,colorSchemeStorageKey:s=c,attribute:o="data-color-scheme",colorSchemeNode:a="document.documentElement",nonce:h}=e||{},d="",p=o;if("class"===o&&(p=".%s"),"data"===o&&(p="[data-%s]"),p.startsWith(".")){let e=p.substring(1);d+=`${a}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
2      ${a}.classList.add('${e}'.replace('%s', colorScheme));`}let f=p.match(/\[([^[\]]+)\]/);if(f){let[e,t]=f[1].split("=");t||(d+=`${a}.removeAttribute('${e}'.replace('%s', light));
3      ${a}.removeAttribute('${e}'.replace('%s', dark));`),d+=`
4      ${a}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else".%s"!==p&&(d+=`${a}.setAttribute('${p}', colorScheme);`);return(0,l.jsx)("script",{suppressHydrationWarning:!0,nonce:"u"<typeof window?h:"",dangerouslySetInnerHTML:{__html:`(function() {
5try {
6  let colorScheme = '';
7  const mode = localStorage.getItem('${i}') || '${t}';
8  const dark = localStorage.getItem('${s}-dark') || '${n}';
9  const light = localStorage.getItem('${s}-light') || '${r}';
10  if (mode === 'system') {
11    // handle system mode
12    const mql = window.matchMedia('(prefers-color-scheme: dark)');
13    if (mql.matches) {
14      colorScheme = dark
15    } else {
16      colorScheme = light
17    }
18  }
19  if (mode === 'light') {
20    colorScheme = light;
21  }
22  if (mode === 'dark') {
23    colorScheme = dark;
24  }
25  if (colorScheme) {
26    ${d}
27  }
28} catch(e){}})();`}},"mui-color-scheme-init")})({colorSchemeStorageKey:g,defaultLightColorScheme:w,defaultDarkColorScheme:C,modeStorageKey:h,...e})}}},76340:(e,t,r)=>{r.d(t,{Ir:()=>h,JU:()=>u,KJ:()=>o,VL:()=>c,W5:()=>a,_5:()=>s,lg:()=>i,mw:()=>d,u5:()=>l});var n=r(10938);function i(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function s(e){return d(i(n.ug.timeOrigin),i("number"==typeof e?e:n.ug.now()))}function o(e){if(c(e))return e;if("number"==typeof e)if(e<n.ug.timeOrigin/2)return s(e);else return i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")}function a(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=1e9),[r,n]}function l(e){return 1e9*e[0]+e[1]}function u(e){return 1e3*e[0]+e[1]/1e6}function c(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function h(e){return c(e)||"number"==typeof e||e instanceof Date}function d(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}},78392:(e,t,r)=>{r.d(t,{K9:()=>d});let n=Symbol.for("io.opentelemetry.js.api.logs"),i=globalThis;class s{emit(e){}enabled(){return!1}}let o=new s;class a{getLogger(e,t,r){return new s}}let l=new a;class u{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):o}}class c{getLogger(e,t,r){var n;return null!=(n=this._getDelegateLogger(e,t,r))?n:new u(this,e,t,r)}_getDelegate(){var e;return null!=(e=this._delegate)?e:l}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(e,t,r)}}class h{constructor(){this._proxyLoggerProvider=new c}static getInstance(){return this._instance||(this._instance=new h),this._instance}setGlobalLoggerProvider(e){return i[n]?this.getLoggerProvider():(i[n]=t=>1===t?e:l,this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=i[n])?void 0:e.call(i,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete i[n],this._proxyLoggerProvider=new c}}let d=h.getInstance()},82341:(e,t,r)=>{r.d(t,{default:()=>_});var n=r(53564),i=r(12236),s=r(3614),o=r(48491),a=r(43028),l=r(28891),u=r(72706),c=r(86960),h=r(31804),d=r(26612),p=r(1296);let f={};function m(e,t,r,i=!1){return n.useMemo(()=>{let n=e&&t[e]||t;if("function"==typeof r){let s=r(n),o=e?{...t,[e]:s}:s;return i?()=>o:o}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}let _=function(e){let{children:t,theme:r,themeId:n}=e,_=(0,a.default)(f),g=(0,i.A)()||f,v=m(n,_,r),y=m(n,g,r,!0),b="rtl"===(n?v[n]:v).direction,T=function(e){let t=(0,a.default)(),r=(0,h.A)()||"",{modularCssLayers:n}=e,i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return(i=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",(0,c.A)(()=>{let e=document.querySelector("head");if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;let n=document.createElement("style");n.setAttribute("data-mui-layer-order",r),n.textContent=i,e.prepend(n)}else e.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[i,r]),i)?(0,p.jsx)(d.default,{styles:i}):null}(v);return(0,p.jsx)(s.A,{theme:y,children:(0,p.jsx)(o.T.Provider,{value:v,children:(0,p.jsx)(l.default,{value:b,children:(0,p.jsxs)(u.A,{value:n?v[n].components:v.components,children:[T,t]}
28)})})})}},84542:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(51718);function i(e){try{var t;n.s.error((t=e,"string"==typeof t?t:JSON.stringify(function(e){let t={},r=e;for(;null!==r;)Object.getOwnPropertyNames(r).forEach(e=>{if(t[e])return;let n=r[e];n&&(t[e]=String(n))}),r=Object.getPrototypeOf(r);return t}(t))))}catch{}}},84820:(e,t,r)=>{r.d(t,{J:()=>y});var n=r(24835),i=r(51718),s=r(33371),o=r(45407),a=r(65070);class l{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class u{_isCalled=!1;_deferred=new l;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}var c=r(45555),h=r(23938),d=r(84542),p=r(30972),f=r(86592);let m=new Map;class _{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,r){const n=m.get(e)??0;if(m.set(e,n+1),this.standardAttrs={[f.wU]:e,[f.V8]:`${e}/${n}`},this.droppedAttrs={...this.standardAttrs,[p.oJb]:"queue_full"},this.processedSpans=t.createCounter(f.C1,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),r){const{capacity:e,getQueueSize:n}=r;t.createUpDownCounter(f.O1,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter(f.lB,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=e=>e.observe(n(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(e){this.processedSpans.add(e,this.droppedAttrs)}finishSpans(e,t){if(!t)return void this.processedSpans.add(e,this.standardAttrs);let r={...this.standardAttrs,[p.oJb]:t.name};this.processedSpans.add(e,r)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}}class g{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??5e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new u(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(i.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);const t=e.selfObsMeterProvider?e.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):(0,s.Ac)();this._metrics=new _(f.VH,t,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&o.X.SAMPLED)!=0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){0===this._droppedSpansCount&&i.s.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++,this._metrics.dropSpans(1);return}this._droppedSpansCount>0&&(i.s.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0;e<n;e++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(t)})}_flushOneBatch(){return(this._clearTimer(),0===this._finishedSpans.length)?Promise.resolve():new Promise((e,t)=>
28{let r=setTimeout(()=>{t(Error("Timeout"))},this._exportTimeoutMillis);a._.with((0,c.M1)(a._.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(n,i=>{clearTimeout(r),this._metrics.finishSpans(n.length,i.error),i.code===h.V.SUCCESS?e():t(i.error??Error("BatchSpanProcessor: span export failed"))}),s=null;for(let e=0,t=n.length;e<t;e++){let t=n[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(s??=[]).push(t.resource.waitForAsyncAttributes())}null===s?i():Promise.all(s).then(i,e=>{(0,d.s)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,d.s)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),"number"!=typeof this._timer&&this._timer.unref())}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}class v extends g{_visibilityChangeListener;_pageHideListener;constructor(e){super(e),this.onInit(e)}onInit(e){!0!==e.disableAutoFlushOnDocumentHide&&"u">typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>{(0,d.s)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,d.s)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){"u">typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}class y extends v{constructor(e,t){for(const[e,r]of(t||(t={}),[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]]))if(void 0===t[e]){const i=(0,n.Jk)(r);void 0!==i&&(t[e]=i)}super({exporter:e,...t})}}},86592:(e,t,r)=>{r.d(t,{C1:()=>a,Cr:()=>s,O1:()=>l,V8:()=>n,VH:()=>d,ij:()=>h,ku:()=>o,lB:()=>u,wU:()=>i,x3:()=>c});let n="otel.component.name",i="otel.component.type",s="otel.span.parent.origin",o="otel.span.sampling_result",a="otel.sdk.processor.span.processed",l="otel.sdk.processor.span.queue.capacity",u="otel.sdk.processor.span.queue.size",c="otel.sdk.span.live",h="otel.sdk.span.started",d="batching_span_processor"},88580:(e,t,r)=>{var n,i;r.d(t,{s:()=>n}),(i=n||(n={}))[i.UNSET=0]="UNSET",i[i.OK=1]="OK",i[i.ERROR=2]="ERROR"},88654:(e,t,r)=>{r.d(t,{Z:()=>eT});let n=Function.prototype.toString,i=n.call(Object),s=Object.getPrototypeOf,o=Object.prototype,a=o.hasOwnProperty,l=Symbol?Symbol.toStringTag:void 0,u=o.toString;function c(e){var t,r,o;if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(r=e)?void 0===r?"[object Undefined]":"[object Null]":l&&l in Object(r)?function(e){let t=a.call(e,l),r=e[l],n=!1;try{e[l]=void 0,n=!0}catch{}let i=u.call(e);return n&&(t?e[l]=r:delete e[l]),i}(r):(o=r,u.call(o))))return!1;let c=s(e);if(null===c)return!0;let h=a.call(c,"constructor")&&c.constructor;return"function"==typeof h&&h instanceof h&&n.call(h)===i}function h(e){return p(e)?e.slice():e}function d(e,t,r){let n=r.get(e[t])||[];for(let r=0,i=n.length;r<i;r++){let i=n[r];if(i.key===t&&i.obj===e)return!0}return!1}function p(e){return Array.isArray(e)}function f(e){return"function"==typeof e}function m(e){return!_(e)&&!p(e)&&!f(e)&&"object"==typeof e}function _(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var g,v,y,b,T,S,E,k,w=r(51718),C=r(24835);(g=T||(T={}))[g.NOT_RECORD=0]="NOT_RECORD",g[g.RECORD=1]="RECORD",g[g.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";class A{shouldSample(){return{decision:T.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class O{shouldSample(){return{decision:T.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}var L=r(46607),P=r(11637),R=r(45407),x=r(84542);class N{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,x.s)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new A),this._remoteParentSampled=e.remoteParentSampled??new A,this._remoteParentNotSampled=e.remoteParentNotSampled??new O,this._localParentSampled=e.localParentSampled??new A,this._localParentNotSampled=e.localParentNotSampled??new O}shouldSample(e,t,r,n,i,s){let o=L.u.getSpanContext(e);return o&&(0,P.YA)(o)?o.isRemote?o.traceFlags&R.X.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,i,s):this._remoteParentNotSampled.shouldSample(e,t,r,n,i,s):o.traceFlags&R.X.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,i,s):this._localParentNotSampled.shouldSample(e,t,r,n,i,s):this._root.shouldSample(e,t,r,n,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class D{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=1===this._ratio?0x100000000:Math.floor(0xffffffff*this._ratio)}
28shouldSample(e,t){return{decision:(0,P.hX)(t)&&this._accumulate(t)<this._upperBound?T.RECORD_AND_SAMPLED:T.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let r=0;r<32;r+=8){let n=0;for(let t=0;t<8;t++){let i=e.charCodeAt(r+t);n=n<<4|(i<58?i-48:i<71?i-55:i-87)}t=(t^n)>>>0}return t}}function I(){let e=(0,C.Jk)("OTEL_TRACES_SAMPLER_ARG");return null==e?(w.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1):e<0||e>1?(w.s.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to 1.`),1):e}(v=S||(S={})).AlwaysOff="always_off",v.AlwaysOn="always_on",v.ParentBasedAlwaysOff="parentbased_always_off",v.ParentBasedAlwaysOn="parentbased_always_on",v.ParentBasedTraceIdRatio="parentbased_traceidratio",v.TraceIdRatio="traceidratio";let M=1/0;var j=r(33371),$=r(7797),z=r(65070),U=r(26476),F=r(34897);(y=E||(E={}))[y.NOT_RECORD=0]="NOT_RECORD",y[y.RECORD=1]="RECORD",y[y.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var Z=r(45555);function B(e){let t={};if("object"!=typeof e||null==e)return t;for(let n in e){var r;if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("string"!=typeof(r=n)||""===r){w.s.warn(`Invalid attribute key: ${n}`);continue}let i=e[n];if(!H(i)){w.s.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(i)?t[n]=i.slice():t[n]=i}return t}function H(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e){if(null==r)continue;let e=typeof r;if(e!==t){if(!t&&V(e)){t=e;continue}return!1}}return!0}(e):V(typeof e))}function V(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}var q=r(88580),W=r(10938),G=r(76340),K=r(30972);let J=Symbol.for("nodejs.util.inspect.custom");function X(e){let t={};for(let[r,n]of e.getRawAttributes())"function"!=typeof n?.then&&null!=n&&(t[r]??=n);return t}function Q(e,t,r,n,i){if("number"==typeof r&&r<0){let t=`[${e}]`;return n?.stylize?n.stylize(t,"special"):t}if("function"!=typeof i||!n)return t;let s={...n,depth:null==n.depth?n.depth:n.depth-1};return`${e} ${i(t,s)}`}class Y{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:q.s.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=W.ug.now(),this._performanceOffset=t-(this._performanceStartTime+W.ug.timeOrigin),this._startTimeProvided=null!=e.startTime,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(const t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,null!=e.attributes&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(null==t||this._isSpanEnded())return this;if(0===e.length)return w.s.warn(`Invalid attribute key: ${e}`),this;if(!H(t))return w.s.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:r}=this._spanLimits,n=!Object.prototype.hasOwnProperty.call(this.attributes,e);return void 0!==r&&this._attributesCount>=r&&n?this._droppedAttributesCount++:(this.attributes[e]=this._truncateToSize(t),n&&this._attributesCount++),this}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,r){if(this._isSpanEnded())return this;let{eventCountLimit:n}=this._spanLimits;if(0===n)return w.s.warn("No events allowed."),this._droppedEventsCount++,this;void 0!==n&&this.events.length>=n&&(0===this._droppedEventsCount&&w.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,G.Ir)(t)&&((0,G.Ir)(r)||(r=t),t=void 0);let i=B(t),{attributePerEventCountLimit:s}=this._spanLimits,o={},a=0,l=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(void 0!==s&&l>=s){a++;continue}o[e]=this._truncateToSize(t),l++}return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:a}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(0===t)return this._droppedLinksCount++,this;void 0!==t&&this.links.length>=t&&(0===this._droppedLinksCount&&w.s.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:r}=this._spanLimits,n=B(e.attributes),i={},s=0,o=0;for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let t=n[e];if(void 0!==r&&o>=r){s++;continue}i[e]=this._truncateToSize(t),o++}let a={context:e.context};return o>0&&(a.attributes=i),s>0&&(a.droppedAttributesCount=s),this.links.push(a),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===q.s.UNSET||this.status.code===q.s.OK)return this;let t={code:e.code};return e.code===q.s.ERROR&&("string"==typeof e.message?t.message=e.message:null!=e.message&&w.s.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){this._isSpanEnded()?w.s.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this.endTime=this._getTime(e),this._duration=(0,G.W5)(this.startTime,this.endTime),this._duration[0]<0&&(w.s.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&w.s.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&w.s.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this))}_getTime(e){if("number"==typeof e&&e<=W.ug.now())return(0,G._5)(e+this._performanceOffset);if("number"==typeof e)return(0,G.lg)(e);if(e instanceof Date)return(0,G.lg)(e.getTime());if((0,G.VL)(e))return e;if(this._startTimeProvided)return(0,G.lg)(Date.now());let t=W.ug.now()-this._performanceStartTime;return(0,G.mw)(this.startTime,(0,G.lg)(t))}isRecording(){return!1===this._ended}recordException(e,t){let r={};"string"==typeof e?r[K.wLW]=e:e&&(e.code?r[K.d62]=e.code.toString():e.name&&(r[K.d62]=e.name),e.message&&(r[K.wLW]=e.message),e.stack&&(r[K.MbS]=e.stack)),r[K.d62]||r[K.wLW]?this.addEvent("exception",r,t):w.s.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);w.s.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(w.s.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}[J](e,t,r){return Q("SpanImpl",{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:X(this.resource)}},e,t,r)}}var ee=r(86592);class et{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(ee.ij,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=e.createUpDownCounter(ee.x3,{unit:"{span}",description:"The number of currently live spans."})}startSpan(e,t){var r;let n=function(e){switch(e){case T.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case T.RECORD:return"RECORD_ONLY";case T.NOT_RECORD:return"DROP"}}(t);if(this.startedSpans.add(1,{[ee.Cr]:(r=e)?r.isRemote?"remote":"local":"none",[ee.ku]:n}),t===T.NOT_RECORD)return()=>{};let i={[ee.ku]:n};return this.liveSpans.add(1,i),()=>{this.liveSpans.add(-1,i)}}}class er{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t){this.instrumentationScope=e,this._sampler=t.sampler,this._spanLimits=t.spanLimits,this._resource=t.resource,this._idGenerator=t.idGenerator,this._spanProcessor=t.spanProcessor;const r=t.meterProvider.getMeter("@opentelemetry/sdk-trace","2.11.0");this._tracerMetrics=new et(r)}startSpan(e,t={},r=z._.active()){let n,i,s;t.root&&(r=L.u.deleteSpan(r));let o=L.u.getSpan(r);if((0,Z.Zf)(r))return w.s.debug("Instrumentation suppressed, returning Noop Span"),L.u.wrapSpanContext(U.dM);let a=o?.spanContext(),l=this._idGenerator.generateSpanId();a&&L.u.isSpanContextValid(a)?(i=a.traceId,s=a.traceState,n=a):i=this._idGenerator.generateTraceId();let u=t.kind??F.v.INTERNAL,c=(t.links??[]).map(e=>({context:e.context,attributes:B(e.attributes)})),h=B(t.attributes),d=this._sampler.shouldSample(r,i,e,u,h,c),p=this._tracerMetrics.startSpan(a,d.decision);s=d.traceState??s;let f={traceId:i,spanId:l,traceFlags:d.decision===E.RECORD_AND_SAMPLED?R.X.SAMPLED:R.X.NONE,traceState:s};if(d.decision===E.NOT_RECORD)return w.s.debug("Recording is off, prop
28agating context in a non-recording span"),L.u.wrapSpanContext(f);let m=B(Object.assign(h,d.attributes));return new Y({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:f,name:e,kind:u,links:c,parentSpanContext:n,attributes:m,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:p})}startActiveSpan(e,t,r,n){let i,s,o;if(arguments.length<2)return;2==arguments.length?o=t:3==arguments.length?(i=t,o=r):(i=t,s=r,o=n);let a=s??z._.active(),l=this.startSpan(e,i,a),u=L.u.setSpan(a,l);return z._.with(u,o,void 0,l)}[J](e,t,r){return Q("Tracer",{instrumentationScope:this.instrumentationScope,resource:{attributes:X(this._resource)},spanLimits:this._spanLimits},e,t,r)}}class en{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{(0,x.s)(e||Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(let r of this._spanProcessors)r.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,r)=>{Promise.all(e).then(()=>{t()},r)})}}let ei=new Uint8Array(16),es=new Uint8Array(8),eo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ea(e){for(let t=0;t<e.length;t++)e[t]=256*Math.random()>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function el(e){let t="";for(let r=0;r<e.length;r++)t+=eo[e[r]];return t}class eu{generateTraceId(){return ea(ei),el(ei)}generateSpanId(){return ea(es),el(es)}}(b=k||(k={}))[b.resolved=0]="resolved",b[b.timeout=1]="timeout",b[b.error=2]="error",b[b.unresolved=3]="unresolved";class ec{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??(0,$.gk)();const t=e.spanProcessors??[];this._activeSpanProcessor=new en(t),this._tracerOptions={resource:this._resource,sampler:e.sampler??new N({root:new A}),spanLimits:{attributeCountLimit:e.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:e.spanLimits?.eventCountLimit??128,linkCountLimit:e.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:e.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:e.spanLimits?.attributePerLinkCountLimit??128},idGenerator:e.idGenerator||new eu,spanProcessor:this._activeSpanProcessor,meterProvider:e.meterProvider??{getMeter:()=>(0,j.Ac)()}}}getTracer(e,t,r){let n=`${e}@${t||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new er({name:e,version:t,schemaUrl:r?.schemaUrl},this._tracerOptions)),this._tracers.get(n)}forceFlush(e){let t=e?.timeoutMillis??this._forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(e=>new Promise(r=>{let n,i=setTimeout(()=>{r(Error(`Span processor did not completed within timeout period of ${t} ms`)),n=k.timeout},t);e.forceFlush().then(()=>{clearTimeout(i),n!==k.timeout&&r(n=k.resolved)}).catch(e=>{clearTimeout(i),n=k.error,r(e)})}));return new Promise((e,t)=>{Promise.all(r).then(r=>{let n=r.filter(e=>e!==k.resolved);n.length>0?t(n):e()}).catch(e=>t([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[J](e,t,r){let n=this._activeSpanProcessor._spanProcessors;return Q("TracerProvider",{resource:{attributes:X(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:n.map(e=>e.constructor?.name??"SpanProcessor")},e,t,r)}}class eh extends ec{constructor(e={}){const t=function(...e){let t=e.shift(),r=new WeakMap;for(;e.length>0;)t=function e(t,r,n=0,i){let s;if(!(n>20)){if(n++,_(t)||_(r)||f(r))s=h(r);else if(p(t)){if(s=t.slice(),p(r))for(let e=0,t=r.length;e<t;e++)s.push(h(r[e]));else if(m(r)){let e=Object.keys(r);for(let t=0,n=e.length;t<n;t++){let n=e[t];"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(s[n]=h(r[n]))}}}else if(m(t))if(m(r)){var o,a;if(o=t,a=r,!(c(o)&&c(a)))return r;s=Object.assign({},t);let l=Object.keys(r);for(let o=0,a=l.length;o<a;o++){let a=l[o];if("__proto__"===a||"constructor"===a||"prototype"===a)continue;let u=r[a];if(_(u))void 0===u?delete s[a]:s[a]=u;else{let o=s[a];if(d(t,a,i)||d(r,a,i))delete s[a];else{if(m(o)&&m(u)){let e=i.get(o)||[],n=i.get(u)||[];e.push({obj:t,key:a}),n.push({obj:r,key:a}),i.set(o,e),i.set(u,n)}
28s[a]=e(s[a],u,n,i)}}}}else s=r;return s}}(t,e.shift(),0,r);return t}({},{sampler:function(){let e=(0,C.HF)("OTEL_TRACES_SAMPLER")??S.ParentBasedAlwaysOn;switch(e){case S.AlwaysOn:return new A;case S.AlwaysOff:return new O;case S.ParentBasedAlwaysOn:return new N({root:new A});case S.ParentBasedAlwaysOff:return new N({root:new O});case S.TraceIdRatio:return new D(I());case S.ParentBasedTraceIdRatio:return new N({root:new D(I())});default:return w.s.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${S.ParentBasedAlwaysOn}".`),new N({root:new A})}}(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,C.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,C.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,C.Jk)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,C.Jk)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}},function(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,C.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??(0,C.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,C.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??M,Object.assign({},e,{spanLimits:t})}(e));delete t.generalLimits,super(t)}}var ed=r(19867);class ep{_enabled=!1;_currentContext=ed.l;_bindFunction(e=ed.l,t){let r=this,n=function(...n){return r.with(e,()=>t.apply(this,n))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),n}active(){return this._currentContext}bind(e,t){return(void 0===e&&(e=this.active()),"function"==typeof t)?this._bindFunction(e,t):t}disable(){return this._currentContext=ed.l,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=ed.l),this}with(e,t,r,...n){let i=this._currentContext;this._currentContext=e||ed.l;try{return t.call(r,...n)}finally{this._currentContext=i}}}var ef=r(25090);class em{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];const t=new Set;for(const e of this._propagators)for(const r of"function"==typeof e.fields?e.fields():[])t.add(r);this._fields=Array.from(t)}inject(e,t,r){for(let n of this._propagators)try{n.inject(e,t,r)}catch(e){w.s.warn(`Failed to inject with ${n.constructor.name}. Err: ${e.message}`)}}extract(e,t,r){return this._propagators.reduce((e,n)=>{try{return n.extract(e,t,r)}catch(e){w.s.warn(`Failed to extract with ${n.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}var e_=r(41410);let eg="baggage";var ev=r(55186);function ey(e,t,r,n){let i=0;for(;i<e.length&&r<180;){let s=e.indexOf(",",i),o=-1===s?e.length:s,a=o-i;if(a<=4096){let s=function(e){let t,r,n;if(!e)return;let i=e.indexOf(";"),s=-1===i?e:e.substring(0,i),o=s.indexOf("=");if(o<=0)return;let a=s.substring(0,o).trim(),l=s.substring(o+1).trim();if(a&&l){try{t=decodeURIComponent(a),r=decodeURIComponent(l)}catch{return}if(-1!==i&&i<e.length-1){let t=e.substring(i+1);n=(0,ev.B)(t)}return{key:t,value:r,metadata:n}}}(e.substring(i,o));if(s){let e=+(0!==r)+a;if(n+e>8192)break;t[s.key]=s.metadata?{value:s.value,metadata:s.metadata}:{value:s.value},r++,n+=e}}if(-1===s)break;i=s+1}return[r,n]}class eb{inject(e,t,r){let n=ef.$.getBaggage(e);if(!n||(0,Z.Zf)(e))return;let i=n.getAllEntries().map(([e,t])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(r+=";"+t.metadata.toString()),r}).filter(e=>e.length<=4096).slice(0,180).reduce((e,t)=>{let r=`${e}${""!==e?",":""}${t}`;return r.length>8192?e:r},"");i.length>0&&r.set(t,eg,i)}extract(e,t,r){let n=r.get(t,eg);
28if(!n)return e;let i={},s=0,o=0;if(Array.isArray(n))for(let e=0;e<n.length;e++)[s,o]=ey(n[e],i,s,o);else[s]=ey(n,i,s,o);return 0===s?e:ef.$.setBaggage(e,ef.$.createBaggage(i))}fields(){return[eg]}}class eT extends eh{constructor(e={}){super(e)}register(e={}){L.u.setGlobalTracerProvider(this),function(e){if(null!==e){if(void 0===e)return ef.$.setGlobalPropagator(new em({propagators:[new e_.lm,new eb]}));ef.$.setGlobalPropagator(e)}}(e.propagator),function(e){if(null!==e){if(void 0===e){let e=new ep;e.enable(),z._.setGlobalContextManager(e);return}e.enable(),z._.setGlobalContextManager(e)}}(e.contextManager)}}}}]);

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.