UNPKG

@multiplayer-app/session-recorder-browser

Version:

Multiplayer Fullstack Session Recorder for Browser

2 lines 151 kB
/*! For license information please see index.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MultiplayerExporters=t():e.MultiplayerExporters=t()}(this,()=>(()=>{var e={"../../node_modules/@opentelemetry/api/build/esm/api/context.js":(e,t,r)=>{"use strict";r.d(t,{ContextAPI:()=>l});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i},a=function(e,t,r){if(r||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},c="context",u=new n.NoopContextManager,l=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,s.registerGlobal)(c,e,o.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,s=[],o=3;o<arguments.length;o++)s[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,a([e,t,r],i(s),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,s.getGlobal)(c)||u},e.prototype.disable=function(){this._getContextManager().disable(),(0,s.unregisterGlobal)(c,o.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,r)=>{"use strict";r.d(t,{DiagAPI:()=>u});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),i=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i},c=function(e,t,r){if(r||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=(0,i.getGlobal)("diag");if(n)return n[e].apply(n,c([],a(t),!1))}}var t=this;t.setLogger=function(e,r){var n,a,c;if(void 0===r&&(r={logLevel:o.DiagLogLevel.INFO}),e===t){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=u.stack)&&void 0!==n?n:u.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,i.getGlobal)("diag"),d=(0,s.createLogLevelDiagLogger)(null!==(a=r.logLevel)&&void 0!==a?a:o.DiagLogLevel.INFO,e);if(l&&!r.suppressOverrideMessage){var p=null!==(c=(new Error).stack)&&void 0!==c?c:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return(0,i.registerGlobal)("diag",d,t,!0)},t.disable=function(){(0,i.unregisterGlobal)("diag",t)},t.createComponentLogger=function(e){return new n.DiagComponentLogger(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/trace.js":(e,t,r)=>{"use strict";r.d(t,{TraceAPI:()=>u});var n=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),i=r("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),a=r("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),c="trace",u=function(){function e(){this._proxyTracerProvider=new s.ProxyTracerProvider,this.wrapSpanContext=o.wrapSpanContext,this.isSpanContextValid=o.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getActiveSpan=i.getActiveSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=(0,n.registerGlobal)(c,this._proxyTracerProvider,a.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,n.getGlobal)(c)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,n.unregisterGlobal)(c,a.DiagAPI.instance()),this._proxyTracerProvider=new s.ProxyTracerProvider},e}()},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,r)=>{"use strict";r.d(t,{context:()=>n});var n=r("../../node_modules/@opentelemetry/api/build/esm/api/context.js").ContextAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js":(e,t,r)=>{"use strict";r.d(t,{NoopContextManager:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),s=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i},o=function(e,t,r){if(r||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},i=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return t.call.apply(t,o([r],s(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()},"../../node_modules/@opentelemetry/api/build/esm/context/context.js":(e,t,r)=>{"use strict";function n(e){return Symbol.for(e)}r.d(t,{ROOT_CONTEXT:()=>s,createContextKey:()=>n});var s=new function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var s=new e(r._currentContext);return s._currentContext.set(t,n),s},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}}},"../../node_modules/@opentelemetry/api/build/esm/diag-api.js":(e,t,r)=>{"use strict";r.d(t,{diag:()=>n});var n=r("../../node_modules/@opentelemetry/api/build/esm/api/diag.js").DiagAPI.instance()},"../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js":(e,t,r)=>{"use strict";r.d(t,{DiagComponentLogger:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i},o=function(e,t,r){if(r||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},i=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("verbose",this._namespace,e)},e}();function a(e,t,r){var i=(0,n.getGlobal)("diag");if(i)return r.unshift(t),i[e].apply(i,o([],s(r),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,r)=>{"use strict";r.d(t,{createLogLevelDiagLogger:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function s(e,t){function r(r,n){var s=t[r];return"function"==typeof s&&e>=n?s.bind(t):function(){}}return e<n.DiagLogLevel.NONE?e=n.DiagLogLevel.NONE:e>n.DiagLogLevel.ALL&&(e=n.DiagLogLevel.ALL),t=t||{},{error:r("error",n.DiagLogLevel.ERROR),warn:r("warn",n.DiagLogLevel.WARN),info:r("info",n.DiagLogLevel.INFO),debug:r("debug",n.DiagLogLevel.DEBUG),verbose:r("verbose",n.DiagLogLevel.VERBOSE)}}},"../../node_modules/@opentelemetry/api/build/esm/diag/types.js":(e,t,r)=>{"use strict";var n;r.d(t,{DiagLogLevel:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},"../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js":(e,t,r)=>{"use strict";r.d(t,{getGlobal:()=>l,registerGlobal:()=>u,unregisterGlobal:()=>d});var n=r("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=s.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),c=n._globalThis;function u(e,t,r,n){var o;void 0===n&&(n=!1);var i=c[a]=null!==(o=c[a])&&void 0!==o?o:{version:s.VERSION};if(!n&&i[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(i.version!==s.VERSION){u=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+s.VERSION);return r.error(u.stack||u.message),!1}return i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+s.VERSION+"."),!0}function l(e){var t,r,n=null===(t=c[a])||void 0===t?void 0:t.version;if(n&&(0,o.isCompatible)(n))return null===(r=c[a])||void 0===r?void 0:r[e]}function d(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+s.VERSION+".");var r=c[a];r&&delete r[e]}},"../../node_modules/@opentelemetry/api/build/esm/internal/semver.js":(e,t,r)=>{"use strict";r.d(t,{isCompatible:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/version.js"),s=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var o=function(e){var t=new Set([e]),r=new Set,n=e.match(s);if(!n)return function(){return!1};var o=+n[1],i=+n[2],a=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(s);if(!n)return c(e);var l=+n[1],d=+n[2],p=+n[3];return null!=n[4]||o!==l?c(e):0===o?i===d&&a<=p?u(e):c(e):i<=d?u(e):c(e)}}(n.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,r)=>{"use strict";r.d(t,{_globalThis:()=>n});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{}},"../../node_modules/@opentelemetry/api/build/esm/trace-api.js":(e,t,r)=>{"use strict";r.d(t,{trace:()=>n});var n=r("../../node_modules/@opentelemetry/api/build/esm/api/trace.js").TraceAPI.getInstance()},"../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js":(e,t,r)=>{"use strict";r.d(t,{NonRecordingSpan:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),s=function(){function e(e){void 0===e&&(e=n.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js":(e,t,r)=>{"use strict";r.d(t,{NoopTracer:()=>c});var n=r("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),i=r("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),a=n.ContextAPI.getInstance(),c=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=a.active()),Boolean(null==t?void 0:t.root))return new o.NonRecordingSpan;var n,c=r&&(0,s.getSpanContext)(r);return"object"==typeof(n=c)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,i.isSpanContextValid)(c)?new o.NonRecordingSpan(c):new o.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,n){var o,i,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(o=t,c=r):(o=t,i=r,c=n);var u=null!=i?i:a.active(),l=this.startSpan(e,o,u),d=(0,s.setSpan)(u,l);return a.with(d,c,void 0,l)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,r)=>{"use strict";r.d(t,{NoopTracerProvider:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),s=function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new n.NoopTracer},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js":(e,t,r)=>{"use strict";r.d(t,{ProxyTracer:()=>s});var n=new(r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),s=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js":(e,t,r)=>{"use strict";r.d(t,{ProxyTracerProvider:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),s=new(r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),o=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var s;return null!==(s=this.getDelegateTracer(e,t,r))&&void 0!==s?s:new n.ProxyTracer(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:s},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js":(e,t,r)=>{"use strict";r.d(t,{deleteSpan:()=>l,getActiveSpan:()=>c,getSpan:()=>a,getSpanContext:()=>p,setSpan:()=>u,setSpanContext:()=>d});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),i=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function a(e){return e.getValue(i)||void 0}function c(){return a(o.ContextAPI.getInstance().active())}function u(e,t){return e.setValue(i,t)}function l(e){return e.deleteValue(i)}function d(e,t){return u(e,new s.NonRecordingSpan(t))}function p(e){var t;return null===(t=a(e))||void 0===t?void 0:t.spanContext()}},"../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js":(e,t,r)=>{"use strict";r.d(t,{INVALID_SPANID:()=>s,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),s="0000000000000000",o="00000000000000000000000000000000",i={traceId:o,spanId:s,traceFlags:n.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,r)=>{"use strict";r.d(t,{isSpanContextValid:()=>c,isValidTraceId:()=>a,wrapSpanContext:()=>u});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),o=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return o.test(e)&&e!==n.INVALID_TRACEID}function c(e){return a(e.traceId)&&(t=e.spanId,i.test(t)&&t!==n.INVALID_SPANID);var t}function u(e){return new s.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,r)=>{"use strict";var n;r.d(t,{SpanStatusCode:()=>n}),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(n||(n={}))},"../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js":(e,t,r)=>{"use strict";var n;r.d(t,{TraceFlags:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(n||(n={}))},"../../node_modules/@opentelemetry/api/build/esm/version.js":(e,t,r)=>{"use strict";r.d(t,{VERSION:()=>n});var n="1.9.0"},"../../node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,r)=>{"use strict";var n;r.d(t,{ExportResultCode:()=>n}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(n||(n={}))},"../../node_modules/@opentelemetry/core/build/esm/common/time.js":(e,t,r)=>{"use strict";r.d(t,{hrTimeToNanoseconds:()=>s});r("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js");Math.pow(10,6);const n=Math.pow(10,9);function s(e){return e[0]*n+e[1]}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,r)=>{"use strict";r.d(t,{otperformance:()=>n});const n=performance},"../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js":(e,t,r)=>{"use strict";r.d(t,{OTLPTraceExporter:()=>i});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),s=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js");class i extends n.OTLPExporterBase{constructor(e={}){super((0,o.createLegacyOtlpBrowserExportDelegate)(e,s.JsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,r)=>{"use strict";r.d(t,{OTLPExporterBase:()=>n});class n{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js":(e,t,r)=>{"use strict";r.d(t,{createBoundedQueueExportPromiseHandler:()=>s});class n{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const t=()=>{const t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function s(e){return new n(e.concurrencyLimit)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js":(e,t,r)=>{"use strict";r.d(t,{convertLegacyBrowserHttpOptions:()=>o});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function o(e,t,r){return(0,n.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,s.wrapStaticHeadersInFunction)(e.headers),concurrencyLimit:e.concurrencyLimit},{},(0,n.getHttpConfigurationDefaults)(r,t))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js":(e,t,r)=>{"use strict";r.d(t,{createLegacyOtlpBrowserExportDelegate:()=>o});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function o(e,t,r,o){const i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,s.convertLegacyBrowserHttpOptions)(e,r,o);return i?(0,n.createOtlpXhrExportDelegate)(a,t):(0,n.createOtlpSendBeaconExportDelegate)(a,t)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js":(e,t,r)=>{"use strict";r.d(t,{getHttpConfigurationDefaults:()=>c,mergeOtlpHttpConfigurationWithDefaults:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js");function o(e,t,r){const n={...r()},s={};return()=>(null!=t&&Object.assign(s,t()),null!=e&&Object.assign(s,e()),Object.assign(s,n))}function i(e){if(null!=e)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function a(e,t,r){return{...(0,n.mergeOtlpSharedConfigurationWithDefaults)(e,t,r),headers:o((0,s.validateAndNormalizeHeaders)(e.headers),t.headers,r.headers),url:i(e.url)??t.url??r.url,agentOptions:e.agentOptions??t.agentOptions??r.agentOptions}}function c(e,t){return{...(0,n.getSharedConfigurationDefaults)(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js":(e,t,r)=>{"use strict";function n(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function s(e){if(null!=e)return()=>e}function o(e,t,r){return{timeoutMillis:n(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function i(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}r.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>o,wrapStaticHeadersInFunction:()=>s})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,r)=>{"use strict";function n(e){return[429,502,503,504].includes(e)}function s(e){if(null==e)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}r.d(t,{isExportRetryable:()=>n,parseRetryAfterToMills:()=>s})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,r)=>{"use strict";r.d(t,{createLoggingPartialSuccessResponseHandler:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function s(){return{handleResponse(e){null!=e&&function(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}(e)&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&n.diag.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js":(e,t,r)=>{"use strict";r.d(t,{createOtlpSendBeaconExportDelegate:()=>c,createOtlpXhrExportDelegate:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js"),i=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js");function a(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,n.createRetryingTransport)({transport:(0,s.createXhrTransport)(e)}))}function c(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,n.createRetryingTransport)({transport:(0,o.createSendBeaconTransport)({url:e.url,blobType:e.headers()["Content-Type"]})}))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js":(e,t,r)=>{"use strict";r.d(t,{createOtlpExportDelegate:()=>c});var n=r("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js"),i=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class a{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,r,n,s){this._transport=e,this._serializer=t,this._responseHandler=r,this._promiseQueue=n,this._timeout=s,this._diagLogger=i.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,t){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void t({code:n.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});const r=this._serializer.serializeRequest(e);null!=r?this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(e=>{if("success"!==e.status)"failure"===e.status&&e.error?t({code:n.ExportResultCode.FAILED,error:e.error}):"retryable"===e.status?t({code:n.ExportResultCode.FAILED,error:new s.OTLPExporterError("Export failed with retryable status")}):t({code:n.ExportResultCode.FAILED,error:new s.OTLPExporterError("Export failed with unknown error")});else{if(null!=e.data)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:n.ExportResultCode.SUCCESS})}},e=>t({code:n.ExportResultCode.FAILED,error:e}))):t({code:n.ExportResultCode.FAILED,error:new Error("Nothing to send")})}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function c(e,t){return new a(e.transport,e.serializer,(0,o.createLoggingPartialSuccessResponseHandler)(),e.promiseHandler,t.timeout)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js":(e,t,r)=>{"use strict";r.d(t,{createOtlpNetworkExportDelegate:()=>o});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function o(e,t,r){return(0,s.createOtlpExportDelegate)({transport:r,serializer:t,promiseHandler:(0,n.createBoundedQueueExportPromiseHandler)(e)},{timeout:e.timeoutMillis})}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js":(e,t,r)=>{"use strict";r.d(t,{createRetryingTransport:()=>o});function n(){return.4*Math.random()-.2}class s{_transport;constructor(e){this._transport=e}retry(e,t,r){return new Promise((n,s)=>{setTimeout(()=>{this._transport.send(e,t).then(n,s)},r)})}async send(e,t){const r=Date.now()+t;let s=await this._transport.send(e,t),o=5,i=1e3;for(;"retryable"===s.status&&o>0;){o--;const t=Math.max(Math.min(i,5e3)+n(),0);i*=1.5;const a=s.retryInMillis??t,c=r-Date.now();if(a>c)return s;s=await this.retry(e,c,a)}return s}shutdown(){return this._transport.shutdown()}}function o(e){return new s(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,r)=>{"use strict";r.d(t,{createSendBeaconTransport:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class s{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(n.diag.debug("SendBeacon success"),t({status:"success"})):t({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function o(e){return new s(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,r)=>{"use strict";r.d(t,{createXhrTransport:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js");class o{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(r=>{const o=new XMLHttpRequest;o.timeout=t,o.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{o.setRequestHeader(e,t)}),o.ontimeout=e=>{r({status:"failure",error:new Error("XHR request timed out")})},o.onreadystatechange=()=>{o.status>=200&&o.status<=299?(n.diag.debug("XHR success"),r({status:"success"})):o.status&&(0,s.isExportRetryable)(o.status)?r({status:"retryable",retryInMillis:(0,s.parseRetryAfterToMills)(o.getResponseHeader("Retry-After"))}):0!==o.status&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},o.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},o.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},o.send(e)})}shutdown(){}}function i(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,r)=>{"use strict";r.d(t,{OTLPExporterError:()=>n});class n extends Error{code;name="OTLPExporterError";data;constructor(e,t,r){super(e),this.data=r,this.code=t}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js":(e,t,r)=>{"use strict";r.d(t,{validateAndNormalizeHeaders:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function s(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([e,r])=>{void 0!==r?t[e]=String(r):n.diag.warn(`Header "${e}" has invalid value (${r}) and will be ignored`)}),t}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js":(e,t,r)=>{"use strict";function n(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function s(e){const t=new Uint8Array(e.length/2);let r=0;for(let s=0;s<e.length;s+=2){const o=n(e.charCodeAt(s)),i=n(e.charCodeAt(s+1));t[r++]=o<<4|i}return t}r.d(t,{hexToBinary:()=>s})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,r)=>{"use strict";function n(e){return{attributes:o(e.attributes),droppedAttributesCount:0}}function s(e){return{name:e.name,version:e.version}}function o(e){return Object.keys(e).map(t=>i(t,e[t]))}function i(e,t){return{key:e,value:a(t)}}function a(e){const t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(a)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(([e,t])=>i(e,t))}}:{}}r.d(t,{createInstrumentationScope:()=>s,createResource:()=>n,toAttributes:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js":(e,t,r)=>{"use strict";r.d(t,{getOtlpEncoder:()=>d});var n=r("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),s=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js");function o(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){const t=o(e);return r=t,{low:Number(BigInt.asUintN(32,r)),high:Number(BigInt.asUintN(32,r>>BigInt(32)))};var r}const a="undefined"!=typeof BigInt?function(e){return o(e).toString()}:n.hrTimeToNanoseconds;function c(e){return e}function u(e){if(void 0!==e)return(0,s.hexToBinary)(e)}const l={encodeHrTime:i,encodeSpanContext:s.hexToBinary,encodeOptionalSpanContext:u};function d(e){if(void 0===e)return l;const t=e.useLongBits??!0,r=e.useHex??!1;return{encodeHrTime:t?i:a,encodeSpanContext:r?c:s.hexToBinary,encodeOptionalSpanContext:r?c:u}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,r)=>{"use strict";r.d(t,{createExportTraceServiceRequest:()=>i});var n=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),s=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js");function o(e,t){const r=e.spanContext(),s=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,n.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>function(e,t){return{attributes:e.attributes?(0,n.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:s.code,message:s.message},links:e.links.map(e=>function(e,t){return{attributes:e.attributes?(0,n.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedLinksCount:e.droppedLinksCount}}function i(e,t){return{resourceSpans:a(e,(0,s.getOtlpEncoder)(t))}}function a(e,t){const r=function(e){const t=new Map;for(const r of e){let e=t.get(r.resource);e||(e=new Map,t.set(r.resource,e));const n=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let s=e.get(n);s||(s=[],e.set(n,s)),s.push(r)}return t}(e),s=[],i=r.entries();let a=i.next();for(;!a.done;){const[e,r]=a.value,c=[],u=r.values();let l=u.next();for(;!l.done;){const e=l.value;if(e.length>0){const r=e.map(e=>o(e,t));c.push({scope:(0,n.createInstrumentationScope)(e[0].instrumentationScope),spans:r,schemaUrl:e[0].instrumentationScope.schemaUrl})}l=u.next()}const d={resource:(0,n.createResource)(e),scopeSpans:c,schemaUrl:void 0};s.push(d),a=i.next()}return s}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js":(e,t,r)=>{"use strict";r.d(t,{JsonTraceSerializer:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js");const s={serializeRequest:e=>{const t=(0,n.createExportTraceServiceRequest)(e,{useHex:!0,useLongBits:!1});return(new TextEncoder).encode(JSON.stringify(t))},deserializeResponse:e=>{if(0===e.length)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}}},"../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js":(e,t,r)=>{"use strict";var n;r.d(t,{SamplingDecision:()=>n}),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(n||(n={}))},"../../node_modules/events/events.js":e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){function s(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,r)}(e,s,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var s,o,i,u;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),i=o[t]),void 0===i)i=o[t]=r,++e._eventsCount;else if("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(s=c(e))>0&&i.length>s&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=l.bind(n);return s.listener=r,n.wrapFn=s,s}function p(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(s):f(s,s.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function s(o){n.once&&e.removeEventListener(t,s),r(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var s="error"===e,o=this._events;if(void 0!==o)s=s&&void 0===o.error;else if(!s)return!1;if(s){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=f(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,s,o,i;if(a(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(s=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,s=o;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,s),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var s,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(s=o[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"../../node_modules/lodash.isequal/index.js":(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",s=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",c="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",_="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",S=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[o]=w[i]=w[v]=w[a]=w[E]=w[c]=w[u]=w[l]=w[d]=w[p]=w[h]=w[m]=w[g]=w[y]=w[_]=!1;var j="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,A="object"==typeof self&&self&&self.Object===Object&&self,x=j||A||Function("return this")(),k=t&&!t.nodeType&&t,R=k&&e&&!e.nodeType&&e,O=R&&R.exports===k,P=O&&j.process,L=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),C=L&&L.isTypedArray;function I(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function N(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function B(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var D,M,U,F=Array.prototype,V=Function.prototype,z=Object.prototype,q=x["__core-js_shared__"],H=V.toString,G=z.hasOwnProperty,Y=(D=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",$=z.toString,W=RegExp("^"+H.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=O?x.Buffer:void 0,X=x.Symbol,Z=x.Uint8Array,J=z.propertyIsEnumerable,Q=F.splice,ee=X?X.toStringTag:void 0,te=Object.getOwnPropertySymbols,re=K?K.isBuffer:void 0,ne=(M=Object.keys,U=Object,function(e){return M(U(e))}),se=Le(x,"DataView"),oe=Le(x,"Map"),ie=Le(x,"Promise"),ae=Le(x,"Set"),ce=Le(x,"WeakMap"),ue=Le(Object,"create"),le=Be(se),de=Be(oe),pe=Be(ie),he=Be(ae),fe=Be(ce),me=X?X.prototype:void 0,ge=me?me.valueOf:void 0;function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ve(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new _e;++t<r;)this.add(e[t])}function Ee(e){var t=this.__data__=new be(e);this.size=t.size}function Se(e,t){var r=Ue(e),n=!r&&Me(e),s=!r&&!n&&Fe(e),o=!r&&!n&&!s&&Ge(e),i=r||n||s||o,a=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!G.call(e,u)||i&&("length"==u||s&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ne(u,c))||a.push(u);return a}function Te(e,t){for(var r=e.length;r--;)if(De(e[r][0],t))return r;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=G.call(e,ee),r=e[ee];try{e[ee]=void 0;var n=!0}catch(e){}var s=$.call(e);n&&(t?e[ee]=r:delete e[ee]);return s}(e):function(e){return $.call(e)}(e)}function je(e){return He(e)&&we(e)==o}function Ae(e,t,r,n,s){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!=e&&t!=t:function(e,t,r,n,s,l){var f=Ue(e),_=Ue(t),S=f?i:Ie(e),T=_?i:Ie(t),w=(S=S==o?h:S)==h,j=(T=T==o?h:T)==h,A=S==T;if(A&&Fe(e)){if(!Fe(t))return!1;f=!0,w=!1}if(A&&!w)return l||(l=new Ee),f||Ge(e)?Re(e,t,r,n,s,l):function(e,t,r,n,s,o,i){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case v:return!(e.byteLength!=t.byteLength||!o(new Z(e),new Z(t)));case a:case c:case p:return De(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case d:var l=N;case g:var h=1&n;if(l||(l=B),e.size!=t.size&&!h)return!1;var f=i.get(e);if(f)return f==t;n|=2,i.set(e,t);var _=Re(l(e),l(t),n,s,o,i);return i.delete(e),_;case b:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,S,r,n,s,l);if(!(1&r)){var x=w&&G.call(e,"__wrapped__"),k=j&&G.call(t,"__wrapped__");if(x||k){var R=x?e.value():e,O=k?t.value():t;return l||(l=new Ee),s(R,O,r,n,l)}}if(!A)return!1;return l||(l=new Ee),function(e,t,r,n,s,o){var i=1&r,a=Oe(e),c=a.length,u=Oe(t),l=u.length;if(c!=l&&!i)return!1;var d=c;for(;d--;){var p=a[d];if(!(i?p in t:G.call(t,p)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var f=!0;o.set(e,t),o.set(t,e);var m=i;for(;++d<c;){var g=e[p=a[d]],y=t[p];if(n)var b=i?n(y,g,p,t,e,o):n(g,y,p,e,t,o);if(!(void 0===b?g===y||s(g,y,r,n,o):b)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,n,s,l)}(e,t,r,n,Ae,s))}function xe(e){return!(!qe(e)||function(e){return!!Y&&Y in e}(e))&&(Ve(e)?W:S).test(Be(e))}function ke(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||z,t!==n)return ne(e);var t,r,n,s=[];for(var o in Object(e))G.call(e,o)&&"constructor"!=o&&s.push(o);return s}function Re(e,t,r,n,s,o){var i=1&r,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,d=!0,p=2&r?new ve:void 0;for(o.set(e,t),o.set(t,e);++l<a;){var h=e[l],f=t[l];if(n)var m=i?n(f,h,l,t,e,o):n(h,f,l,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!I(t,function(e,t){if(i=t,!p.has(i)&&(h===e||s(h,e,r,n,o)))return p.push(t);var i})){d=!1;break}}else if(h!==f&&!s(h,f,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Oe(e){return function(e,t,r){var n=t(e);return Ue(e)?n:function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}(n,r(e))}(e,Ye,Ce)}function Pe(e,t){var r,n,s=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?s["string"==typeof t?"string":"hash"]:s.map}function Le(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(r)?r:void 0}ye.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(ue){var r=t[e];return r===n?void 0:r}return G.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:G.call(t,e)},ye.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?n:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,r=Te(t,e);return!(r<0)&&(r==t.length-1?t.pop():Q.call(t,r,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]},be.prototype.has=function(e){return Te(this.__data__,e)>-1},be.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},_e.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(oe||be),string:new ye}},_e.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},_e.prototype.get=function(e){return Pe(this,e).get(e)},_e.prototype.has=function(e){return Pe(this,e).has(e)},_e.prototype.set=function(e,t){var r=Pe(this,e),n=r.size;return r.set(e,