1/*! For license information please see 3377-8659bb73.js.LICENSE.txt */ 2!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new t.Error).stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="6f8b7a00-bcdd-4c5b-8a0e-733fedc51fbc",t._sentryDebugIdIdentifier="sentry-dbid-6f8b7a00-bcdd-4c5b-8a0e-733fedc51fbc")}catch(t){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"2026-10-07-e42bdd47"},(self.webpackChunkfront=self.webpackChunkfront||[]).push([[3377],{73657:function(t,r,o){function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}o.d(r,{TD:function(){return _}});var i="object"===("undefined"===typeof globalThis?"undefined":_typeof(globalThis))?globalThis:"object"===("undefined"===typeof self?"undefined":_typeof(self))?self:"object"===("undefined"===typeof window?"undefined":_typeof(window))?window:"object"===("undefined"===typeof o.g?"undefined":_typeof(o.g))?o.g:{},a=Symbol.for("io.opentelemetry.js.api.logs"),u=i;var c=function(){function NoopLogger(){}return NoopLogger.prototype.emit=function(t){},NoopLogger}(),l=new c,p=new(function(){function NoopLoggerProvider(){}return NoopLoggerProvider.prototype.getLogger=function(t,r,o){return new c},NoopLoggerProvider}()),d=function(){function ProxyLogger(t,r,o,i){this._provider=t,this.name=r,this.version=o,this.options=i}return ProxyLogger.prototype.emit=function(t){this._getLogger().emit(t)},ProxyLogger.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):l},ProxyLogger}(),h=function(){function ProxyLoggerProvider(){}return ProxyLoggerProvider.prototype.getLogger=function(t,r,o){var i;return null!==(i=this.getDelegateLogger(t,r,o))&&void 0!==i?i:new d(this,t,r,o)},ProxyLoggerProvider.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:p},ProxyLoggerProvider.prototype.setDelegate=function(t){this._delegate=t},ProxyLoggerProvider.prototype.getDelegateLogger=function(t,r,o){var i;return null===(i=this._delegate)||void 0===i?void 0:i.getLogger(t,r,o)},ProxyLoggerProvider}(),_=function(){function LogsAPI(){this._proxyLoggerProvider=new h}return LogsAPI.getInstance=function(){return this._instance||(this._instance=new LogsAPI),this._instance},LogsAPI.prototype.setGlobalLoggerProvider=function(t){return u[a]?this.getLoggerProvider():(u[a]=function makeGetter(t,r,o){return function(i){return i===t?r:o}}(1,t,p),this._proxyLoggerProvider.setDelegate(t),t)},LogsAPI.prototype.getLoggerProvider=function(){var t,r;return null!==(r=null===(t=u[a])||void 0===t?void 0:t.call(u,1))&&void 0!==r?r:this._proxyLoggerProvider},LogsAPI.prototype.getLogger=function(t,r,o){return this.getLoggerProvider().getLogger(t,r,o)},LogsAPI.prototype.disable=function(){delete u[a],this._proxyLoggerProvider=new h},LogsAPI}().getInstance()},87382:function(t,r,o){o.d(r,{u:function(){return baggageEntryMetadataFromString},H:function(){return createBaggage}});var i=o(92227);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
2(t,"string");return"symbol"===_typeof(r)?r:String(r)}var a=function(){function BaggageImpl(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,BaggageImpl),this._entries=t?new Map(t):new Map}return function _createClass(t,r,o){return r&&_defineProperties(t.prototype,r),o&&_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}(BaggageImpl,[{key:"getEntry",value:function getEntry(t){var r=this._entries.get(t);if(r)return Object.assign({},r)}},{key:"getAllEntries",value:function getAllEntries(){return Array.from(this._entries.entries())}},{key:"setEntry",value:function setEntry(t,r){var o=new BaggageImpl(this._entries);return o._entries.set(t,r),o}},{key:"removeEntry",value:function removeEntry(t){var r=new BaggageImpl(this._entries);return r._entries.delete(t),r}},{key:"removeEntries",value:function removeEntries(){for(var t=new BaggageImpl(this._entries),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];for(var a=0,u=o;a<u.length;a++){var c=u[a];t._entries.delete(c)}return t}},{key:"clear",value:function clear(){return new BaggageImpl}}]),BaggageImpl}(),u=Symbol("BaggageEntryMetadata");function utils_typeof(t){return utils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},utils_typeof(t)}var c=i.G.instance();function createBaggage(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new a(new Map(Object.entries(t)))}function baggageEntryMetadataFromString(t){return"string"!==typeof t&&(c.error("Cannot create baggage metadata from unknown type: ".concat(utils_typeof(t))),t=""),{__TYPE__:u,toString:function toString(){return t}}}},67330:function(t,r,o){o.d(r,{K:function(){return i}});var i=o(92227).G.instance()},19284:function(t,r,o){function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _inherits(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){return t.__proto__=r,t},_setPrototypeOf(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function _createSuperInternal(){var o,i=_getPrototypeOf(t);if(r){var a=_getPrototypeOf(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return function _possibleConstructorReturn(t,r){if(r&&("object"===_typeof(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,o)}}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _createClass(t,r,o){return r&&_defineProperties(t.prototype,r),o&&_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
2(t,"string");return"symbol"===_typeof(r)?r:String(r)}o.d(r,{q:function(){return C}});var i=function(){function NoopMeter(){_classCallCheck(this,NoopMeter)}return _createClass(NoopMeter,[{key:"createGauge",value:function createGauge(t,r){return m}},{key:"createHistogram",value:function createHistogram(t,r){return T}},{key:"createCounter",value:function createCounter(t,r){return g}},{key:"createUpDownCounter",value:function createUpDownCounter(t,r){return b}},{key:"createObservableGauge",value:function createObservableGauge(t,r){return S}},{key:"createObservableCounter",value:function createObservableCounter(t,r){return E}},{key:"createObservableUpDownCounter",value:function createObservableUpDownCounter(t,r){return P}},{key:"addBatchObservableCallback",value:function addBatchObservableCallback(t,r){}},{key:"removeBatchObservableCallback",value:function removeBatchObservableCallback(t){}}]),NoopMeter}(),a=_createClass(function NoopMetric(){_classCallCheck(this,NoopMetric)}),u=function(t){_inherits(NoopCounterMetric,t);var r=_createSuper(NoopCounterMetric);function NoopCounterMetric(){return _classCallCheck(this,NoopCounterMetric),r.apply(this,arguments)}return _createClass(NoopCounterMetric,[{key:"add",value:function add(t,r){}}]),NoopCounterMetric}(a),c=function(t){_inherits(NoopUpDownCounterMetric,t);var r=_createSuper(NoopUpDownCounterMetric);function NoopUpDownCounterMetric(){return _classCallCheck(this,NoopUpDownCounterMetric),r.apply(this,arguments)}return _createClass(NoopUpDownCounterMetric,[{key:"add",value:function add(t,r){}}]),NoopUpDownCounterMetric}(a),l=function(t){_inherits(NoopGaugeMetric,t);var r=_createSuper(NoopGaugeMetric);function NoopGaugeMetric(){return _classCallCheck(this,NoopGaugeMetric),r.apply(this,arguments)}return _createClass(NoopGaugeMetric,[{key:"record",value:function record(t,r){}}]),NoopGaugeMetric}(a),p=function(t){_inherits(NoopHistogramMetric,t);var r=_createSuper(NoopHistogramMetric);function NoopHistogramMetric(){return _classCallCheck(this,NoopHistogramMetric),r.apply(this,arguments)}return _createClass(NoopHistogramMetric,[{key:"record",value:function record(t,r){}}]),NoopHistogramMetric}(a),d=function(){function NoopObservableMetric(){_classCallCheck(this,NoopObservableMetric)}return _createClass(NoopObservableMetric,[{key:"addCallback",value:function addCallback(t){}},{key:"removeCallback",value:function removeCallback(t){}}]),NoopObservableMetric}(),h=function(t){_inherits(NoopObservableCounterMetric,t);var r=_createSuper(NoopObservableCounterMetric);function NoopObservableCounterMetric(){return _classCallCheck(this,NoopObservableCounterMetric),r.apply(this,arguments)}return _createClass(NoopObservableCounterMetric)}(d),_=function(t){_inherits(NoopObservableGaugeMetric,t);var r=_createSuper(NoopObservableGaugeMetric);function NoopObservableGaugeMetric(){return _classCallCheck(this,NoopObservableGaugeMetric),r.apply(this,arguments)}return _createClass(NoopObservableGaugeMetric)}(d),v=function(t){_inherits(NoopObservableUpDownCounterMetric,t);var r=_createSuper(NoopObservableUpDownCounterMetric);function NoopObservableUpDownCounterMetric(){return _classCallCheck(this,NoopObservableUpDownCounterMetric),r.apply(this,arguments)}return _createClass(NoopObservableUpDownCounterMetric)}(d),y=new i,g=new u,m=new l,T=new p,b=new c,E=new h,S=new _,P=new v;function NoopMeterProvider_typeof(t){return NoopMeterProvider_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NoopMeterProvider_typeof(t)}function NoopMeterProvider_defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,NoopMeterProvider_toPropertyKey(i.key),i)}}function NoopMeterProvider_toPropertyKey(t){var r=function NoopMeterProvider_toPrimitive(t,r){if("object"!==NoopMeterProvider_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==NoopMeterProvider_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
2(t,"string");return"symbol"===NoopMeterProvider_typeof(r)?r:String(r)}var O=new(function(){function NoopMeterProvider(){!function NoopMeterProvider_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,NoopMeterProvider)}return function NoopMeterProvider_createClass(t,r,o){return r&&NoopMeterProvider_defineProperties(t.prototype,r),o&&NoopMeterProvider_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}(NoopMeterProvider,[{key:"getMeter",value:function getMeter(t,r,o){return y}}]),NoopMeterProvider}()),w=o(14676),R=o(92227);function metrics_typeof(t){return metrics_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},metrics_typeof(t)}function metrics_defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,metrics_toPropertyKey(i.key),i)}}function metrics_toPropertyKey(t){var r=function metrics_toPrimitive(t,r){if("object"!==metrics_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==metrics_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===metrics_typeof(r)?r:String(r)}var L="metrics",C=function(){function MetricsAPI(){!function metrics_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MetricsAPI)}return function metrics_createClass(t,r,o){return r&&metrics_defineProperties(t.prototype,r),o&&metrics_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}(MetricsAPI,[{key:"setGlobalMeterProvider",value:function setGlobalMeterProvider(t){return(0,w.TG)(L,t,R.G.instance())}},{key:"getMeterProvider",value:function getMeterProvider(){return(0,w.Rd)(L)||O}},{key:"getMeter",value:function getMeter(t,r,o){return this.getMeterProvider().getMeter(t,r,o)}},{key:"disable",value:function disable(){(0,w.J_)(L,R.G.instance())}}],[{key:"getInstance",value:function getInstance(){return this._instance||(this._instance=new MetricsAPI),this._instance}}]),MetricsAPI}().getInstance()},88354:function(t,r,o){o.d(r,{u:function(){return g}});var i=o(14676);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}var a=function(){function NoopTextMapPropagator(){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,NoopTextMapPropagator)}return function _createClass(t,r,o){return r&&_defineProperties(t.prototype,r),o&&_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}(NoopTextMapPropagator,[{key:"inject",value:function inject(t,r){}},{key:"extract",value:function extract(t,r){return t}},{key:"fields",value:function fields(){return[]}}]),NoopTextMapPropagator}(),u={get:function get(t,r){if(null!=t)return t[r]},keys:function keys(t){return null==t?[]:Object.keys(t)}},c={set:function set(t,r,o){null!=t&&(t[r]=o)}},l=o(74150),p=(0,o(91348).Y)("OpenTelemetry Baggage Key");function getBaggage(t){return t.getValue(p)||void 0}function getActiveBaggage(){return getBaggage(l.c.getInstance().active())}function setBaggage(t,r){return t.setValue(p,r)}function deleteBaggage(t){return t.deleteValue(p)}var d=o(87382),h=o(92227);function propagation_typeof(t){return propagation_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}
2,propagation_typeof(t)}function propagation_defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,propagation_toPropertyKey(i.key),i)}}function propagation_toPropertyKey(t){var r=function propagation_toPrimitive(t,r){if("object"!==propagation_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==propagation_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===propagation_typeof(r)?r:String(r)}var _="propagation",v=new a,y=function(){function PropagationAPI(){!function propagation_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PropagationAPI),this.createBaggage=d.H,this.getBaggage=getBaggage,this.getActiveBaggage=getActiveBaggage,this.setBaggage=setBaggage,this.deleteBaggage=deleteBaggage}return function propagation_createClass(t,r,o){return r&&propagation_defineProperties(t.prototype,r),o&&propagation_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}(PropagationAPI,[{key:"setGlobalPropagator",value:function setGlobalPropagator(t){return(0,i.TG)(_,t,h.G.instance())}},{key:"inject",value:function inject(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return this._getGlobalPropagator().inject(t,r,o)}},{key:"extract",value:function extract(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return this._getGlobalPropagator().extract(t,r,o)}},{key:"fields",value:function fields(){return this._getGlobalPropagator().fields()}},{key:"disable",value:function disable(){(0,i.J_)(_,h.G.instance())}},{key:"_getGlobalPropagator",value:function _getGlobalPropagator(){return(0,i.Rd)(_)||v}}],[{key:"getInstance",value:function getInstance(){return this._instance||(this._instance=new PropagationAPI),this._instance}}]),PropagationAPI}(),g=y.getInstance()},36607:function(t,r,o){var i;o.d(r,{M:function(){return i}}),function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"}(i||(i={}))},93750:function(t,r,o){o.d(r,{X:function(){return u}});var i=o(91348);var a="OT_ZONE_CONTEXT",u=function(){function ZoneContextManager(){this._enabled=!1,this._zoneCounter=0}return ZoneContextManager.prototype._activeContextFromZone=function(t){return t&&t.get(a)||i.I},ZoneContextManager.prototype._bindFunction=function(t,r){var o=this,i=function contextWrapper(){for(var i=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return o.with(t,function(){return r.apply(i,a)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i},ZoneContextManager.prototype._bindListener=function(t,r){var o=r;return void 0!==o.__ot_listeners||(o.__ot_listeners={},"function"===typeof o.addEventListener&&(o.addEventListener=this._patchAddEventListener(o,o.addEventListener,t)),"function"===typeof o.removeEventListener&&(o.removeEventListener=this._patchRemoveEventListener(o,o.removeEventListener))),r},ZoneContextManager.prototype._createZoneName=function(){this._zoneCounter++;var t=Math.random();return this._zoneCounter+"-"+t},ZoneContextManager.prototype._createZone=function(t,r){var o;return Zone.current.fork({name:t,properties:(o={},o[a]=r,o)})},ZoneContextManager.prototype._getActiveZone=function(){return Zone.current},ZoneContextManager.prototype._patchAddEventListener=function(t,r,o){var i=this;return function(a,u,c){void 0===t.__ot_listeners&&(t.__ot_listeners={});var l=t.__ot_listeners[a];void 0===l&&(l=new WeakMap,t.__ot_listeners[a]=l);var p=i.bind(o,u);return l.set(u,p),r.call(this,a,p,c)}},ZoneContextManager.prototype._patchRemoveEventListener=function(t,r){return function(o,i){if(void 0===t.__ot_listeners||void 0===t.__ot_listeners[o])return r.call(this,o,i);var a=t.__ot_listeners[o],u=a.get(i);return a.delete(i),r.call(this,o,u||i)}},ZoneContextManager.prototype.active=function(){if(!this._enabled)return i.I;var t=this._getActiveZone(),r=this._activeContextFromZone(t);return r||i.I},ZoneContextManager.prototype.bind=function(t,r){return void 0===t&&(t=this.active()),"function"===typeof r?this._bindFunction(t,r):(function isListenerObject(t){return void 0===t&&(t={}),"function"===typeof t.addEventListener&&"function"===typeof t.removeEventListener}(r)&&this._bindListener(t,r),r)},ZoneContextManager.prototype.disable=function(){return this._enabled=!1,this},ZoneContextManager.prototype.enable=function(){return this._enabled=!0,this},ZoneContextManager.prototype.with=function(t,r,o){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var u=this._createZoneName();return this._createZone(u,t).run(r,o,i)},ZoneContextManager}();o(86162)},73789:function(t,r,o){var i;o.d(r,{I:function(){return i}}),function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(i||(i={}))},20192:function(t,r,o){o.d(r,{L:function(){return globalErrorHandler}});var i=o(67330);var a=function loggingErrorHandler(){return function(t){i.K.error(function stringifyException(t){return"string"===typeof t?t:JSON.stringify(function flattenException(t){var r={},o=t;for(;null!==o;
2)Object.getOwnPropertyNames(o).forEach(function(t){if(!r[t]){var i=o[t];i&&(r[t]=String(i))}}),o=Object.getPrototypeOf(o);return r}(t))}(t))}}();function globalErrorHandler(t){try{a(t)}catch(r){}}},2757:function(t,r,o){o.d(r,{Dt:function(){return isTimeInputHrTime},J3:function(){return hrTimeDuration},Jt:function(){return hrTime},PW:function(){return hrTimeToNanoseconds},U:function(){return getTimeOrigin},X_:function(){return isTimeInput},aE:function(){return timeInputToHrTime},i5:function(){return millisToHrTime},vF:function(){return addHrTimes}});var i=o(22863),a=Math.pow(10,6),u=Math.pow(10,9);function millisToHrTime(t){var r=t/1e3;return[Math.trunc(r),Math.round(t%1e3*a)]}function getTimeOrigin(){var t=i.t.timeOrigin;if("number"!==typeof t){var r=i.t;t=r.timing&&r.timing.fetchStart}return t}function hrTime(t){return addHrTimes(millisToHrTime(getTimeOrigin()),millisToHrTime("number"===typeof t?t:i.t.now()))}function timeInputToHrTime(t){if(isTimeInputHrTime(t))return t;if("number"===typeof t)return t<getTimeOrigin()?hrTime(t):millisToHrTime(t);if(t instanceof Date)return millisToHrTime(t.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(t,r){var o=r[0]-t[0],i=r[1]-t[1];return i<0&&(o-=1,i+=u),[o,i]}function hrTimeToNanoseconds(t){return t[0]*u+t[1]}function isTimeInputHrTime(t){return Array.isArray(t)&&2===t.length&&"number"===typeof t[0]&&"number"===typeof t[1]}function isTimeInput(t){return isTimeInputHrTime(t)||"number"===typeof t||t instanceof Date}function addHrTimes(t,r){var o=[t[0]+r[0],t[1]+r[1]];return o[1]>=u&&(o[1]-=u,o[0]+=1),o}},86064:function(t,r,o){o.d(r,{d:function(){return getEnv},v:function(){return getEnvWithoutDefaults}});var i=o(53115),a=o(85715);function getEnv(){var t=(0,i.Ds)(a.E);return Object.assign({},i.J9,t)}function getEnvWithoutDefaults(){return(0,i.Ds)(a.E)}},85715:function(t,r,o){function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}o.d(r,{E:function(){return i}});var i="object"===("undefined"===typeof globalThis?"undefined":_typeof(globalThis))?globalThis:"object"===("undefined"===typeof self?"undefined":_typeof(self))?self:"object"===("undefined"===typeof window?"undefined":_typeof(window))?window:"object"===("undefined"===typeof o.g?"undefined":_typeof(o.g))?o.g:{}},22863:function(t,r,o){o.d(r,{t:function(){return i}});var i=performance},88873:function(t,r,o){o.d(r,{FX:function(){return v},jf:function(){return m}});var i=o(21242),a=o(26634),u=o(33826),c=o(88152),l="[_0-9a-z-*/]",p=new RegExp("^(?:"+("[a-z]"+l+"{0,255}")+"|"+("[a-z0-9]"+l+"{0,240}@[a-z]"+l+"{0,13}")+")$"),d=/^[ -~]{0,255}[!-~]$/,h=/,|=/;var _=function(){function TraceState(t){this._internalState=new Map,t&&this._parse(t)}return TraceState.prototype.set=function(t,r){var o=this._clone();return o._internalState.has(t)&&o._internalState.delete(t),o._internalState.set(t,r),o},TraceState.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},TraceState.prototype.get=function(t){return this._internalState.get(t)},TraceState.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,o){return r.push(o+"="+t.get(o)),r},[]).join(",")},TraceState.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,r){var o=r.trim(),i=o.indexOf("=");if(-1!==i){var a=o.slice(0,i),u=o.slice(i+1,r.length);(function validateKey(t){return p.test(t)})(a)&&function validateValue(t){return d.test(t)&&!h.test(t)}(u)&&t.set(a,u)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},TraceState.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceState.prototype._clone=function(){var t=new TraceState;return t._internalState=new Map(this._internalState),t},TraceState}(),v="traceparent",y="tracestate",g=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var m=function(){function W3CTraceContextPropagator(){}return W3CTraceContextPropagator.prototype.inject=function(t,r,o){var l=i.g.getSpanContext(t);if(l&&!(0,c.Ll)(t)&&(0,a.BM)(l)){var p="00-"+l.traceId+"-"+l.spanId+"-0"+Number(l.traceFlags||u.r.NONE).toString(16);o.set(r,v,p),l.traceState&&o.set(r,y,l.traceState.serialize())}},W3CTraceContextPropagator.prototype.extract=function(t,r,o){var a=o.get(r,v);if(!a)return t;var u=Array.isArray(a)?a[0]:a;if("string"!==typeof u)return t;var c=function parseTraceParent(t){var r=g.exec(t);return r?"00"===r[1]&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}:null}(u);if(!c)return t;c.isRemote=!0;var l=o.get(r,y);
2if(l){var p=Array.isArray(l)?l.join(","):l;c.traceState=new _("string"===typeof p?p:void 0)}return i.g.setSpanContext(t,c)},W3CTraceContextPropagator.prototype.fields=function(){return[v,y]},W3CTraceContextPropagator}()},88152:function(t,r,o){o.d(r,{Ll:function(){return isTracingSuppressed},hE:function(){return suppressTracing}});var i=(0,o(91348).Y)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(t){return t.setValue(i,!0)}function isTracingSuppressed(t){return!0===t.getValue(i)}},53115:function(t,r,o){o.d(r,{Ds:function(){return parseEnvironment},J9:function(){return _},KR:function(){return d},qG:function(){return h}});var i=o(83031),a=o(9608),u=",",c=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(t){return c.indexOf(t)>-1}var l=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(t){return l.indexOf(t)>-1}var p=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(t){return p.indexOf(t)>-1}var d=1/0,h=128,_={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:i.n.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:d,OTEL_ATTRIBUTE_COUNT_LIMIT:h,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:d,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:h,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:d,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:h,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:a.J.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(t,r,o){if("undefined"!==typeof o[t]){var i=String(o[t]);r[t]="true"===i.toLowerCase()}}function parseNumber(t,r,o,i,a){if(void 0===i&&(i=-1/0),void 0===a&&(a=1/0),"undefined"!==typeof o[t]){var u=Number(o[t]);isNaN(u)||(r[t]=u<i?i:u>a?a:u)}}function parseStringList(t,r,o,i){void 0===i&&(i=u);var a=o[t];"string"===typeof a&&(r[t]=a.split(i).map(function(t){return t.trim()}))}var v={ALL:i.n.ALL,VERBOSE:i.n.VERBOSE,DEBUG:i.n.DEBUG,INFO:i.n.INFO,WARN:i.n.WARN,ERROR:i.n.ERROR,NONE:i.n.NONE};function setLogLevelFromEnv(t,r,o){var i=o[t];if("string"===typeof i){var a=v[i.toUpperCase()];null!=a&&(r[t]=a)}}function parseEnvironment(t){var r={};for(var o in _){var i=o;if("OTEL_LOG_LEVEL"===i)setLogLevelFromEnv(i,r,t);else if(isEnvVarABoolean(i))parseBoolean(i,r,t);else if(isEnvVarANumber(i))parseNumber(i,r,t);else if(isEnvVarAList(i))parseStringList(i,r,t);else{var a=t[i];"undefined"!==typeof a&&null!==a&&(r[i]=String(a))}}return r}},9608:function(t,r,o){var i;o.d(r,{J:function(){return i}}),function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(i||(i={}))},17044:function(t,r,o){o.d(r,{d:function(){return isUrlIgnored},j:function(){return urlMatches}});var __values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(t,r){return"string"===typeof r?t===r:!!t.match(r)}function isUrlIgnored(t,r){var o,i;if(!r)return!1;try{for(var a=__values(r),u=a.next();!u.done;u=a.next()){if(urlMatches(t,u.value))return!0}}catch(c){o={error:c}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return!1}},64899:function(t,r,o){o.d(r,{M:function(){return E}});var i=function(){function OTLPExporterBase(t){this._delegate=t}
2return OTLPExporterBase.prototype.export=function(t,r){this._delegate.export(t,r)},OTLPExporterBase.prototype.forceFlush=function(){return this._delegate.forceFlush()},OTLPExporterBase.prototype.shutdown=function(){return this._delegate.shutdown()},OTLPExporterBase}();function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var __read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c};function createResource(t){return{attributes:toAttributes(t.attributes),droppedAttributesCount:0}}function createInstrumentationScope(t){return{name:t.name,version:t.version}}function toAttributes(t){return Object.keys(t).map(function(r){return toKeyValue(r,t[r])})}function toKeyValue(t,r){return{key:t,value:toAnyValue(r)}}function toAnyValue(t){var r=_typeof(t);return"string"===r?{stringValue:t}:"number"===r?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:"boolean"===r?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(toAnyValue)}}:"object"===r&&null!=t?{kvlistValue:{values:Object.entries(t).map(function(t){var r=__read(t,2);return toKeyValue(r[0],r[1])})}}:{}}var a=o(2757);function intValue(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function hexToBinary(t){for(var r=new Uint8Array(t.length/2),o=0,i=0;i<t.length;i+=2){var a=intValue(t.charCodeAt(i)),u=intValue(t.charCodeAt(i+1));r[o++]=a<<4|u}return r}function hrTimeToNanos(t){var r=BigInt(1e9);return BigInt(t[0])*r+BigInt(t[1])}function encodeAsLongBits(t){return function toLongBits(t){return{low:Number(BigInt.asUintN(32,t)),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}(hrTimeToNanos(t))}var u="undefined"!==typeof BigInt?function encodeAsString(t){return hrTimeToNanos(t).toString()}:a.PW;function identity(t){return t}function optionalHexToBinary(t){if(void 0!==t)return hexToBinary(t)}var c={encodeHrTime:encodeAsLongBits,encodeSpanContext:hexToBinary,encodeOptionalSpanContext:optionalHexToBinary};var __values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},internal_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c};function sdkSpanToOtlpSpan(t,r){var o,i=t.spanContext(),a=t.status;return{traceId:r.encodeSpanContext(i.traceId),spanId:r.encodeSpanContext(i.spanId),parentSpanId:r.encodeOptionalSpanContext(t.parentSpanId),traceState:null===(o=i.traceState)||void 0===o?void 0:o.serialize(),name:t.name,kind:null==t.kind?0:t.kind+1,startTimeUnixNano:r.encodeHrTime(t.startTime),endTimeUnixNano:r.encodeHrTime(t.endTime),attributes:toAttributes(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(t){return function toOtlpSpanEvent(t,r){return{attributes:t.attributes?toAttributes(t.attributes):[],name:t.name,timeUnixNano:r.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}(t,r)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(t){return function toOtlpLink(t,r){var o;return{attributes:t.attributes?toAttributes(t.attributes):[],spanId:r.encodeSpanContext(t.context.spanId),traceId:r.encodeSpanContext(t.context.traceId),traceState:null===(o=t.context.traceState)||void 0===o?void 0:o.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}(t,r)}),droppedLinksCount:t.droppedLinksCount}}function createExportTraceServiceRequest(t,r){var o=function getOtlpEncoder(t){var r,o;if(void 0===t)return c;var i=null===(r=t.useLongBits)||void 0===r||r,a=null!==(o=t.useHex)&&void 0!==o&&o;return{encodeHrTime:i?encodeAsLongBits:u,encodeSpanContext:a?identity:hexToBinary,encodeOptionalSpanContext:a?identity:optionalHexToBinary}}(r);return{resourceSpans:spanRecordsToResourceSpans(t,o)}}function spanRecordsToResourceSpans(t,r){for(var o=function createResourceMap(t){var r,o,i=new Map;try{for(var a=__values(t),u=a.next();!u.done;u=a.next()){var c=u.value,l=i.get(c.resource);l||(l=new Map,i.set(c.resource,l));var p=c.instrumentationLibrary.name+"@"+(c.instrumentationLibrary.version||"")+":"+(c.instrumentationLibrary.schemaUrl||""),d=l.get(p);d||(d=[],l.set(p,d)),d.push(c)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}(t),i=[],a=o.entries(),u=a.next();!u.done;){for(var c=internal_read(u.value,2),l=c[0],p=[],d=c[1].values(),h=d.next();!h.done;){var _=h.value;if(_.length>0){var v=_.map(function(t){return sdkSpanToOtlpSpan(t,r)});p.push({scope:createInstrumentationScope(_[0].instrumentationLibrary),spans:v,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}h=d.next()}var y={resource:createResource(l),scopeSpans:p,schemaUrl:void 0};i.push(y),u=a.next()}return i}var l={serializeRequest:function serializeRequest(t){var r=createExportTraceServiceRequest(t,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(r))},deserializeResponse:function deserializeResponse(t){var r=new TextDecoder;return JSON.parse(r.decode(t))}},__awaiter=function(t,r,o,i){return new(o||(o=Promise))(function(a,u){function fulfilled(t){try{step(i.next(t))}catch(r){u(r)}}function rejected(t){try{step(i.throw(t))}catch(r){u(r)}}function step(t){t.done?a(t.value):function adopt(t){return t instanceof o?t:new o(function(r){r(t)})}(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())})},__generator=function(t,r){var o,i,a,u,c={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(l){return function step(u){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&u[0]?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,i=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(6===u[0]&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(t,c)}catch(l){u=[6,l],i=0}finally{o=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}};var p=function(){function RetryingTransport(t){this._transport=t}return RetryingTransport.prototype.retry=function(t,r,o){var i=this;return new Promise(function(a,u){setTimeout(function(){i._transport.send(t,r).then(a,u)},o)})},RetryingTransport.prototype.send=function(t,r){var o;return __awaiter(this,void 0,void 0,function(){var i,a,u,c,l,p,d;return __generator(this,function(h){switch(h.label){case 0:return i=Date.now()+r,[4,this._transport.send(t,r)];case 1:a=h.sent(),u=5,c=1e3,h.label=2;case 2:return"retryable"===a.status&&u>0?(u--,l=Math.max(Math.min(c,5e3)+function getJitter(){return.4*Math.random()-.2}(),0),c*=1.5,p=null!==(o=a.retryInMillis)&&void 0!==o?o:l,d=i-Date.now(),p>d?[2,a]:[4,this.retry(t,d,p)]):[3,4];case 3:return a=h.sent(),[3,2];case 4:return[2,a]}})})},RetryingTransport.prototype.shutdown=function(){return this._transport.shutdown()},RetryingTransport}();function createRetryingTransport(t){return new p(t.transport)}var d=o(67330);function parseRetryAfterToMills(t){if(null!=t){var r=Number.parseInt(t,10);if(Number.isInteger(r))return r>0?1e3*r:-1;var o=new Date(t).getTime()-Date.now();return o>=0?o:0}}var xhr_transport_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},h=function(){function XhrTransport(t){this._parameters=t}return XhrTransport.prototype.send=function(t,r){var o=this;return new Promise(function(i){var a=new XMLHttpRequest;a.timeout=r,a.open("POST",o._parameters.url);var u=o._parameters.headers();Object.entries(u).forEach(function(t){var r=xhr_transport_read(t,2),o=r[0],i=r[1];a.setRequestHeader(o,i)}),a.ontimeout=function(t){i({status:"failure",error:new Error("XHR request timed out")})},a.onreadystatechange=function(){a.status>=200&&a.status<=299?(d.K.debug("XHR success"),i({status:"success"})):a.status&&function isExportRetryable(t){return[429,502,503,504].includes(t)}(a.status)?i({status:"retryable",retryInMillis:parseRetryAfterToMills(a.getResponseHeader("Retry-After"))}):0!==a.status&&i({status:"failure",error:new Error("XHR request failed with non-retryable status")})},a.onabort=function(){i({status:"failure",error:new Error("XHR request aborted")})},a.onerror=function(){i({status:"failure",error:new Error("XHR request errored")})},a.send(t)})},XhrTransport.prototype.shutdown=function(){},XhrTransport}();var _=function(){function SendBeaconTransport(t){this._params=t}return SendBeaconTransport.prototype.send=function(t){var r=this;return new Promise(function(o){navigator.sendBeacon(r._params.url,new Blob([t],{type:r._params.blobType}))?(d.K.debug("SendBeacon success"),o({status:"success"})):o({status:"failure",error:new Error("SendBeacon failed")})})},SendBeaconTransport.prototype.shutdown=function(){},SendBeaconTransport}();var bounded_queue_export_promise_handler_awaiter=function(t,r,o,i){return new(o||(o=Promise))(function(a,u){function fulfilled(t){try{step(i.next(t))}catch(r){u(r)}}function rejected(t){try{step(i.throw(t))}catch(r){u(r)}}function step(t){t.done?a(t.value):function adopt(t){return t instanceof o?t:new o(function(r){r(t)})}(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())})},bounded_queue_export_promise_handler_generator=function(t,r){var o,i,a,u,c={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(l){return function step(u){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&u[0]?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,i=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(6===u[0]&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(t,c)}catch(l){u=[6,l],i=0}finally{o=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}},v=function(){function BoundedQueueExportPromiseHandler(t){this._sendingPromises=[],this._concurrencyLimit=t}return BoundedQueueExportPromiseHandler.prototype.pushPromise=function(t){var r=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);var o=function popPromise(){var o=r._sendingPromises.indexOf(t);r._sendingPromises.splice(o,1)};t.then(o,o)},BoundedQueueExportPromiseHandler.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},BoundedQueueExportPromiseHandler.prototype.awaitAll=function(){return bounded_queue_export_promise_handler_awaiter(this,void 0,void 0,function(){return bounded_queue_export_promise_handler_generator(this,function(t){switch(t.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return t.sent(),[2]}})})},BoundedQueueExportPromiseHandler}();function createBoundedQueueExportPromiseHandler(t){return new v(t.concurrencyLimit)}var y=o(73789),g=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}
2(),m=function(t){function OTLPExporterError(r,o,i){var a=t.call(this,r)||this;return a.name="OTLPExporterError",a.data=i,a.code=o,a}return g(OTLPExporterError,t),OTLPExporterError}(Error);function createLoggingPartialSuccessResponseHandler(){return{handleResponse:function handleResponse(t){null!=t&&function isPartialSuccessResponse(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}(t)&&null!=t.partialSuccess&&0!==Object.keys(t.partialSuccess).length&&d.K.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var otlp_export_delegate_awaiter=function(t,r,o,i){return new(o||(o=Promise))(function(a,u){function fulfilled(t){try{step(i.next(t))}catch(r){u(r)}}function rejected(t){try{step(i.throw(t))}catch(r){u(r)}}function step(t){t.done?a(t.value):function adopt(t){return t instanceof o?t:new o(function(r){r(t)})}(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())})},otlp_export_delegate_generator=function(t,r){var o,i,a,u,c={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(l){return function step(u){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&u[0]?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,i=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(6===u[0]&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(t,c)}catch(l){u=[6,l],i=0}finally{o=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}},T=function(){function OTLPExportDelegate(t,r,o,i,a){this._transport=t,this._serializer=r,this._responseHandler=o,this._promiseQueue=i,this._timeout=a,this._diagLogger=d.K.createComponentLogger({namespace:"OTLPExportDelegate"})}return OTLPExportDelegate.prototype.export=function(t,r){var o=this;if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit())r({code:y.I.FAILED,error:new Error("Concurrent export limit reached")});else{var i=this._serializer.serializeRequest(t);null!=i?this._promiseQueue.pushPromise(this._transport.send(i,this._timeout).then(function(t){if("success"!==t.status)"failure"===t.status&&t.error?r({code:y.I.FAILED,error:t.error}):"retryable"===t.status?r({code:y.I.FAILED,error:new m("Export failed with retryable status")}):r({code:y.I.FAILED,error:new m("Export failed with unknown error")});else{if(null!=t.data)try{o._responseHandler.handleResponse(o._serializer.deserializeResponse(t.data))}catch(i){o._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,t.data)}r({code:y.I.SUCCESS})}},function(t){return r({code:y.I.FAILED,error:t})})):r({code:y.I.FAILED,error:new Error("Nothing to send")})}},OTLPExportDelegate.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},OTLPExportDelegate.prototype.shutdown=function(){return otlp_export_delegate_awaiter(this,void 0,void 0,function(){return otlp_export_delegate_generator(this,function(t){switch(t.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return t.sent(),this._transport.shutdown(),[2]}})})},OTLPExportDelegate}();function createOtlpNetworkExportDelegate(t,r,o){return function createOtlpExportDelegate(t,r){return new T(t.transport,t.serializer,createLoggingPartialSuccessResponseHandler(),t.promiseHandler,r.timeout)}({transport:o,serializer:r,promiseHandler:createBoundedQueueExportPromiseHandler(t)},{timeout:t.timeoutMillis})}function validateTimeoutMillis(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;
2throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function wrapStaticHeadersInFunction(t){if(null!=t)return function(){return t}}var util_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c};var __assign=function(){return __assign=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},__assign.apply(this,arguments)};function mergeHeaders(t,r,o){var i=__assign({},o()),a={};return function(){return null!=r&&Object.assign(a,r()),null!=t&&Object.assign(a,t()),Object.assign(a,i)}}function validateUserProvidedUrl(t){if(null!=t)try{return new URL(t),t}catch(r){throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function mergeOtlpHttpConfigurationWithDefaults(t,r,o){var i,a,u,c,l;return __assign(__assign({},function mergeOtlpSharedConfigurationWithDefaults(t,r,o){var i,a,u,c,l,p;return{timeoutMillis:validateTimeoutMillis(null!==(a=null!==(i=t.timeoutMillis)&&void 0!==i?i:r.timeoutMillis)&&void 0!==a?a:o.timeoutMillis),concurrencyLimit:null!==(c=null!==(u=t.concurrencyLimit)&&void 0!==u?u:r.concurrencyLimit)&&void 0!==c?c:o.concurrencyLimit,compression:null!==(p=null!==(l=t.compression)&&void 0!==l?l:r.compression)&&void 0!==p?p:o.compression}}(t,r,o)),{headers:mergeHeaders((l=t.headers,function(){var t,r={};return Object.entries(null!==(t=null===l||void 0===l?void 0:l())&&void 0!==t?t:{}).forEach(function(t){var o=util_read(t,2),i=o[0],a=o[1];"undefined"!==typeof a?r[i]=String(a):d.K.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),r}),r.headers,o.headers),url:null!==(a=null!==(i=validateUserProvidedUrl(t.url))&&void 0!==i?i:r.url)&&void 0!==a?a:o.url,agentOptions:null!==(c=null!==(u=t.agentOptions)&&void 0!==u?u:r.agentOptions)&&void 0!==c?c:o.agentOptions})}function convertLegacyBrowserHttpOptions(t,r,o){return mergeOtlpHttpConfigurationWithDefaults({url:t.url,timeoutMillis:t.timeoutMillis,headers:wrapStaticHeadersInFunction(t.headers),concurrencyLimit:t.concurrencyLimit},{},function getHttpConfigurationDefaults(t,r){return __assign(__assign({},{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}),{headers:function headers(){return t},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}})}(o,r))}function createLegacyOtlpBrowserExportDelegate(t,r,o,i){var a=!!t.headers||"function"!==typeof navigator.sendBeacon,u=convertLegacyBrowserHttpOptions(t,o,i);return a?function createOtlpXhrExportDelegate(t,r){return createOtlpNetworkExportDelegate(t,r,createRetryingTransport({transport:(o=t,new h(o))}));var o}(u,r):function createOtlpSendBeaconExportDelegate(t,r){return createOtlpNetworkExportDelegate(t,r,createRetryingTransport({transport:(o={url:t.url,blobType:t.headers()["Content-Type"]},new _(o))}));var o}(u,r)}var b=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),E=function(t){function OTLPTraceExporter(r){return void 0===r&&(r={}),t.call(this,createLegacyOtlpBrowserExportDelegate(r,l,"v1/traces",{"Content-Type":"application/json"}))||this}return b(OTLPTraceExporter,t),OTLPTraceExporter}(i)},12956:function(t,r,o){o.d(r,{K:function(){return O}});var i,a=o(20044),u=o(88354),c=o(91348),l=o(21242),p=o(22863),d=o(88873),h=o(17713),_=o(53165),v=o(28276),y=o(14407);!function(t){t.DOCUMENT_LOAD="documentLoad",t.DOCUMENT_FETCH="documentFetch",t.RESOURCE_FETCH="resourceFetch"}(i||(i={}));var g,m="http.url",T="http.user_agent",b=m,E=T;!function(t){t.FIRST_PAINT="firstPaint",t.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(g||(g={}));var S={"first-paint":g.FIRST_PAINT,"first-contentful-paint":g.FIRST_CONTENTFUL_PAINT},P=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),O=function(t){function DocumentLoadInstrumentation(r){void 0===r&&(r={});var o=t.call(this,"@opentelemetry/instrumentation-document-load","0.44.1",r)||this;return o.component="document-load",o.version="1",o.moduleName=o.component,o}return P(DocumentLoadInstrumentation,t),DocumentLoadInstrumentation.prototype.init=function(){},DocumentLoadInstrumentation.prototype._onDocumentLoaded=function(){var t=this;window.setTimeout(function(){t._collectPerformance()})},DocumentLoadInstrumentation.prototype._addResourcesSpans=function(t){var r,o,i=this,a=null===(o=(r=p.t).getEntriesByType)||void 0===o?void 0:o.call(r,"resource");a&&a.forEach(function(r){i._initResourceSpan(r,t)})},DocumentLoadInstrumentation.prototype._collectPerformance=function(){var t=this,r=Array.from(document.getElementsByTagName("meta")).find(function(t){return t.getAttribute("name")===d.FX}),o=function getPerformanceNavigationEntries(){var t,r,o={},i=null===(r=(t=p.t).getEntriesByType)||void 0===r?void 0:r.call(t,"navigation")[0];
2if(i)Object.values(h.S).forEach(function(t){if((0,_.wH)(i,t)){var r=i[t];"number"===typeof r&&(o[t]=r)}});else{var a=p.t.timing;a&&Object.values(h.S).forEach(function(t){if((0,_.wH)(a,t)){var r=a[t];"number"===typeof r&&(o[t]=r)}})}return o}(),v=r&&r.content||"";a.D.with(u.u.extract(c.I,{traceparent:v}),function(){var r,u=t._startSpan(i.DOCUMENT_LOAD,h.S.FETCH_START,o);u&&(a.D.with(l.g.setSpan(a.D.active(),u),function(){var r=t._startSpan(i.DOCUMENT_FETCH,h.S.FETCH_START,o);r&&(r.setAttribute(b,location.href),a.D.with(l.g.setSpan(a.D.active(),r),function(){var i;t.getConfig().ignoreNetworkEvents||(0,_.lx)(r,o),t._addCustomAttributesOnSpan(r,null===(i=t.getConfig().applyCustomAttributesOnSpan)||void 0===i?void 0:i.documentFetch),t._endSpan(r,h.S.RESPONSE_END,o)}))}),u.setAttribute(b,location.href),u.setAttribute(E,navigator.userAgent),t._addResourcesSpans(u),t.getConfig().ignoreNetworkEvents||((0,_.M4)(u,h.S.FETCH_START,o),(0,_.M4)(u,h.S.UNLOAD_EVENT_START,o),(0,_.M4)(u,h.S.UNLOAD_EVENT_END,o),(0,_.M4)(u,h.S.DOM_INTERACTIVE,o),(0,_.M4)(u,h.S.DOM_CONTENT_LOADED_EVENT_START,o),(0,_.M4)(u,h.S.DOM_CONTENT_LOADED_EVENT_END,o),(0,_.M4)(u,h.S.DOM_COMPLETE,o),(0,_.M4)(u,h.S.LOAD_EVENT_START,o),(0,_.M4)(u,h.S.LOAD_EVENT_END,o)),t.getConfig().ignorePerformancePaintEvents||function addSpanPerformancePaintEvents(t){var r,o,i=null===(o=(r=p.t).getEntriesByType)||void 0===o?void 0:o.call(r,"paint");i&&i.forEach(function(r){var o=r.name,i=r.startTime;(0,_.wH)(S,o)&&t.addEvent(S[o],i)})}(u),t._addCustomAttributesOnSpan(u,null===(r=t.getConfig().applyCustomAttributesOnSpan)||void 0===r?void 0:r.documentLoad),t._endSpan(u,h.S.LOAD_EVENT_END,o))})},DocumentLoadInstrumentation.prototype._endSpan=function(t,r,o){t&&((0,_.wH)(o,r)?t.end(o[r]):t.end())},DocumentLoadInstrumentation.prototype._initResourceSpan=function(t,r){var o,a=this._startSpan(i.RESOURCE_FETCH,h.S.FETCH_START,t,r);a&&(a.setAttribute(b,t.name),this.getConfig().ignoreNetworkEvents||(0,_.lx)(a,t),this._addCustomAttributesOnResourceSpan(a,t,null===(o=this.getConfig().applyCustomAttributesOnSpan)||void 0===o?void 0:o.resourceFetch),this._endSpan(a,h.S.RESPONSE_END,t))},DocumentLoadInstrumentation.prototype._startSpan=function(t,r,o,i){if((0,_.wH)(o,r)&&"number"===typeof o[r])return this.tracer.startSpan(t,{startTime:o[r]}
2,i?l.g.setSpan(a.D.active(),i):void 0)},DocumentLoadInstrumentation.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},DocumentLoadInstrumentation.prototype._addCustomAttributesOnSpan=function(t,r){var o=this;r&&(0,v._W)(function(){return r(t)},function(t){t&&o._diag.error("addCustomAttributesOnSpan",t)},!0)},DocumentLoadInstrumentation.prototype._addCustomAttributesOnResourceSpan=function(t,r,o){var i=this;o&&(0,v._W)(function(){return o(t,r)},function(t){t&&i._diag.error("addCustomAttributesOnResourceSpan",t)},!0)},DocumentLoadInstrumentation.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},DocumentLoadInstrumentation.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},DocumentLoadInstrumentation}(y.w)},80845:function(t,r,o){o.d(r,{V:function(){return H}});var i,a=o(21242),u=o(20044),c=o(88354),l=o(36607),p=o(28276),d=o(14407),h=o(17044),_=o(2757),v=o(17713),y=o(53165);!function(t){t.COMPONENT="component",t.HTTP_ERROR_NAME="http.error_name",t.HTTP_STATUS_TEXT="http.status_text"}(i||(i={}));var g="http.method",m="http.url",T="http.host",b="http.scheme",E="http.status_code",S="http.user_agent",P="http.request_content_length_uncompressed",O=g,w=m,R=T,L=b,C=E,k=S,A=P,I=o(67330),__awaiter=function(t,r,o,i){return new(o||(o=Promise))(function(a,u){function fulfilled(t){try{step(i.next(t))}catch(r){u(r)}}function rejected(t){try{step(i.throw(t))}catch(r){u(r)}}function step(t){t.done?a(t.value):function adopt(t){return t instanceof o?t:new o(function(r){r(t)})}(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())})},__generator=function(t,r){var o,i,a,u,c={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(l){return function step(u){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&u[0]?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,i=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(6===u[0]&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(t,c)}catch(l){u=[6,l],i=0}finally{o=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}},__values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},N=I.K.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function getFetchBodyLength(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t[0]instanceof URL||"string"===typeof t[0]){var o=t[1];if(!(null===o||void 0===o?void 0:o.body))return Promise.resolve();if(o.body instanceof ReadableStream){var i=function _getBodyNonDestructively(t){if(!t.pipeThrough)return N.warn("Platform has ReadableStream but not pipeThrough!"),{body:t,length:Promise.resolve(void 0)};var r,o=0,i=new Promise(function(t){r=t}),a=new TransformStream({start:function start(){},transform:function transform(t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(a){switch(a.label){case 0:return[4,t];case 1:return i=a.sent(),o+=i.byteLength,r.enqueue(t),[2]}})})},flush:function flush(){r(o)}});return{body:t.pipeThrough(a),length:i}}(o.body),a=i.body,u=i.length;return o.body=a,u}return Promise.resolve(function getXHRBodyLength(t){if("undefined"!==typeof Document&&t instanceof Document)return(new XMLSerializer).serializeToString(document).length;if(t instanceof Blob)return t.size;if(void 0!==t.byteLength)return t.byteLength;if(t instanceof FormData)return function getFormDataSize(t){var r,o,i=0;try{for(var a=__values(t.entries()),u=a.next();!u.done;u=a.next()){var c=__read(u.value,2),l=c[0],p=c[1];i+=l.length,p instanceof Blob?i+=p.size:i+=p.length}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}(t);if(t instanceof URLSearchParams)return getByteLength(t.toString());if("string"===typeof t)return getByteLength(t);return void N.warn("unknown body type")}(o.body))}var c=t[0];return(null===c||void 0===c?void 0:c.body)?c.clone().text().then(function(t){return getByteLength(t)}):Promise.resolve()}var M=new TextEncoder;function getByteLength(t){return M.encode(t).byteLength}var D="0.57.2",x=o(85715);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var j,B=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),fetch_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},__spreadArray=function(t,r,o){if(o||2===arguments.length)for(var i,a=0,u=r.length;a<u;a++)!i&&a in r||(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return t.concat(i||Array.prototype.slice.call(r))},U="object"===("undefined"===typeof process?"undefined":_typeof(process))&&"node"===(null===(j=process.release)||void 0===j?void 0:j.name),H=function(t){function FetchInstrumentation(r){void 0===r&&(r={});var o=t.call(this,"@opentelemetry/instrumentation-fetch",D,r)||this;return o.component="fetch",o.version=D,o.moduleName=o.component,o._usedResources=new WeakSet,o._tasksCount=0,o}return B(FetchInstrumentation,t),FetchInstrumentation.prototype.init=function(){},FetchInstrumentation.prototype._addChildSpan=function(t,r){var o=this.tracer.startSpan("CORS Preflight",{startTime:r[v.S.FETCH_START]},a.g.setSpan(u.D.active(),t));y.lx(o,r,this.getConfig().ignoreNetworkEvents),o.end(r[v.S.RESPONSE_END])},FetchInstrumentation.prototype._addFinalSpanAttributes=function(t,r){var o=y.en(r.url);t.setAttribute(C,r.status),null!=r.statusText&&t.setAttribute(i.HTTP_STATUS_TEXT,r.statusText),t.setAttribute(R,o.host),t.setAttribute(L,o.protocol.replace(":","")),"undefined"!==typeof navigator&&t.setAttribute(k,navigator.userAgent)},FetchInstrumentation.prototype._addHeaders=function(t,r){if(!y.n4(r,this.getConfig().propagateTraceHeaderCorsUrls)){var o={};return c.u.inject(u.D.active(),o),void(Object.keys(o).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(t instanceof Request)c.u.inject(u.D.active(),t.headers,{set:function set(t,r,o){return t.set(r,"string"===typeof o?o:String(o))}});else if(t.headers instanceof Headers)c.u.inject(u.D.active(),t.headers,{set:function set(t,r,o){return t.set(r,"string"===typeof o?o:String(o))}});else if(t.headers instanceof Map)c.u.inject(u.D.active(),t.headers,{set:function set(t,r,o){return t.set(r,"string"===typeof o?o:String(o))}});else{o={};c.u.inject(u.D.active(),o),t.headers=Object.assign({},o,t.headers||{})}},FetchInstrumentation.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},FetchInstrumentation.prototype._createSpan=function(t,r){var o;if(void 0===r&&(r={}),!h.d(t,this.getConfig().ignoreUrls)){var a=(r.method||"GET").toUpperCase(),u="HTTP "+a;return this.tracer.startSpan(u,{kind:l.M.CLIENT,attributes:(o={},o[i.COMPONENT]=this.moduleName,o[O]=a,o[w]=t,o)})}this._diag.debug("ignoring span as url matches ignored url")},FetchInstrumentation.prototype._findResourceAndAddNetworkEvents=function(t,r,o){var i=r.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}var a=y.RX(r.spanUrl,r.startTime,o,i,this._usedResources,"fetch");if(a.mainRequest){var u=a.mainRequest;this._markResourceAsUsed(u);var c=a.corsPreFlightRequest;c&&(this._addChildSpan(t,c),this._markResourceAsUsed(c)),y.lx(t,u,this.getConfig().ignoreNetworkEvents)}},FetchInstrumentation.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},FetchInstrumentation.prototype._endSpan=function(t,r,o){var i=this,a=_.i5(Date.now()),u=_.Jt();this._addFinalSpanAttributes(t,o),setTimeout(function(){var o;null===(o=r.observer)||void 0===o||o.disconnect(),i._findResourceAndAddNetworkEvents(t,r,u),i._tasksCount--,i._clearResources(),t.end(a)},300)},FetchInstrumentation.prototype._patchConstructor=function(){var t=this;return function(r){var o=t;return function patchConstructor(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var c=this,l=y.en(t[0]instanceof Request?t[0].url:String(t[0])).href,p=t[0]instanceof Request?t[0]:t[1]||{},d=o._createSpan(l,p);if(!d)return r.apply(this,t);var h=o._prepareSpanData(l);function endSpanOnError(t,r){o._applyAttributesAfterFetch(t,p,r),o._endSpan(t,h,{status:r.status||0,statusText:r.message,url:l})}function endSpanOnSuccess(t,r){o._applyAttributesAfterFetch(t,p,r),r.status>=200&&r.status<400?o._endSpan(t,h,r):o._endSpan(t,h,{status:r.status,statusText:r.statusText,url:l})}function onSuccess(t,r,o){try{var i=o.clone(),a=o.clone(),u=i.body;if(u){var c=u.getReader();!function read_1(){c.read().then(function(r){r.done?endSpanOnSuccess(t,a):read_1()},function(r){endSpanOnError(t,r)})}()}else endSpanOnSuccess(t,o)}finally{r(o)}}function onError(t,r,o){try{endSpanOnError(t,o)}finally{r(o)}}return o.getConfig().measureRequestSize&&getFetchBodyLength.apply(void 0,__spreadArray([],fetch_read(t),!1)).then(function(t){t&&d.setAttribute(A,t)}).catch(function(t){o._diag.warn("getFetchBodyLength",t)}),new Promise(function(t,i){return u.D.with(a.g.setSpan(u.D.active(),d),function(){return o._addHeaders(p,l),o._tasksCount++,r.apply(c,p instanceof Request?[p]:[l,p]).then(onSuccess.bind(c,d,t),onError.bind(c,d,i))})})}}},FetchInstrumentation.prototype._applyAttributesAfterFetch=function(t,r,o){var i=this,a=this.getConfig().applyCustomAttributesOnSpan;a&&(0,p._W)(function(){return a(t,r,o)},function(t){t&&i._diag.error("applyCustomAttributesOnSpan",t)},!0)},FetchInstrumentation.prototype._prepareSpanData=function(t){var r=_.Jt(),o=[];if("function"!==typeof PerformanceObserver)return{entries:o,startTime:r,spanUrl:t};
2var i=new PerformanceObserver(function(r){r.getEntries().forEach(function(r){"fetch"===r.initiatorType&&r.name===t&&o.push(r)})});return i.observe({entryTypes:["resource"]}),{entries:o,observer:i,startTime:r,spanUrl:t}},FetchInstrumentation.prototype.enable=function(){U?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):((0,p.UW)(fetch)&&(this._unwrap(x.E,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(x.E,"fetch",this._patchConstructor()))},FetchInstrumentation.prototype.disable=function(){U||(this._unwrap(x.E,"fetch"),this._usedResources=new WeakSet)},FetchInstrumentation}(d.w)},70344:function(t,r,o){o.d(r,{W:function(){return U}});var i=o(88354),a=o(20044),u=o(21242),c=o(36607),l=o(28276),p=o(14407),d=o(22863),h=o(17044),_=o(2757);var v,y="http.method",g="http.url",m="http.host",T="http.scheme",b="http.status_code",E="http.user_agent",S="http.request_content_length_uncompressed",P=y,O=g,w=m,R=T,L=b,C=E,k=S,A=o(53165),I=o(17713);!function(t){t.METHOD_OPEN="open",t.METHOD_SEND="send",t.EVENT_ABORT="abort",t.EVENT_ERROR="error",t.EVENT_LOAD="loaded",t.EVENT_TIMEOUT="timeout"}(v||(v={}));var N=o(67330),__values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},M=N.K.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function getXHRBodyLength(t){return"undefined"!==typeof Document&&t instanceof Document?(new XMLSerializer).serializeToString(document).length:t instanceof Blob?t.size:void 0!==t.byteLength?t.byteLength:t instanceof FormData?function getFormDataSize(t){var r,o,i=0;try{for(var a=__values(t.entries()),u=a.next();!u.done;u=a.next()){var c=__read(u.value,2),l=c[0],p=c[1];i+=l.length,p instanceof Blob?i+=p.size:i+=p.length}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}(t):t instanceof URLSearchParams?getByteLength(t.toString()):"string"===typeof t?getByteLength(t):void M.warn("unknown body type")}var D=new TextEncoder;function getByteLength(t){return D.encode(t).byteLength}var x,j="0.57.2";!function(t){t.HTTP_STATUS_TEXT="http.status_text"}(x||(x={}));var B=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),U=function(t){function XMLHttpRequestInstrumentation(r){void 0===r&&(r={});var o=t.call(this,"@opentelemetry/instrumentation-xml-http-request",j,r)||this;return o.component="xml-http-request",o.version=j,o.moduleName=o.component,o._tasksCount=0,o._xhrMem=new WeakMap,o._usedResources=new WeakSet,o}return B(XMLHttpRequestInstrumentation,t),XMLHttpRequestInstrumentation.prototype.init=function(){},XMLHttpRequestInstrumentation.prototype._addHeaders=function(t,r){var o=(0,A.en)(r).href;if(!(0,A.n4)(o,this.getConfig().propagateTraceHeaderCorsUrls)){var u={};return i.u.inject(a.D.active(),u),void(Object.keys(u).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var c={};i.u.inject(a.D.active(),c),Object.keys(c).forEach(function(r){t.setRequestHeader(r,String(c[r]))})},XMLHttpRequestInstrumentation.prototype._addChildSpan=function(t,r){var o=this;a.D.with(u.g.setSpan(a.D.active(),t),function(){var t=o.tracer.startSpan("CORS Preflight",{startTime:r[I.S.FETCH_START]});(0,A.lx)(t,r,o.getConfig().ignoreNetworkEvents),t.end(r[I.S.RESPONSE_END])})},XMLHttpRequestInstrumentation.prototype._addFinalSpanAttributes=function(t,r,o){if("string"===typeof o){var i=(0,A.en)(o);void 0!==r.status&&t.setAttribute(L,r.status),void 0!==r.statusText&&t.setAttribute(x.HTTP_STATUS_TEXT,r.statusText),t.setAttribute(w,i.host),t.setAttribute(R,i.protocol.replace(":","")),t.setAttribute(C,navigator.userAgent)}},XMLHttpRequestInstrumentation.prototype._applyAttributesAfterXHR=function(t,r){var o=this,i=this.getConfig().applyCustomAttributesOnSpan;"function"===typeof i&&(0,l._W)(function(){return i(t,r)},function(t){t&&o._diag.error("applyCustomAttributesOnSpan",t)},!0)},XMLHttpRequestInstrumentation.prototype._addResourceObserver=function(t,r){var o=this._xhrMem.get(t);o&&"function"===typeof PerformanceObserver&&"function"===typeof PerformanceResourceTiming&&(o.createdResources={observer:new PerformanceObserver(function(t){var i=t.getEntries(),a=(0,A.en)(r);i.forEach(function(t){"xmlhttprequest"===t.initiatorType&&t.name===a.href&&o.createdResources&&o.createdResources.entries.push(t)})}),entries:[]},o.createdResources.observer.observe({entryTypes:["resource"]}))},XMLHttpRequestInstrumentation.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(d.t.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},XMLHttpRequestInstrumentation.prototype._findResourceAndAddNetworkEvents=function(t,r,o,i,a){if(o&&i&&a&&t.createdResources){var u=t.createdResources.entries;u&&u.length||(u=d.t.getEntriesByType("resource"));var c=(0,A.RX)((0,A.en)(o).href,i,a,u,this._usedResources);if(c.mainRequest){var l=c.mainRequest;this._markResourceAsUsed(l);var p=c.corsPreFlightRequest;p&&(this._addChildSpan(r,p),this._markResourceAsUsed(p)),(0,A.lx)(r,l,this.getConfig().ignoreNetworkEvents)}}},XMLHttpRequestInstrumentation.prototype._cleanPreviousSpanInformation=function(t){var r=this._xhrMem.get(t);if(r){var o=r.callbackToRemoveEvents;o&&o(),this._xhrMem.delete(t)}},XMLHttpRequestInstrumentation.prototype._createSpan=function(t,r,o){var i;if(!(0,h.d)(r,this.getConfig().ignoreUrls)){var a=o.toUpperCase(),u=this.tracer.startSpan(a,{kind:c.M.CLIENT,attributes:(i={},i[P]=o,i[O]=(0,A.en)(r).toString(),i)});return u.addEvent(v.METHOD_OPEN),this._cleanPreviousSpanInformation(t),this._xhrMem.set(t,{span:u,spanUrl:r}),u}this._diag.debug("ignoring span as url matches ignored url")},XMLHttpRequestInstrumentation.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},XMLHttpRequestInstrumentation.prototype._patchOpen=function(){var t=this;return function(r){var o=t;return function patchOpen(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var a=t[0],u=t[1];return o._createSpan(this,u,a),r.apply(this,t)}}},XMLHttpRequestInstrumentation.prototype._patchSend=function(){var t=this;function endSpan(r,o){var i=t._xhrMem.get(o);if(i){i.status=o.status,i.statusText=o.statusText,t._xhrMem.delete(o),i.span&&t._applyAttributesAfterXHR(i.span,o);var a=(0,_.Jt)(),u=Date.now();setTimeout(function(){!function endSpanTimeout(r,o,i,a){var u=o.callbackToRemoveEvents;"function"===typeof u&&u();var c=o.span,l=o.spanUrl,p=o.sendStartTime;c&&(t._findResourceAndAddNetworkEvents(o,c,l,p,i),c.addEvent(r,a),t._addFinalSpanAttributes(c,o,l),c.end(a),t._tasksCount--),t._clearResources()}(r,i,a,u)},300)}}function onError(){endSpan(v.EVENT_ERROR,this)}function onAbort(){endSpan(v.EVENT_ABORT,this)}function onTimeout(){endSpan(v.EVENT_TIMEOUT,this)}function onLoad(){this.status<299?endSpan(v.EVENT_LOAD,this):endSpan(v.EVENT_ERROR,this)}return function(r){return function patchSend(){for(var o=this,i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var l=t._xhrMem.get(this);if(!l)return r.apply(this,i);var p=l.span,d=l.spanUrl;if(p&&d){if(t.getConfig().measureRequestSize&&(null===i||void 0===i?void 0:i[0])){var h=getXHRBodyLength(i[0]);void 0!==h&&p.setAttribute(k,h)}a.D.with(u.g.setSpan(a.D.active(),p),function(){t._tasksCount++,l.sendStartTime=(0,_.Jt)(),p.addEvent(v.METHOD_SEND),o.addEventListener("abort",onAbort),o.addEventListener("error",onError),o.addEventListener("load",onLoad),o.addEventListener("timeout",onTimeout),l.callbackToRemoveEvents=function(){!function unregister(r){r.removeEventListener("abort",onAbort),r.removeEventListener("error",onError),r.removeEventListener("load",onLoad),r.removeEventListener("timeout",onTimeout);var o=t._xhrMem.get(r);o&&(o.callbackToRemoveEvents=void 0)}(o),l.createdResources&&l.createdResources.observer.disconnect()},t._addHeaders(o,d),t._addResourceObserver(o,d)})}return r.apply(this,i)}}},XMLHttpRequestInstrumentation.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),(0,l.UW)(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),(0,l.UW)(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},XMLHttpRequestInstrumentation.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},XMLHttpRequestInstrumentation}(p.w)},67407:function(t,r,o){o.d(r,{X:function(){return registerInstrumentations}});var i=o(21242),a=o(19284),u=o(73657);function registerInstrumentations(t){var r,o,c=t.tracerProvider||i.g.getTracerProvider(),l=t.meterProvider||a.q.getMeterProvider(),p=t.loggerProvider||u.TD.getLoggerProvider(),d=null!==(o=null===(r=t.instrumentations)||void 0===r?void 0:r.flat())&&void 0!==o?o:[];return function enableInstrumentations(t,r,o,i){for(var a=0,u=t.length;a<u;a++){var c=t[a];r&&c.setTracerProvider(r),o&&c.setMeterProvider(o),i&&c.setLoggerProvider&&c.setLoggerProvider(i),c.getConfig().enabled||c.enable()}}(d,c,l,p),function(){!function disableInstrumentations(t){t.forEach(function(t){return t.disable()})}(d)}}},14407:function(t,r,o){o.d(r,{w:function(){return h}});var i=o(67330),a=o(21242),u=o(19284),c=o(73657),l=o(29231),__assign=function(){return __assign=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},__assign.apply(this,arguments)},p=function(){function InstrumentationAbstract(t,r,o){this.instrumentationName=t,this.instrumentationVersion=r,this._config={},this._wrap=l.wrap,this._unwrap=l.unwrap,this._massWrap=l.massWrap,this._massUnwrap=l.massUnwrap,this.setConfig(o),this._diag=i.K.createComponentLogger({namespace:t}),this._tracer=a.g.getTracer(t,r),this._meter=u.q.getMeter(t,r),this._logger=c.TD.getL
2ogger(t,r),this._updateMetricInstruments()}return Object.defineProperty(InstrumentationAbstract.prototype,"meter",{get:function get(){return this._meter},enumerable:!1,configurable:!0}),InstrumentationAbstract.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(InstrumentationAbstract.prototype,"logger",{get:function get(){return this._logger},enumerable:!1,configurable:!0}),InstrumentationAbstract.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},InstrumentationAbstract.prototype.getModuleDefinitions=function(){var t,r=null!==(t=this.init())&&void 0!==t?t:[];return Array.isArray(r)?r:[r]},InstrumentationAbstract.prototype._updateMetricInstruments=function(){},InstrumentationAbstract.prototype.getConfig=function(){return this._config},InstrumentationAbstract.prototype.setConfig=function(t){this._config=__assign({enabled:!0},t)},InstrumentationAbstract.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(InstrumentationAbstract.prototype,"tracer",{get:function get(){return this._tracer},enumerable:!1,configurable:!0}),InstrumentationAbstract.prototype._runSpanCustomizationHook=function(t,r,o,i){if(t)try{t(o,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}},InstrumentationAbstract}(),d=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),h=function(t){function InstrumentationBase(r,o,i){var a=t.call(this,r,o,i)||this;return a._config.enabled&&a.enable(),a}return d(InstrumentationBase,t),InstrumentationBase}(p)},28276:function(t,r,o){o.d(r,{UW:function(){return isWrapped},_W:function(){return safeExecuteInTheMiddle}});function safeExecuteInTheMiddle(t,r,o){var i,a;try{a=t()}catch(u){i=u}finally{if(r(i,a),i&&!o)throw i;return a}}function isWrapped(t){return"function"===typeof t&&"function"===typeof t.__original&&"function"===typeof t.__unwrap&&!0===t.__wrapped}},68495:function(t,r,o){o.d(r,{_:function(){return L}});var i=o(67330);var a="service.name",u="telemetry.sdk.name",c="telemetry.sdk.language",l="telemetry.sdk.version",p=a,d=u,h=c,_=l;var v,y="process.runtime.name",g="telemetry.sdk.name",m="telemetry.sdk.language",T="telemetry.sdk.version",b=y,E=g,S=m,P=T,O="webjs",w=O,R=((v={})[E]="opentelemetry",v[b]="browser",v[S]=w,v[P]="1.30.1",v);var __assign=function(){return __assign=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},__assign.apply(this,arguments)},__awaiter=function(t,r,o,i){return new(o||(o=Promise))(function(a,u){function fulfilled(t){try{step(i.next(t))}catch(r){u(r)}}function rejected(t){try{step(i.throw(t))}catch(r){u(r)}}function step(t){t.done?a(t.value):function adopt(t){return t instanceof o?t:new o(function(r){r(t)})}(t.value).then(fulfilled,rejected)}step((i=i.apply(t,r||[])).next())})},__generator=function(t,r){var o,i,a,u,c={label:0,sent:function sent(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(l){return function step(u){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&u[0]?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,i=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){c.label=u[1];break}if(6===u[0]&&c.label<a[1]){c.label=a[1],a=u;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(u);break}a[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(t,c)}catch(l){u=[6,l],i=0}finally{o=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}},__read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},L=function(){function Resource(t,r){var o,a=this;this._attributes=t,this.asyncAttributesPending=null!=r,this._syncAttributes=null!==(o=this._attributes)&&void 0!==o?o:{},this._asyncAttributesPromise=null===r||void 0===r?void 0:r.then(function(t){return a._attributes=Object.assign({},a._attributes,t),a.asyncAttributesPending=!1,t},function(t){return i.K.debug("a resource's async attributes promise rejected: %s",t),a.asyncAttributesPending=!1,{}})}return Resource.empty=function(){return Resource.EMPTY},Resource.default=function(){var t;return new Resource(((t={})[p]="unknown_service",t[h]=R[h],t[d]=R[d],t[_]=R[_],t))},Object.defineProperty(Resource.prototype,"attributes",{get:function get(){var t;return this.asyncAttributesPending&&i.K.error("Accessing resource attributes before async attributes settled"),null!==(t=this._attributes)&&void 0!==t?t:{}},enumerable:!1,configurable:!0}),Resource.prototype.waitForAsyncAttributes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},Resource.prototype.merge=function(t){var r,o=this;if(!t)return this;var i=__assign(__assign({},this._syncAttributes),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new Resource(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(r){var i,a=__read(r,2),u=a[0],c=a[1];return __assign(__assign(__assign(__assign({},o._syncAttributes),u),null!==(i=t._syncAttributes)&&void 0!==i?i:t.attributes),c)});return new Resource(i,a)},Resource.EMPTY=new Resource({}),Resource}()},60842:function(t,r,o){var i;o.d(r,{U:function(){return i}}),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(i||(i={}))},80335:function(t,r,o){o.d(r,{p:function(){return g}});var i=o(67330),a=o(33826),u=o(20044),c=o(86064),l=function(){function Deferred(){var t=this;this._promise=new Promise(function(r,o){t._resolve=r,t._reject=o})}return Object.defineProperty(Deferred.prototype,"promise",{get:function get(){return this._promise},enumerable:!1,configurable:!0}),Deferred.prototype.resolve=function(t){this._resolve(t)},Deferred.prototype.reject=function(t){this._reject(t)},Deferred}(),__read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},__spreadArray=function(t,r,o){if(o||2===arguments.length)for(var i,a=0,u=r.length;a<u;a++)!i&&a in r||(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return t.concat(i||Array.prototype.slice.call(r))},p=function(){function BindOnceFuture(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new l}return Object.defineProperty(BindOnceFuture.prototype,"isCalled",{get:function get(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(BindOnceFuture.prototype,"promise",{get:function get(){return this._deferred.promise},enumerable:!1,configurable:!0}),BindOnceFuture.prototype.call=function(){for(var t,r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,__spreadArray([this._that],__read(o),!1))).then(function(t){return r._deferred.resolve(t)},function(t){return r._deferred.reject(t)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},BindOnceFuture}(),d=o(88152),h=o(73789),_=o(20192);var v=function(){function BatchSpanProcessorBase(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var o=(0,c.d)();this._maxExportBatchSize="number"===typeof(null===r||void 0===r?void 0:r.maxExportBatchSize)?r.maxExportBatchSize:o.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"===typeof(null===r||void 0===r?void 0:r.maxQueueSize)?r.maxQueueSize:o.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"===typeof(null===r||void 0===r?void 0:r.scheduledDelayMillis)?r.scheduledDelayMillis:o.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"===typeof(null===r||void 0===r?void 0:r.exportTimeoutMillis)?r.exportTimeoutMillis:o.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new p(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(i.K.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return BatchSpanProcessorBase.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},BatchSpanProcessorBase.prototype.onStart=function(t,r){},BatchSpanProcessorBase.prototype.onEnd=function(t){this._shutdownOnce.isCalled||0!==(t.spanContext().traceFlags&a.r.SAMPLED)&&this._addToBuffer(t)},BatchSpanProcessorBase.prototype.shutdown=function(){return this._shutdownOnce.call()},BatchSpanProcessorBase.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},BatchSpanProcessorBase.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&i.K.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(i.K.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},BatchSpanProcessorBase.prototype._flushAll=function(){var t=this;return new Promise(function(r,o){for(var i=[],a=0,u=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);a<u;a++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(o)})},BatchSpanProcessorBase.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(function(r,o){var i=setTimeout(function(){o(new Error("Timeout"))},t._exportTimeoutMillis);u.D.with((0,d.hE)(u.D.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var u=function doExport(){return t._exporter.export(a,function(t){var a;clearTimeout(i),t.code===h.I.SUCCESS?r():o(null!==(a=t.error)&&void 0!==a?a:new Error("BatchSpanProcessor: span export failed"))})},c=null,l=0,p=a.length;l<p;l++){var d=a[l];d.resource.asyncAttributesPending&&d.resource.waitForAsyncAttributes&&(null!==c&&void 0!==c||(c=[]),c.push(d.resource.waitForAsyncAttributes()))}null===c?u():Promise.all(c).then(u,function(t){(0,_.L)(t),o(t)})})})},BatchSpanProcessorBase.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function flush(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){t._isExporting=!1,(0,_.L)(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();void 0===this._timer&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),this._timer)}},BatchSpanProcessorBase.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},BatchSpanProcessorBase}(),y=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),g=function(t){function BatchSpanProcessor(r,o){var i=t.call(this,r,o)||this;return i.onInit(o),i}return y(BatchSpanProcessor,t),BatchSpanProcessor.prototype.onInit=function(t){var r=this;!0!==(null===t||void 0===t?void 0:t.disableAutoFlushOnDocumentHide)&&"undefined"!==typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&r.forceFlush().catch(function(t){(0,_.L)(t)})},this._pageHideListener=function(){r.forceFlush().catch(function(t){(0,_.L)(t)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},BatchSpanProcessor.prototype.onShutdown=function(){"undefined"!==typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},BatchSpanProcessor}(v)},34046:function(t,r,o){o.d(r,{_:function(){return a}});var i=o(60842),a=function(){function AlwaysOffSampler(){}return AlwaysOffSampler.prototype.shouldSample=function(){return{decision:i.U.NOT_RECORD}},AlwaysOffSampler.prototype.toString=function(){return"AlwaysOffSampler"},AlwaysOffSampler}()},82685:function(t,r,o){o.d(r,{t:function(){return a}});var i=o(60842),a=function(){function AlwaysOnSampler(){}return AlwaysOnSampler.prototype.shouldSample=function(){return{decision:i.U.RECORD_AND_SAMPLED}},AlwaysOnSampler.prototype.toString=function(){return"AlwaysOnSampler"},AlwaysOnSampler}()},12654:function(t,r,o){o.d(r,{N:function(){return d}});var i=o(21242),a=o(26634),u=o(33826),c=o(20192),l=o(34046),p=o(82685),d=function(){function ParentBasedSampler(t){var r,o,i,a;this._root=t.root,this._root||((0,c.L)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new p.t),this._remoteParentSampled=null!==(r=t.remoteParentSampled)&&void 0!==r?r:new p.t,this._remoteParentNotSampled=null!==(o=t.remoteParentNotSampled)&&void 0!==o?o:new l._,this._localParentSampled=null!==(i=t.localParentSampled)&&void 0!==i?i:new p.t,this._localParentNotSampled=null!==(a=t.localParentNotSampled)&&void 0!==a?a:new l._}return ParentBasedSampler.prototype.shouldSample=function(t,r,o,c,l,p){var d=i.g.getSpanContext(t);return d&&(0,a.BM)(d)?d.isRemote?d.traceFlags&u.r.SAMPLED?this._remoteParentSampled.shouldSample(t,r,o,c,l,p):this._remoteParentNotSampled.shouldSample(t,r,o,c,l,p):d.traceFlags&u.r.SAMPLED?this._localParentSampled.shouldSample(t,r,o,c,l,p):this._localParentNotSampled.shouldSample(t,r,o,c,l,p):this._root.shouldSample(t,r,o,c,l,p)},ParentBasedSampler.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ParentBasedSampler}()},79486:function(t,r,o){o.d(r,{a:function(){return u}});var i=o(26634),a=o(60842),u=function(){function TraceIdRatioBasedSampler(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return TraceIdRatioBasedSampler.prototype.shouldSample=function(t,r){return{decision:(0,i.jN)(r)&&this._accumulate(r)<this._upperBound?a.U.RECORD_AND_SAMPLED:a.U.NOT_RECORD}},TraceIdRatioBasedSampler.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},TraceIdRatioBasedSampler.prototype._normalize=function(t){return"number"!==typeof t||isNaN(t)?0:t>=1?1:t<=0?0:t},TraceIdRatioBasedSampler.prototype._accumulate=function(t){for(var r=0,o=0;o<t.length/8;o++){var i=8*o;r=(r^parseInt(t.slice(i,i+8),16))>>>0}return r},TraceIdRatioBasedSampler}()},55635:function(t,r,o){o.d(r,{m:function(){return ue}});var i=o(67330),a=o(21242),u=o(20044),c=o(88354);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}
2var l="[object Null]",p="[object Undefined]",d=Function.prototype.toString,h=d.call(Object),_=function overArg(t,r){return function(o){return t(r(o))}}(Object.getPrototypeOf,Object),v=Object.prototype,y=v.hasOwnProperty,g=Symbol?Symbol.toStringTag:void 0,m=v.toString;function isPlainObject(t){if(!function isObjectLike(t){return null!=t&&"object"==_typeof(t)}(t)||"[object Object]"!==function baseGetTag(t){if(null==t)return void 0===t?p:l;return g&&g in Object(t)?function getRawTag(t){var r=y.call(t,g),o=t[g],i=!1;try{t[g]=void 0,i=!0}catch(u){}var a=m.call(t);i&&(r?t[g]=o:delete t[g]);return a}(t):function objectToString(t){return m.call(t)}(t)}(t))return!1;var r=_(t);if(null===r)return!0;var o=y.call(r,"constructor")&&r.constructor;return"function"==typeof o&&o instanceof o&&d.call(o)===h}function merge_typeof(t){return merge_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},merge_typeof(t)}function takeValue(t){return isArray(t)?t.slice():t}function mergeTwoObjects(t,r,o,i){var a;if(void 0===o&&(o=0),!(o>20)){if(o++,isPrimitive(t)||isPrimitive(r)||isFunction(r))a=takeValue(r);else if(isArray(t)){if(a=t.slice(),isArray(r))for(var u=0,c=r.length;u<c;u++)a.push(takeValue(r[u]));else if(isObject(r))for(u=0,c=(l=Object.keys(r)).length;u<c;u++){a[p=l[u]]=takeValue(r[p])}}else if(isObject(t))if(isObject(r)){if(!function shouldMerge(t,r){if(!isPlainObject(t)||!isPlainObject(r))return!1;return!0}(t,r))return r;a=Object.assign({},t);var l;for(u=0,c=(l=Object.keys(r)).length;u<c;u++){var p,d=r[p=l[u]];if(isPrimitive(d))"undefined"===typeof d?delete a[p]:a[p]=d;else{var h=a[p],_=d;if(wasObjectReferenced(t,p,i)||wasObjectReferenced(r,p,i))delete a[p];else{if(isObject(h)&&isObject(_)){var v=i.get(h)||[],y=i.get(_)||[];v.push({obj:t,key:p}),y.push({obj:r,key:p}),i.set(h,v),i.set(_,y)}a[p]=mergeTwoObjects(a[p],d,o,i)}}}}else a=r;return a}}function wasObjectReferenced(t,r,o){for(var i=o.get(t[r])||[],a=0,u=i.length;a<u;a++){var c=i[a];if(c.key===r&&c.obj===t)return!0}return!1}function isArray(t){return Array.isArray(t)}function isFunction(t){return"function"===typeof t}function isObject(t){return!isPrimitive(t)&&!isArray(t)&&!isFunction(t)&&"object"===merge_typeof(t)}function isPrimitive(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"undefined"===typeof t||t instanceof Date||t instanceof RegExp||null===t}var T=o(86064),__values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function CompositePropagator(t){var r;void 0===t&&(t={}),this._propagators=null!==(r=t.propagators)&&void 0!==r?r:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"===typeof t.fields?t.fields():[]}).reduce(function(t,r){return t.concat(r)},[])))}return CompositePropagator.prototype.inject=function(t,r,o){var a,u;try{for(var c=__values(this._propagators),l=c.next();!l.done;l=c.next()){var p=l.value;try{p.inject(t,r,o)}catch(d){i.K.warn("Failed to inject with "+p.constructor.name+". Err: "+d.message)}}}catch(h){a={error:h}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}},CompositePropagator.prototype.extract=function(t,r,o){return this._propagators.reduce(function(t,a){try{return a.extract(t,r,o)}catch(u){i.K.warn("Failed to extract with "+a.constructor.name+". Err: "+u.message)}return t},t)},CompositePropagator.prototype.fields=function(){return this._fields.slice()},CompositePropagator}
2(),E=o(88873),S=o(88152),P="baggage",O=o(87382),__read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c};function parsePairKeyValue(t){var r=t.split(";");if(!(r.length<=0)){var o=r.shift();if(o){var i=o.indexOf("=");if(!(i<=0)){var a,u=decodeURIComponent(o.substring(0,i).trim()),c=decodeURIComponent(o.substring(i+1).trim());return r.length>0&&(a=(0,O.u)(r.join(";"))),{key:u,value:c,metadata:a}}}}}var w,R=function(){function W3CBaggagePropagator(){}return W3CBaggagePropagator.prototype.inject=function(t,r,o){var i=c.u.getBaggage(t);if(i&&!(0,S.Ll)(t)){var a=function getKeyPairs(t){return t.getAllEntries().map(function(t){var r=__read(t,2),o=r[0],i=r[1],a=encodeURIComponent(o)+"="+encodeURIComponent(i.value);return void 0!==i.metadata&&(a+=";"+i.metadata.toString()),a})}(i).filter(function(t){return t.length<=4096}).slice(0,180),u=function serializeKeyPairs(t){return t.reduce(function(t,r){var o=t+(""!==t?",":"")+r;return o.length>8192?t:o},"")}(a);u.length>0&&o.set(r,P,u)}},W3CBaggagePropagator.prototype.extract=function(t,r,o){var i=o.get(r,P),a=Array.isArray(i)?i.join(","):i;if(!a)return t;var u={};return 0===a.length?t:(a.split(",").forEach(function(t){var r=parsePairKeyValue(t);if(r){var o={value:r.value};r.metadata&&(o.metadata=r.metadata),u[r.key]=o}}),0===Object.entries(u).length?t:c.u.setBaggage(t,c.u.createBaggage(u)))},W3CBaggagePropagator.prototype.fields=function(){return[P]},W3CBaggagePropagator}(),L=o(68495),C=o(89873),k=o(36607);!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(w||(w={}));var A=o(33826);function attributes_typeof(t){return attributes_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},attributes_typeof(t)}var I,attributes_values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},attributes_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c};function sanitizeAttributes(t){var r,o,a={};if("object"!==attributes_typeof(t)||null==t)return a;try{for(var u=attributes_values(Object.entries(t)),c=u.next();!c.done;c=u.next()){var l=attributes_read(c.value,2),p=l[0],d=l[1];isAttributeKey(p)?isAttributeValue(d)?Array.isArray(d)?a[p]=d.slice():a[p]=d:i.K.warn("Invalid attribute value set for key: "+p):i.K.warn("Invalid attribute key: "+p)}}catch(h){r={error:h}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return a}function isAttributeKey(t){return"string"===typeof t&&t.length>0}function isAttributeValue(t){return null==t||(Array.isArray(t)?function isHomogeneousAttributeValueArray(t){var r,o,i;try{for(var a=attributes_values(t),u=a.next();!u.done;u=a.next()){var c=u.value;if(null!=c){if(!i){if(isValidPrimitiveAttributeValue(c)){i=attributes_typeof(c);continue}return!1}if(attributes_typeof(c)!==i)return!1}}}catch(l){r={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return!0}(t):isValidPrimitiveAttributeValue(t))}function isValidPrimitiveAttributeValue(t){switch(attributes_typeof(t)){case"number":case"boolean":case"string":return!0}return!1}!function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(I||(I={}));var N=o(22863),M=o(2757);var D="exception.type",x="exception.message",j="exception.stacktrace",B=D,U=x,H=j;function Span_typeof(t){return Span_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Span_typeof(t)}var __assign=function(){return __assign=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},__assign.apply(this,arguments)},Span_values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Span_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},__spreadArray=function(t,r,o){if(o||2===arguments.length)for(var i,a=0,u=r.length;a<u;a++)!i&&a in r||(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return t.concat(i||Array.prototype.slice.call(r))},Z=function(){function Span(t,r,o,i,a,u,c,l,p,d){void 0===c&&(c=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:I.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=o,this._spanContext=i,this.parentSpanId=u,this.kind=a,this.links=c;var h=Date.now();this._performanceStartTime=N.t.now(),this._performanceOffset=h-(this._performanceStartTime+(0,M.U)()),this._startTimeProvided=null!=l,this.startTime=this._getTime(null!==l&&void 0!==l?l:h),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=d&&this.setAttributes(d),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return Span.prototype.spanContext=function(){return this._spanContext},Span.prototype.setAttribute=function(t,r){return null==r||this._isSpanEnded()?this:0===t.length?(i.K.warn("Invalid attribute key: "+t),this):isAttributeValue(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(i.K.warn("Invalid attribute value set for key: "+t),this)},Span.prototype.setAttributes=function(t){var r,o;try{for(var i=Span_values(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=Span_read(a.value,2),c=u[0],l=u[1];this.setAttribute(c,l)}}catch(p){r={error:p}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return this},Span.prototype.addEvent=function(t,r,o){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return i.K.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&i.K.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,M.X_)(r)&&((0,M.X_)(o)||(o=r),r=void 0);var a=sanitizeAttributes(r);return this.events.push({name:t,attributes:a,time:this._getTime(o),droppedAttributesCount:0}),this},Span.prototype.addLink=function(t){return this.links.push(t),this},Span.prototype.addLinks=function(t){var r;return(r=this.links).push.apply(r,__spreadArray([],Span_read(t),!1)),this},Span.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=__assign({},t),null!=this.status.message&&"string"!==typeof t.message&&(i.K.warn("Dropping invalid status.message of type '"+Span_typeof(t.message)+"', expected 'string'"),delete this.status.message)),this},Span.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},Span.prototype.end=function(t){this._isSpanEnded()?i.K.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(t),this._duration=(0,M.J3)(this.startTime,this.endTime),this._duration[0]<0&&(i.K.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&i.K.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},Span.prototype._getTime=function(t){if("number"===typeof t&&t<=N.t.now())return(0,M.Jt)(t+this._performanceOffset);if("number"===typeof t)return(0,M.i5)(t);if(t instanceof Date)return(0,M.i5)(t.getTime());if((0,M.Dt)(t))return t;if(this._startTimeProvided)return(0,M.i5)(Date.now());var r=N.t.now()-this._performanceStartTime;return(0,M.vF)(this.startTime,(0,M.i5)(r))},Span.prototype.isRecording=function(){return!1===this._ended},Span.prototype.recordException=function(t,r){var o={};"string"===typeof t?o[U]=t:t&&(t.code?o[B]=t.code.toString():t.name&&(o[B]=t.name),t.message&&(o[U]=t.message),t.stack&&(o[H]=t.stack)),o[B]||o[U]?this.addEvent("exception",o,r):i.K.warn("Failed to record an exception "+t)},Object.defineProperty(Span.prototype,"duration",{get:function get(){return this._duration}
2,enumerable:!1,configurable:!0}),Object.defineProperty(Span.prototype,"ended",{get:function get(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(Span.prototype,"droppedAttributesCount",{get:function get(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(Span.prototype,"droppedEventsCount",{get:function get(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(Span.prototype,"droppedLinksCount",{get:function get(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),Span.prototype._isSpanEnded=function(){return this._ended&&i.K.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},Span.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},Span.prototype._truncateToSize=function(t){var r=this,o=this._attributeValueLengthLimit;return o<=0?(i.K.warn("Attribute value limit must be positive, got "+o),t):"string"===typeof t?this._truncateToLimitUtil(t,o):Array.isArray(t)?t.map(function(t){return"string"===typeof t?r._truncateToLimitUtil(t,o):t}):t},Span}(),z=o(9608),X=o(34046),G=o(82685),V=o(12654),K=o(79486),W=z.J.AlwaysOn;function loadDefaultConfig(){var t=(0,T.d)();return{sampler:buildSamplerFromEnv(t),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function buildSamplerFromEnv(t){switch(void 0===t&&(t=(0,T.d)()),t.OTEL_TRACES_SAMPLER){case z.J.AlwaysOn:return new G.t;case z.J.AlwaysOff:return new X._;case z.J.ParentBasedAlwaysOn:return new V.N({root:new G.t});case z.J.ParentBasedAlwaysOff:return new V.N({root:new X._});case z.J.TraceIdRatio:return new K.a(getSamplerProbabilityFromEnv(t));case z.J.ParentBasedTraceIdRatio:return new V.N({root:new K.a(getSamplerProbabilityFromEnv(t))});default:return i.K.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+W+'".'),new G.t}}function getSamplerProbabilityFromEnv(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return i.K.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var r=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(r)?(i.K.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):r<0||r>1?(i.K.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):r}var q=o(53115);var J=function J(){this.generateTraceId=getIdGenerator(16),this.generateSpanId=getIdGenerator(8)},Q=Array(32);function getIdGenerator(t){return function generateId(){for(var r=0;r<2*t;r++)Q[r]=Math.floor(16*Math.random())+48,Q[r]>=58&&(Q[r]+=39);return String.fromCharCode.apply(null,Q.slice(0,2*t))}}var Y,$=function(){function Tracer(t,r,o){this._tracerProvider=o;var i=function mergeConfig(t){var r={sampler:buildSamplerFromEnv()},o=loadDefaultConfig(),i=Object.assign({},o,r,t);return i.generalLimits=Object.assign({},o.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},o.spanLimits,t.spanLimits||{}),i}(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new J,this.resource=o.resource,this.instrumentationLibrary=t}return Tracer.prototype.startSpan=function(t,r,o){var c,l,p;void 0===r&&(r={}),void 0===o&&(o=u.D.active()),r.root&&(o=a.g.deleteSpan(o));var d=a.g.getSpan(o);if((0,S.Ll)(o))return i.K.debug("Instrumentation suppressed, returning Noop Span"),a.g.wrapSpanContext(C.Rr);var h,_,v,y=null===d||void 0===d?void 0:d.spanContext(),g=this._idGenerator.generateSpanId();y&&a.g.isSpanContextValid(y)?(h=y.traceId,_=y.traceState,v=y.spanId):h=this._idGenerator.generateTraceId();var m=null!==(c=r.kind)&&void 0!==c?c:k.M.INTERNAL,T=(null!==(l=r.links)&&void 0!==l?l:[]).map(function(t){return{context:t.context,attributes:sanitizeAttributes(t.attributes)}}),b=sanitizeAttributes(r.attributes),E=this._sampler.shouldSample(o,h,t,m,b,T);_=null!==(p=E.traceState)&&void 0!==p?p:_;var P={traceId:h,spanId:g,traceFlags:E.decision===w.RECORD_AND_SAMPLED?A.r.SAMPLED:A.r.NONE,traceState:_};if(E.decision===w.NOT_RECORD)return i.K.debug("Recording is off, prop
2agating context in a non-recording span"),a.g.wrapSpanContext(P);var O=sanitizeAttributes(Object.assign(b,E.attributes));return new Z(this,o,t,P,m,v,T,r.startTime,void 0,O)},Tracer.prototype.startActiveSpan=function(t,r,o,i){var c,l,p;if(!(arguments.length<2)){2===arguments.length?p=r:3===arguments.length?(c=r,p=o):(c=r,l=o,p=i);var d=null!==l&&void 0!==l?l:u.D.active(),h=this.startSpan(t,c,d),_=a.g.setSpan(d,h);return u.D.with(_,p,void 0,h)}},Tracer.prototype.getGeneralLimits=function(){return this._generalLimits},Tracer.prototype.getSpanLimits=function(){return this._spanLimits},Tracer.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},Tracer}(),ee=o(20192),MultiSpanProcessor_values=function(t){var r="function"===typeof Symbol&&Symbol.iterator,o=r&&t[r],i=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function next(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},te=function(){function MultiSpanProcessor(t){this._spanProcessors=t}return MultiSpanProcessor.prototype.forceFlush=function(){var t,r,o=[];try{for(var i=MultiSpanProcessor_values(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;o.push(u.forceFlush())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(t){Promise.all(o).then(function(){t()}).catch(function(r){(0,ee.L)(r||new Error("MultiSpanProcessor: forceFlush failed")),t()})})},MultiSpanProcessor.prototype.onStart=function(t,r){var o,i;try{for(var a=MultiSpanProcessor_values(this._spanProcessors),u=a.next();!u.done;u=a.next()){u.value.onStart(t,r)}}catch(c){o={error:c}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},MultiSpanProcessor.prototype.onEnd=function(t){var r,o;try{for(var i=MultiSpanProcessor_values(this._spanProcessors),a=i.next();!a.done;a=i.next()){a.value.onEnd(t)}}catch(u){r={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},MultiSpanProcessor.prototype.shutdown=function(){var t,r,o=[];try{for(var i=MultiSpanProcessor_values(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;o.push(u.shutdown())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(t,r){Promise.all(o).then(function(){t()},r)})},MultiSpanProcessor}(),re=function(){function NoopSpanProcessor(){}return NoopSpanProcessor.prototype.onStart=function(t,r){},NoopSpanProcessor.prototype.onEnd=function(t){},NoopSpanProcessor.prototype.shutdown=function(){return Promise.resolve()},NoopSpanProcessor.prototype.forceFlush=function(){return Promise.resolve()},NoopSpanProcessor}(),ne=o(80335),BasicTracerProvider_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}
2finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},BasicTracerProvider_spreadArray=function(t,r,o){if(o||2===arguments.length)for(var i,a=0,u=r.length;a<u;a++)!i&&a in r||(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return t.concat(i||Array.prototype.slice.call(r))};!function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"}(Y||(Y={}));var oe=function(){function BasicTracerProvider(t){var r,o;void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var i=function merge(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var o=t.shift(),i=new WeakMap;t.length>0;)o=mergeTwoObjects(o,t.shift(),0,i);return o}({},loadDefaultConfig(),function reconfigureLimits(t){var r,o,i,a,u,c,l,p,d,h,_,v,y=Object.assign({},t.spanLimits),g=(0,T.v)();return y.attributeCountLimit=null!==(c=null!==(u=null!==(a=null!==(o=null===(r=t.spanLimits)||void 0===r?void 0:r.attributeCountLimit)&&void 0!==o?o:null===(i=t.generalLimits)||void 0===i?void 0:i.attributeCountLimit)&&void 0!==a?a:g.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)&&void 0!==u?u:g.OTEL_ATTRIBUTE_COUNT_LIMIT)&&void 0!==c?c:q.qG,y.attributeValueLengthLimit=null!==(v=null!==(_=null!==(h=null!==(p=null===(l=t.spanLimits)||void 0===l?void 0:l.attributeValueLengthLimit)&&void 0!==p?p:null===(d=t.generalLimits)||void 0===d?void 0:d.attributeValueLengthLimit)&&void 0!==h?h:g.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==_?_:g.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)&&void 0!==v?v:q.KR,Object.assign({},t,{spanLimits:y})}(t));if(this.resource=null!==(r=i.resource)&&void 0!==r?r:L._.empty(),i.mergeResourceWithDefaults&&(this.resource=L._.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),null===(o=t.spanProcessors)||void 0===o?void 0:o.length)this._registeredSpanProcessors=BasicTracerProvider_spreadArray([],BasicTracerProvider_read(t.spanProcessors),!1),this.activeSpanProcessor=new te(this._registeredSpanProcessors);else{var a=this._buildExporterFromEnv();if(void 0!==a){var u=new ne.p(a);this.activeSpanProcessor=u}else this.activeSpanProcessor=new re}}return BasicTracerProvider.prototype.getTracer=function(t,r,o){var i=t+"@"+(r||"")+":"+((null===o||void 0===o?void 0:o.schemaUrl)||"");return this._tracers.has(i)||this._tracers.set(i,new $({name:t,version:r,schemaUrl:null===o||void 0===o?void 0:o.schemaUrl},this._config,this)),this._tracers.get(i)},BasicTracerProvider.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(t){return i.K.error("Error while trying to shutdown current span processor",t)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new te(this._registeredSpanProcessors)},BasicTracerProvider.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},BasicTracerProvider.prototype.register=function(t){void 0===t&&(t={}),a.g.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&u.D.setGlobalContextManager(t.contextManager),t.propagator&&c.u.setGlobalPropagator(t.propagator)},BasicTracerProvider.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(r){return new Promise(function(o){var i,a=setTimeout(function(){o(new Error("Span processor did not completed within timeout period of "+t+" ms")),i=Y.timeout},t);r.forceFlush().then(function(){clearTimeout(a),i!==Y.timeout&&(i=Y.resolved,o(i))}).catch(function(t){clearTimeout(a),i=Y.error,o(t)})})});return new Promise(function(t,o){Promise.all(r).then(function(r){var i=r.filter(function(t){return t!==Y.resolved});i.length>0?o(i):t()}).catch(function(t){return o([t])})})},BasicTracerProvider.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},BasicTracerProvider.prototype._getPropagator=function(t){var r;return null===(r=this.constructor._registeredPropagators.get(t))||void 0===r?void 0:r()},BasicTracerProvider.prototype._getSpanExporter=function(t){var r;return null===(r=this.constructor._registeredExporters.get(t))||void 0===r?void 0:r()},BasicTracerProvider.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set((0,T.d)().OTEL_PROPAGATORS)),o=r.map(function(r){var o=t._getPropagator(r);return o||i.K.warn('Propagator "'+r+'" requested through environment variable is unavailable.'),o}).reduce(function(t,r){return r&&t.push(r),t},[]);return 0===o.length?void 0:1===r.length?o[0]:new b({propagators:o})},BasicTracerProvider.prototype._buildExporterFromEnv=function(){var t=(0,T.d)().OTEL_TRACES_EXPORTER;if("none"!==t&&""!==t){var r=this._getSpanExporter(t);return r||i.K.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},BasicTracerProvider._registeredPropagators=new Map([["tracecontext",function(){return new E.jf}],["baggage",function(){return new R}]]),BasicTracerProvider._registeredExporters=new Map,BasicTracerProvider}
2(),ie=o(91348),StackContextManager_read=function(t,r){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,a,u=o.call(t),c=[];try{for(;(void 0===r||r-- >0)&&!(i=u.next()).done;)c.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}return c},StackContextManager_spreadArray=function(t,r,o){if(o||2===arguments.length)for(var i,a=0,u=r.length;a<u;a++)!i&&a in r||(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return t.concat(i||Array.prototype.slice.call(r))},ae=function(){function StackContextManager(){this._enabled=!1,this._currentContext=ie.I}return StackContextManager.prototype._bindFunction=function(t,r){void 0===t&&(t=ie.I);var o=this,i=function contextWrapper(){for(var i=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return o.with(t,function(){return r.apply(i,a)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i},StackContextManager.prototype.active=function(){return this._currentContext},StackContextManager.prototype.bind=function(t,r){return void 0===t&&(t=this.active()),"function"===typeof r?this._bindFunction(t,r):r},StackContextManager.prototype.disable=function(){return this._currentContext=ie.I,this._enabled=!1,this},StackContextManager.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=ie.I),this},StackContextManager.prototype.with=function(t,r,o){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var u=this._currentContext;this._currentContext=t||ie.I;try{return r.call.apply(r,StackContextManager_spreadArray([o],StackContextManager_read(i),!1))}finally{this._currentContext=u}},StackContextManager}(),se=function(){var t=function extendStatics(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};return function(r,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}}(),ue=function(t){function WebTracerProvider(r){void 0===r&&(r={});var o=t.call(this,r)||this;if(r.contextManager)throw"contextManager should be defined in register method not in constructor";if(r.propagator)throw"propagator should be defined in register method not in constructor";return o}return se(WebTracerProvider,t),WebTracerProvider.prototype.register=function(r){void 0===r&&(r={}),void 0===r.contextManager&&(r.contextManager=new ae),r.contextManager&&r.contextManager.enable(),t.prototype.register.call(this,r)},WebTracerProvider}(oe)},17713:function(t,r,o){var i;o.d(r,{S:function(){return i}}),function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(i||(i={}))},53165:function(t,r,o){o.d(r,{M4:function(){return addSpanNetworkEvent},lx:function(){return addSpanNetworkEvents},RX:function(){return getResource},wH:function(){return hasKey},en:function(){return parseUrl},n4:function(){return shouldPropagateTraceHeaders}});var i=o(17713),a=o(2757),u=o(17044);var c,l="http.response_content_length",p="http.response_content_length_uncompressed",d=l,h=p;function hasKey(t,r){return r in t}function addSpanNetworkEvent(t,r,o,a){var u=void 0,c=void 0;hasKey(o,r)&&"number"===typeof o[r]&&(u=o[r]);var l=a||i.S.FETCH_START;if(hasKey(o,l)&&"number"===typeof o[l]&&(c=o[l]),void 0!==u&&void 0!==c&&u>=c)return t.addEvent(r,u),t}
2function addSpanNetworkEvents(t,r,o){void 0===o&&(o=!1),o||(addSpanNetworkEvent(t,i.S.FETCH_START,r),addSpanNetworkEvent(t,i.S.DOMAIN_LOOKUP_START,r),addSpanNetworkEvent(t,i.S.DOMAIN_LOOKUP_END,r),addSpanNetworkEvent(t,i.S.CONNECT_START,r),hasKey(r,"name")&&r.name.startsWith("https:")&&addSpanNetworkEvent(t,i.S.SECURE_CONNECTION_START,r),addSpanNetworkEvent(t,i.S.CONNECT_END,r),addSpanNetworkEvent(t,i.S.REQUEST_START,r),addSpanNetworkEvent(t,i.S.RESPONSE_START,r),addSpanNetworkEvent(t,i.S.RESPONSE_END,r));var a=r[i.S.ENCODED_BODY_SIZE];void 0!==a&&t.setAttribute(d,a);var u=r[i.S.DECODED_BODY_SIZE];void 0!==u&&a!==u&&t.setAttribute(h,u)}function getOrigin(){return"undefined"!==typeof location?location.origin:void 0}function getResource(t,r,o,u,c,l){void 0===c&&(c=new WeakSet);var p=parseUrl(t),d=function filterResourcesForSpan(t,r,o,u,c,l){var p=(0,a.PW)(r),d=(0,a.PW)(o),h=u.filter(function(r){var o=(0,a.PW)((0,a.aE)(r[i.S.FETCH_START])),u=(0,a.PW)((0,a.aE)(r[i.S.RESPONSE_END]));return r.initiatorType.toLowerCase()===(l||"xmlhttprequest")&&r.name===t&&o>=p&&u<=d});h.length>0&&(h=h.filter(function(t){return!c.has(t)}));return h}(t=p.toString(),r,o,u,c,l);if(0===d.length)return{mainRequest:void 0};if(1===d.length)return{mainRequest:d[0]};var h=function sortResources(t){return t.slice().sort(function(t,r){var o=t[i.S.FETCH_START],a=r[i.S.FETCH_START];return o>a?1:o<a?-1:0})}(d);if(p.origin!==getOrigin()&&h.length>1){var _=h[0],v=function findMainRequest(t,r,o){for(var u,c=(0,a.PW)(o),l=(0,a.PW)((0,a.aE)(r)),p=t[1],d=t.length,h=1;h<d;h++){var _=t[h],v=(0,a.PW)((0,a.aE)(_[i.S.FETCH_START])),y=c-(0,a.PW)((0,a.aE)(_[i.S.RESPONSE_END]));v>=l&&(!u||y<u)&&(u=y,p=_)}return p}(h,_[i.S.RESPONSE_END],o),y=_[i.S.RESPONSE_END];return v[i.S.FETCH_START]<y&&(v=_,_=void 0),{corsPreFlightRequest:_,mainRequest:v}}return{mainRequest:d[0]}}function parseUrl(t){if("function"===typeof URL)return new URL(t,"undefined"!==typeof document?document.baseURI:"undefined"!==typeof location?location.href:void 0);var r=function getUrlNormalizingAnchor(){return c||(c=document.createElement("a")),c}();return r.href=t,r}function shouldPropagateTraceHeaders(t,r){var o=r||[];return("string"===typeof o||o instanceof RegExp)&&(o=[o]),parseUrl(t).origin===getOrigin()||o.some(function(r){return(0,u.j)(t,r)})}},29231:function(t){function isFunction(t){return"function"===typeof t}var r=console.error.bind(console);function defineProperty(t,r,o){var i=!!t[r]&&t.propertyIsEnumerable(r);Object.defineProperty(t,r,{configurable:!0,enumerable:i,writable:!0,value:o})}function shimmer(t){t&&t.logger&&(isFunction(t.logger)?r=t.logger:r("new logger isn't a function, not replacing"))}function wrap(t,o,i){if(t&&t[o]){if(!i)return r("no wrapper function"),void r((new Error).stack);if(isFunction(t[o])&&isFunction(i)){var a=t[o],u=i(a,o);return defineProperty(u,"__original",a),defineProperty(u,"__unwrap",function(){t[o]===u&&defineProperty(t,o,a)}),defineProperty(u,"__wrapped",!0),defineProperty(t,o,u),u}r("original object and wrapper must be functions")}else r("no original function "+o+" to wrap")}function unwrap(t,o){return t&&t[o]?t[o].__unwrap?t[o].__unwrap():void r("no original to unwrap to -- has "+o+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}shimmer.wrap=wrap,shimmer.massWrap=function massWrap(t,o,i){if(!t)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(t)||(t=[t]),o&&Array.isArray(o)?t.forEach(function(t){o.forEach(function(r){wrap(t,r,i)})}):r("must provide one or more functions to wrap on modules")},shimmer.unwrap=unwrap,shimmer.massUnwrap=function massUnwrap(t,o){if(!t)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(t)||(t=[t]),o&&Array.isArray(o)?t.forEach(function(t){o.forEach(function(r){unwrap(t,r)})}):r("must provide one or more functions to unwrap on modules")},t.exports=shimmer},86162:function(){function _createForOfIteratorHelper(t,r){var o="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"===typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"===typeof t.length){o&&(t=o);var i=0,a=function F(){};return{s:a,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:a}}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 u,c=!0,l=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){l=!0,u=t},f:function f(){try{c||null==o.return||o.return()}finally{if(l)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,i=new Array(r);o<r;
2o++)i[o]=t[o];return i}function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),o.push.apply(o,i)}return o}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach(function(r){_defineProperty(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_toPropertyKey(i.key),i)}}function _createClass(t,r,o){return r&&_defineProperties(t.prototype,r),o&&_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty(t,r,o){return(r=_toPropertyKey(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function _toPropertyKey(t){var r=function _toPrimitive(t,r){if("object"!==_typeof(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,r||"default");if("object"!==_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===_typeof(r)?r:String(r)}var t=globalThis;function __symbol__(r){return(t.__Zone_symbol_prefix||"__zone_symbol__")+r}function initZone(){var r=t.performance;function mark(t){r&&r.mark&&r.mark(t)}function performanceMeasure(t,o){r&&r.measure&&r.measure(t,o)}mark("Zone");var o=function(){function ZoneImpl(t,r){_classCallCheck(this,ZoneImpl),_defineProperty(this,"_parent",void 0),_defineProperty(this,"_name",void 0),_defineProperty(this,"_properties",void 0),_defineProperty(this,"_zoneDelegate",void 0),this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,r)}return _createClass(ZoneImpl,[{key:"parent",get:function get(){return this._parent}},{key:"name",get:function get(){return this._name}},{key:"get",value:function get(t){var r=this.getZoneWith(t);if(r)return r._properties[t]}},{key:"getZoneWith",value:function getZoneWith(t){for(var r=this;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}},{key:"fork",value:function fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}},{key:"wrap",value:function wrap(t,r){if("function"!==typeof t)throw new Error("Expecting function got: "+t);var o=this._zoneDelegate.intercept(this,t,r),i=this;return function(){return i.runGuarded(o,this,arguments,r)}}},{key:"run",value:function run(t,r,o,i){L={parent:L,zone:this};try{return this._zoneDelegate.invoke(this,t,r,o,i)}finally{L=L.parent}}},{key:"runGuarded",value:function runGuarded(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;L={parent:L,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,o,i)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{L=L.parent}}},{key:"runTask",value:function runTask(t,r,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||v).name+"; Execution: "+this.name+")");var i=t,a=t.type,u=t.data,c=void 0===u?{}:u,l=c.isPeriodic,p=void 0!==l&&l,d=c.isRefreshable,h=void 0!==d&&d;if(t.state!==y||a!==O&&a!==P){var _=t.state!=T;_&&i._transitionTo(T,m);var b=C;C=i,L={parent:L,zone:this};try{a!=P||!t.data||p||h||(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,i,r,o)}catch(R){if(this._zoneDelegate.handleError(this,R))throw R}}finally{var S=t.state;if(S!==y&&S!==E)if(a==O||p||h&&S===g)_&&i._transitionTo(m,T,g);else{var w=i._zoneDelegates;this._updateTaskCount(i,-1),_&&i._transitionTo(y,T,y),h&&(i._zoneDelegates=w)}L=L.parent,C=b}}}},{key:"scheduleTask",value:function scheduleTask(t){if(t.zone&&t.zone!==this)for(var r=this;r;){if(r===t.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(t.zone.name));r=r.parent}t._transitionTo(g,y);var o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(i){throw t._transitionTo(E,g,y),this._zoneDelegate.handleError(this,i),i}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==g&&t._transitionTo(m,g),t}},{key:"scheduleMicroTask",value:function scheduleMicroTask(t,r,o,i){return this.scheduleTask(new c(S,t,r,o,i,void 0))}},{key:"scheduleMacroTask",value:function scheduleMacroTask(t,r,o,i,a){return this.scheduleTask(new c(P,t,r,o,i,a))}},{key:"scheduleEventTask",value:function scheduleEventTask(t,r,o,i,a){return this.scheduleTask(new c(O,t,r,o,i,a))}},{key:"cancelTask",value:function cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||v).name+"; Execution: "+this.name+")");if(t.state===m||t.state===T){t._transitionTo(b,m,T);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(E,b),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(y,b),t.runCount=-1,t}}},{key:"_updateTaskCount",value:function _updateTaskCount(t,r){var o=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(var i=0;i<o.length;i++)o[i]._updateTaskCount(t.type,r)}}],[{key:"assertZonePatched",value:function assertZonePatched(){if(t.Promise!==w.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}},{key:"root",get:function get(){for(var t=ZoneImpl.current;t.parent;)t=t.parent;return t}},{key:"current",get:function get(){return L.zone}},{key:"currentTask",get:function get(){return C}},{key:"__load_patch",value:function __load_patch(r,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(w.hasOwnProperty(r)){var a=!0===t[__symbol__("forceDuplicateZoneCheck")];if(!i&&a)throw Error("Already loaded patch: "+r)}else if(!t["__Zone_disable_"+r]){var u="Zone:"+r;mark(u),w[r]=o(t,ZoneImpl,R),performanceMeasure(u,u)}}}]),ZoneImpl}();_defineProperty(o,"__symbol__",__symbol__);var i,a={name:"",onHasTask:function onHasTask(t,r,o,i){return t.hasTask(o,i)},onScheduleTask:function onScheduleTask(t,r,o,i){return t.scheduleTask(o,i)},onInvokeTask:function onInvokeTask(t,r,o,i,a,u){return t.invokeTask(o,i,a,u)},onCancelTask:function onCancelTask(t,r,o,i){return t.cancelTask(o,i)}},u=function(){function _ZoneDelegate(t,r,o){_classCallCheck(this,_ZoneDelegate),_defineProperty(this,"_zone",void 0),_defineProperty(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),_defineProperty(this,"_parentDelegate",void 0),_defineProperty(this,"_forkDlgt",void 0),_defineProperty(this,"_forkZS",void 0),_defineProperty(this,"_forkCurrZone",void 0),_defineProperty(this,"_interceptDlgt",void 0),_defineProperty(this,"_interceptZS",void 0),_defineProperty(this,"_interceptCurrZone",void 0),_defineProperty(this,"_invokeDlgt",void 0),_defineProperty(this,"_invokeZS",void 0),_defineProperty(this,"_invokeCurrZone",void 0),_defineProperty(this,"_handleErrorDlgt",void 0),_defineProperty(this,"_handleErrorZS",void 0),_defineProperty(this,"_handleErrorCurrZone",void 0),_defineProperty(this,"_scheduleTaskDlgt",void 0),_defineProperty(this,"_scheduleTaskZS",void 0),_defineProperty(this,"_scheduleTaskCurrZone",void 0),_defineProperty(this,"_invokeTaskDlgt",void 0),_defineProperty(this,"_invokeTaskZS",void 0),_defineProperty(this,"_invokeTaskCurrZone",void 0),_defineProperty(this,"_cancelTaskDlgt",void 0),_defineProperty(this,"_cancelTaskZS",void 0),_defineProperty(this,"_cancelTaskCurrZone",void 0),_defineProperty(this,"_hasTaskDlgt",void 0),_defineProperty(this,"_hasTaskDlgtOwner",void 0),_defineProperty(this,"_hasTaskZS",void 0),_defineProperty(this,"_hasTaskCurrZone",void 0),this._zone=t,this._parentDelegate=r,this._forkZS=o&&(o&&o.onFork?o:r._forkZS),this._forkDlgt=o&&(o.onFork?r:r._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:r._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:r._interceptZS),this._interceptDlgt=o&&
2(o.onIntercept?r:r._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:r._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:r._invokeZS),this._invokeDlgt=o&&(o.onInvoke?r:r._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:r._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:r._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?r:r._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:r._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:r._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?r:r._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:r._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:r._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?r:r._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:r._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:r._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?r:r._cancelTaskDlgt),this._cancelTaskCurrZone=o&&
2(o.onCancelTask?this._zone:r._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var i=o&&o.onHasTask,u=r&&r._hasTaskZS;(i||u)&&(this._hasTaskZS=i?o:a,this._hasTaskDlgt=r,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=r,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=r,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=r,this._cancelTaskCurrZone=this._zone))}return _createClass(_ZoneDelegate,[{key:"zone",get:function get(){return this._zone}},{key:"fork",value:function fork(t,r){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,r):new o(t,r)}},{key:"intercept",value:function intercept(t,r,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,r,o):r}},{key:"invoke",value:function invoke(t,r,o,i,a){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,r,o,i,a):r.apply(o,i)}},{key:"handleError",value:function handleError(t,r){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,r)}},{key:"scheduleTask",value:function scheduleTask(t,r){var o=r;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),(o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,r))||(o=r);else if(r.scheduleFn)r.scheduleFn(r);else{if(r.type!=S)throw new Error("Task is missing scheduleFn.");scheduleMicroTask(r)}return o}},{key:"invokeTask",value:function invokeTask(t,r,o,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,r,o,i):r.callback.apply(o,i)}},{key:"cancelTask",value:function cancelTask(t,r){var o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,r);else{if(!r.cancelFn)throw Error("Task is not cancelable");o=r.cancelFn(r)}return o}},{key:"hasTask",value:function hasTask(t,r){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,r)}catch(o){this.handleError(t,o)}}},{key:"_updateTaskCount",value:function _updateTaskCount(t,r){var o=this._taskCounts,i=o[t],a=o[t]=i+r;if(a<0)throw new Error("More tasks executed then were scheduled.");if(0==i||0==a){var u={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this._zone,u)}}}]),_ZoneDelegate}(),c=function(){function ZoneTask(r,o,i,a,u,c){if(_classCallCheck(this,ZoneTask),_defineProperty(this,"type",void 0),_defineProperty(this,"source",void 0),_defineProperty(this,"invoke",void 0),_defineProperty(this,"callback",void 0),_defineProperty(this,"data",void 0),_defineProperty(this,"scheduleFn",void 0),_defineProperty(this,"cancelFn",void 0),_defineProperty(this,"_zone",null),_defineProperty(this,"runCount",0),_defineProperty(this,"_zoneDelegates",null),_defineProperty(this,"_state","notScheduled"),this.type=r,this.source=o,this.data=a,this.scheduleFn=u,this.cancelFn=c,!i)throw new Error("callback is not defined");this.callback=i;var l=this;r===O&&a&&a.useG?this.invoke=ZoneTask.invokeTask:this.invoke=function(){return ZoneTask.invokeTask.call(t,l,this,arguments)}}return _createClass(ZoneTask,[{key:"zone",get:function get(){return this._zone}},{key:"state",get:function get(){return this._state}},{key:"cancelScheduleRequest",value:function cancelScheduleRequest(){this._transitionTo(y,g)}},{key:"_transitionTo",value:function _transitionTo(t,r,o){if(this._state!==r&&this._state!==o)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(t,"', expecting state '").concat(r,"'").concat(o?" or '"+o+"'":"",", was '").concat(this._state,"'."));this._state=t,t==y&&(this._zoneDelegates=null)}},{key:"toString",value:function toString(){return this.data&&"undefined"!==typeof this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}}
2,{key:"toJSON",value:function toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function invokeTask(t,r,o){t||(t=this),k++;try{return t.runCount++,t.zone.runTask(t,r,o)}finally{1==k&&drainMicroTaskQueue(),k--}}}]),ZoneTask}(),l=__symbol__("setTimeout"),p=__symbol__("Promise"),d=__symbol__("then"),h=[],_=!1;function nativeScheduleMicroTask(r){if(i||t[p]&&(i=t[p].resolve(0)),i){var o=i[d];o||(o=i.then),o.call(i,r)}else t[l](r,0)}function scheduleMicroTask(t){0===k&&0===h.length&&nativeScheduleMicroTask(drainMicroTaskQueue),t&&h.push(t)}function drainMicroTaskQueue(){if(!_){for(_=!0;h.length;){var t=h;h=[];for(var r=0;r<t.length;r++){var o=t[r];try{o.zone.runTask(o,null,null)}catch(i){R.onUnhandledError(i)}}}R.microtaskDrainDone(),_=!1}}var v={name:"NO ZONE"},y="notScheduled",g="scheduling",m="scheduled",T="running",b="canceling",E="unknown",S="microTask",P="macroTask",O="eventTask",w={},R={symbol:__symbol__,currentZoneFrame:function currentZoneFrame(){return L},onUnhandledError:noop,microtaskDrainDone:noop,scheduleMicroTask:scheduleMicroTask,showUncaughtError:function showUncaughtError(){return!o[__symbol__("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function patchEventTarget(){return[]},patchOnProperties:noop,patchMethod:function patchMethod(){return noop},bindArguments:function bindArguments(){return[]},patchThen:function patchThen(){return noop},patchMacroTask:function patchMacroTask(){return noop},patchEventPrototype:function patchEventPrototype(){return noop},isIEOrEdge:function isIEOrEdge(){return!1},getGlobalObjects:function getGlobalObjects(){},ObjectDefineProperty:function ObjectDefineProperty(){return noop},ObjectGetOwnPropertyDescriptor:function ObjectGetOwnPropertyDescriptor(){},ObjectCreate:function ObjectCreate(){},ArraySlice:function ArraySlice(){return[]},patchClass:function patchClass(){return noop},wrapWithCurrentZone:function wrapWithCurrentZone(){return noop},filterProperties:function filterProperties(){return[]},attachOriginToPatched:function attachOriginToPatched(){return noop},_redefineProperty:function _redefineProperty(){return noop},patchCallbacks:function patchCallbacks(){return noop},nativeScheduleMicroTask:nativeScheduleMicroTask},L={parent:null,zone:new o(null,null)},C=null,k=0;function noop(){}return performanceMeasure("Zone","Zone"),o}var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=Object.getPrototypeOf,a=Object.create,u=Array.prototype.slice,c="addEventListener",l="removeEventListener",p=__symbol__(c),d=__symbol__(l),h="true",_="false",v=__symbol__("");function wrapWithCurrentZone(t,r){return Zone.current.wrap(t,r)}function scheduleMacroTaskWithCurrentZone(t,r,o,i,a){return Zone.current.scheduleMacroTask(t,r,o,i,a)}var y=__symbol__,g="undefined"!==typeof window,m=g?window:void 0,T=g&&m||globalThis;function bindArguments(t,r){for(var o=t.length-1;o>=0;o--)"function"===typeof t[o]&&(t[o]=wrapWithCurrentZone(t[o],r+"_"+o));return t}function isPropertyWritable(t){return!t||!1!==t.writable&&!("function"===typeof t.get&&"undefined"===typeof t.set)}var b="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in T)&&"undefined"!==typeof T.process&&"[object process]"===T.process.toString(),S=!E&&!b&&!(!g||!m.HTMLElement),P="undefined"!==typeof T.process&&"[object process]"===T.process.toString()&&!b&&!(!g||!m.HTMLElement),O={},w=y("enable_beforeunload"),R=function wrapFn(t){if(t=t||T.event){var r=O[t.type];r||(r=O[t.type]=y("ON_PROPERTY"+t.type));var o,i=this||t.target||T,a=i[r];if(S&&i===m&&"error"===t.type){var u=t;!0===(o=a&&a.call(this,u.message,u.filename,u.lineno,u.colno,u.error))&&t.preventDefault()}else o=a&&a.apply(this,arguments),"beforeunload"===t.type&&T[w]&&"string"===typeof o?t.returnValue=o:void 0==o||o||t.preventDefault();return o}};function patchProperty(t,i,a){var u=r(t,i);!u&&a&&(r(a,i)&&(u={enumerable:!0,configurable:!0}));if(u&&u.configurable){var c=y("on"+i+"patched");if(!t.hasOwnProperty(c)||!t[c]){delete u.writable,delete u.value;var l=u.get,p=u.set,d=i.slice(2),h=O[d];h||(h=O[d]=y("ON_PROPERTY"+d)),u.set=function(r){var o=this;(o||t!==T||(o=T),o)&&("function"===typeof o[h]&&o.removeEventListener(d,R),null===p||void 0===p||p.call(o,null),o[h]=r,"function"===typeof r&&o.addEventListener(d,R,!1))},u.get=function(){var r=this;if(r||t!==T||(r=T),!r)return null;var o=r[h];if(o)return o;if(l){var a=l.call(this);if(a)return u.set.call(this,a),"function"===typeof r.removeAttribute&&r.removeAttribute(i),a}return null},o(t,i,u),t[c]=!0}}}function patchOnProperties(t,r,o){if(r)for(var i=0;i<r.length;i++)patchProperty(t,"on"+r[i],o);else{var a=[];for(var u in t)"on"==u.slice(0,2)&&a.push(u);for(var c=0;c<a.length;c++)patchProperty(t,a[c],o)}}var L=y("originalInstance");function patchClass(t){var r=T[t];if(r){T[y(t)]=r,T[t]=function(){var o=bindArguments(arguments,t);switch(o.length){case 0:this[L]=new r;break;case 1:this[L]=new r(o[0]);break;case 2:this[L]=new r(o[0],o[1]);break;case 3:this[L]=new r(o[0],o[1],o[2]);break;case 4:this[L]=new r(o[0],o[1],o[2],o[3]);break;default:throw new Error("Arg list too long.")}},attachOriginToPatched(T[t],r);var i,a=new r(function(){});for(i in a)"XMLHttpRequest"===t&&"responseBlob"===i||function(r){"function"===typeof a[r]?T[t].prototype[r]=function(){return this[L][r].apply(this[L],arguments)}:o(T[t].prototype,r,{set:function set(o){"function"===typeof o?(this[L][r]=wrapWithCurrentZone(o,t+"."+r),attachOriginToPatched(this[L][r],o)):this[L][r]=o},get:function get(){return this[L][r]}})}(i);for(i in r)"prototype"!==i&&r.hasOwnProperty(i)&&(T[t][i]=r[i])}}function patchMethod(t,o,a){for(var u=t;u&&!u.hasOwnProperty(o);)u=i(u);
2!u&&t[o]&&(u=t);var c=y(o),l=null;if(u&&(!(l=u[c])||!u.hasOwnProperty(c))&&(l=u[c]=u[o],isPropertyWritable(u&&r(u,o)))){var p=a(l,c,o);u[o]=function(){return p(this,arguments)},attachOriginToPatched(u[o],l)}return l}function patchMacroTask(t,r,o){var i=null;function scheduleTask(t){var r=t.data;return r.args[r.cbIdx]=function(){t.invoke.apply(this,arguments)},i.apply(r.target,r.args),t}i=patchMethod(t,r,function(t){return function(r,i){var a=o(r,i);return a.cbIdx>=0&&"function"===typeof i[a.cbIdx]?scheduleMacroTaskWithCurrentZone(a.name,i[a.cbIdx],a,scheduleTask):t.apply(r,i)}})}function attachOriginToPatched(t,r){t[y("OriginalDelegate")]=r}var C=!1,k=!1;function isIEOrEdge(){if(C)return k;C=!0;try{var t=m.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(k=!0)}catch(r){}return k}function isFunction(t){return"function"===typeof t}function isNumber(t){return"number"===typeof t}var A={useG:!0},I={},N={},M=new RegExp("^"+v+"(\\w+)(true|false)$"),D=y("propagationStopped");function prepareEventNames(t,r){var o=(r?r(t):t)+_,i=(r?r(t):t)+h,a=v+o,u=v+i;I[t]={},I[t][_]=a,I[t][h]=u}function patchEventTarget(t,r,o,a){var u=a&&a.add||c,p=a&&a.rm||l,d=a&&a.listeners||"eventListeners",g=a&&a.rmAll||"removeAllListeners",m=y(u),T="."+u+":",b="prependListener",S="."+b+":",P=function invokeTask(t,r,o){if(!t.isRemoved){var i,a=t.callback;"object"===_typeof(a)&&a.handleEvent&&(t.callback=function(t){return a.handleEvent(t)},t.originalDelegate=a);try{t.invoke(t,r,[o])}catch(l){i=l}var u=t.options;if(u&&"object"===_typeof(u)&&u.once){var c=t.originalDelegate?t.originalDelegate:t.callback;r[p].call(r,o.type,c,u)}return i}};function globalCallback(o,i,a){if(i=i||t.event){var u=o||i.target||t,c=u[I[i.type][a?h:_]];if(c){var l=[];if(1===c.length){var p=P(c[0],u,i);p&&l.push(p)}else for(var d=c.slice(),v=0;v<d.length&&(!i||!0!==i[D]);v++){var y=P(d[v],u,i);y&&l.push(y)}if(1===l.length)throw l[0];for(var g=function _loop2(){var t=l[m];r.nativeScheduleMicroTask(function(){throw t})},m=0;m<l.length;m++)g()}}}var O=function globalZoneAwareCallback(t){return globalCallback(this,t,!1)},w=function globalZoneAwareCaptureCallback(t){return globalCallback(this,t,!0)};function patchEventTargetMethods(r,o){if(!r)return!1;var a=!0;o&&void 0!==o.useG&&(a=o.useG);var c=o&&o.vh,l=!0;o&&void 0!==o.chkDup&&(l=o.chkDup);var P=!1;o&&void 0!==o.rt&&(P=o.rt);for(var R=r;R&&!R.hasOwnProperty(u);)R=i(R);if(!R&&r[u]&&(R=r),!R)return!1;if(R[m])return!1;var L,C=o&&o.eventNameToString,k={},D=R[m]=R[u],x=R[y(p)]=R[p],j=R[y(d)]=R[d],B=R[y(g)]=R[g];o&&o.prepend&&(L=R[y(o.prepend)]=R[o.prepend]);var U=a?function customScheduleGlobal(t){if(!k.isExisting)return D.call(k.target,k.eventName,k.capture?w:O,k.options)}:function customScheduleNonGlobal(t){return D.call(k.target,k.eventName,t.invoke,k.options)},H=a?function customCancelGlobal(t){if(!t.isRemoved){var r,o=I[t.eventName];o&&(r=o[t.capture?h:_]);var i=r&&t.target[r];if(i)for(var a=0;a<i.length;a++){if(i[a]===t){i.splice(a,1),t.isRemoved=!0,t.removeAbortListener&&(t.removeAbortListener(),t.removeAbortListener=null),0===i.length&&(t.allRemoved=!0,t.target[r]=null);break}}}if(t.allRemoved)return x.call(t.target,t.eventName,t.capture?w:O,t.options)}:function customCancelNonGlobal(t){return x.call(t.target,t.eventName,t.invoke,t.options)},Z=(null===o||void 0===o?void 0:o.diff)||function compareTaskCallbackVsDelegate(t,r){var o=_typeof(r);return"function"===o&&t.callback===r||"object"===o&&t.originalDelegate===r},z=Zone[y("UNPATCHED_EVENTS")],X=t[y("PASSIVE_EVENTS")];var G=function makeAddListener(r,i,u,p){var d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],v=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var y=this||t,g=arguments[0];o&&o.transferEventName&&(g=o.transferEventName(g));var m=arguments[1];if(!m)return r.apply(this,arguments);if(E&&"uncaughtException"===g)return r.apply(this,arguments);var T=!1;if("function"!==typeof m){if(!m.handleEvent)return r.apply(this,arguments);T=!0}if(!c||c(r,m,y,arguments)){var b=!!X&&-1!==X.indexOf(g),S=function copyEventListenerOptions(t){if("object"===_typeof(t)&&null!==t){var r=_objectSpread({},t);return t.signal&&(r.signal=t.signal),r}return t}(function buildEventListenerOptions(t,r){return r?"boolean"===typeof t?{capture:t,passive:!0}:t?"object"===_typeof(t)&&!1!==t.passive?_objectSpread(_objectSpread({},t),{},{passive:!0}):t:{passive:!0}:t}(arguments[2],b)),P=null===S||void 0===S?void 0:S.signal;if(null===P||void 0===P||!P.aborted){if(z)for(var O=0;O<z.length;O++)if(g===z[O])return b?r.call(y,g,m,S):r.apply(this,arguments);var w=!!S&&("boolean"===typeof S||S.capture),R=!(!S||"object"!==_typeof(S))&&S.once,L=Zone.current,M=I[g];M||(prepareEventNames(g,C),M=I[g]);var D,x=M[w?h:_],j=y[x],B=!1;if(j){if(B=!0,l)for(var U=0;U<j.length;U++)if(Z(j[U],m))return}else j=y[x]=[];
2var H=y.constructor.name,G=N[H];G&&(D=G[g]),D||(D=H+i+(C?C(g):g)),k.options=S,R&&(k.options.once=!1),k.target=y,k.capture=w,k.eventName=g,k.isExisting=B;var V=a?A:void 0;V&&(V.taskData=k),P&&(k.options.signal=void 0);var K=L.scheduleEventTask(D,m,V,u,p);if(P){k.options.signal=P;var W=function onAbort(){return K.zone.cancelTask(K)};r.call(P,"abort",W,{once:!0}),K.removeAbortListener=function(){return P.removeEventListener("abort",W)}}return k.target=null,V&&(V.taskData=null),R&&(k.options.once=!0),"boolean"!==typeof K.options&&(K.options=S),K.target=y,K.capture=w,K.eventName=g,T&&(K.originalDelegate=m),v?j.unshift(K):j.push(K),d?y:void 0}}}};return R[u]=G(D,T,U,H,P),L&&(R[b]=G(L,S,function customSchedulePrepend(t){return L.call(k.target,k.eventName,t.invoke,k.options)},H,P,!0)),R[p]=function(){var r=this||t,i=arguments[0];o&&o.transferEventName&&(i=o.transferEventName(i));var a=arguments[2],u=!!a&&("boolean"===typeof a||a.capture),l=arguments[1];if(!l)return x.apply(this,arguments);if(!c||c(x,l,r,arguments)){var p,d=I[i];d&&(p=d[u?h:_]);var y=p&&r[p];if(y)for(var g=0;g<y.length;g++){var m=y[g];if(Z(m,l)){if(y.splice(g,1),m.isRemoved=!0,0===y.length)if(m.allRemoved=!0,r[p]=null,!u&&"string"===typeof i)r[v+"ON_PROPERTY"+i]=null;return m.zone.cancelTask(m),P?r:void 0}}return x.apply(this,arguments)}},R[d]=function(){var r=this||t,i=arguments[0];o&&o.transferEventName&&(i=o.transferEventName(i));for(var a=[],u=findEventTasks(r,C?C(i):i),c=0;c<u.length;c++){var l=u[c],p=l.originalDelegate?l.originalDelegate:l.callback;a.push(p)}return a},R[g]=function(){var r=this||t,i=arguments[0];if(i){o&&o.transferEventName&&(i=o.transferEventName(i));var a=I[i];if(a){var u=a[_],c=a[h],l=r[u],d=r[c];if(l)for(var v=l.slice(),y=0;y<v.length;y++){var m=v[y],T=m.originalDelegate?m.originalDelegate:m.callback;this[p].call(this,i,T,m.options)}if(d)for(var b=d.slice(),E=0;E<b.length;E++){var S=b[E],O=S.originalDelegate?S.originalDelegate:S.callback;this[p].call(this,i,O,S.options)}}}else{for(var w=Object.keys(r),R=0;R<w.length;R++){var L=w[R],C=M.exec(L),k=C&&C[1];k&&"removeListener"!==k&&this[g].call(this,k)}this[g].call(this,"removeListener")}if(P)return this},attachOriginToPatched(R[u],D),attachOriginToPatched(R[p],x),B&&attachOriginToPatched(R[g],B),j&&attachOriginToPatched(R[d],j),!0}for(var R=[],L=0;L<o.length;L++)R[L]=patchEventTargetMethods(o[L],a);return R}function findEventTasks(t,r){if(!r){var o=[];for(var i in t){var a=M.exec(i),u=a&&a[1];if(u&&(!r||u===r)){var c=t[i];if(c)for(var l=0;l<c.length;l++)o.push(c[l])}}return o}var p=I[r];p||(prepareEventNames(r),p=I[r]);var d=t[p[_]],v=t[p[h]];return d?v?d.concat(v):d.slice():v?v.slice():[]}function patchEventPrototype(t,r){var o=t.Event;o&&o.prototype&&r.patchMethod(o.prototype,"stopImmediatePropagation",function(t){return function(r,o){r[D]=!0,t&&t.apply(r,o)}})}function patchQueueMicrotask(t,r){r.patchMethod(t,"queueMicrotask",function(t){return function(t,r){Zone.current.scheduleMicroTask("queueMicrotask",r[0])}})}var x=y("zoneTask");function patchTimer(t,r,o,i){var a=null,u=null;o+=i;var c={};function scheduleTask(r){var o=r.data;o.args[0]=function(){return r.invoke.apply(this,arguments)};var i=a.apply(t,o.args);return isNumber(i)?o.handleId=i:(o.handle=i,o.isRefreshable=isFunction(i.refresh)),r}function clearTask(r){var o=r.data,i=o.handle,a=o.handleId;return u.call(t,null!==i&&void 0!==i?i:a)}a=patchMethod(t,r+=i,function(o){return function(a,u){if(isFunction(u[0])){var l,p={isRefreshable:!1,isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?u[1]||0:void 0,args:u},d=u[0];u[0]=function timer(){try{return d.apply(this,arguments)}finally{var t=p.handle,r=p.handleId;p.isPeriodic||p.isRefreshable||(r?delete c[r]:t&&(t[x]=null))}};var h=scheduleMacroTaskWithCurrentZone(r,u[0],p,scheduleTask,clearTask);if(!h)return h;var _=h.data,v=_.handleId,y=_.handle,g=_.isRefreshable,m=_.isPeriodic;if(v)c[v]=h;else if(y&&(y[x]=h,g&&!m)){var T=y.refresh;y.refresh=function(){var t=h.zone,r=h.state;return"notScheduled"===r?(h._state="scheduled",t._updateTaskCount(h,1)):"running"===r&&(h._state="scheduling"),T.call(this)}}return null!==(l=null!==y&&void 0!==y?y:v)&&void 0!==l?l:h}return o.apply(t,u)}}),u=patchMethod(t,o,function(r){return function(o,i){var a,u,l=i[0];isNumber(l)?(u=c[l],delete c[l]):(u=null===l||void 0===l?void 0:l[x])?l[x]=null:u=l,null!==(a=u)&&void 0!==a&&a.type?u.cancelFn&&u.zone.cancelTask(u):r.apply(t,i)}})}function eventTargetPatch(t,r){if(!Zone[r.symbol("patchEventTarget")]){for(var o=r.getGlobalObjects(),i=o.eventNames,a=o.zoneSymbolEventNames,u=o.TRUE_STR,c=o.FALSE_STR,l=o.ZONE_SYMBOL_PREFIX,p=0;p<i.length;p++){var d=i[p],h=l+(d+c),_=l+(d+u);a[d]={},a[d][c]=h,a[d][u]=_}var v=t.EventTarget;if(v&&v.prototype)return r.patchEventTarget(t,r,[v&&v.prototype]),!0}}function filterProperties(t,r,o){if(!o||0===o.length)return r;var i=o.filter(function(r){return r.target===t});if(0===i.length)return r;var a=i[0].ignoreProperties;return r.filter(function(t){return-1===a.indexOf(t)})}function patchFilteredProperties(t,r,o,i){t&&patchOnProperties(t,filterProperties(t,r,o),i)}function getOnEventNames(t){return Object.getOwnPropertyNames(t).filter(function(t){return t.startsWith("on")&&t.length>2}).map(function(t){return t.substring(2)})}function propertyDescriptorPatch(t,r){if((!E||P)&&!Zone[t.symbol("patchEvents")]){var o=r.__Zone_ignore_on_properties,a=[];if(S){var u=window;a=a.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);patchFilteredProperties(u,getOnEventNames(u),o?o.concat([]):o,i(u))}a=a.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(var c=0;c<a.length;c++){var l=r[a[c]];(null===l||void 0===l?void 0:l.prototype)&&patchFilteredProperties(l.prototype,getOnEventNames(l.prototype),o)}}}function patchPromise(t){t.__load_patch("ZoneAwarePromise",function(t,r,o){var i=Object.getOwnPropertyDescriptor,a=Object.defineProperty;var u=o.symbol,c=[],l=!1!==t[u("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],p=u("Promise"),d=u("then");o.onUnhandledError=function(t){if(o.showUncaughtError()){var r=t&&t.rejection;r?console.error("Unhandled Promise rejection:",r instanceof Error?r.message:r,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",r,r instanceof Error?r.stack:void 0):console.error(t)}},o.microtaskDrainDone=function(){for(var t=function _loop3(){var t=c.shift();try{t.zone.runGuarded(function(){if(t.throwOriginal)throw t.rejection;throw t})}catch(i){!function handleUnhandledRejection(t){o.onUnhandledError(t);try{var i=r[h];"function"===typeof i&&i.call(this,t)}catch(a){}}(i)}};c.length;)t()};var h=u("unhandledPromiseRejectionHandler");function isThenable(t){return t&&"function"===typeof t.then}function forwardResolution(t){return t}function forwardRejection(t){return C.reject(t)}var _=u("state"),v=u("value"),y=u("finally"),g=u("parentPromiseValue"),m=u("parentPromiseState"),T=null,b=!0,E=!1;function makeResolver(t,r){return function(o){try{resolvePromise(t,r,o)}catch(i){resolvePromise(t,!1,i)}}}var S=function once(){var t=!1;return function wrapper(r){return function(){t||(t=!0,r.apply(null,arguments))}}},P="Promise resolved with itself",O=u("currentTaskTrace");
2function resolvePromise(t,i,u){var p=S();if(t===u)throw new TypeError(P);if(t[_]===T){var d=null;try{"object"!==_typeof(u)&&"function"!==typeof u||(d=u&&u.then)}catch(k){return p(function(){resolvePromise(t,!1,k)})(),t}if(i!==E&&u instanceof C&&u.hasOwnProperty(_)&&u.hasOwnProperty(v)&&u[_]!==T)clearRejectedNoCatch(u),resolvePromise(t,u[_],u[v]);else if(i!==E&&"function"===typeof d)try{d.call(u,p(makeResolver(t,i)),p(makeResolver(t,!1)))}catch(k){p(function(){resolvePromise(t,!1,k)})()}else{t[_]=i;var h=t[v];if(t[v]=u,t[y]===y&&i===b&&(t[_]=t[m],t[v]=t[g]),i===E&&u instanceof Error){var w=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;w&&a(u,O,{configurable:!0,enumerable:!1,writable:!0,value:w})}for(var R=0;R<h.length;)scheduleResolveOrReject(t,h[R++],h[R++],h[R++],h[R++]);if(0==h.length&&i==E){t[_]=0;var L=u;try{throw new Error("Uncaught (in promise): "+function readableObjectToString(t){if(t&&t.toString===Object.prototype.toString){return(t.constructor&&t.constructor.name||"")+": "+JSON.stringify(t)}return t?t.toString():Object.prototype.toString.call(t)}(u)+(u&&u.stack?"\n"+u.stack:""))}catch(k){L=k}l&&(L.throwOriginal=!0),L.rejection=u,L.promise=t,L.zone=r.current,L.task=r.currentTask,c.push(L),o.scheduleMicroTask()}}}return t}var w=u("rejectionHandledHandler");function clearRejectedNoCatch(t){if(0===t[_]){try{var o=r[w];o&&"function"===typeof o&&o.call(this,{rejection:t[v],promise:t})}catch(a){}t[_]=E;for(var i=0;i<c.length;i++)t===c[i].promise&&c.splice(i,1)}}function scheduleResolveOrReject(t,r,o,i,a){clearRejectedNoCatch(t);var u=t[_],c=u?"function"===typeof i?i:forwardResolution:"function"===typeof a?a:forwardRejection;r.scheduleMicroTask("Promise.then",function(){try{var i=t[v],a=!!o&&y===o[y];a&&(o[g]=i,o[m]=u);var l=r.run(c,void 0,a&&c!==forwardRejection&&c!==forwardResolution?[]:[i]);resolvePromise(o,!0,l)}catch(p){resolvePromise(o,!1,p)}},o)}var R=function noop(){},L=t.AggregateError,C=function(){function ZoneAwarePromise(t){_classCallCheck(this,ZoneAwarePromise);var r=this;
2if(!(r instanceof ZoneAwarePromise))throw new Error("Must be an instanceof Promise.");r[_]=T,r[v]=[];try{var o=S();t&&t(o(makeResolver(r,b)),o(makeResolver(r,E)))}catch(i){resolvePromise(r,!1,i)}}return _createClass(ZoneAwarePromise,[{key:Symbol.toStringTag,get:function get(){return"Promise"}},{key:Symbol.species,get:function get(){return ZoneAwarePromise}},{key:"then",value:function then(t,o){var i,a=null===(i=this.constructor)||void 0===i?void 0:i[Symbol.species];a&&"function"===typeof a||(a=this.constructor||ZoneAwarePromise);var u=new a(R),c=r.current;return this[_]==T?this[v].push(c,u,t,o):scheduleResolveOrReject(this,c,u,t,o),u}},{key:"catch",value:function _catch(t){return this.then(null,t)}},{key:"finally",value:function _finally(t){var o,i=null===(o=this.constructor)||void 0===o?void 0:o[Symbol.species];i&&"function"===typeof i||(i=ZoneAwarePromise);var a=new i(R);a[y]=y;var u=r.current;return this[_]==T?this[v].push(u,a,t,t):scheduleResolveOrReject(this,u,a,t,t),a}}],[{key:"toString",value:function toString(){return"function ZoneAwarePromise() { [native code] }"}},{key:"resolve",value:function resolve(t){return t instanceof ZoneAwarePromise?t:resolvePromise(new this(null),b,t)}},{key:"reject",value:function reject(t){return resolvePromise(new this(null),E,t)}},{key:"withResolvers",value:function withResolvers(){var t={};return t.promise=new ZoneAwarePromise(function(r,o){t.resolve=r,t.reject=o}),t}},{key:"any",value:function any(t){if(!t||"function"!==typeof t[Symbol.iterator])return Promise.reject(new L([],"All promises were rejected"));var r=[],o=0;try{var i,a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var u=i.value;o++,r.push(ZoneAwarePromise.resolve(u))}}catch(p){a.e(p)}finally{a.f()}}catch(p){return Promise.reject(new L([],"All promises were rejected"))}if(0===o)return Promise.reject(new L([],"All promises were rejected"));var c=!1,l=[];return new ZoneAwarePromise(function(t,i){for(var a=0;a<r.length;a++)r[a].then(function(r){c||(c=!0,t(r))},function(t){l.push(t),0===--o&&(c=!0,i(new L(l,"All promises were rejected")))})})}},{key:"race",value:function race(t){var r,o,i=new this(function(t,i){r=t,o=i});function onResolve(t){r(t)}function onReject(t){o(t)}var a,u=_createForOfIteratorHelper(t);try{for(u.s();!(a=u.n()).done;){var c=a.value;isThenable(c)||(c=this.resolve(c)),c.then(onResolve,onReject)}}catch(l){u.e(l)}finally{u.f()}return i}},{key:"all",value:function all(t){return ZoneAwarePromise.allWithCallback(t)}},{key:"allSettled",value:function allSettled(t){return(this&&this.prototype instanceof ZoneAwarePromise?this:ZoneAwarePromise).allWithCallback(t,{thenCallback:function thenCallback(t){return{status:"fulfilled",value:t}},errorCallback:function errorCallback(t){return{status:"rejected",reason:t}}})}},{key:"allWithCallback",value:function allWithCallback(t,r){var o,i,a,u=this,c=new this(function(t,r){o=t,i=r}),l=2,p=0,d=[],h=_createForOfIteratorHelper(t);try{var _=function _loop4(){var t=a.value;isThenable(t)||(t=u.resolve(t));var c=p;try{t.then(function(t){d[c]=r?r.thenCallback(t):t,0===--l&&o(d)},function(t){r?(d[c]=r.errorCallback(t),0===--l&&o(d)):i(t)})}catch(h){i(h)}l++,p++};for(h.s();!(a=h.n()).done;)_()}catch(v){h.e(v)}finally{h.f()}return 0===(l-=2)&&o(d),c}}]),ZoneAwarePromise}();C.resolve=C.resolve,C.reject=C.reject,C.race=C.race,C.all=C.all;var k=t[p]=t.Promise;t.Promise=C;var A=u("thenPatched");function patchThen(t){var r=t.prototype,o=i(r,"then");if(!o||!1!==o.writable&&o.configurable){var a=r.then;r[d]=a,t.prototype.then=function(t,r){var o=this;return new C(function(t,r){a.call(o,t,r)}).then(t,r)},t[A]=!0}}return o.patchThen=patchThen,k&&(patchThen(k),patchMethod(t,"fetch",function(t){return function zoneify(t){return function(r,o){var i=t.apply(r,o);if(i instanceof C)return i;var a=i.constructor;return a[A]||patchThen(a),i}}(t)})),Promise[r.__symbol__("uncaughtPromiseErrors")]=c,C})}function patchCallbacks(t,r,o,i,a){var u=Zone.__symbol__(i);if(!r[u]){var c=r[u]=r[i];r[i]=function(u,l,p){return l&&l.prototype&&a.forEach(function(r){var a="".concat(o,".").concat(i,"::")+r,u=l.prototype;try{if(u.hasOwnProperty(r)){var c=t.ObjectGetOwnPropertyDescriptor(u,r);c&&c.value?(c.value=t.wrapWithCurrentZone(c.value,a),t._redefineProperty(l.prototype,r,c)):u[r]&&(u[r]=t.wrapWithCurrentZone(u[r],a))}else u[r]&&(u[r]=t.wrapWithCurrentZone(u[r],a))}catch(p){}}),c.call(r,u,l,p)},t.attachOriginToPatched(r[i],c)}}var j=function loadZone(){var t,r=globalThis,o=!0===r[__symbol__("forceDuplicateZoneCheck")];
2if(r.Zone&&(o||"function"!==typeof r.Zone.__symbol__))throw new Error("Zone already loaded.");return null!==(t=r["Zone"])&&void 0!==t||(r.Zone=initZone()),r.Zone}();!function patchCommon(t){patchPromise(t),function patchToString(t){t.__load_patch("toString",function(t){var r=Function.prototype.toString,o=y("OriginalDelegate"),i=y("Promise"),a=y("Error"),u=function toString(){if("function"===typeof this){var u=this[o];if(u)return"function"===typeof u?r.call(u):Object.prototype.toString.call(u);if(this===Promise){var c=t[i];if(c)return r.call(c)}if(this===Error){var l=t[a];if(l)return r.call(l)}}return r.call(this)};u[o]=r,Function.prototype.toString=u;var c=Object.prototype.toString;Object.prototype.toString=function(){return"function"===typeof Promise&&this instanceof Promise?"[object Promise]":c.call(this)}})}(t),function patchUtil(t){t.__load_patch("util",function(t,i,p){var d=getOnEventNames(t);p.patchOnProperties=patchOnProperties,p.patchMethod=patchMethod,p.bindArguments=bindArguments,p.patchMacroTask=patchMacroTask;var y=i.__symbol__("BLACK_LISTED_EVENTS"),g=i.__symbol__("UNPATCHED_EVENTS");t[g]&&(t[y]=t[g]),t[y]&&(i[y]=i[g]=t[y]),p.patchEventPrototype=patchEventPrototype,p.patchEventTarget=patchEventTarget,p.isIEOrEdge=isIEOrEdge,p.ObjectDefineProperty=o,p.ObjectGetOwnPropertyDescriptor=r,p.ObjectCreate=a,p.ArraySlice=u,p.patchClass=patchClass,p.wrapWithCurrentZone=wrapWithCurrentZone,p.filterProperties=filterProperties,p.attachOriginToPatched=attachOriginToPatched,p._redefineProperty=Object.defineProperty,p.patchCallbacks=patchCallbacks,p.getGlobalObjects=function(){return{globalSources:N,zoneSymbolEventNames:I,eventNames:d,isBrowser:S,isMix:P,isNode:E,TRUE_STR:h,FALSE_STR:_,ZONE_SYMBOL_PREFIX:v,ADD_EVENT_LISTENER_STR:c,REMOVE_EVENT_LISTENER_STR:l}}})}(t)}(j),function patchBrowser(t){t.__load_patch("legacy",function(r){var o=r[t.__symbol__("legacyPatch")];o&&o()}),t.__load_patch("timers",function(t){var r="set",o="clear";patchTimer(t,r,o,"Timeout"),patchTimer(t,r,o,"Interval"),patchTimer(t,r,o,"Immediate")}),t.__load_patch("requestAnimationFrame",function(t){patchTimer(t,"request","cancel","AnimationFrame"),patchTimer(t,"mozRequest","mozCancel","AnimationFrame"),patchTimer(t,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",function(t,r){for(var o=["alert","prompt","confirm"],i=0;i<o.length;i++){patchMethod(t,o[i],function(o,i,a){return function(i,u){return r.current.run(o,t,u,a)}})}}),t.__load_patch("EventTarget",function(t,r,o){!function patchEvent(t,r){r.patchEventPrototype(t,r)}(t,o),eventTargetPatch(t,o);var i=t.XMLHttpRequestEventTarget;i&&i.prototype&&o.patchEventTarget(t,o,[i.prototype])}),t.__load_patch("MutationObserver",function(t,r,o){patchClass("MutationObserver"),patchClass("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",function(t,r,o){patchClass("IntersectionObserver")}),t.__load_patch("FileReader",function(t,r,o){patchClass("FileReader")}),t.__load_patch("on_property",function(t,r,o){propertyDescriptorPatch(o,t)}),t.__load_patch("customElements",function(t,r,o){!function patchCustomElements(t,r){var o=r.getGlobalObjects(),i=o.isBrowser,a=o.isMix;(i||a)&&t.customElements&&"customElements"in t&&r.patchCallbacks(r,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,o)}),t.__load_patch("XHR",function(t,r){!function patchXHR(t){var h=t.XMLHttpRequest;if(!h)return;var _=h.prototype;var v=_[p],g=_[d];if(!v){var m=t.XMLHttpRequestEventTarget;if(m){var T=m.prototype;v=T[p],g=T[d]}}var b="readystatechange",E="scheduled";function scheduleTask(t){var i=t.data,c=i.target;c[u]=!1,c[l]=!1;var h=c[a];v||(v=c[p],g=c[d]),h&&g.call(c,b,h);var _=c[a]=function(){if(c.readyState===c.DONE)if(!i.aborted&&c[u]&&t.state===E){var o=c[r.__symbol__("loadfalse")];if(0!==c.status&&o&&o.length>0){var a=t.invoke;t.invoke=function(){for(var o=c[r.__symbol__("loadfalse")],u=0;u<o.length;u++)o[u]===t&&o.splice(u,1);i.aborted||t.state!==E||a.call(t)},o.push(t)}else t.invoke()}else i.aborted||!1!==c[u]||(c[l]=!0)};
2return v.call(c,b,_),c[o]||(c[o]=t),w.apply(c,i.args),c[u]=!0,t}function placeholderCallback(){}function clearTask(t){var r=t.data;return r.aborted=!0,R.apply(r.target,r.args)}var S=patchMethod(_,"open",function(){return function(t,r){return t[i]=0==r[2],t[c]=r[1],S.apply(t,r)}}),P=y("fetchTaskAborting"),O=y("fetchTaskScheduling"),w=patchMethod(_,"send",function(){return function(t,o){if(!0===r.current[O])return w.apply(t,o);if(t[i])return w.apply(t,o);var a={target:t,url:t[c],isPeriodic:!1,args:o,aborted:!1},u=scheduleMacroTaskWithCurrentZone("XMLHttpRequest.send",placeholderCallback,a,scheduleTask,clearTask);t&&!0===t[l]&&!a.aborted&&u.state===E&&u.invoke()}}),R=patchMethod(_,"abort",function(){return function(t,i){var a=function findPendingTask(t){return t[o]}(t);if(a&&"string"==typeof a.type){if(null==a.cancelFn||a.data&&a.data.aborted)return;a.zone.cancelTask(a)}else if(!0===r.current[P])return R.apply(t,i)}})}(t);var o=y("xhrTask"),i=y("xhrSync"),a=y("xhrListener"),u=y("xhrScheduled"),c=y("xhrURL"),l=y("xhrErrorBeforeScheduled")}),t.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function patchPrototype(t,o){for(var i=t.constructor.name,a=function _loop(){var a=o[u],c=t[a];if(c){if(!isPropertyWritable(r(t,a)))return"continue";t[a]=function(t){var r=function patched(){return t.apply(this,bindArguments(arguments,i+"."+a))};return attachOriginToPatched(r,t),r}(c)}},u=0;u<o.length;u++)a()}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",function(t,r){function findPromiseRejectionHandler(r){return function(o){findEventTasks(t,r).forEach(function(i){var a=t.PromiseRejectionEvent;if(a){var u=new a(r,{promise:o.promise,reason:o.rejection});i.invoke(u)}})}}t.PromiseRejectionEvent&&(r[y("unhandledPromiseRejectionHandler")]=findPromiseRejectionHandler("unhandledrejection"),r[y("rejectionHandledHandler")]=findPromiseRejectionHandler("rejectionhandled"))}),t.__load_patch("queueMicrotask",function(t,r,o){patchQueueMicrotask(t,o)})}(j)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.