@dash0/sdk-web 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dash0.iife.js +1 -1
- package/dist/dash0.iife.js.map +1 -1
- package/dist/dash0.js +1 -1
- package/dist/dash0.js.map +1 -1
- package/dist/dash0.umd.cjs +1 -1
- package/dist/dash0.umd.cjs.map +1 -1
- package/dist/modules/api/session-recording.js +8 -0
- package/dist/modules/instrumentations/session-recording/index.js +79 -9
- package/dist/modules/instrumentations/session-recording/index_test.js +64 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api/session-recording.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/session-recording.ts +8 -0
- package/src/instrumentations/session-recording/index.ts +82 -9
- package/src/instrumentations/session-recording/index_test.ts +86 -1
package/dist/dash0.umd.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).dash0={})}(this,(function(e){"use strict";function n(){}function t(e){return e}var r={debug:0,info:1,warn:2,error:3},o=r.warn;var i=u("info"),a=u("warn"),l=u("error"),s=u("debug");function u(e){if("undefined"!=typeof console&&console[e]&&"function"==typeof console[e].apply){var t=r[e];return function(){t>=o&&console[e].apply(console,arguments)}}return n}var c=Object.prototype.hasOwnProperty;function v(e,n){return c.call(e,n)}var d="undefined"!=typeof window?window:void 0,f=null==d?void 0:d.document,p=null==d?void 0:d.navigator,h="undefined"!=typeof location?location:void 0,m=(null==d?void 0:d.performance)||(null==d?void 0:d.webkitPerformance)||(null==d?void 0:d.msPerformance)||(null==d?void 0:d.mozPerformance);null==d||d.encodeURIComponent;var E=null==d?void 0:d.fetch,_=function(){try{var e;return null!==(e=null==d?void 0:d.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),g=function(){try{var e;return null!==(e=null==d?void 0:d.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=Array(32);function T(e){for(var n=0;n<2*e;n++)y[n]=Math.floor(16*Math.random())+48,y[n]>=58&&(y[n]+=39);return String.fromCharCode.apply(null,y.slice(0,2*e))}function R(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}function b(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("on"+n,t)}var I=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.setItem;function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function S(e,n,t,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(r,o)}function L(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){S(i,r,o,a,l,"next",e)}function l(e){S(i,r,o,a,l,"throw",e)}a(void 0)}))}}function N(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function O(e,n,t){return n&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=G(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function V(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){V(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function U(){U=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var i=n&&n.prototype instanceof E?n:E,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:S(e,t,l)}),a}function v(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function E(){}function _(){}function g(){}var y={};u(y,a,(function(){return this}));var T=Object.getPrototypeOf,R=T&&T(T(V([])));R&&R!==t&&r.call(R,a)&&(y=R);var b=g.prototype=E.prototype=Object.create(y);function I(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(o,i,a,l){var s=v(e[o],e,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,l)}),(function(e){t("throw",e,a,l)})):n.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return t("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function S(n,t,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=v(n,t,r);if("normal"===u.type){if(o=r.done?h:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function L(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,L(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=v(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(typeof n+" is not iterable")}return _.prototype=g,o(b,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),u(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new C(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return l.type="throw",l.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),m},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),m}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;O(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function M(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(s=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,n)||G(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function G(e,n){if(e){if("string"==typeof e)return C(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?C(e,n):void 0}}function B(){return(new Date).getTime()}function F(){var e=j(),n=new Date;if(e){var t=m.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return H(n)}function H(e){return"object"===k(e)?H(e.getTime()):String(e)+"000000"}function j(){var e,n=null==m?void 0:m.timeOrigin;"number"!=typeof n&&(n=null==m||null===(e=m.timing)||void 0===e?void 0:e.fetchStart);return n}var W={setTimeout:null==d?void 0:d.setTimeout,clearTimeout:null==d?void 0:d.clearTimeout,setInterval:null==d?void 0:d.setInterval,clearInterval:null==d?void 0:d.clearInterval},X=null!=d&&null!=d.Zone&&null!=d.Zone.root&&"function"==typeof d.Zone.root.run;function q(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return K.apply("setTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return K.apply("clearTimeout",arguments)}function z(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return K.apply("setInterval",arguments)}function K(){var e,n=this;if(X)try{var t=Array.prototype.slice.apply(arguments);return d.Zone.root.run(W[n],d,t)}catch(e){a("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=W[n])||void 0===e?void 0:e.apply(d,arguments)}X&&s("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");m&&m.getEntriesByType;var Q=m&&"function"==typeof d.PerformanceObserver&&"function"==typeof m.now,Z=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),$=new WeakSet;function J(e){if(!Q)return function(e){var t=0;return{start:function(){t=B()},end:function(){return e({duration:B()-t})},cancel:n}}(e.onEnd);var t,r,o,i,a,l=[];return{start:function(){t=m.now();try{var e,n=null==d?void 0:d.PerformanceObserver;if(n)null===(e=o=new n(u))||void 0===e||e.observe({type:"resource"})}catch(e){}a=q(v,6e5)},end:function(n){if(r)return;if(r=null!=n?n:m.now(),p(),!ee())return s();q((function(){return s()}),Math.min(300,e.maxWaitForResourceMillis)),R(f,"visibilitychange",c),i=q(s,e.maxWaitForResourceMillis)},cancel:v};function s(){v();var n=function(){if(!l.length)return;var n,o,i=l.filter((function(n){return n.responseEnd<=r+e.maxToleranceForResourceTimingsMillis&&!$.has(n)}));if(!i.length)return;1===i.length&&(n=i[0]);if(!n){var a,s=A(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=Math.abs(r-t-u.duration)+Math.abs(u.responseEnd-r);(void 0===o||c<o)&&(o=c,n=u)}}catch(e){s.e(e)}finally{s.f()}}if(!n)return;return $.add(n),n}();null!=n&&n.duration&&n.duration<864e5?e.onEnd({resource:n,duration:n.duration}):e.onEnd({resource:n,duration:r-t})}function u(n){n.getEntriesByType("resource").filter((function(n){var r=n;return r.startTime>=t&&e.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){ee()||s()}function v(){!function(){if(o){try{var e;null===(e=o)||void 0===e||e.disconnect()}catch(e){}o=void 0}}(),i&&(clearTimeout(i),i=void 0),p(),function(){if(!f)return;b(f,"visibilitychange",c)}()}function p(){a&&(clearTimeout(a),a=void 0)}}function ee(){return"visible"===(null==f?void 0:f.visibilityState)||"prerender"===(null==f?void 0:f.visibilityState)}var ne="undefined";function te(e){return Math.round(100*e)/100}function re(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==f?void 0:f.baseURI)&&void 0!==n?n:null==h?void 0:h.href)}function oe(e){try{return re(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var ie=/['"<>{};\x00-\x1F\x7F]/;var ae=Symbol.for("INSTRUMENTED_BY_DASH0");function le(e){e[ae]=!0}function se(e,n,t){var r=e[n];if(r)if(!0!==r[ae])try{var o=t(r);le(r),o&&le(o),e[n]=o}catch(e){a("failed to instrument ".concat(String(n),", the page may have locked the property"),e)}else s("".concat(String(n)," has already been instrumented, skipping"));else s("".concat(String(n)," is not defined, unable to instrument"))}for(var ue=new Uint32Array(256),ce=0;ce<256;ce++){for(var ve=ce,de=0;de<8;de++)ve=1&ve?3988292384^ve>>>1:ve>>>1;ue[ce]=ve>>>0}function fe(e){for(var n=new Uint8Array(e.length/2),t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);for(var r=4294967295,o=0;o<n.length;o++){var i=n[o];r=r>>>8^ue[255&(r^i)]}return(4294967295^r)>>>0}function pe(e,n){return!(n<=0)&&(n>=100||fe(e)%100<n)}var he={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.25.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:t,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},sessionRecording:{samplingRate:100,maskAllInputs:!0,maskTextClass:"dash0-mask",blockClass:"dash0-block",recordCanvas:!1,collectFonts:!1,chunkMaxBytes:48e3,chunkMaxMillis:5e3,checkoutEveryNms:3e5},enableTransportCompression:!1,isSessionSampled:!0},me="service.name",Ee="service.namespace",_e="service.version",ge="deployment.environment.name",ye="deployment.name",Te="deployment.id",Re="event.name",be="dash0.web.event.id",Ie="page.load.id",Ce="user_agent.original",Se="user.id",Le="user.name",Ne="user.full_name",Oe="user.email",Ae="user.hash",Ve="user.roles",we="exception.message",Pe="exception.type",Ue="exception.stacktrace",Me="error.type",De="url.full",xe="http.request.method",ke="http.request.method_original",Ge="http.response.status_code",Be={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error",SESSION_RECORDING:"browser.session_recording"},Fe={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},He=0,je=1,We="pushState",Xe="replaceState",qe=1;function Ye(){var e,n;return"".concat((e={ephemeralSession:!I},n=0,e.ephemeralSession&&(n|=qe),n.toString(16).padStart(2,"0"))).concat(T(7))}var ze="d0_session",Ke="#",Qe=864e5,Ze=null;function $e(e,n){if(!I)return s("Storage API is not available and session tracking is therefore not supported."),void(Ze=Ye());e||(e=108e5),n||(n=216e5),e=Math.min(e,Qe),n=Math.min(n,Qe);try{var t=function(e){return I&&_?_.getItem(e):null}(ze),r=function(e){if(!e)return null;var n=e.split(Ke);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),o=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(o))return null;return{id:t,startTime:r,lastActivityTime:o}}(t);r&&!function(e,n,t){var r=B()-n;if(e.lastActivityTime<r)return!1;var o=B()-t;return e.startTime>=o}(r,e,n)&&(r=null),r?r.lastActivityTime=B():r={id:Ye(),startTime:B(),lastActivityTime:B()},function(e,n){I&&_&&_.setItem(e,n)}(ze,function(e){return e.id+Ke+e.startTime+Ke+e.lastActivityTime}(r)),Ze=r.id}catch(e){a("Failed to record session information",e)}}var Je=-1,en=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Je=n.timeStamp,e(n))}),!0)},nn=function(e,n,t,r){var o,i;return function(a){n.value>=0&&(a||r)&&(((i=n.value-(null!=o?o:0))||void 0===o)&&(o=n.value,n.delta=i,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},tn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},rn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},on=function(){var e,n=rn();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},an=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=rn(),r="navigate";return Je>=0?r="back-forward-cache":t&&(document.prerendering||on()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ln=new WeakMap;function sn(e,n){return ln.get(e)||ln.set(e,new n),ln.get(e)}var un,cn=function(){return O((function e(){N(this,e),V(this,"t",void 0),V(this,"i",0),V(this,"o",[])}),[{key:"h",value:function(e){var n;if(!e.hadRecentInput){var 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]),null===(n=this.t)||void 0===n||n.call(this,e)}}}])}(),vn=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(P({type:e,buffered:!0},t)),r}}catch(e){}},dn=function(e){var n=!1;return function(){n||(e(),n=!0)}},fn=-1,pn=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},hn=function(e){"hidden"===document.visibilityState&&fn>-1&&(fn="visibilitychange"===e.type?e.timeStamp:0,En())},mn=function(){addEventListener("visibilitychange",hn,!0),addEventListener("prerenderingchange",hn,!0)},En=function(){removeEventListener("visibilitychange",hn,!0),removeEventListener("prerenderingchange",hn,!0)},_n=function(){if(fn<0){var e,n=on(),t=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((function(e){return"hidden"===e.name&&e.startTime>n}))[0])||void 0===e?void 0:e.startTime;fn=null!=t?t:pn(),mn(),en((function(){setTimeout((function(){fn=pn(),mn()}))}))}return{get firstHiddenTime(){return fn}}},gn=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},yn=[1800,3e3],Tn=[.1,.25],Rn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gn((function(){var t,r=_n(),o=an("FCP"),i=vn("paint",(function(e){var n,a=A(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<r.firstHiddenTime&&(o.value=Math.max(l.startTime-on(),0),o.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=nn(e,o,yn,n.reportAllChanges),en((function(r){o=an("FCP"),t=nn(e,o,yn,n.reportAllChanges),tn((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(dn((function(){var t,r=an("CLS",0),o=sn(n,cn),i=function(e){var n,i=A(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.h(a)}}catch(e){i.e(e)}finally{i.f()}o.i>r.value&&(r.value=o.i,r.entries=o.o,t())},a=vn("layout-shift",i);a&&(t=nn(e,r,Tn,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),en((function(){o.i=0,r=an("CLS",0),t=nn(e,r,Tn,n.reportAllChanges),tn((function(){return t()}))})),setTimeout(t))})))},bn=0,In=1/0,Cn=0,Sn=function(e){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(In=Math.min(In,r.interactionId),Cn=Math.max(Cn,r.interactionId),bn=Cn?(Cn-In)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Ln=function(){var e;return un?bn:null!==(e=performance.interactionCount)&&void 0!==e?e:0},Nn=0,On=function(){return O((function e(){N(this,e),V(this,"u",[]),V(this,"l",new Map),V(this,"m",void 0),V(this,"v",void 0)}),[{key:"p",value:function(){Nn=Ln(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Ln()-Nn)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var o;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.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var i,a=A(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var l=i.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(o=this.v)||void 0===o||o.call(this,r)}}}}])}(),An=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=dn(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},Vn=[200,500],wn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&gn((function(){var t;"interactionCount"in performance||un||(un=vn("event",Sn,{type:"event",buffered:!0,durationThreshold:0}));var r,o=an("INP"),i=sn(n,On),a=function(e){An((function(){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;i.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=i.P();l&&l.T!==o.value&&(o.value=l.T,o.entries=l.entries,r())}))},l=vn("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=nn(e,o,Vn,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),en((function(){i.p(),o=an("INP"),r=nn(e,o,Vn,n.reportAllChanges)})))}))},Pn=function(){return O((function e(){N(this,e),V(this,"m",void 0)}),[{key:"h",value:function(e){var n;null===(n=this.m)||void 0===n||n.call(this,e)}}])}(),Un=[2500,4e3],Mn=!1;function Dn(e){Mn&&e(),f&&d&&(R(f,"visibilitychange",(function(){"visible"!==f.visibilityState&&e()})),R(d,"pagehide",(function(){Mn=!0,e()})),R(d,"beforeunload",(function(){Mn=!0,e()})))}function xn(e){var n,t=[];return Dn(r),{send:function(o){"visible"===(null==f?void 0:f.visibilityState)?(t.push(o),t.length>=15?r():null==n&&(n=q(r,1e3))):e([o])}};function r(){null!=n&&(clearTimeout(n),n=null),t.length>0&&(e(t.slice()),t.length=0)}}var kn=0,Gn=0;function Bn(e,n,t){return Fn.apply(this,arguments)}function Fn(){return Fn=L(U().mark((function e(t,r,o){var i,l,u,c;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s("Transmitting telemetry to endpoints",r),i=JSON.stringify(r),l=i,u=new Blob([i]).size,c=!1,"undefined"==typeof CompressionStream||!(he.enableTransportCompression||null!=o&&o.compress)){e.next=11;break}return e.next=8,Hn(i);case 8:l=e.sent,u=l.byteLength,c=!0;case 11:return e.next=13,Promise.all(he.endpoints.map(function(){var e=L(U().mark((function e(r){var o,i,s;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(o=new URL(r.url)).pathname=o.pathname+(o.pathname.endsWith("/")?t.substring(1):t),i={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(i["Dash0-Dataset"]=r.dataset),c&&(i["Content-Encoding"]="gzip"),E){e.next=9;break}return a("Unable to send telemetry, fetch is not defined"),e.abrupt("return");case 9:return kn+=u,Gn++,e.next=13,E(o,{method:"POST",headers:i,body:l,keepalive:kn<=6e4&&Gn<=15});case 13:(s=e.sent).text().catch(n),s.ok||a("Failed to send telemetry to ".concat(o,": ").concat(s.status," ").concat(s.statusText)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),a("Error sending telemetry to ".concat(r.url).concat(t,":"),e.t0);case 21:return e.prev=21,kn-=u,Gn--,e.finish(21);case 25:case"end":return e.stop()}}),e,null,[[0,18,21,25]])})));return function(n){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e)}))),Fn.apply(this,arguments)}function Hn(e){return jn.apply(this,arguments)}function jn(){return(jn=L(U().mark((function e(n){var t,r,o;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),o=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(o).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wn=xn(Qn),Xn=xn((function(e){Bn("/v1/traces",{resourceSpans:[{resource:he.resource,scopeSpans:[{scope:he.scope,spans:e}]}]}).catch((function(e){l("Failed to transmit spans",e)}))}));function qn(e){var n;return function(){return n||(n=function(e){var n=e.maxCallsPerTenMinutes||128,t=e.maxCallsPerTenSeconds||32,r=0,o=0;return z((function(){r=0}),6e5),z((function(){o=0}),1e4),function(){return++r>n||++o>t}}(e)),n()}}var Yn=qn({maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}),zn=qn({maxCallsPerTenMinutes:512,maxCallsPerTenSeconds:64});function Kn(e){he.isSessionSampled&&(Yn()?s("Transport rate limit. Will not send item.",e):Wn.send(e))}function Qn(e,n){Bn("/v1/logs",{resourceLogs:[{resource:he.resource,scopeLogs:[{scope:he.scope,logRecords:e}]}]},n).catch((function(e){l("Failed to transmit logs",e)}))}function Zn(e){e&&he.isSessionSampled&&(Yn()?s("Transport rate limit. Will not send item.",e):Xn.send(e))}var $n=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function Jn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return Jn(e)}))}:"string"==typeof e?n.stringValue=e:"number"==typeof e?n.doubleValue=e:"boolean"==typeof e?n.boolValue=e:!function(e){if(null==e||"object"!==k(e))return!1;var n=Object.keys(e);return 1===n.length&&$n.includes(n[0])}(e)?"object"===k(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=M(e,2);return et(n[0],n[1])}))}):n=e,n}}function et(e,n){return{key:e,value:Jn(n)}}function nt(e,n,t){n&&e.push(et(n,t))}function tt(e,n){n&&Object.entries(n).forEach((function(n){var t=M(n,2),r=t[0],o=t[1];return nt(e,r,o)}))}function rt(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var ot="traceparent",it=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function at(){var e,n,t=((null===(e=Array.from(null!==(n=null==f?void 0:f.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===ot})))||void 0===e?void 0:e.content.trim())||"").match(it)||function(){var e=m.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===ot)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(it);if(t)return{traceId:t[1],spanId:t[2]}}function lt(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function st(e,n,t){var r,o,i,a=(r=t.traceId,o=r.substring(0,8),i=r.substring(8,32),"1-".concat(o,"-").concat(i)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var ut="d042",ct=1;function vt(e){var n=0;return e.withoutSession&&(n|=ct),n.toString(16).padStart(2,"0")}function dt(e){return e?"".concat(ut).concat(vt({withoutSession:!1})).concat(e).concat(T(5)):"".concat(ut).concat(vt({withoutSession:!0})).concat(T(13))}function ft(e){var n=fe(e).toString(16).padStart(8,"0");return"".concat(n).concat(T(4))}function pt(e){var n=dt(Ze),t=ft(n),r=[];return nt(r,be,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:F(),attributes:r,events:[],links:[],status:{code:0}}}function ht(e,n,t){var r=e;if(!r.endTimeUnixNano)return n&&(r.status=n),r.endTimeUnixNano=null!=t?String(Math.round(parseInt(r.startTimeUnixNano)+t)):F(),r;s("Attempting to end already ended span. Dropping...",r)}function mt(e,n,t,r){var o=void 0,i=void 0;"string"==typeof t?o=t:Array.isArray(t)&&(i=t),e.events.push({name:n,timeUnixNano:null!=o?o:F(),attributes:null!=i?i:[]})}function Et(e,n,t){e.status={code:n,message:t}}function _t(e,n){var t=[];"string"==typeof n?nt(t,we,n):n&&(n.code?nt(t,Pe,n.code.toString()):n.name&&nt(t,Pe,n.name),n.message&&nt(t,we,n.message),n.stack&&nt(t,Ue,n.stack),mt(e,"exception",t))}function gt(e,n,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=re(n);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=he.urlAttributeScrubber(V(V(V(V(V(V({},De,i.href),"url.path",i.pathname),"url.domain",i.hostname),"url.scheme",i.protocol.replace(":","")),"url.fragment",i.hash?i.hash.replace("#",""):void 0),"url.query",i.search?i.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=M(n,2),r=t[0],i=t[1];void 0!==i&&nt(e,o(r),i)}))}catch(r){he.urlAttributeScrubber===t&&nt(e,o(De),String(n))}}var yt=null!=g&&"function"==typeof g.getItem&&"function"==typeof g.setItem;var Tt="d0_tab",Rt=null;function bt(){if(yt)try{var e=function(e){return yt&&g?g.getItem(e):null}(Tt);if(e)return void(Rt=e);Rt=T(8),function(e,n){yt&&g&&g.setItem(e,n)}(Tt,Rt)}catch(e){a("Failed to record tab ID information",e)}else s("Storage API is not available and tab tracking is therefore not supported.")}function It(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===be}))&&nt(e,be,T(8));for(var l=0;l<he.signalAttributes.length;l++)e.push(he.signalAttributes[l]);gt(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==d?void 0:d.location.href)&&void 0!==t?t:ne,"page"),Ze&&nt(e,"session.id",Ze),Rt&&nt(e,"browser.tab.id",Rt),nt(e,"browser.window.width",null!==(o=null==d?void 0:d.innerWidth)&&void 0!==o?o:ne),nt(e,"browser.window.height",null!==(i=null==d?void 0:d.innerHeight)&&void 0!==i?i:ne);var s=null==p||null===(a=p.connection)||void 0===a?void 0:a.effectiveType;s&&nt(e,"network.connection.subtype",s)}function Ct(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gn((function(){var t,r=_n(),o=an("LCP"),i=sn(n,Pn),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=A(e);try{for(l.s();!(a=l.n()).done;){var s=a.value;i.h(s),s.startTime<r.firstHiddenTime&&(o.value=Math.max(s.startTime-on(),0),o.entries=[s],t())}}catch(e){l.e(e)}finally{l.f()}},l=vn("largest-contentful-paint",a);if(l){t=nn(e,o,Un,n.reportAllChanges);for(var s=dn((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),u=0,c=["keydown","click","visibilitychange"];u<c.length;u++)addEventListener(c[u],(function(){return An(s)}),{capture:!0,once:!0});en((function(r){o=an("LCP"),t=nn(e,o,Un,n.reportAllChanges),tn((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(St,{reportAllChanges:!0}),wn(St,{reportAllChanges:!0}),Rn(St,{reportAllChanges:!0})}function St(e){var n=[];nt(n,Re,Be.WEB_VITAL);var t=[];nt(t,"name",e.name),nt(t,"value",te(e.value)),nt(t,"delta",te(e.delta));var r={timeUnixNano:F(),attributes:n,severityNumber:Fe.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};It(r.attributes),Kn(r)}function Lt(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var Nt="data:";function Ot(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===Nt||(!!function(e){for(var n=e.toLowerCase(),t=0,r=he.endpoints.length;t<r;t++){var o=he.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||Lt(he.ignoreUrls,e))))}var At,Vt=0,wt=0,Pt={},Ut=!1;function Mt(){Ut=!0}function Dt(e,n){e&&xt("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function xt(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(Vt>100)&&!function(e){return!e||Lt(he.ignoreErrorMessages,e)}(n)){wt>=20&&(Pt={},wt=0);var i=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==d?void 0:d.location.href),a=Pt[i];if(a)a.seenCount++;else{var l=[];It(l),nt(l,Re,Be.ERROR),nt(l,we,n),t&&nt(l,Pe,t),r&&nt(l,Ue,r),null!=o&&o.componentStack&&nt(l,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),tt(l,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:F(),attributes:l,severityNumber:Fe.ERROR,severityText:"ERROR",body:{stringValue:n}}},Pt[i]=a,wt++}!function(){if(At)return;At=setTimeout(kt,1e3)}()}}function kt(){for(var e in At&&(clearTimeout(At),At=null),Pt)if(v(Pt,e)){var n=Pt[e];n.seenCount>n.transmittedCount&&(Kn(n.log),Vt++)}Pt={},wt=0}var Gt="Unhandled promise rejection: ",Bt="<unavailable because Promise wasn't rejected with an Error object>";function Ft(e){null==e.reason?Dt({message:Gt+"<no reason defined>",stack:Bt}):"string"==typeof e.reason.message?Dt({message:Gt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Bt}):"object"!==k(e.reason)&&Dt({message:Gt+e.reason,stack:Bt})}var Ht="__dash0OriginalFunctions";function jt(e,n){for(var t=e[Ht],r=0;r<t.length;r++){if(Wt(t[r].valuesForEqualityCheck,n))return r}return-1}function Wt(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function Xt(e,n,t,r,o){return function(e,n,t){if(!e)return n;var r=e[Ht]=e[Ht]||[],o=jt(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,qt(t,r,o))}function qt(e,n,t){return[e,n,Yt(t)]}function Yt(e){return null!=e&&("object"===k(e)?Boolean(e.capture):Boolean(e))}function zt(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[Ht];if(null==r)return t;var o=jt(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,qt(n,t,r),o)}function Kt(){he.wrapEventHandlers&&function(e){if(!e||"function"!=typeof e.prototype.addEventListener||"function"!=typeof e.prototype.removeEventListener)return;var n=e.prototype.addEventListener,t=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,t,r){if("function"!=typeof t)return n.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=function(){try{return t.apply(this,arguments)}catch(e){throw Dt(e),Mt(),e}},o[1]=Xt(this,o[1],e,t,r),n.apply(this,o)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=zt(this,e,n,r,n),t.apply(this,o)}}(null==d?void 0:d.EventTarget)}function Qt(e){var n=null==d?void 0:d[e];"function"==typeof n&&(d[e]=function(e){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];return t[0]=function(e){if("function"!=typeof e)return e;return function(){try{return e.apply(this,arguments)}catch(e){throw reportError(e),Mt(),e}}}(e),n.apply(this,t)})}function Zt(){!function(){if(d){var e=d.onerror;d.onerror=function(n,t,r,o,i){if(Ut)return Ut=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=i&&i.stack;return a||(a="at "+t+" "+r,null!=o&&(a+=":"+o)),xt({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==d?void 0:d.addEventListener)&&d.addEventListener("unhandledrejection",Ft),Kt(),function(){if(he.wrapTimers){if(X)return void a("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Qt("setTimeout"),Qt("setInterval")}}()}function $t(e){return"".concat("http.request.header",".").concat(e.toLowerCase())}function Jt(e){return"".concat("http.response.header",".").concat(e.toLowerCase())}var er=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],nr="_OTHER";function tr(e){return er.includes(e)}function rr(e,n){var t=0!==n.startTime;or(e,Z.FETCH_START,n,t),or(e,Z.DOMAIN_LOOKUP_START,n,t),or(e,Z.DOMAIN_LOOKUP_END,n,t),or(e,Z.CONNECT_START,n,t),or(e,Z.SECURE_CONNECTION_START,n,t),or(e,Z.CONNECT_END,n,t),or(e,Z.REQUEST_START,n,t),or(e,Z.RESPONSE_START,n,t),or(e,Z.RESPONSE_END,n,t)}function or(e,n,t){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||o&&0===t[n]||mt(e,n,(r=t[n],String(Math.round(1e6*(r+j())))))}function ir(e,n){var t=n.encodedBodySize;null!=t&&nt(e.attributes,"http.response.body.size",t)}function ar(e,n){var t;_t(e,n);var r="object"===k(n)&&n?null!==(t=n.name)&&void 0!==t?t:null!=n.code?String(n.code):"error":"error";nt(e.attributes,Me,r),Zn(ht(e,function(e){return{code:2,message:e&&"object"===k(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function lr(e){nt(e.attributes,"dash0.web.request.cancelled",!0),Zn(ht(e,void 0,void 0))}function sr(e){var n=[];if(oe(e)){if(n.push("traceparent"),he.propagators){var t,r=A(he.propagators);try{for(r.s();!(t=r.n()).done;){var o=t.value;"traceparent"===o.type||n.includes(o.type)||n.push(o.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(he.propagators){var i,a=A(he.propagators);try{for(a.s();!(i=a.n()).done;){var l=i.value;Lt(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function ur(e,n,t,r){var o,i=A(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?st(e,n,t):lt(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function cr(e){return function(){var n=L(U().mark((function n(t,r){var o,i,a,l,u,c,v,d,f,p,h;return U().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t,n.prev=1,l=r?Object.assign({},r):r,u=null,null!=l&&l.body&&(u=l.body,l.body=void 0),i=new Request(t,l),u&&l&&(l.body=u),o=t instanceof Request?i:t,!Ot(i.url)){n.next=11;break}return s("Not creating span for fetch call because the url is ignored, URL: ".concat(i.url)),n.abrupt("return",e(o,r));case 11:a=vr(t,r,i,l),n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),s("failed to instrument fetch call",n.t0),n.abrupt("return",e(o,r));case 18:return v=(c=a).copyOfInit,d=c.span,f=c.performanceObserver,n.prev=19,n.next=22,e(o,v);case 22:return p=n.sent,fr(d,p),n.abrupt("return",pr(p,he.maxToleranceForResourceTimingsMillis,(function(){return f.end()}),(function(e){var n;f.cancel(),null!==(n=i)&&void 0!==n&&null!==(n=n.signal)&&void 0!==n&&n.aborted?lr(d):ar(d,e)})));case 27:throw n.prev=27,n.t1=n.catch(19),f.cancel(),null!==(h=i)&&void 0!==h&&null!==(h=h.signal)&&void 0!==h&&h.aborted?lr(d):ar(d,n.t1),n.t1;case 32:case"end":return n.stop()}}),n,null,[[1,14],[19,27]])})));return function(e,t){return n.apply(this,arguments)}}()}function vr(e,n,t,r){var o,i=t.url,a=null!==(o=t.method)&&void 0!==o?o:"GET",l=tr(a),u=tr(a.toUpperCase())?a.toUpperCase():nr,c=pt("HTTP ".concat(u));It(c.attributes),gt(c.attributes,i),function(e,n){try{return void 0}catch(t){s("failed to analyze request for GraphQL insights",t,e,n)}}(e,n),nt(c.attributes,xe,u),l||nt(c.attributes,ke,a);var v,d=sr(i);d.length>0&&(null!==(v=r)&&void 0!==v&&v.headers?(r.headers=new Headers(r.headers),ur(r.headers.append,r.headers,c,d)):e instanceof Request?ur(t.headers.append,t.headers,c,d):(r||(r={}),r.headers=new Headers,ur(r.headers.append,r.headers,c,d)));dr(t.headers,c,(function(e){return $t(e)}));var f=J({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===re(i).href},maxWaitForResourceMillis:he.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:he.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(rr(c,t),ir(c,t)),Zn(ht(c,void 0,1e6*n))}});return f.start(),{copyOfInit:r,span:c,performanceObserver:f}}function dr(e,n,t){try{if(!he.headersToCapture.length)return;e.forEach((function(e,r){he.headersToCapture.some((function(e){return e.test(r)}))&&nt(n.attributes,t(r),e)}))}catch(e){s("unable to capture http headers",e)}}function fr(e,n){var t=n.status;Et(e,t>=200&&t<400?0:2),0===t&&nt(e.attributes,Me,n.type),nt(e.attributes,Ge,String(t)),dr(n.headers,e,(function(e){return Jt(e)}))}function pr(e,n,t,r){var o,i,a=m.now(),l=e.body;if(!(l&&(o=e,i=o.status,i>=200&&204!=i&&205!=i&&304!=i)))return t(),e;var s=!1,u=function(e){s||(t(e),s=!0)},c=function(e){s||(r(e),s=!0)},v=q((function(){return u(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return L(U().mark((function t(){var r,o;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,Y(v),t.next=4,d.read();case 4:r=t.sent,o=r.value,r.done?(d.releaseLock(),e.close(),u()):(a=m.now(),v=q((function(){return u(a)}),n),e.enqueue(o)),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),c(t.t0),e.error(t.t0);try{d.releaseLock()}catch(e){}case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))()},cancel:function(e){return Y(v),u(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}var hr,mr=Symbol("dash0XhrState");function Er(e){return function(n,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=[n,t].concat(o);try{a=[n,_r(this,n,t)].concat(o)}catch(e){this[mr]=void 0,s("failed to instrument XMLHttpRequest.open",e)}return e.apply(this,a)}}function _r(e,n,t){var r=e[mr];null!=r&&r.span&&!r.completed&&function(e,n){n.completed=!0;try{var t,r,o,i=A(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(i.s();!(o=i.n()).done;){var a=M(o.value,2);b(e,a[0],a[1])}}catch(e){i.e(e)}finally{i.f()}null===(t=n.performanceObserver)||void 0===t||t.cancel(),n.span&&lr(n.span)}catch(e){}}(e,r);var o=String(t),i=re(o).href,a=String(null!=n?n:"GET"),l=tr(a.toUpperCase())?a.toUpperCase():nr;return e[mr]={method:l,originalMethod:a,isWellKnownMethod:tr(a),url:i,ignored:Ot(i),propagatorTypes:sr(i),completed:!1},o}function gr(e){return hr=e,function(n,t){e.call(this,n,t);try{!function(e,n,t){var r,o=e[mr];if(!o||o.ignored)return;var i=n.toLowerCase();"traceparent"!==i&&"x-amzn-trace-id"!==i||(o.alreadyTraced=!0);if(0===he.headersToCapture.length)return;if(!he.headersToCapture.some((function(e){return e.test(i)})))return;var a=null!==(r=o.capturedRequestHeaders)&&void 0!==r?r:o.capturedRequestHeaders={};a[i]=i in a?"".concat(a[i],", ").concat(t):t}(this,n,t)}catch(e){s("failed to instrument XMLHttpRequest.setRequestHeader",e)}}}function yr(e){return function(n){var t=this[mr];if(!t||t.ignored)return null!=t&&t.ignored&&s("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(t.url)),e.call(this,n);if(t.alreadyTraced)return s("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(t.url)),e.call(this,n);if(t.span&&!t.completed)return e.call(this,n);try{!function(e,n){var t=pt("HTTP ".concat(n.method));It(t.attributes),gt(t.attributes,n.url),nt(t.attributes,xe,n.method),n.isWellKnownMethod||nt(t.attributes,ke,n.originalMethod);if(n.span=t,n.propagatorTypes.length>0)try{ur((function(n,t){return(null!=hr?hr:e.setRequestHeader).call(e,n,t)}),e,t,n.propagatorTypes)}catch(e){s("failed to inject trace context headers on XMLHttpRequest",e)}if(n.capturedRequestHeaders)for(var r=0,o=Object.entries(n.capturedRequestHeaders);r<o.length;r++){var i=M(o[r],2),a=i[0],l=i[1];nt(t.attributes,$t(a),l)}var u=J({resourceMatcher:function(e){var t=e.initiatorType,r=e.name;return"xmlhttprequest"===t&&r===n.url},maxWaitForResourceMillis:he.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:he.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,r=e.resource;r&&(rr(t,r),ir(t,r)),Zn(ht(t,void 0,1e6*n))}});n.performanceObserver=u,u.start(),n.listeners=[["error",function(){n.failureKind="error"}],["timeout",function(){n.failureKind="timeout"}],["abort",function(){n.failureKind="abort"}],["loadend",function(){return function(e,n){var t;if(n.completed)return;n.completed=!0;var r,o=A(null!==(t=n.listeners)&&void 0!==t?t:[]);try{for(o.s();!(r=o.n()).done;){var i=M(r.value,2);b(e,i[0],i[1])}}catch(e){o.e(e)}finally{o.f()}var a=n.span;if(!a)return;var l=n.performanceObserver;if("abort"===n.failureKind)return null==l||l.cancel(),void lr(a);var u=0;try{u=e.status}catch(e){u=0}if("error"===n.failureKind||"timeout"===n.failureKind||0===u){var c;return null==l||l.cancel(),void ar(a,{name:null!==(c=n.failureKind)&&void 0!==c?c:"error",message:"XMLHttpRequest failed: ".concat(n.url)})}Et(a,u>=200&&u<400?0:2),nt(a.attributes,Ge,String(u)),function(e,n){try{if(!he.headersToCapture.length)return;var t=e.getAllResponseHeaders();if(!t)return;t.split(/\r?\n/).filter((function(e){return e.length>0})).forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substring(0,t).trim(),o=e.substring(t+1).trim();he.headersToCapture.some((function(e){return e.test(r)}))&&nt(n.attributes,Jt(r),o)}}))}catch(e){s("unable to capture http response headers",e)}}(e,a),null==l||l.end()}(e,n)}]];var c,v=A(n.listeners);try{for(v.s();!(c=v.n()).done;){var d=M(c.value,2),f=d[0],p=d[1];R(e,f,p)}}catch(e){v.e(e)}finally{v.f()}}(this,t)}catch(e){!function(e,n){try{var t,r;null===(t=n.performanceObserver)||void 0===t||t.cancel();var o,i=A(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(i.s();!(o=i.n()).done;){var a=M(o.value,2);b(e,a[0],a[1])}}catch(e){i.e(e)}finally{i.f()}}catch(e){}n.span=void 0}(this,t),s("failed to instrument XMLHttpRequest.send",e)}try{return e.call(this,n)}catch(e){throw function(e,n,t){if(n.completed)return;n.completed=!0;try{var r,o,i,a,l=A(null!==(i=n.listeners)&&void 0!==i?i:[]);try{for(l.s();!(a=l.n()).done;){var s=M(a.value,2);b(e,s[0],s[1])}}catch(e){l.e(e)}finally{l.f()}null===(r=n.performanceObserver)||void 0===r||r.cancel();var u=n.span;if(!u)return;var c=null!==(o=n.failureKind)&&void 0!==o?o:"TimeoutError"===(null==t?void 0:t.name)?"timeout":"error";_t(u,null!=t?t:{name:c,message:"XMLHttpRequest failed: ".concat(n.url)}),nt(u.attributes,Me,c),Zn(ht(u,{code:2,message:"XMLHttpRequest failed: ".concat(n.url)},void 0))}catch(e){}}(this,t,e),e}}}function Tr(e){var n,t,r=[];nt(r,Re,Be.PAGE_VIEW),e.metaAttributes&&Object.entries(e.metaAttributes).forEach((function(e){var n=M(e,2),t=n[0],o=n[1];return nt(r,t,o)})),It(r,{url:e.url}),tt(r,e.customAttributes);var o=[];nt(o,"title",null!==(n=null!==(t=e.title)&&void 0!==t?t:null==f?void 0:f.title)&&void 0!==n?n:ne),null!=f&&f.referrer&&nt(o,"referrer",f.referrer),nt(o,"type",e.pageViewType),e.changeState&&nt(o,"change_state",e.changeState);var i={timeUnixNano:e.timeUnixNano,attributes:r,severityNumber:Fe.INFO,severityText:"INFO",body:{kvlistValue:{values:o}}},a=at();a&&(i.traceId=a.traceId,i.spanId=a.spanId),Kn(i)}function Rr(e,n,t,r){var o=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=he.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n);Tr({timeUnixNano:e,url:n,title:o.title,metaAttributes:o.attributes,pageViewType:t?je:He,changeState:r?Xe:We})}function br(){var e=null==d?void 0:d.performance.getEntriesByType("navigation")[0];if(e){var n=[];nt(n,Re,Be.NAVIGATION_TIMING);var t=[];nt(t,"name",e.name),Ir(t,e,"responseStatus"),Ir(t,e,"fetchStart"),Ir(t,e,"requestStart"),Ir(t,e,"responseStart"),Ir(t,e,"domInteractive"),Ir(t,e,"domContentLoadedEventEnd"),Ir(t,e,"domComplete"),Ir(t,e,"loadEventEnd"),Ir(t,e,"transferSize"),Ir(t,e,"encodedBodySize"),Ir(t,e,"decodedBodySize");var r={timeUnixNano:Cr(),attributes:n,severityNumber:Fe.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};It(r.attributes);var o=at();o&&(r.traceId=o.traceId,r.spanId=o.spanId),Kn(r)}else s("Navigation timings not available. Cannot emit navigation timing log")}function Ir(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||nt(e,t,Number.isInteger(r)?r:te(r))}function Cr(){return H(Math.round(j()))}var Sr={},Lr=!1,Nr=!1;function Or(){Vr(null==d?void 0:d.location.href)}function Ar(e){Vr(e.newURL)}function Vr(e,n){var t;if(e)try{var r=new URL(e,null==d?void 0:d.location.href);((t=r).pathname!==Sr.path||Nr&&t.search!==Sr.search||Lr&&t.hash!==Sr.hash)&&(wr(r),Rr(F(),r,!0,Boolean(n)))}catch(e){s("Failed to handle url change",e)}}function wr(e){Sr.path=e.pathname,Sr.search=e.search,Sr.hash=e.hash}function Pr(){!function(){try{Rr(Cr(),null!=d&&d.location.href?new URL(null==d?void 0:d.location.href):void 0)}catch(e){l("Failed to transmit initial page view event",e)}if("complete"===(null==f?void 0:f.readyState))return br();d&&R(d,"load",(function(){setTimeout(br,0)}))}(),function(){var e,n,t,r;if(d&&d.history){if(he.pageViewInstrumentation.trackVirtualPageViews){Nr=null!==(e=null===(n=he.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,Lr=null!==(t=null===(r=he.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,se(d.history,"replaceState",(function(e){return function(n,t,r){return Vr(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),se(d.history,"pushState",(function(e){return function(n,t,r){return Vr(r?String(r):void 0),e.apply(this,[n,t,r])}})),d.addEventListener("hashchange",Ar),d.addEventListener("popstate",Or);try{wr(new URL(d.location.href))}catch(e){}}}else s("Browser does not support history API, skipping instrumentation")}()}function Ur(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,o=n;r<o.length;r++){var i=o[r];if(i)return i}}var Mr={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function Dr(e){for(var n=function(e){var n,t,r,o,i,a,l,s,u,c,v,d,f,p,h,m=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return m;var E=function(){var e,n,t,r,o,i;try{var a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,U,M,D,x,k,G,B,F,H,j,W,X,q,Y,z,K,Q,Z,$,J,ee,ne,te,re,oe,ie,ae,le,se,ue,ce,ve;e=Ur(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REACT_APP_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.GATSBY_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VITE_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.PUBLIC_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.VUE_APP_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=Ur(null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.GATSBY_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.VITE_VERCEL_GIT_REPO_OWNER,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.VUE_APP_VERCEL_GIT_REPO_OWNER,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=Ur(null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.NUXT_ENV_VERCEL_GIT_REPO_SLUG,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.REACT_APP_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.GATSBY_VERCEL_GIT_REPO_SLUG,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VITE_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=Ur(null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.GATSBY_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VITE_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),o=Ur(null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.VITE_VERCEL_GIT_COMMIT_SHA,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),i=Ur(null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ae=process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(le=process)||void 0===le||null===(le=le.env)||void 0===le?void 0:le.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ce=process)||void 0===ce||null===(ce=ce.env)||void 0===ce?void 0:ce.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ve=process)||void 0===ve||null===(ve=ve.env)||void 0===ve?void 0:ve.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:xr(e,n,t),refHeadName:r,refHeadRevision:o,changeId:i}}(),_=function(){var e,n,t,r;try{var o,i,a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,U,D,x,k,G,B,F,H,j,W;e=Ur(null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.NEXT_PUBLIC_REPOSITORY_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NUXT_PUBLIC_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NUXT_ENV_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.GATSBY_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VITE_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.PUBLIC_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VUE_APP_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.REDWOOD_ENV_REPOSITORY_URL,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.SANITY_STUDIO_REPOSITORY_URL),n=Ur(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_PUBLIC_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_ENV_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.REACT_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.GATSBY_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.PUBLIC_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.VUE_APP_BRANCH,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.REDWOOD_ENV_BRANCH,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.SANITY_STUDIO_BRANCH),t=Ur(null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.NEXT_PUBLIC_COMMIT_REF,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.NUXT_PUBLIC_COMMIT_REF,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.REACT_APP_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.GATSBY_COMMIT_REF,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.VITE_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.PUBLIC_COMMIT_REF,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VUE_APP_COMMIT_REF,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.REDWOOD_ENV_COMMIT_REF,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.SANITY_STUDIO_COMMIT_REF),r=Ur(null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.NEXT_PUBLIC_REVIEW_ID,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NUXT_PUBLIC_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_ENV_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.REACT_APP_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.GATSBY_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.VITE_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var X=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var o=function(e){for(var n=0,t=Object.entries(kr);n<t.length;n++){var r=M(t[n],2),o=r[0];if(r[1].includes(e))return o}return}(n);if(!o)return;var i=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(i.length<2)return;var a=i[0],l=i[i.length-1];return a&&l?{providerName:o,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==X?void 0:X.providerName,ownerName:null==X?void 0:X.ownerName,repositoryName:null==X?void 0:X.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=m.providerName)&&void 0!==r?r:E.providerName)&&void 0!==t?t:_.providerName,ownerName:null!==(o=null!==(i=m.ownerName)&&void 0!==i?i:E.ownerName)&&void 0!==o?o:_.ownerName,repositoryName:null!==(a=null!==(l=m.repositoryName)&&void 0!==l?l:E.repositoryName)&&void 0!==a?a:_.repositoryName,repositoryUrlFull:null!==(s=null!==(u=m.repositoryUrlFull)&&void 0!==u?u:E.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull,refHeadName:null!==(c=null!==(v=m.refHeadName)&&void 0!==v?v:E.refHeadName)&&void 0!==c?c:_.refHeadName,refHeadRevision:null!==(d=null!==(f=m.refHeadRevision)&&void 0!==f?f:E.refHeadRevision)&&void 0!==d?d:_.refHeadRevision,changeId:null!==(p=null!==(h=m.changeId)&&void 0!==h?h:E.changeId)&&void 0!==p?p:_.changeId}}(e),t=0,r=Object.keys(Mr);t<r.length;t++){var o=r[t],i=n[o];i&&nt(he.resource.attributes,Mr[o],i)}}function xr(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=kr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var kr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var Gr,Br,Fr,Hr="dash0Recorder",jr=!1,Wr=!1,Xr=!1;function qr(e){Gr=e,jr&&Yr()}function Yr(){var e,n,t;if(Br)s("Session recording already running. Ignoring start.");else if(Gr&&d){var r=he.sessionRecording;if(he.isSessionSampled)if(pe(null!=Ze?Ze:"",null!==(e=r.samplingRate)&&void 0!==e?e:100))if(Ot(d.location.href))s("Page URL is ignored. Session recording will not start.");else{var o=dt(Ze),i={recordingId:T(16),traceId:o,spanId:ft(o)},l=function(e){var n=[],t=0,r=!1,o=0,i=0,a=0,l=null;return{add:function(a){4===a.type&&n.length>0&&u();var s=JSON.stringify(a);null!=s&&(0===n.length&&(o=a.timestamp,l=q(u,e.maxMillis)),n.push(s),t+=s.length,i=a.timestamp,2===a.type&&(r=!0),t>=e.maxBytes&&u())},flush:u,discard:function(){s(),n=[],t=0,r=!1}};function s(){null!=l&&(Y(l),l=null)}function u(){if(s(),0!==n.length){var l={seq:a++,body:"["+n.join(",")+"]",eventCount:n.length,hasSnapshot:r,startTime:o,endTime:i};n=[],t=0,r=!1,e.onChunk(l)}}}({maxBytes:null!==(n=r.chunkMaxBytes)&&void 0!==n?n:48e3,maxMillis:null!==(t=r.chunkMaxMillis)&&void 0!==t?t:5e3,onChunk:function(e){try{n=function(e,n){var t=[];return nt(t,Re,Be.SESSION_RECORDING),It(t),nt(t,"dash0.session_recording.id",e.recordingId),nt(t,"dash0.session_recording.seq",{intValue:String(n.seq)}),nt(t,"dash0.session_recording.event_count",{intValue:String(n.eventCount)}),nt(t,"dash0.session_recording.has_snapshot",n.hasSnapshot),nt(t,"dash0.session_recording.end_time_unix_nano",{intValue:H(n.endTime)}),{timeUnixNano:H(n.startTime),severityNumber:Fe.INFO,severityText:"INFO",body:{stringValue:n.body},attributes:t,traceId:e.traceId,spanId:e.spanId}}(i,e),t={compress:!Xr},he.isSessionSampled&&(zn()?s("Session recording rate limit. Will not send chunk.",n):Qn([n],{compress:null===(r=null==t?void 0:t.compress)||void 0===r||r}))}catch(e){a("Failed to transmit session recording chunk",e)}var n,t,r}});Fr=l;try{Br=Gr({emit:function(e){Fr===l&&l.add(e)},checkoutEveryNms:r.checkoutEveryNms,maskAllInputs:r.maskAllInputs,maskTextClass:r.maskTextClass,maskTextSelector:r.maskTextSelector,maskInputFn:r.maskInputFn,maskTextFn:r.maskTextFn,blockClass:r.blockClass,blockSelector:r.blockSelector,recordCanvas:r.recordCanvas,collectFonts:r.collectFonts})}catch(e){return a("Failed to start session recorder",e),void zr(l)}if(!Br)return a("Session recorder did not start."),void zr(l);Wr||(Wr=!0,Dn((function(){Xr=!0;try{var e;null===(e=Fr)||void 0===e||e.flush()}finally{Xr=!1}}))),s("Session recording started",i)}else s("Session is not sampled for recording. Session recording will not start.");else s("Session is not sampled. Session recording will not start.")}}function zr(e){e.discard(),Fr=void 0}var Kr=!1;function Qr(e){if(Kr)s("Dash0 SDK is being reinitialized, skipping ...");else if(null!=d)if("function"==typeof E&&m&&m.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,ie.test(t))){var o;s("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(o=null==h?void 0:h.hostname)&&void 0!==o?o:"unknown"}}else s("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==h?void 0:h.hostname)&&void 0!==n?n:"unknown";if(he.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==he.endpoints.length){if(Object.assign(he,function(e,n){for(var t=P({},e),r=0,o=Object.keys(n);r<o.length;r++){var i=o[r],a=n[i],l=e[i];void 0!==a&&(null===a||"object"!==k(a)||Array.isArray(a)||"object"!==k(l)||null===l||Array.isArray(l)?t[i]=a:t[i]=P(P({},l),$r(a)))}return t}(he,function(e,n){var t,r={},o=A(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;i in e&&(r[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","sessionRecording","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&a("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),he.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(a("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),he.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):he.propagators=[{type:"traceparent",match:[]}]}(e),function(e){nt(he.resource.attributes,me,e.serviceName),e.serviceNamespace&&nt(he.resource.attributes,Ee,e.serviceNamespace);e.serviceVersion&&nt(he.resource.attributes,_e,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,o,i,a,l,s,u,c;return Ur(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REDWOOD_ENV_VERCEL_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_ENV)}catch(e){return}}(e);n&&nt(he.resource.attributes,ge,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,o,i,a,l,s,u,c;return Ur(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_TARGET_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_TARGET_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_TARGET_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_TARGET_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_TARGET_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REDWOOD_ENV_VERCEL_TARGET_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch(e){return}}(e);t&&nt(he.resource.attributes,ye,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,o,i,a,l,s,u,c;return Ur(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_BRANCH_URL,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_BRANCH_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_BRANCH_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_BRANCH_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_BRANCH_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REDWOOD_ENV_VERCEL_BRANCH_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch(e){return}}(e);r&&nt(he.resource.attributes,Te,r);Dr(e)}(e),function(e){var n;nt(he.signalAttributes,Ie,T(16)),nt(he.signalAttributes,Ce,null!==(n=null==p?void 0:p.userAgent)&&void 0!==n?n:ne),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=M(e,2),t=n[0],r=n[1];nt(he.signalAttributes,t,r)}))}(e),bt(),$e(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var i=Math.max(0,Math.min(100,e.sessionSamplingRate));he.isSessionSampled=null!=Ze?pe(Ze,i):i>0}if(!he.isSessionSampled)return s("Session is not sampled. No telemetry will be transmitted for this session."),void(Kr=!0);Zr("@dash0/navigation",e)&&Pr(),Zr("@dash0/web-vitals",e)&&Ct(),Zr("@dash0/error",e)&&Zt(),Zr("@dash0/fetch",e)&&(d&&d.fetch&&d.Request?se(d,"fetch",cr):s("Browser does not support the Fetch API, skipping instrumentation")),Zr("@dash0/xhr",e)&&function(){if(d&&d.XMLHttpRequest){var e=d.XMLHttpRequest.prototype;se(e,"open",Er),se(e,"setRequestHeader",gr),se(e,"send",yr)}else s("Browser does not support XMLHttpRequest, skipping instrumentation")}(),Zr("@dash0/session-recording",e)&&function(){if(jr=!0,he.sessionRecording.recorder)Gr=he.sessionRecording.recorder;else if(!Gr){var e=null==d?void 0:d[Hr];"function"==typeof e&&(Gr=e)}Gr&&Yr()}(),Kr=!0}else a("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else s("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else s("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function Zr(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}function $r(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];void 0!==e[o]&&(n[o]=e[o])}return n}e.addSignalAttribute=function(e,n){nt(he.signalAttributes,e,n)},e.debug=function(){s("Dash0 Web SDK configuration state:",he)},e.identify=function(e,n){rt(he.signalAttributes,Se),null!=e&&nt(he.signalAttributes,Se,e),rt(he.signalAttributes,Le),null!=(null==n?void 0:n.name)&&nt(he.signalAttributes,Le,n.name),rt(he.signalAttributes,Ne),null!=(null==n?void 0:n.fullName)&&nt(he.signalAttributes,Ne,n.fullName),rt(he.signalAttributes,Oe),null!=(null==n?void 0:n.email)&&nt(he.signalAttributes,Oe,n.email),rt(he.signalAttributes,Ae),null!=(null==n?void 0:n.hash)&&nt(he.signalAttributes,Ae,n.hash),rt(he.signalAttributes,Ve),null!=(null==n?void 0:n.roles)&&nt(he.signalAttributes,Ve,n.roles)},e.init=function(e){s("".concat("Initializing Dash0 Web SDK"," (via package)")),Qr(e)},e.removeSignalAttribute=function(e){rt(he.signalAttributes,e)},e.reportError=function(e,n){Dt(e,n)},e.sendEvent=function(e,n){if(Object.values(Be).includes(e))a("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var t=[];It(t),nt(t,Re,e),null!=n&&n.title&&nt(t,"dash0.web.event.title",n.title),tt(t,null==n?void 0:n.attributes),Kn({timeUnixNano:null!=(null==n?void 0:n.timestamp)?H(n.timestamp):F(),attributes:t,body:Jn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?Fe[n.severity]:void 0})}},e.setActiveLogLevel=function(e){var n;o=null!==(n=r[e])&&void 0!==n?n:r.warn},e.startSessionRecording=function(e){var n=null!=e?e:null==d?void 0:d[Hr];"function"==typeof n?qr(n):s("startSessionRecording requires a recorder. Import `recorder` from `@dash0/sdk-web/session-recording` or load dash0-session-recording.iife.js. Ignoring call.")},e.startView=function(e,n){if(0!==he.endpoints.length)if("string"==typeof e&&0!==e.length){var t;if(null!=(null==n?void 0:n.url))try{t=new URL(n.url,null==d?void 0:d.location.href)}catch(e){s("Failed to parse startView url option. Falling back to the current location.",e)}!function(e){Tr({timeUnixNano:e.timeUnixNano,url:e.url,title:e.title,customAttributes:e.attributes,pageViewType:je})}({timeUnixNano:F(),title:e,url:t,attributes:null==n?void 0:n.attributes})}else s("startView requires a non-empty view name. Ignoring startView call.");else s("Dash0 SDK has not been initialized. Ignoring startView call.")},e.stopSessionRecording=function(){!function(){var e;if(Br){try{Br()}catch(e){s("Failed to stop session recorder",e)}Br=void 0}null===(e=Fr)||void 0===e||e.flush(),Fr=void 0}()},e.terminateSession=function(){if(I)try{!function(e){I&&_&&_.removeItem(e)}(ze)}catch(e){i("Failed to terminate session",e)}}}));
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).dash0={})}(this,(function(e){"use strict";function n(){}function t(e){return e}var r={debug:0,info:1,warn:2,error:3},i=r.warn;var o=u("info"),a=u("warn"),l=u("error"),s=u("debug");function u(e){if("undefined"!=typeof console&&console[e]&&"function"==typeof console[e].apply){var t=r[e];return function(){t>=i&&console[e].apply(console,arguments)}}return n}var c=Object.prototype.hasOwnProperty;function v(e,n){return c.call(e,n)}var d="undefined"!=typeof window?window:void 0,f=null==d?void 0:d.document,p=null==d?void 0:d.navigator,h="undefined"!=typeof location?location:void 0,m=(null==d?void 0:d.performance)||(null==d?void 0:d.webkitPerformance)||(null==d?void 0:d.msPerformance)||(null==d?void 0:d.mozPerformance);null==d||d.encodeURIComponent;var E=null==d?void 0:d.fetch,_=function(){try{var e;return null!==(e=null==d?void 0:d.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),g=function(){try{var e;return null!==(e=null==d?void 0:d.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=Array(32);function T(e){for(var n=0;n<2*e;n++)y[n]=Math.floor(16*Math.random())+48,y[n]>=58&&(y[n]+=39);return String.fromCharCode.apply(null,y.slice(0,2*e))}function R(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}function b(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("on"+n,t)}var I=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.setItem;function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function S(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(r,i)}function L(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){S(o,r,i,a,l,"next",e)}function l(e){S(o,r,i,a,l,"throw",e)}a(void 0)}))}}function N(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function O(e,n,t){return n&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=G(e))||n){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function V(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){V(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function U(){U=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var o=n&&n.prototype instanceof E?n:E,a=Object.create(o.prototype),l=new A(r||[]);return i(a,"_invoke",{value:S(e,t,l)}),a}function v(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function E(){}function _(){}function g(){}var y={};u(y,a,(function(){return this}));var T=Object.getPrototypeOf,R=T&&T(T(V([])));R&&R!==t&&r.call(R,a)&&(y=R);var b=g.prototype=E.prototype=Object.create(y);function I(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(i,o,a,l){var s=v(e[i],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,l)}),(function(e){t("throw",e,a,l)})):n.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return t("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new n((function(n,i){t(e,r,n,i)}))}return o=o?o.then(i,i):i()}})}function S(n,t,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var u=v(n,t,r);if("normal"===u.type){if(i=r.done?h:f,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=h,r.method="throw",r.arg=u.arg)}}}function L(n,t){var r=t.method,i=n.iterator[r];if(i===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,L(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=v(i,n.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var a=o.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,o=function t(){for(;++i<n.length;)if(r.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=e,t.done=!0,t};return o.next=o}}throw new TypeError(typeof n+" is not iterable")}return _.prototype=g,i(b,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:_,configurable:!0}),_.displayName=u(g,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),u(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new C(c(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function i(r,i){return l.type="throw",l.arg=n,t.next=r,i&&(t.method="next",t.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),m},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),m}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;O(t)}return i}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function M(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===n);else for(;!(s=(r=o.call(t)).done)&&(l.push(r.value),l.length!==n);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,n)||G(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function G(e,n){if(e){if("string"==typeof e)return C(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?C(e,n):void 0}}function B(){return(new Date).getTime()}function F(){var e=j(),n=new Date;if(e){var t=m.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return H(n)}function H(e){return"object"===k(e)?H(e.getTime()):String(e)+"000000"}function j(){var e,n=null==m?void 0:m.timeOrigin;"number"!=typeof n&&(n=null==m||null===(e=m.timing)||void 0===e?void 0:e.fetchStart);return n}var W={setTimeout:null==d?void 0:d.setTimeout,clearTimeout:null==d?void 0:d.clearTimeout,setInterval:null==d?void 0:d.setInterval,clearInterval:null==d?void 0:d.clearInterval},X=null!=d&&null!=d.Zone&&null!=d.Zone.root&&"function"==typeof d.Zone.root.run;function q(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return K.apply("setTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return K.apply("clearTimeout",arguments)}function z(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return K.apply("setInterval",arguments)}function K(){var e,n=this;if(X)try{var t=Array.prototype.slice.apply(arguments);return d.Zone.root.run(W[n],d,t)}catch(e){a("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=W[n])||void 0===e?void 0:e.apply(d,arguments)}X&&s("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");m&&m.getEntriesByType;var Q=m&&"function"==typeof d.PerformanceObserver&&"function"==typeof m.now,Z=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),$=new WeakSet;function J(e){if(!Q)return function(e){var t=0;return{start:function(){t=B()},end:function(){return e({duration:B()-t})},cancel:n}}(e.onEnd);var t,r,i,o,a,l=[];return{start:function(){t=m.now();try{var e,n=null==d?void 0:d.PerformanceObserver;if(n)null===(e=i=new n(u))||void 0===e||e.observe({type:"resource"})}catch(e){}a=q(v,6e5)},end:function(n){if(r)return;if(r=null!=n?n:m.now(),p(),!ee())return s();q((function(){return s()}),Math.min(300,e.maxWaitForResourceMillis)),R(f,"visibilitychange",c),o=q(s,e.maxWaitForResourceMillis)},cancel:v};function s(){v();var n=function(){if(!l.length)return;var n,i,o=l.filter((function(n){return n.responseEnd<=r+e.maxToleranceForResourceTimingsMillis&&!$.has(n)}));if(!o.length)return;1===o.length&&(n=o[0]);if(!n){var a,s=A(o);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=Math.abs(r-t-u.duration)+Math.abs(u.responseEnd-r);(void 0===i||c<i)&&(i=c,n=u)}}catch(e){s.e(e)}finally{s.f()}}if(!n)return;return $.add(n),n}();null!=n&&n.duration&&n.duration<864e5?e.onEnd({resource:n,duration:n.duration}):e.onEnd({resource:n,duration:r-t})}function u(n){n.getEntriesByType("resource").filter((function(n){var r=n;return r.startTime>=t&&e.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){ee()||s()}function v(){!function(){if(i){try{var e;null===(e=i)||void 0===e||e.disconnect()}catch(e){}i=void 0}}(),o&&(clearTimeout(o),o=void 0),p(),function(){if(!f)return;b(f,"visibilitychange",c)}()}function p(){a&&(clearTimeout(a),a=void 0)}}function ee(){return"visible"===(null==f?void 0:f.visibilityState)||"prerender"===(null==f?void 0:f.visibilityState)}var ne="undefined";function te(e){return Math.round(100*e)/100}function re(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==f?void 0:f.baseURI)&&void 0!==n?n:null==h?void 0:h.href)}function ie(e){try{return re(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var oe=/['"<>{};\x00-\x1F\x7F]/;var ae=Symbol.for("INSTRUMENTED_BY_DASH0");function le(e){e[ae]=!0}function se(e,n,t){var r=e[n];if(r)if(!0!==r[ae])try{var i=t(r);le(r),i&&le(i),e[n]=i}catch(e){a("failed to instrument ".concat(String(n),", the page may have locked the property"),e)}else s("".concat(String(n)," has already been instrumented, skipping"));else s("".concat(String(n)," is not defined, unable to instrument"))}for(var ue=new Uint32Array(256),ce=0;ce<256;ce++){for(var ve=ce,de=0;de<8;de++)ve=1&ve?3988292384^ve>>>1:ve>>>1;ue[ce]=ve>>>0}function fe(e){for(var n=new Uint8Array(e.length/2),t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);for(var r=4294967295,i=0;i<n.length;i++){var o=n[i];r=r>>>8^ue[255&(r^o)]}return(4294967295^r)>>>0}function pe(e,n){return!(n<=0)&&(n>=100||fe(e)%100<n)}var he={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.26.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:t,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},sessionRecording:{samplingRate:100,maskAllInputs:!0,maskTextClass:"dash0-mask",blockClass:"dash0-block",recordCanvas:!1,collectFonts:!1,chunkMaxBytes:48e3,chunkMaxMillis:5e3,checkoutEveryNms:3e5},enableTransportCompression:!1,isSessionSampled:!0},me="service.name",Ee="service.namespace",_e="service.version",ge="deployment.environment.name",ye="deployment.name",Te="deployment.id",Re="event.name",be="dash0.web.event.id",Ie="page.load.id",Ce="user_agent.original",Se="user.id",Le="user.name",Ne="user.full_name",Oe="user.email",Ae="user.hash",Ve="user.roles",we="exception.message",Pe="exception.type",Ue="exception.stacktrace",Me="error.type",De="url.full",xe="http.request.method",ke="http.request.method_original",Ge="http.response.status_code",Be={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error",SESSION_RECORDING:"browser.session_recording"},Fe={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},He=0,je=1,We="pushState",Xe="replaceState",qe=1;function Ye(){var e,n;return"".concat((e={ephemeralSession:!I},n=0,e.ephemeralSession&&(n|=qe),n.toString(16).padStart(2,"0"))).concat(T(7))}var ze="d0_session",Ke="#",Qe=864e5,Ze=null;function $e(e,n){if(!I)return s("Storage API is not available and session tracking is therefore not supported."),void(Ze=Ye());e||(e=108e5),n||(n=216e5),e=Math.min(e,Qe),n=Math.min(n,Qe);try{var t=function(e){return I&&_?_.getItem(e):null}(ze),r=function(e){if(!e)return null;var n=e.split(Ke);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),i=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(i))return null;return{id:t,startTime:r,lastActivityTime:i}}(t);r&&!function(e,n,t){var r=B()-n;if(e.lastActivityTime<r)return!1;var i=B()-t;return e.startTime>=i}(r,e,n)&&(r=null),r?r.lastActivityTime=B():r={id:Ye(),startTime:B(),lastActivityTime:B()},function(e,n){I&&_&&_.setItem(e,n)}(ze,function(e){return e.id+Ke+e.startTime+Ke+e.lastActivityTime}(r)),Ze=r.id}catch(e){a("Failed to record session information",e)}}var Je=-1,en=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Je=n.timeStamp,e(n))}),!0)},nn=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&(((o=n.value-(null!=i?i:0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},tn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},rn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},on=function(){var e,n=rn();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},an=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=rn(),r="navigate";return Je>=0?r="back-forward-cache":t&&(document.prerendering||on()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ln=new WeakMap;function sn(e,n){return ln.get(e)||ln.set(e,new n),ln.get(e)}var un,cn=function(){return O((function e(){N(this,e),V(this,"t",void 0),V(this,"i",0),V(this,"o",[])}),[{key:"h",value:function(e){var n;if(!e.hadRecentInput){var 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]),null===(n=this.t)||void 0===n||n.call(this,e)}}}])}(),vn=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(P({type:e,buffered:!0},t)),r}}catch(e){}},dn=function(e){var n=!1;return function(){n||(e(),n=!0)}},fn=-1,pn=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},hn=function(e){"hidden"===document.visibilityState&&fn>-1&&(fn="visibilitychange"===e.type?e.timeStamp:0,En())},mn=function(){addEventListener("visibilitychange",hn,!0),addEventListener("prerenderingchange",hn,!0)},En=function(){removeEventListener("visibilitychange",hn,!0),removeEventListener("prerenderingchange",hn,!0)},_n=function(){if(fn<0){var e,n=on(),t=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((function(e){return"hidden"===e.name&&e.startTime>n}))[0])||void 0===e?void 0:e.startTime;fn=null!=t?t:pn(),mn(),en((function(){setTimeout((function(){fn=pn(),mn()}))}))}return{get firstHiddenTime(){return fn}}},gn=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},yn=[1800,3e3],Tn=[.1,.25],Rn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gn((function(){var t,r=_n(),i=an("FCP"),o=vn("paint",(function(e){var n,a=A(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(o.disconnect(),l.startTime<r.firstHiddenTime&&(i.value=Math.max(l.startTime-on(),0),i.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));o&&(t=nn(e,i,yn,n.reportAllChanges),en((function(r){i=an("FCP"),t=nn(e,i,yn,n.reportAllChanges),tn((function(){i.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(dn((function(){var t,r=an("CLS",0),i=sn(n,cn),o=function(e){var n,o=A(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;i.h(a)}}catch(e){o.e(e)}finally{o.f()}i.i>r.value&&(r.value=i.i,r.entries=i.o,t())},a=vn("layout-shift",o);a&&(t=nn(e,r,Tn,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(o(a.takeRecords()),t(!0))})),en((function(){i.i=0,r=an("CLS",0),t=nn(e,r,Tn,n.reportAllChanges),tn((function(){return t()}))})),setTimeout(t))})))},bn=0,In=1/0,Cn=0,Sn=function(e){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(In=Math.min(In,r.interactionId),Cn=Math.max(Cn,r.interactionId),bn=Cn?(Cn-In)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Ln=function(){var e;return un?bn:null!==(e=performance.interactionCount)&&void 0!==e?e:0},Nn=0,On=function(){return O((function e(){N(this,e),V(this,"u",[]),V(this,"l",new Map),V(this,"m",void 0),V(this,"v",void 0)}),[{key:"p",value:function(){Nn=Ln(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Ln()-Nn)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var i;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.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var o,a=A(this.u.splice(10));try{for(a.s();!(o=a.n()).done;){var l=o.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(i=this.v)||void 0===i||i.call(this,r)}}}}])}(),An=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=dn(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},Vn=[200,500],wn=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&gn((function(){var t;"interactionCount"in performance||un||(un=vn("event",Sn,{type:"event",buffered:!0,durationThreshold:0}));var r,i=an("INP"),o=sn(n,On),a=function(e){An((function(){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;o.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=o.P();l&&l.T!==i.value&&(i.value=l.T,i.entries=l.entries,r())}))},l=vn("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=nn(e,i,Vn,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),en((function(){o.p(),i=an("INP"),r=nn(e,i,Vn,n.reportAllChanges)})))}))},Pn=function(){return O((function e(){N(this,e),V(this,"m",void 0)}),[{key:"h",value:function(e){var n;null===(n=this.m)||void 0===n||n.call(this,e)}}])}(),Un=[2500,4e3],Mn=!1;function Dn(e){Mn&&e(),f&&d&&(R(f,"visibilitychange",(function(){"visible"!==f.visibilityState&&e()})),R(d,"pagehide",(function(){Mn=!0,e()})),R(d,"beforeunload",(function(){Mn=!0,e()})))}function xn(e){var n,t=[];return Dn(r),{send:function(i){"visible"===(null==f?void 0:f.visibilityState)?(t.push(i),t.length>=15?r():null==n&&(n=q(r,1e3))):e([i])}};function r(){null!=n&&(clearTimeout(n),n=null),t.length>0&&(e(t.slice()),t.length=0)}}var kn=0,Gn=0;function Bn(e,n,t){return Fn.apply(this,arguments)}function Fn(){return Fn=L(U().mark((function e(t,r,i){var o,l,u,c;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s("Transmitting telemetry to endpoints",r),o=JSON.stringify(r),l=o,u=new Blob([o]).size,c=!1,"undefined"==typeof CompressionStream||!(he.enableTransportCompression||null!=i&&i.compress)){e.next=11;break}return e.next=8,Hn(o);case 8:l=e.sent,u=l.byteLength,c=!0;case 11:return e.next=13,Promise.all(he.endpoints.map(function(){var e=L(U().mark((function e(r){var i,o,s;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(i=new URL(r.url)).pathname=i.pathname+(i.pathname.endsWith("/")?t.substring(1):t),o={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(o["Dash0-Dataset"]=r.dataset),c&&(o["Content-Encoding"]="gzip"),E){e.next=9;break}return a("Unable to send telemetry, fetch is not defined"),e.abrupt("return");case 9:return kn+=u,Gn++,e.next=13,E(i,{method:"POST",headers:o,body:l,keepalive:kn<=6e4&&Gn<=15});case 13:(s=e.sent).text().catch(n),s.ok||a("Failed to send telemetry to ".concat(i,": ").concat(s.status," ").concat(s.statusText)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),a("Error sending telemetry to ".concat(r.url).concat(t,":"),e.t0);case 21:return e.prev=21,kn-=u,Gn--,e.finish(21);case 25:case"end":return e.stop()}}),e,null,[[0,18,21,25]])})));return function(n){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e)}))),Fn.apply(this,arguments)}function Hn(e){return jn.apply(this,arguments)}function jn(){return(jn=L(U().mark((function e(n){var t,r,i;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),i=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(i).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wn=xn(Qn),Xn=xn((function(e){Bn("/v1/traces",{resourceSpans:[{resource:he.resource,scopeSpans:[{scope:he.scope,spans:e}]}]}).catch((function(e){l("Failed to transmit spans",e)}))}));function qn(e){var n;return function(){return n||(n=function(e){var n=e.maxCallsPerTenMinutes||128,t=e.maxCallsPerTenSeconds||32,r=0,i=0;return z((function(){r=0}),6e5),z((function(){i=0}),1e4),function(){return++r>n||++i>t}}(e)),n()}}var Yn=qn({maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}),zn=qn({maxCallsPerTenMinutes:512,maxCallsPerTenSeconds:64});function Kn(e){he.isSessionSampled&&(Yn()?s("Transport rate limit. Will not send item.",e):Wn.send(e))}function Qn(e,n){Bn("/v1/logs",{resourceLogs:[{resource:he.resource,scopeLogs:[{scope:he.scope,logRecords:e}]}]},n).catch((function(e){l("Failed to transmit logs",e)}))}function Zn(e){e&&he.isSessionSampled&&(Yn()?s("Transport rate limit. Will not send item.",e):Xn.send(e))}var $n=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function Jn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return Jn(e)}))}:"string"==typeof e?n.stringValue=e:"number"==typeof e?n.doubleValue=e:"boolean"==typeof e?n.boolValue=e:!function(e){if(null==e||"object"!==k(e))return!1;var n=Object.keys(e);return 1===n.length&&$n.includes(n[0])}(e)?"object"===k(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=M(e,2);return et(n[0],n[1])}))}):n=e,n}}function et(e,n){return{key:e,value:Jn(n)}}function nt(e,n,t){n&&e.push(et(n,t))}function tt(e,n){n&&Object.entries(n).forEach((function(n){var t=M(n,2),r=t[0],i=t[1];return nt(e,r,i)}))}function rt(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var it="traceparent",ot=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function at(){var e,n,t=((null===(e=Array.from(null!==(n=null==f?void 0:f.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===it})))||void 0===e?void 0:e.content.trim())||"").match(ot)||function(){var e=m.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=A(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===it)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(ot);if(t)return{traceId:t[1],spanId:t[2]}}function lt(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function st(e,n,t){var r,i,o,a=(r=t.traceId,i=r.substring(0,8),o=r.substring(8,32),"1-".concat(i,"-").concat(o)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var ut="d042",ct=1;function vt(e){var n=0;return e.withoutSession&&(n|=ct),n.toString(16).padStart(2,"0")}function dt(e){return e?"".concat(ut).concat(vt({withoutSession:!1})).concat(e).concat(T(5)):"".concat(ut).concat(vt({withoutSession:!0})).concat(T(13))}function ft(e){var n=fe(e).toString(16).padStart(8,"0");return"".concat(n).concat(T(4))}function pt(e){var n=dt(Ze),t=ft(n),r=[];return nt(r,be,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:F(),attributes:r,events:[],links:[],status:{code:0}}}function ht(e,n,t){var r=e;if(!r.endTimeUnixNano)return n&&(r.status=n),r.endTimeUnixNano=null!=t?String(Math.round(parseInt(r.startTimeUnixNano)+t)):F(),r;s("Attempting to end already ended span. Dropping...",r)}function mt(e,n,t,r){var i=void 0,o=void 0;"string"==typeof t?i=t:Array.isArray(t)&&(o=t),e.events.push({name:n,timeUnixNano:null!=i?i:F(),attributes:null!=o?o:[]})}function Et(e,n,t){e.status={code:n,message:t}}function _t(e,n){var t=[];"string"==typeof n?nt(t,we,n):n&&(n.code?nt(t,Pe,n.code.toString()):n.name&&nt(t,Pe,n.name),n.message&&nt(t,we,n.message),n.stack&&nt(t,Ue,n.stack),mt(e,"exception",t))}function gt(e,n,r){var i=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var o=re(n);o.username&&(o.username="REDACTED"),o.password&&(o.password="REDACTED");var a=he.urlAttributeScrubber(V(V(V(V(V(V({},De,o.href),"url.path",o.pathname),"url.domain",o.hostname),"url.scheme",o.protocol.replace(":","")),"url.fragment",o.hash?o.hash.replace("#",""):void 0),"url.query",o.search?o.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=M(n,2),r=t[0],o=t[1];void 0!==o&&nt(e,i(r),o)}))}catch(r){he.urlAttributeScrubber===t&&nt(e,i(De),String(n))}}var yt=null!=g&&"function"==typeof g.getItem&&"function"==typeof g.setItem;var Tt="d0_tab",Rt=null;function bt(){if(yt)try{var e=function(e){return yt&&g?g.getItem(e):null}(Tt);if(e)return void(Rt=e);Rt=T(8),function(e,n){yt&&g&&g.setItem(e,n)}(Tt,Rt)}catch(e){a("Failed to record tab ID information",e)}else s("Storage API is not available and tab tracking is therefore not supported.")}function It(e,n){var t,r,i,o,a;void 0===e.find((function(e){return e.key===be}))&&nt(e,be,T(8));for(var l=0;l<he.signalAttributes.length;l++)e.push(he.signalAttributes[l]);gt(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==d?void 0:d.location.href)&&void 0!==t?t:ne,"page"),Ze&&nt(e,"session.id",Ze),Rt&&nt(e,"browser.tab.id",Rt),nt(e,"browser.window.width",null!==(i=null==d?void 0:d.innerWidth)&&void 0!==i?i:ne),nt(e,"browser.window.height",null!==(o=null==d?void 0:d.innerHeight)&&void 0!==o?o:ne);var s=null==p||null===(a=p.connection)||void 0===a?void 0:a.effectiveType;s&&nt(e,"network.connection.subtype",s)}function Ct(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gn((function(){var t,r=_n(),i=an("LCP"),o=sn(n,Pn),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=A(e);try{for(l.s();!(a=l.n()).done;){var s=a.value;o.h(s),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-on(),0),i.entries=[s],t())}}catch(e){l.e(e)}finally{l.f()}},l=vn("largest-contentful-paint",a);if(l){t=nn(e,i,Un,n.reportAllChanges);for(var s=dn((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),u=0,c=["keydown","click","visibilitychange"];u<c.length;u++)addEventListener(c[u],(function(){return An(s)}),{capture:!0,once:!0});en((function(r){i=an("LCP"),t=nn(e,i,Un,n.reportAllChanges),tn((function(){i.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(St,{reportAllChanges:!0}),wn(St,{reportAllChanges:!0}),Rn(St,{reportAllChanges:!0})}function St(e){var n=[];nt(n,Re,Be.WEB_VITAL);var t=[];nt(t,"name",e.name),nt(t,"value",te(e.value)),nt(t,"delta",te(e.delta));var r={timeUnixNano:F(),attributes:n,severityNumber:Fe.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};It(r.attributes),Kn(r)}function Lt(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var Nt="data:";function Ot(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===Nt||(!!function(e){for(var n=e.toLowerCase(),t=0,r=he.endpoints.length;t<r;t++){var i=he.endpoints[t];if(n.startsWith(i.url))return!0}return!1}(e)||Lt(he.ignoreUrls,e))))}var At,Vt=0,wt=0,Pt={},Ut=!1;function Mt(){Ut=!0}function Dt(e,n){e&&xt("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function xt(e){var n=e.message,t=e.type,r=e.stack,i=e.opts;if(n&&!(Vt>100)&&!function(e){return!e||Lt(he.ignoreErrorMessages,e)}(n)){wt>=20&&(Pt={},wt=0);var o=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==d?void 0:d.location.href),a=Pt[o];if(a)a.seenCount++;else{var l=[];It(l),nt(l,Re,Be.ERROR),nt(l,we,n),t&&nt(l,Pe,t),r&&nt(l,Ue,r),null!=i&&i.componentStack&&nt(l,"exception.component_stack",null==i?void 0:i.componentStack.substring(0,2048)),tt(l,null==i?void 0:i.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:F(),attributes:l,severityNumber:Fe.ERROR,severityText:"ERROR",body:{stringValue:n}}},Pt[o]=a,wt++}!function(){if(At)return;At=setTimeout(kt,1e3)}()}}function kt(){for(var e in At&&(clearTimeout(At),At=null),Pt)if(v(Pt,e)){var n=Pt[e];n.seenCount>n.transmittedCount&&(Kn(n.log),Vt++)}Pt={},wt=0}var Gt="Unhandled promise rejection: ",Bt="<unavailable because Promise wasn't rejected with an Error object>";function Ft(e){null==e.reason?Dt({message:Gt+"<no reason defined>",stack:Bt}):"string"==typeof e.reason.message?Dt({message:Gt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Bt}):"object"!==k(e.reason)&&Dt({message:Gt+e.reason,stack:Bt})}var Ht="__dash0OriginalFunctions";function jt(e,n){for(var t=e[Ht],r=0;r<t.length;r++){if(Wt(t[r].valuesForEqualityCheck,n))return r}return-1}function Wt(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function Xt(e,n,t,r,i){return function(e,n,t){if(!e)return n;var r=e[Ht]=e[Ht]||[],i=jt(e,t);return-1!==i?r[i].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,qt(t,r,i))}function qt(e,n,t){return[e,n,Yt(t)]}function Yt(e){return null!=e&&("object"===k(e)?Boolean(e.capture):Boolean(e))}function zt(e,n,t,r,i){return function(e,n,t){var r=null==e?void 0:e[Ht];if(null==r)return t;var i=jt(e,n);if(-1===i)return t;var o=r[i];return r.splice(i,1),o.wrappedFunction}(e,qt(n,t,r),i)}function Kt(){he.wrapEventHandlers&&function(e){if(!e||"function"!=typeof e.prototype.addEventListener||"function"!=typeof e.prototype.removeEventListener)return;var n=e.prototype.addEventListener,t=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,t,r){if("function"!=typeof t)return n.apply(this,arguments);for(var i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return i[1]=function(){try{return t.apply(this,arguments)}catch(e){throw Dt(e),Mt(),e}},i[1]=Xt(this,i[1],e,t,r),n.apply(this,i)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return i[1]=zt(this,e,n,r,n),t.apply(this,i)}}(null==d?void 0:d.EventTarget)}function Qt(e){var n=null==d?void 0:d[e];"function"==typeof n&&(d[e]=function(e){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];return t[0]=function(e){if("function"!=typeof e)return e;return function(){try{return e.apply(this,arguments)}catch(e){throw reportError(e),Mt(),e}}}(e),n.apply(this,t)})}function Zt(){!function(){if(d){var e=d.onerror;d.onerror=function(n,t,r,i,o){if(Ut)return Ut=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=o&&o.stack;return a||(a="at "+t+" "+r,null!=i&&(a+=":"+i)),xt({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==d?void 0:d.addEventListener)&&d.addEventListener("unhandledrejection",Ft),Kt(),function(){if(he.wrapTimers){if(X)return void a("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Qt("setTimeout"),Qt("setInterval")}}()}function $t(e){return"".concat("http.request.header",".").concat(e.toLowerCase())}function Jt(e){return"".concat("http.response.header",".").concat(e.toLowerCase())}var er=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],nr="_OTHER";function tr(e){return er.includes(e)}function rr(e,n){var t=0!==n.startTime;ir(e,Z.FETCH_START,n,t),ir(e,Z.DOMAIN_LOOKUP_START,n,t),ir(e,Z.DOMAIN_LOOKUP_END,n,t),ir(e,Z.CONNECT_START,n,t),ir(e,Z.SECURE_CONNECTION_START,n,t),ir(e,Z.CONNECT_END,n,t),ir(e,Z.REQUEST_START,n,t),ir(e,Z.RESPONSE_START,n,t),ir(e,Z.RESPONSE_END,n,t)}function ir(e,n,t){var r,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||i&&0===t[n]||mt(e,n,(r=t[n],String(Math.round(1e6*(r+j())))))}function or(e,n){var t=n.encodedBodySize;null!=t&&nt(e.attributes,"http.response.body.size",t)}function ar(e,n){var t;_t(e,n);var r="object"===k(n)&&n?null!==(t=n.name)&&void 0!==t?t:null!=n.code?String(n.code):"error":"error";nt(e.attributes,Me,r),Zn(ht(e,function(e){return{code:2,message:e&&"object"===k(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function lr(e){nt(e.attributes,"dash0.web.request.cancelled",!0),Zn(ht(e,void 0,void 0))}function sr(e){var n=[];if(ie(e)){if(n.push("traceparent"),he.propagators){var t,r=A(he.propagators);try{for(r.s();!(t=r.n()).done;){var i=t.value;"traceparent"===i.type||n.includes(i.type)||n.push(i.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(he.propagators){var o,a=A(he.propagators);try{for(a.s();!(o=a.n()).done;){var l=o.value;Lt(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function ur(e,n,t,r){var i,o=A(r);try{for(o.s();!(i=o.n()).done;){"xray"===i.value?st(e,n,t):lt(e,n,t)}}catch(e){o.e(e)}finally{o.f()}}function cr(e){return function(){var n=L(U().mark((function n(t,r){var i,o,a,l,u,c,v,d,f,p,h;return U().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t,n.prev=1,l=r?Object.assign({},r):r,u=null,null!=l&&l.body&&(u=l.body,l.body=void 0),o=new Request(t,l),u&&l&&(l.body=u),i=t instanceof Request?o:t,!Ot(o.url)){n.next=11;break}return s("Not creating span for fetch call because the url is ignored, URL: ".concat(o.url)),n.abrupt("return",e(i,r));case 11:a=vr(t,r,o,l),n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),s("failed to instrument fetch call",n.t0),n.abrupt("return",e(i,r));case 18:return v=(c=a).copyOfInit,d=c.span,f=c.performanceObserver,n.prev=19,n.next=22,e(i,v);case 22:return p=n.sent,fr(d,p),n.abrupt("return",pr(p,he.maxToleranceForResourceTimingsMillis,(function(){return f.end()}),(function(e){var n;f.cancel(),null!==(n=o)&&void 0!==n&&null!==(n=n.signal)&&void 0!==n&&n.aborted?lr(d):ar(d,e)})));case 27:throw n.prev=27,n.t1=n.catch(19),f.cancel(),null!==(h=o)&&void 0!==h&&null!==(h=h.signal)&&void 0!==h&&h.aborted?lr(d):ar(d,n.t1),n.t1;case 32:case"end":return n.stop()}}),n,null,[[1,14],[19,27]])})));return function(e,t){return n.apply(this,arguments)}}()}function vr(e,n,t,r){var i,o=t.url,a=null!==(i=t.method)&&void 0!==i?i:"GET",l=tr(a),u=tr(a.toUpperCase())?a.toUpperCase():nr,c=pt("HTTP ".concat(u));It(c.attributes),gt(c.attributes,o),function(e,n){try{return void 0}catch(t){s("failed to analyze request for GraphQL insights",t,e,n)}}(e,n),nt(c.attributes,xe,u),l||nt(c.attributes,ke,a);var v,d=sr(o);d.length>0&&(null!==(v=r)&&void 0!==v&&v.headers?(r.headers=new Headers(r.headers),ur(r.headers.append,r.headers,c,d)):e instanceof Request?ur(t.headers.append,t.headers,c,d):(r||(r={}),r.headers=new Headers,ur(r.headers.append,r.headers,c,d)));dr(t.headers,c,(function(e){return $t(e)}));var f=J({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===re(o).href},maxWaitForResourceMillis:he.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:he.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(rr(c,t),or(c,t)),Zn(ht(c,void 0,1e6*n))}});return f.start(),{copyOfInit:r,span:c,performanceObserver:f}}function dr(e,n,t){try{if(!he.headersToCapture.length)return;e.forEach((function(e,r){he.headersToCapture.some((function(e){return e.test(r)}))&&nt(n.attributes,t(r),e)}))}catch(e){s("unable to capture http headers",e)}}function fr(e,n){var t=n.status;Et(e,t>=200&&t<400?0:2),0===t&&nt(e.attributes,Me,n.type),nt(e.attributes,Ge,String(t)),dr(n.headers,e,(function(e){return Jt(e)}))}function pr(e,n,t,r){var i,o,a=m.now(),l=e.body;if(!(l&&(i=e,o=i.status,o>=200&&204!=o&&205!=o&&304!=o)))return t(),e;var s=!1,u=function(e){s||(t(e),s=!0)},c=function(e){s||(r(e),s=!0)},v=q((function(){return u(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return L(U().mark((function t(){var r,i;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,Y(v),t.next=4,d.read();case 4:r=t.sent,i=r.value,r.done?(d.releaseLock(),e.close(),u()):(a=m.now(),v=q((function(){return u(a)}),n),e.enqueue(i)),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),c(t.t0),e.error(t.t0);try{d.releaseLock()}catch(e){}case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))()},cancel:function(e){return Y(v),u(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}var hr,mr=Symbol("dash0XhrState");function Er(e){return function(n,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=[n,t].concat(i);try{a=[n,_r(this,n,t)].concat(i)}catch(e){this[mr]=void 0,s("failed to instrument XMLHttpRequest.open",e)}return e.apply(this,a)}}function _r(e,n,t){var r=e[mr];null!=r&&r.span&&!r.completed&&function(e,n){n.completed=!0;try{var t,r,i,o=A(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(o.s();!(i=o.n()).done;){var a=M(i.value,2);b(e,a[0],a[1])}}catch(e){o.e(e)}finally{o.f()}null===(t=n.performanceObserver)||void 0===t||t.cancel(),n.span&&lr(n.span)}catch(e){}}(e,r);var i=String(t),o=re(i).href,a=String(null!=n?n:"GET"),l=tr(a.toUpperCase())?a.toUpperCase():nr;return e[mr]={method:l,originalMethod:a,isWellKnownMethod:tr(a),url:o,ignored:Ot(o),propagatorTypes:sr(o),completed:!1},i}function gr(e){return hr=e,function(n,t){e.call(this,n,t);try{!function(e,n,t){var r,i=e[mr];if(!i||i.ignored)return;var o=n.toLowerCase();"traceparent"!==o&&"x-amzn-trace-id"!==o||(i.alreadyTraced=!0);if(0===he.headersToCapture.length)return;if(!he.headersToCapture.some((function(e){return e.test(o)})))return;var a=null!==(r=i.capturedRequestHeaders)&&void 0!==r?r:i.capturedRequestHeaders={};a[o]=o in a?"".concat(a[o],", ").concat(t):t}(this,n,t)}catch(e){s("failed to instrument XMLHttpRequest.setRequestHeader",e)}}}function yr(e){return function(n){var t=this[mr];if(!t||t.ignored)return null!=t&&t.ignored&&s("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(t.url)),e.call(this,n);if(t.alreadyTraced)return s("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(t.url)),e.call(this,n);if(t.span&&!t.completed)return e.call(this,n);try{!function(e,n){var t=pt("HTTP ".concat(n.method));It(t.attributes),gt(t.attributes,n.url),nt(t.attributes,xe,n.method),n.isWellKnownMethod||nt(t.attributes,ke,n.originalMethod);if(n.span=t,n.propagatorTypes.length>0)try{ur((function(n,t){return(null!=hr?hr:e.setRequestHeader).call(e,n,t)}),e,t,n.propagatorTypes)}catch(e){s("failed to inject trace context headers on XMLHttpRequest",e)}if(n.capturedRequestHeaders)for(var r=0,i=Object.entries(n.capturedRequestHeaders);r<i.length;r++){var o=M(i[r],2),a=o[0],l=o[1];nt(t.attributes,$t(a),l)}var u=J({resourceMatcher:function(e){var t=e.initiatorType,r=e.name;return"xmlhttprequest"===t&&r===n.url},maxWaitForResourceMillis:he.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:he.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,r=e.resource;r&&(rr(t,r),or(t,r)),Zn(ht(t,void 0,1e6*n))}});n.performanceObserver=u,u.start(),n.listeners=[["error",function(){n.failureKind="error"}],["timeout",function(){n.failureKind="timeout"}],["abort",function(){n.failureKind="abort"}],["loadend",function(){return function(e,n){var t;if(n.completed)return;n.completed=!0;var r,i=A(null!==(t=n.listeners)&&void 0!==t?t:[]);try{for(i.s();!(r=i.n()).done;){var o=M(r.value,2);b(e,o[0],o[1])}}catch(e){i.e(e)}finally{i.f()}var a=n.span;if(!a)return;var l=n.performanceObserver;if("abort"===n.failureKind)return null==l||l.cancel(),void lr(a);var u=0;try{u=e.status}catch(e){u=0}if("error"===n.failureKind||"timeout"===n.failureKind||0===u){var c;return null==l||l.cancel(),void ar(a,{name:null!==(c=n.failureKind)&&void 0!==c?c:"error",message:"XMLHttpRequest failed: ".concat(n.url)})}Et(a,u>=200&&u<400?0:2),nt(a.attributes,Ge,String(u)),function(e,n){try{if(!he.headersToCapture.length)return;var t=e.getAllResponseHeaders();if(!t)return;t.split(/\r?\n/).filter((function(e){return e.length>0})).forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substring(0,t).trim(),i=e.substring(t+1).trim();he.headersToCapture.some((function(e){return e.test(r)}))&&nt(n.attributes,Jt(r),i)}}))}catch(e){s("unable to capture http response headers",e)}}(e,a),null==l||l.end()}(e,n)}]];var c,v=A(n.listeners);try{for(v.s();!(c=v.n()).done;){var d=M(c.value,2),f=d[0],p=d[1];R(e,f,p)}}catch(e){v.e(e)}finally{v.f()}}(this,t)}catch(e){!function(e,n){try{var t,r;null===(t=n.performanceObserver)||void 0===t||t.cancel();var i,o=A(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(o.s();!(i=o.n()).done;){var a=M(i.value,2);b(e,a[0],a[1])}}catch(e){o.e(e)}finally{o.f()}}catch(e){}n.span=void 0}(this,t),s("failed to instrument XMLHttpRequest.send",e)}try{return e.call(this,n)}catch(e){throw function(e,n,t){if(n.completed)return;n.completed=!0;try{var r,i,o,a,l=A(null!==(o=n.listeners)&&void 0!==o?o:[]);try{for(l.s();!(a=l.n()).done;){var s=M(a.value,2);b(e,s[0],s[1])}}catch(e){l.e(e)}finally{l.f()}null===(r=n.performanceObserver)||void 0===r||r.cancel();var u=n.span;if(!u)return;var c=null!==(i=n.failureKind)&&void 0!==i?i:"TimeoutError"===(null==t?void 0:t.name)?"timeout":"error";_t(u,null!=t?t:{name:c,message:"XMLHttpRequest failed: ".concat(n.url)}),nt(u.attributes,Me,c),Zn(ht(u,{code:2,message:"XMLHttpRequest failed: ".concat(n.url)},void 0))}catch(e){}}(this,t,e),e}}}function Tr(e){var n,t,r=[];nt(r,Re,Be.PAGE_VIEW),e.metaAttributes&&Object.entries(e.metaAttributes).forEach((function(e){var n=M(e,2),t=n[0],i=n[1];return nt(r,t,i)})),It(r,{url:e.url}),tt(r,e.customAttributes);var i=[];nt(i,"title",null!==(n=null!==(t=e.title)&&void 0!==t?t:null==f?void 0:f.title)&&void 0!==n?n:ne),null!=f&&f.referrer&&nt(i,"referrer",f.referrer),nt(i,"type",e.pageViewType),e.changeState&&nt(i,"change_state",e.changeState);var o={timeUnixNano:e.timeUnixNano,attributes:r,severityNumber:Fe.INFO,severityText:"INFO",body:{kvlistValue:{values:i}}},a=at();a&&(o.traceId=a.traceId,o.spanId=a.spanId),Kn(o)}function Rr(e,n,t,r){var i=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=he.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n);Tr({timeUnixNano:e,url:n,title:i.title,metaAttributes:i.attributes,pageViewType:t?je:He,changeState:r?Xe:We})}function br(){var e=null==d?void 0:d.performance.getEntriesByType("navigation")[0];if(e){var n=[];nt(n,Re,Be.NAVIGATION_TIMING);var t=[];nt(t,"name",e.name),Ir(t,e,"responseStatus"),Ir(t,e,"fetchStart"),Ir(t,e,"requestStart"),Ir(t,e,"responseStart"),Ir(t,e,"domInteractive"),Ir(t,e,"domContentLoadedEventEnd"),Ir(t,e,"domComplete"),Ir(t,e,"loadEventEnd"),Ir(t,e,"transferSize"),Ir(t,e,"encodedBodySize"),Ir(t,e,"decodedBodySize");var r={timeUnixNano:Cr(),attributes:n,severityNumber:Fe.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};It(r.attributes);var i=at();i&&(r.traceId=i.traceId,r.spanId=i.spanId),Kn(r)}else s("Navigation timings not available. Cannot emit navigation timing log")}function Ir(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||nt(e,t,Number.isInteger(r)?r:te(r))}function Cr(){return H(Math.round(j()))}var Sr={},Lr=!1,Nr=!1;function Or(){Vr(null==d?void 0:d.location.href)}function Ar(e){Vr(e.newURL)}function Vr(e,n){var t;if(e)try{var r=new URL(e,null==d?void 0:d.location.href);((t=r).pathname!==Sr.path||Nr&&t.search!==Sr.search||Lr&&t.hash!==Sr.hash)&&(wr(r),Rr(F(),r,!0,Boolean(n)))}catch(e){s("Failed to handle url change",e)}}function wr(e){Sr.path=e.pathname,Sr.search=e.search,Sr.hash=e.hash}function Pr(){!function(){try{Rr(Cr(),null!=d&&d.location.href?new URL(null==d?void 0:d.location.href):void 0)}catch(e){l("Failed to transmit initial page view event",e)}if("complete"===(null==f?void 0:f.readyState))return br();d&&R(d,"load",(function(){setTimeout(br,0)}))}(),function(){var e,n,t,r;if(d&&d.history){if(he.pageViewInstrumentation.trackVirtualPageViews){Nr=null!==(e=null===(n=he.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,Lr=null!==(t=null===(r=he.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,se(d.history,"replaceState",(function(e){return function(n,t,r){return Vr(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),se(d.history,"pushState",(function(e){return function(n,t,r){return Vr(r?String(r):void 0),e.apply(this,[n,t,r])}})),d.addEventListener("hashchange",Ar),d.addEventListener("popstate",Or);try{wr(new URL(d.location.href))}catch(e){}}}else s("Browser does not support history API, skipping instrumentation")}()}function Ur(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,i=n;r<i.length;r++){var o=i[r];if(o)return o}}var Mr={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function Dr(e){for(var n=function(e){var n,t,r,i,o,a,l,s,u,c,v,d,f,p,h,m=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return m;var E=function(){var e,n,t,r,i,o;try{var a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,U,M,D,x,k,G,B,F,H,j,W,X,q,Y,z,K,Q,Z,$,J,ee,ne,te,re,ie,oe,ae,le,se,ue,ce,ve;e=Ur(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REACT_APP_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.GATSBY_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VITE_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.PUBLIC_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.VUE_APP_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=Ur(null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.GATSBY_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.VITE_VERCEL_GIT_REPO_OWNER,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.VUE_APP_VERCEL_GIT_REPO_OWNER,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=Ur(null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.NUXT_ENV_VERCEL_GIT_REPO_SLUG,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.REACT_APP_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.GATSBY_VERCEL_GIT_REPO_SLUG,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VITE_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=Ur(null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.GATSBY_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VITE_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),i=Ur(null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.VITE_VERCEL_GIT_COMMIT_SHA,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),o=Ur(null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ae=process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(le=process)||void 0===le||null===(le=le.env)||void 0===le?void 0:le.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ce=process)||void 0===ce||null===(ce=ce.env)||void 0===ce?void 0:ce.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ve=process)||void 0===ve||null===(ve=ve.env)||void 0===ve?void 0:ve.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:xr(e,n,t),refHeadName:r,refHeadRevision:i,changeId:o}}(),_=function(){var e,n,t,r;try{var i,o,a,l,s,u,c,v,d,f,p,h,m,E,_,g,y,T,R,b,I,C,S,L,N,O,A,V,w,P,U,D,x,k,G,B,F,H,j,W;e=Ur(null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NEXT_PUBLIC_REPOSITORY_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.NUXT_PUBLIC_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NUXT_ENV_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.GATSBY_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VITE_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.PUBLIC_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VUE_APP_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.REDWOOD_ENV_REPOSITORY_URL,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.SANITY_STUDIO_REPOSITORY_URL),n=Ur(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_PUBLIC_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_ENV_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.REACT_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.GATSBY_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.PUBLIC_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.VUE_APP_BRANCH,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.REDWOOD_ENV_BRANCH,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.SANITY_STUDIO_BRANCH),t=Ur(null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.NEXT_PUBLIC_COMMIT_REF,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.NUXT_PUBLIC_COMMIT_REF,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.REACT_APP_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.GATSBY_COMMIT_REF,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.VITE_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.PUBLIC_COMMIT_REF,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VUE_APP_COMMIT_REF,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.REDWOOD_ENV_COMMIT_REF,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.SANITY_STUDIO_COMMIT_REF),r=Ur(null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.NEXT_PUBLIC_REVIEW_ID,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NUXT_PUBLIC_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_ENV_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.REACT_APP_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.GATSBY_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.VITE_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var X=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var i=function(e){for(var n=0,t=Object.entries(kr);n<t.length;n++){var r=M(t[n],2),i=r[0];if(r[1].includes(e))return i}return}(n);if(!i)return;var o=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(o.length<2)return;var a=o[0],l=o[o.length-1];return a&&l?{providerName:i,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==X?void 0:X.providerName,ownerName:null==X?void 0:X.ownerName,repositoryName:null==X?void 0:X.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=m.providerName)&&void 0!==r?r:E.providerName)&&void 0!==t?t:_.providerName,ownerName:null!==(i=null!==(o=m.ownerName)&&void 0!==o?o:E.ownerName)&&void 0!==i?i:_.ownerName,repositoryName:null!==(a=null!==(l=m.repositoryName)&&void 0!==l?l:E.repositoryName)&&void 0!==a?a:_.repositoryName,repositoryUrlFull:null!==(s=null!==(u=m.repositoryUrlFull)&&void 0!==u?u:E.repositoryUrlFull)&&void 0!==s?s:_.repositoryUrlFull,refHeadName:null!==(c=null!==(v=m.refHeadName)&&void 0!==v?v:E.refHeadName)&&void 0!==c?c:_.refHeadName,refHeadRevision:null!==(d=null!==(f=m.refHeadRevision)&&void 0!==f?f:E.refHeadRevision)&&void 0!==d?d:_.refHeadRevision,changeId:null!==(p=null!==(h=m.changeId)&&void 0!==h?h:E.changeId)&&void 0!==p?p:_.changeId}}(e),t=0,r=Object.keys(Mr);t<r.length;t++){var i=r[t],o=n[i];o&&nt(he.resource.attributes,Mr[i],o)}}function xr(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=kr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var kr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var Gr,Br,Fr,Hr="dash0Recorder",jr=!1,Wr=!1,Xr=!1,qr=!1,Yr=!1;function zr(e){Gr=e,qr=!1,jr&&Zr()}function Kr(){var e;if(Br){try{Br()}catch(e){s("Failed to stop session recorder",e)}Br=void 0}null===(e=Fr)||void 0===e||e.flush(),Fr=void 0}function Qr(){var e=null==f?void 0:f.visibilityState;return null!=e&&"visible"!==e}function Zr(){var e,n,t;if(Br)s("Session recording already running. Ignoring start.");else if(Gr&&d){var r=he.sessionRecording;if(he.isSessionSampled)if(pe(null!=Ze?Ze:"",null!==(e=r.samplingRate)&&void 0!==e?e:100))if(Ot(d.location.href))s("Page URL is ignored. Session recording will not start.");else if(!Xr&&f&&(Xr=!0,R(f,"visibilitychange",(function(){if(Qr()){Yr=!0;try{Kr()}finally{Yr=!1}}else qr||Zr()}))),Qr())s("Document is hidden. Session recording will start once it becomes visible.");else{var i=dt(Ze),o={recordingId:T(16),traceId:i,spanId:ft(i)},l=function(e){var n=[],t=0,r=!1,i=0,o=0,a=0,l=null;return{add:function(a){4===a.type&&n.length>0&&u();var s=JSON.stringify(a);null!=s&&(0===n.length&&(i=a.timestamp,l=q(u,e.maxMillis)),n.push(s),t+=s.length,o=a.timestamp,2===a.type&&(r=!0),t>=e.maxBytes&&u())},flush:u,discard:function(){s(),n=[],t=0,r=!1}};function s(){null!=l&&(Y(l),l=null)}function u(){if(s(),0!==n.length){var l={seq:a++,body:"["+n.join(",")+"]",eventCount:n.length,hasSnapshot:r,startTime:i,endTime:o};n=[],t=0,r=!1,e.onChunk(l)}}}({maxBytes:null!==(n=r.chunkMaxBytes)&&void 0!==n?n:48e3,maxMillis:null!==(t=r.chunkMaxMillis)&&void 0!==t?t:5e3,onChunk:function(e){try{n=function(e,n){var t=[];return nt(t,Re,Be.SESSION_RECORDING),It(t),nt(t,"dash0.session_recording.id",e.recordingId),nt(t,"dash0.session_recording.seq",{intValue:String(n.seq)}),nt(t,"dash0.session_recording.event_count",{intValue:String(n.eventCount)}),nt(t,"dash0.session_recording.has_snapshot",n.hasSnapshot),nt(t,"dash0.session_recording.end_time_unix_nano",{intValue:H(n.endTime)}),{timeUnixNano:H(n.startTime),severityNumber:Fe.INFO,severityText:"INFO",body:{stringValue:n.body},attributes:t,traceId:e.traceId,spanId:e.spanId}}(o,e),t={compress:!Yr},he.isSessionSampled&&(zn()?s("Session recording rate limit. Will not send chunk.",n):Qn([n],{compress:null===(r=null==t?void 0:t.compress)||void 0===r||r}))}catch(e){a("Failed to transmit session recording chunk",e)}var n,t,r}});Fr=l;try{Br=Gr({emit:function(e){Fr===l&&l.add(e)},checkoutEveryNms:r.checkoutEveryNms,maskAllInputs:r.maskAllInputs,maskTextClass:r.maskTextClass,maskTextSelector:r.maskTextSelector,maskInputFn:r.maskInputFn,maskTextFn:r.maskTextFn,blockClass:r.blockClass,blockSelector:r.blockSelector,recordCanvas:r.recordCanvas,collectFonts:r.collectFonts})}catch(e){return a("Failed to start session recorder",e),void $r(l)}if(!Br)return a("Session recorder did not start."),void $r(l);Wr||(Wr=!0,Dn((function(){Yr=!0;try{var e;null===(e=Fr)||void 0===e||e.flush()}finally{Yr=!1}}))),s("Session recording started",o)}else s("Session is not sampled for recording. Session recording will not start.");else s("Session is not sampled. Session recording will not start.")}}function $r(e){e.discard(),Fr=void 0}var Jr=!1;function ei(e){if(Jr)s("Dash0 SDK is being reinitialized, skipping ...");else if(null!=d)if("function"==typeof E&&m&&m.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,oe.test(t))){var i;s("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(i=null==h?void 0:h.hostname)&&void 0!==i?i:"unknown"}}else s("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==h?void 0:h.hostname)&&void 0!==n?n:"unknown";if(he.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==he.endpoints.length){if(Object.assign(he,function(e,n){for(var t=P({},e),r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o],l=e[o];void 0!==a&&(null===a||"object"!==k(a)||Array.isArray(a)||"object"!==k(l)||null===l||Array.isArray(l)?t[o]=a:t[o]=P(P({},l),ti(a)))}return t}(he,function(e,n){var t,r={},i=A(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;o in e&&(r[o]=e[o])}}catch(e){i.e(e)}finally{i.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","sessionRecording","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&a("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),he.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(a("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),he.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):he.propagators=[{type:"traceparent",match:[]}]}(e),function(e){nt(he.resource.attributes,me,e.serviceName),e.serviceNamespace&&nt(he.resource.attributes,Ee,e.serviceNamespace);e.serviceVersion&&nt(he.resource.attributes,_e,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,i,o,a,l,s,u,c;return Ur(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.GATSBY_VERCEL_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REDWOOD_ENV_VERCEL_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_ENV)}catch(e){return}}(e);n&&nt(he.resource.attributes,ge,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,i,o,a,l,s,u,c;return Ur(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_TARGET_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_TARGET_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.GATSBY_VERCEL_TARGET_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_TARGET_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_TARGET_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REDWOOD_ENV_VERCEL_TARGET_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch(e){return}}(e);t&&nt(he.resource.attributes,ye,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,i,o,a,l,s,u,c;return Ur(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_BRANCH_URL,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_BRANCH_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.GATSBY_VERCEL_BRANCH_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_BRANCH_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_BRANCH_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VUE_APP_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.REDWOOD_ENV_VERCEL_BRANCH_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch(e){return}}(e);r&&nt(he.resource.attributes,Te,r);Dr(e)}(e),function(e){var n;nt(he.signalAttributes,Ie,T(16)),nt(he.signalAttributes,Ce,null!==(n=null==p?void 0:p.userAgent)&&void 0!==n?n:ne),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=M(e,2),t=n[0],r=n[1];nt(he.signalAttributes,t,r)}))}(e),bt(),$e(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var o=Math.max(0,Math.min(100,e.sessionSamplingRate));he.isSessionSampled=null!=Ze?pe(Ze,o):o>0}if(!he.isSessionSampled)return s("Session is not sampled. No telemetry will be transmitted for this session."),void(Jr=!0);ni("@dash0/navigation",e)&&Pr(),ni("@dash0/web-vitals",e)&&Ct(),ni("@dash0/error",e)&&Zt(),ni("@dash0/fetch",e)&&(d&&d.fetch&&d.Request?se(d,"fetch",cr):s("Browser does not support the Fetch API, skipping instrumentation")),ni("@dash0/xhr",e)&&function(){if(d&&d.XMLHttpRequest){var e=d.XMLHttpRequest.prototype;se(e,"open",Er),se(e,"setRequestHeader",gr),se(e,"send",yr)}else s("Browser does not support XMLHttpRequest, skipping instrumentation")}(),ni("@dash0/session-recording",e)&&function(){if(jr=!0,qr=!1,he.sessionRecording.recorder)Gr=he.sessionRecording.recorder;else if(!Gr){var e=null==d?void 0:d[Hr];"function"==typeof e&&(Gr=e)}Gr&&Zr()}(),Jr=!0}else a("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else s("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else s("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function ni(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}function ti(e){for(var n={},t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];void 0!==e[i]&&(n[i]=e[i])}return n}e.addSignalAttribute=function(e,n){nt(he.signalAttributes,e,n)},e.debug=function(){s("Dash0 Web SDK configuration state:",he)},e.identify=function(e,n){rt(he.signalAttributes,Se),null!=e&&nt(he.signalAttributes,Se,e),rt(he.signalAttributes,Le),null!=(null==n?void 0:n.name)&&nt(he.signalAttributes,Le,n.name),rt(he.signalAttributes,Ne),null!=(null==n?void 0:n.fullName)&&nt(he.signalAttributes,Ne,n.fullName),rt(he.signalAttributes,Oe),null!=(null==n?void 0:n.email)&&nt(he.signalAttributes,Oe,n.email),rt(he.signalAttributes,Ae),null!=(null==n?void 0:n.hash)&&nt(he.signalAttributes,Ae,n.hash),rt(he.signalAttributes,Ve),null!=(null==n?void 0:n.roles)&&nt(he.signalAttributes,Ve,n.roles)},e.init=function(e){s("".concat("Initializing Dash0 Web SDK"," (via package)")),ei(e)},e.removeSignalAttribute=function(e){rt(he.signalAttributes,e)},e.reportError=function(e,n){Dt(e,n)},e.sendEvent=function(e,n){if(Object.values(Be).includes(e))a("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var t=[];It(t),nt(t,Re,e),null!=n&&n.title&&nt(t,"dash0.web.event.title",n.title),tt(t,null==n?void 0:n.attributes),Kn({timeUnixNano:null!=(null==n?void 0:n.timestamp)?H(n.timestamp):F(),attributes:t,body:Jn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?Fe[n.severity]:void 0})}},e.setActiveLogLevel=function(e){var n;i=null!==(n=r[e])&&void 0!==n?n:r.warn},e.startSessionRecording=function(e){var n=null!=e?e:null==d?void 0:d[Hr];"function"==typeof n?zr(n):s("startSessionRecording requires a recorder. Import `recorder` from `@dash0/sdk-web/session-recording` or load dash0-session-recording.iife.js. Ignoring call.")},e.startView=function(e,n){if(0!==he.endpoints.length)if("string"==typeof e&&0!==e.length){var t;if(null!=(null==n?void 0:n.url))try{t=new URL(n.url,null==d?void 0:d.location.href)}catch(e){s("Failed to parse startView url option. Falling back to the current location.",e)}!function(e){Tr({timeUnixNano:e.timeUnixNano,url:e.url,title:e.title,customAttributes:e.attributes,pageViewType:je})}({timeUnixNano:F(),title:e,url:t,attributes:null==n?void 0:n.attributes})}else s("startView requires a non-empty view name. Ignoring startView call.");else s("Dash0 SDK has not been initialized. Ignoring startView call.")},e.stopSessionRecording=function(){qr=!0,Kr()},e.terminateSession=function(){if(I)try{!function(e){I&&_&&_.removeItem(e)}(ze)}catch(e){o("Failed to terminate session",e)}}}));
|
|
2
2
|
//# sourceMappingURL=dash0.umd.cjs.map
|