@multiplayer-app/session-recorder-browser 1.3.15 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +1 -1
- package/dist/exporters/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/browser/index.js
CHANGED
|
@@ -25051,7 +25051,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
|
25051
25051
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
25052
25052
|
const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
|
|
25053
25053
|
const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
|
|
25054
|
-
const PACKAGE_VERSION_EXPORT = "1.3.
|
|
25054
|
+
const PACKAGE_VERSION_EXPORT = "1.3.16" || 0;
|
|
25055
25055
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
25056
25056
|
const OTEL_IGNORE_URLS = [
|
|
25057
25057
|
// Traces endpoint
|
package/dist/exporters/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
var e={"../../node_modules/@opentelemetry/api/build/esm/api/context.js":(e,t,r)=>{r.r(t),r.d(t,{ContextAPI:()=>c});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i="context",a=new n.NoopContextManager,c=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,o.registerGlobal)(i,e,s.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(n=this._getContextManager()).with.apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([e,t,r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,o.getGlobal)(i)||a},e.prototype.disable=function(){this._getContextManager().disable(),(0,o.unregisterGlobal)(i,s.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,r)=>{r.r(t),r.d(t,{DiagAPI:()=>a});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),i=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),a=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,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,a,c;if(void 0===r&&(r={logLevel:s.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,o.createLogLevelDiagLogger)(null!==(a=r.logLevel)&&void 0!==a?a:s.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)=>{r.r(t),r.d(t,{TraceAPI:()=>u});var n=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),s=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 o.ProxyTracerProvider,this.wrapSpanContext=s.wrapSpanContext,this.isSpanContextValid=s.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 o.ProxyTracerProvider},e}()},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),r.d(t,{NoopContextManager:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return t.call.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(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)=>{function n(e){return Symbol.for(e)}r.r(t),r.d(t,{ROOT_CONTEXT:()=>o,createContextKey:()=>n});var o=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 o=new e(r._currentContext);return o._currentContext.set(t,n),o},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)=>{r.r(t),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)=>{r.r(t),r.d(t,{DiagComponentLogger:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=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 s("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("verbose",this._namespace,e)},e}();function s(e,t,r){var o=(0,n.getGlobal)("diag");if(o)return r.unshift(t),o[e].apply(o,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(r),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,r)=>{r.r(t),r.d(t,{createLogLevelDiagLogger:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.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)=>{var n;r.r(t),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)=>{r.r(t),r.d(t,{getGlobal:()=>l,registerGlobal:()=>u,unregisterGlobal:()=>d});var n=r("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/version.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=o.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),c=n._globalThis;function u(e,t,r,n){var s;void 0===n&&(n=!1);var i=c[a]=null!==(s=c[a])&&void 0!==s?s:{version:o.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}return i.version!==o.VERSION?(u=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+o.VERSION),r.error(u.stack||u.message),!1):(i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.VERSION+"."),!0)}function l(e){var t,r,n=null===(t=c[a])||void 0===t?void 0:t.version;if(n&&(0,s.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"+o.VERSION+".");var r=c[a];r&&delete r[e]}},"../../node_modules/@opentelemetry/api/build/esm/internal/semver.js":(e,t,r)=>{r.r(t),r.d(t,{_makeCompatibilityCheck:()=>s,isCompatible:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function s(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var s=+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(o);if(!n)return c(e);var l=+n[1],d=+n[2],p=+n[3];return null!=n[4]||s!==l?c(e):0===s?i===d&&a<=p?u(e):c(e):i<=d?u(e):c(e)}}var i=s(n.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),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)=>{r.r(t),r.d(t,{NonRecordingSpan:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=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)=>{r.r(t),r.d(t,{NoopTracer:()=>c});var n=r("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),s=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 s.NonRecordingSpan;var n,c=r&&(0,o.getSpanContext)(r);return"object"==typeof(n=c)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,i.isSpanContextValid)(c)?new s.NonRecordingSpan(c):new s.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,n){var s,i,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(s=t,c=r):(s=t,i=r,c=n);var u=null!=i?i:a.active(),l=this.startSpan(e,s,u),d=(0,o.setSpan)(u,l);return a.with(d,c,void 0,l)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,r)=>{r.r(t),r.d(t,{NoopTracerProvider:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),o=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)=>{r.r(t),r.d(t,{ProxyTracer:()=>o});var n=new(r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),o=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 o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,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)=>{r.r(t),r.d(t,{ProxyTracerProvider:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),o=new(r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),s=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var o;return null!==(o=this.getDelegateTracer(e,t,r))&&void 0!==o?o:new n.ProxyTracer(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o},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)=>{r.r(t),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"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=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(s.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 o.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)=>{r.r(t),r.d(t,{INVALID_SPANID:()=>o,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),o="0000000000000000",s="00000000000000000000000000000000",i={traceId:s,spanId:o,traceFlags:n.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,r)=>{r.r(t),r.d(t,{isSpanContextValid:()=>u,isValidSpanId:()=>c,isValidTraceId:()=>a,wrapSpanContext:()=>l});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return s.test(e)&&e!==n.INVALID_TRACEID}function c(e){return i.test(e)&&e!==n.INVALID_SPANID}function u(e){return a(e.traceId)&&c(e.spanId)}function l(e){return new o.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,r)=>{var n;r.r(t),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)=>{var n;r.r(t),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)=>{r.r(t),r.d(t,{VERSION:()=>n});var n="1.9.0"},"../../node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,r)=>{var n;r.r(t),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)=>{r.r(t),r.d(t,{addHrTimes:()=>T,getTimeOrigin:()=>c,hrTime:()=>u,hrTimeDuration:()=>d,hrTimeToMicroseconds:()=>m,hrTimeToMilliseconds:()=>_,hrTimeToNanoseconds:()=>h,hrTimeToTimeStamp:()=>p,isTimeInput:()=>E,isTimeInputHrTime:()=>f,millisToHrTime:()=>a,timeInputToHrTime:()=>l});var n=r("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js");const o=9,s=Math.pow(10,6),i=Math.pow(10,o);function a(e){const t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*s)]}function c(){let e=n.otperformance.timeOrigin;if("number"!=typeof e){const t=n.otperformance;e=t.timing&&t.timing.fetchStart}return e}function u(e){return T(a(c()),a("number"==typeof e?e:n.otperformance.now()))}function l(e){if(f(e))return e;if("number"==typeof e)return e<c()?u(e):a(e);if(e instanceof Date)return a(e.getTime());throw TypeError("Invalid input type")}function d(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=i),[r,n]}function p(e){const t=o,r=`${"0".repeat(t)}${e[1]}Z`,n=r.substring(r.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",n)}function h(e){return e[0]*i+e[1]}function _(e){return 1e3*e[0]+e[1]/1e6}function m(e){return 1e6*e[0]+e[1]/1e3}function f(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function E(e){return f(e)||"number"==typeof e||e instanceof Date}function T(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=i&&(r[1]-=i,r[0]+=1),r}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,r)=>{r.r(t),r.d(t,{otperformance:()=>n});const n=performance},"../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js":(e,t,r)=>{r.r(t),r.d(t,{OTLPTraceExporter:()=>i});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),o=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js");class i extends n.OTLPExporterBase{constructor(e={}){super((0,s.createLegacyOtlpBrowserExportDelegate)(e,o.JsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),r.d(t,{createBoundedQueueExportPromiseHandler:()=>o});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 o(e){return new n(e.concurrencyLimit)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js":(e,t,r)=>{r.r(t),r.d(t,{convertLegacyBrowserHttpOptions:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function s(e,t,r){return(0,n.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,o.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)=>{r.r(t),r.d(t,{createLegacyOtlpBrowserExportDelegate:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function s(e,t,r,s){const i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,o.convertLegacyBrowserHttpOptions)(e,r,s);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)=>{r.r(t),r.d(t,{getHttpConfigurationDefaults:()=>c,mergeOtlpHttpConfigurationWithDefaults:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js");function s(e,t,r){const n={...r()},o={};return()=>(null!=t&&Object.assign(o,t()),null!=e&&Object.assign(o,e()),Object.assign(o,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:s((0,o.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)=>{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 o(e){if(null!=e)return()=>e}function s(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.r(t),r.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>s,validateTimeoutMillis:()=>n,wrapStaticHeadersInFunction:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,r)=>{function n(e){return[429,502,503,504].includes(e)}function o(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.r(t),r.d(t,{isExportRetryable:()=>n,parseRetryAfterToMills:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,r)=>{r.r(t),r.d(t,{createLoggingPartialSuccessResponseHandler:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(){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)=>{r.r(t),r.d(t,{createOtlpSendBeaconExportDelegate:()=>c,createOtlpXhrExportDelegate:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),s=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,o.createXhrTransport)(e)}))}function c(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,n.createRetryingTransport)({transport:(0,s.createSendBeaconTransport)({url:e.url,blobType:e.headers()["Content-Type"]})}))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js":(e,t,r)=>{r.r(t),r.d(t,{createOtlpExportDelegate:()=>c});var n=r("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),s=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,o){this._transport=e,this._serializer=t,this._responseHandler=r,this._promiseQueue=n,this._timeout=o,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 o.OTLPExporterError("Export failed with retryable status")}):t({code:n.ExportResultCode.FAILED,error:new o.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,s.createLoggingPartialSuccessResponseHandler)(),e.promiseHandler,t.timeout)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js":(e,t,r)=>{r.r(t),r.d(t,{createOtlpNetworkExportDelegate:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function s(e,t,r){return(0,o.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)=>{function n(){return.4*Math.random()-.2}r.r(t),r.d(t,{createRetryingTransport:()=>s});class o{_transport;constructor(e){this._transport=e}retry(e,t,r){return new Promise((n,o)=>{setTimeout(()=>{this._transport.send(e,t).then(n,o)},r)})}async send(e,t){const r=Date.now()+t;let o=await this._transport.send(e,t),s=5,i=1e3;for(;"retryable"===o.status&&s>0;){s--;const t=Math.max(Math.min(i,5e3)+n(),0);i*=1.5;const a=o.retryInMillis??t,c=r-Date.now();if(a>c)return o;o=await this.retry(e,c,a)}return o}shutdown(){return this._transport.shutdown()}}function s(e){return new o(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,r)=>{r.r(t),r.d(t,{createSendBeaconTransport:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class o{_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 s(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,r)=>{r.r(t),r.d(t,{createXhrTransport:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js");class s{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(r=>{const s=new XMLHttpRequest;s.timeout=t,s.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{s.setRequestHeader(e,t)}),s.ontimeout=e=>{r({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=()=>{s.status>=200&&s.status<=299?(n.diag.debug("XHR success"),r({status:"success"})):s.status&&(0,o.isExportRetryable)(s.status)?r({status:"retryable",retryInMillis:(0,o.parseRetryAfterToMills)(s.getResponseHeader("Retry-After"))}):0!==s.status&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},s.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},s.send(e)})}shutdown(){}}function i(e){return new s(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),r.d(t,{validateAndNormalizeHeaders:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(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)=>{function n(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function o(e){const t=new Uint8Array(e.length/2);let r=0;for(let o=0;o<e.length;o+=2){const s=n(e.charCodeAt(o)),i=n(e.charCodeAt(o+1));t[r++]=s<<4|i}return t}r.r(t),r.d(t,{hexToBinary:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,r)=>{function n(e){return{attributes:s(e.attributes),droppedAttributesCount:0}}function o(e){return{name:e.name,version:e.version}}function s(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.r(t),r.d(t,{createInstrumentationScope:()=>o,createResource:()=>n,toAnyValue:()=>a,toAttributes:()=>s,toKeyValue:()=>i})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js":(e,t,r)=>{r.r(t),r.d(t,{encodeAsLongBits:()=>a,encodeAsString:()=>c,getOtlpEncoder:()=>h,hrTimeToNanos:()=>s,toLongBits:()=>i});var n=r("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),o=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js");function s(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function a(e){return i(s(e))}function c(e){return s(e).toString()}const u="undefined"!=typeof BigInt?c:n.hrTimeToNanoseconds;function l(e){return e}function d(e){if(void 0!==e)return(0,o.hexToBinary)(e)}const p={encodeHrTime:a,encodeSpanContext:o.hexToBinary,encodeOptionalSpanContext:d};function h(e){if(void 0===e)return p;const t=e.useLongBits??!0,r=e.useHex??!1;return{encodeHrTime:t?a:u,encodeSpanContext:r?l:o.hexToBinary,encodeOptionalSpanContext:r?l:d}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,r)=>{r.r(t),r.d(t,{createExportTraceServiceRequest:()=>c,sdkSpanToOtlpSpan:()=>s,toOtlpLink:()=>i,toOtlpSpanEvent:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),o=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js");function s(e,t){const r=e.spanContext(),o=e.status,s=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:s,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=>a(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map(e=>i(e,t)),droppedLinksCount:e.droppedLinksCount}}function i(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}}function a(e,t){return{attributes:e.attributes?(0,n.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function c(e,t){return{resourceSpans:u(e,(0,o.getOtlpEncoder)(t))}}function u(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 o=e.get(n);o||(o=[],e.set(n,o)),o.push(r)}return t}(e),o=[],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=>s(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};o.push(d),a=i.next()}return o}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js":(e,t,r)=>{r.r(t),r.d(t,{JsonTraceSerializer:()=>o});var n=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js");const o={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)=>{var n;r.r(t),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/lodash.isequal/index.js":(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,s="[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]",_="[object Promise]",m="[object RegExp]",f="[object Set]",E="[object String]",T="[object WeakMap]",g="[object ArrayBuffer]",y="[object DataView]",S=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[s]=R[i]=R[g]=R[a]=R[y]=R[c]=R[u]=R[l]=R[d]=R[p]=R[h]=R[m]=R[f]=R[E]=R[T]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,L=A||v||Function("return this")(),O=t&&!t.nodeType&&t,P=O&&e&&!e.nodeType&&e,I=P&&P.exports===O,U=I&&A.process,N=function(){try{return U&&U.binding&&U.binding("util")}catch(e){}}(),C=N&&N.isTypedArray;function j(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 M(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function w(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var k,x,D,B=Array.prototype,Y=Function.prototype,G=Object.prototype,F=L["__core-js_shared__"],H=Y.toString,V=G.hasOwnProperty,q=(k=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",z=G.toString,X=RegExp("^"+H.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=I?L.Buffer:void 0,K=L.Symbol,$=L.Uint8Array,Q=G.propertyIsEnumerable,J=B.splice,Z=K?K.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=W?W.isBuffer:void 0,re=(x=Object.keys,D=Object,function(e){return x(D(e))}),ne=Pe(L,"DataView"),oe=Pe(L,"Map"),se=Pe(L,"Promise"),ie=Pe(L,"Set"),ae=Pe(L,"WeakMap"),ce=Pe(Object,"create"),ue=Ce(ne),le=Ce(oe),de=Ce(se),pe=Ce(ie),he=Ce(ae),_e=K?K.prototype:void 0,me=_e?_e.valueOf:void 0;function fe(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 Ee(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 Te(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 ge(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Te;++t<r;)this.add(e[t])}function ye(e){var t=this.__data__=new Ee(e);this.size=t.size}function Se(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=V.call(e,Z),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var o=z.call(e);return n&&(t?e[Z]=r:delete e[Z]),o}(e):function(e){return z.call(e)}(e)}function Re(e){return Ye(e)&&be(e)==s}function Ae(e,t,r,n,o){return e===t||(null==e||null==t||!Ye(e)&&!Ye(t)?e!=e&&t!=t:function(e,t,r,n,o,l){var _=we(e),T=we(t),S=_?i:Ue(e),b=T?i:Ue(t),R=(S=S==s?h:S)==h,A=(b=b==s?h:b)==h,v=S==b;if(v&&ke(e)){if(!ke(t))return!1;_=!0,R=!1}if(v&&!R)return l||(l=new ye),_||Ge(e)?ve(e,t,r,n,o,l):function(e,t,r,n,o,s,i){switch(r){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case g:return!(e.byteLength!=t.byteLength||!s(new $(e),new $(t)));case a:case c:case p:return je(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case E:return e==t+"";case d:var l=M;case f:var h=1&n;if(l||(l=w),e.size!=t.size&&!h)return!1;var _=i.get(e);if(_)return _==t;n|=2,i.set(e,t);var T=ve(l(e),l(t),n,o,s,i);return i.delete(e),T;case"[object Symbol]":if(me)return me.call(e)==me.call(t)}return!1}(e,t,S,r,n,o,l);if(!(1&r)){var L=R&&V.call(e,"__wrapped__"),O=A&&V.call(t,"__wrapped__");if(L||O){var P=L?e.value():e,I=O?t.value():t;return l||(l=new ye),o(P,I,r,n,l)}}return!!v&&(l||(l=new ye),function(e,t,r,n,o,s){var i=1&r,a=Le(e),c=a.length;if(c!=Le(t).length&&!i)return!1;for(var u=c;u--;){var l=a[u];if(!(i?l in t:V.call(t,l)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var p=!0;s.set(e,t),s.set(t,e);for(var h=i;++u<c;){var _=e[l=a[u]],m=t[l];if(n)var f=i?n(m,_,l,t,e,s):n(_,m,l,e,t,s);if(!(void 0===f?_===m||o(_,m,r,n,s):f)){p=!1;break}h||(h="constructor"==l)}if(p&&!h){var E=e.constructor,T=t.constructor;E==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof T&&T instanceof T||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,r,n,o,l))}(e,t,r,n,Ae,o))}function ve(e,t,r,n,o,s){var i=1&r,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var l=-1,d=!0,p=2&r?new ge:void 0;for(s.set(e,t),s.set(t,e);++l<a;){var h=e[l],_=t[l];if(n)var m=i?n(_,h,l,t,e,s):n(h,_,l,e,t,s);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!j(t,function(e,t){if(i=t,!p.has(i)&&(h===e||o(h,e,r,n,s)))return p.push(t);var i})){d=!1;break}}else if(h!==_&&!o(h,_,r,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Le(e){return function(e,t,r){var n=t(e);return we(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Fe,Ie)}function Oe(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Pe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Be(e)||function(e){return!!q&&q in e}(e))&&(xe(e)?X:S).test(Ce(e))}(r)?r:void 0}fe.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(ce){var r=t[e];return r===n?void 0:r}return V.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:V.call(t,e)},fe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ce&&void 0===t?n:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():J.call(t,r,1),--this.size,0))},Ee.prototype.get=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]},Ee.prototype.has=function(e){return Se(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Te.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(oe||Ee),string:new fe}},Te.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},Te.prototype.get=function(e){return Oe(this,e).get(e)},Te.prototype.has=function(e){return Oe(this,e).has(e)},Te.prototype.set=function(e,t){var r=Oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new Ee,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var n=r.__data__;if(!oe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Te(n)}return r.set(e,t),this.size=r.size,this};var Ie=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,s=[];++r<n;){var i=e[r];t(i)&&(s[o++]=i)}return s}(ee(e),function(t){return Q.call(e,t)}))}:function(){return[]},Ue=be;function Ne(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||b.test(e))&&e>-1&&e%1==0&&e<t}function Ce(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(ne&&Ue(new ne(new ArrayBuffer(1)))!=y||oe&&Ue(new oe)!=d||se&&Ue(se.resolve())!=_||ie&&Ue(new ie)!=f||ae&&Ue(new ae)!=T)&&(Ue=function(e){var t=be(e),r=t==h?e.constructor:void 0,n=r?Ce(r):"";if(n)switch(n){case ue:return y;case le:return d;case de:return _;case pe:return f;case he:return T}return t});var Me=Re(function(){return arguments}())?Re:function(e){return Ye(e)&&V.call(e,"callee")&&!Q.call(e,"callee")},we=Array.isArray,ke=te||function(){return!1};function xe(e){if(!Be(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ye(e){return null!=e&&"object"==typeof e}var Ge=C?function(e){return function(t){return e(t)}}(C):function(e){return Ye(e)&&De(e.length)&&!!R[be(e)]};function Fe(e){return null!=(t=e)&&De(t.length)&&!xe(t)?function(e,t){var r=we(e),n=!r&&Me(e),o=!r&&!n&&ke(e),s=!r&&!n&&!o&&Ge(e),i=r||n||o||s,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&&!V.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ne(u,c))||a.push(u);return a}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||G))return re(e);var t,r,n=[];for(var o in Object(e))V.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e);var t}e.exports=function(e,t){return Ae(e,t)}},"../../node_modules/lodash.keys/index.js":e=>{var t,r,n=9007199254740991,o=/^(?:0|[1-9]\d*)$/,s=Object.prototype,i=s.hasOwnProperty,a=s.toString,c=s.propertyIsEnumerable,u=(t=Object.keys,r=Object,function(e){return t(r(e))});function l(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var d=Array.isArray;function p(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?a.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}e.exports=function(e){return p(e)?function(e,t){var r=d(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&p(e)}(e)&&i.call(e,"callee")&&(!c.call(e,"callee")||"[object Arguments]"==a.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var s in e)!t&&!i.call(e,s)||o&&("length"==s||l(s,n))||r.push(s);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||s))return u(e);var t,r,n=[];for(var o in Object(e))i.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e)}},"../../node_modules/lodash.merge/index.js":(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Function]",a="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[s]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[i]=l["[object Map]"]=l["[object Number]"]=l[a]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var d,p,h,_="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,m="object"==typeof self&&self&&self.Object===Object&&self,f=_||m||Function("return this")(),E=t&&!t.nodeType&&t,T=E&&e&&!e.nodeType&&e,g=T&&T.exports===E,y=g&&_.process,S=function(){try{return T&&T.require&&T.require("util").types||y&&y.binding&&y.binding("util")}catch(e){}}(),b=S&&S.isTypedArray,R=Array.prototype,A=Function.prototype,v=Object.prototype,L=f["__core-js_shared__"],O=A.toString,P=v.hasOwnProperty,I=(d=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",U=v.toString,N=O.call(Object),C=RegExp("^"+O.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=g?f.Buffer:void 0,M=f.Symbol,w=f.Uint8Array,k=(j&&j.allocUnsafe,p=Object.getPrototypeOf,h=Object,function(e){return p(h(e))}),x=Object.create,D=v.propertyIsEnumerable,B=R.splice,Y=M?M.toStringTag:void 0,G=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=j?j.isBuffer:void 0,H=Math.max,V=Date.now,q=ae(f,"Map"),z=ae(Object,"create"),X=function(){function e(){}return function(t){if(!ge(t))return{};if(x)return x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function W(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 K(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){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 Q(e){var t=this.__data__=new K(e);this.size=t.size}function J(e,t,r){(void 0!==r&&!pe(e[t],r)||void 0===r&&!(t in e))&&te(e,t,r)}function Z(e,t,r){var n=e[t];P.call(e,t)&&pe(n,r)&&(void 0!==r||t in e)||te(e,t,r)}function ee(e,t){for(var r=e.length;r--;)if(pe(e[r][0],t))return r;return-1}function te(e,t,r){"__proto__"==t&&G?G(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}W.prototype.clear=function(){this.__data__=z?z(null):{},this.size=0},W.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},W.prototype.get=function(e){var t=this.__data__;if(z){var r=t[e];return r===n?void 0:r}return P.call(t,e)?t[e]:void 0},W.prototype.has=function(e){var t=this.__data__;return z?void 0!==t[e]:P.call(t,e)},W.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=z&&void 0===t?n:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,r=ee(t,e);return!(r<0||(r==t.length-1?t.pop():B.call(t,r,1),--this.size,0))},K.prototype.get=function(e){var t=this.__data__,r=ee(t,e);return r<0?void 0:t[r][1]},K.prototype.has=function(e){return ee(this.__data__,e)>-1},K.prototype.set=function(e,t){var r=this.__data__,n=ee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new W,map:new(q||K),string:new W}},$.prototype.delete=function(e){var t=ie(this,e).delete(e);return this.size-=t?1:0,t},$.prototype.get=function(e){return ie(this,e).get(e)},$.prototype.has=function(e){return ie(this,e).has(e)},$.prototype.set=function(e,t){var r=ie(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Q.prototype.clear=function(){this.__data__=new K,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $(n)}return r.set(e,t),this.size=r.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=P.call(e,Y),r=e[Y];try{e[Y]=void 0;var n=!0}catch(e){}var o=U.call(e);return n&&(t?e[Y]=r:delete e[Y]),o}(e):function(e){return U.call(e)}(e)}function ne(e){return ye(e)&&re(e)==s}function oe(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),s=r(e),i=s.length;i--;){var a=s[++n];if(!1===t(o[a],a,o))break}}(t,function(s,i){if(o||(o=new Q),ge(s))!function(e,t,r,n,o,s,i){var c=le(e,r),u=le(t,r),l=i.get(u);if(l)J(e,r,l);else{var d,p,h,_,m,f=s?s(c,u,r+"",e,t,i):void 0,E=void 0===f;if(E){var T=_e(u),g=!T&&fe(u),y=!T&&!g&&Se(u);f=u,T||g||y?_e(c)?f=c:ye(m=c)&&me(m)?f=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(c):g?(E=!1,f=function(e){return e.slice()}(u)):y?(E=!1,_=new(h=(d=u).buffer).constructor(h.byteLength),new w(_).set(new w(h)),p=_,f=new d.constructor(p,d.byteOffset,d.length)):f=[]:function(e){if(!ye(e)||re(e)!=a)return!1;var t=k(e);if(null===t)return!0;var r=P.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&O.call(r)==N}(u)||he(u)?(f=c,he(c)?f=function(e){return function(e,t,r){var n=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var i=t[o],a=void 0;void 0===a&&(a=e[i]),n?te(r,i,a):Z(r,i,a)}return r}(e,be(e))}(c):ge(c)&&!Ee(c)||(f=function(e){return"function"!=typeof e.constructor||ue(e)?{}:X(k(e))}(u))):E=!1}E&&(i.set(u,f),o(f,u,n,s,i),i.delete(u)),J(e,r,f)}}(e,t,i,r,oe,n,o);else{var c=n?n(le(e,i),s,i+"",e,t,o):void 0;void 0===c&&(c=s),J(e,i,c)}},be)}var se=G?function(e,t){return G(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:ve;function ie(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ge(e)||function(e){return!!I&&I in e}(e))&&(Ee(e)?C:c).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function ce(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||v)}function le(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,r=0;return function(){var n=V(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(se);function pe(e,t){return e===t||e!=e&&t!=t}var he=ne(function(){return arguments}())?ne:function(e){return ye(e)&&P.call(e,"callee")&&!D.call(e,"callee")},_e=Array.isArray;function me(e){return null!=e&&Te(e.length)&&!Ee(e)}var fe=F||function(){return!1};function Ee(e){if(!ge(e))return!1;var t=re(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ge(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ye(e){return null!=e&&"object"==typeof e}var Se=b?function(e){return function(t){return e(t)}}(b):function(e){return ye(e)&&Te(e.length)&&!!l[re(e)]};function be(e){return me(e)?function(e,t){var r=_e(e),n=!r&&he(e),o=!r&&!n&&fe(e),s=!r&&!n&&!o&&Se(e),i=r||n||o||s,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&&!P.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ce(u,c))||a.push(u);return a}(e,!0):function(e){if(!ge(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ue(e),r=[];for(var n in e)("constructor"!=n||!t&&P.call(e,n))&&r.push(n);return r}(e)}var Re,Ae=(Re=function(e,t,r){oe(e,t,r)},function(e,t){return de(function(e,t,r){return t=H(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=H(n.length-t,0),i=Array(s);++o<s;)i[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(i),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,ve),e+"")}(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(o=Re.length>3&&"function"==typeof o?(n--,o):void 0,s&&function(e,t,r){if(!ge(r))return!1;var n=typeof t;return!!("number"==n?me(r)&&ce(t,r.length):"string"==n&&t in r)&&pe(r[t],e)}(t[0],t[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var i=t[r];i&&Re(e,i,r)}return e}));function ve(e){return e}e.exports=Ae},"../../node_modules/lodash.xor/index.js":(e,t,r)=>{var n="__lodash_hash_undefined__",o=/^\[object .+?Constructor\]$/,s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,i="object"==typeof self&&self&&self.Object===Object&&self,a=s||i||Function("return this")();function c(e,t){return!(!e||!e.length)&&function(e,t){if(t!=t)return function(e,t){for(var r=e.length,n=-1;++n<r;)if(t(e[n],n,e))return n;return-1}(e,d);for(var r=-1,n=e.length;++r<n;)if(e[r]===t)return r;return-1}(e,t)>-1}function u(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)if(r(t,e[n]))return!0;return!1}function l(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function d(e){return e!=e}function p(e,t){return e.has(t)}function h(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var _,m=Array.prototype,f=Function.prototype,E=Object.prototype,T=a["__core-js_shared__"],g=(_=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",y=f.toString,S=E.hasOwnProperty,b=E.toString,R=RegExp("^"+y.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=m.splice,v=Math.max,L=x(a,"Map"),O=x(a,"Set"),P=x(Object,"create");function I(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function U(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function C(e){var t=-1,r=e?e.length:0;for(this.__data__=new N;++t<r;)this.add(e[t])}function j(e,t){for(var r=e.length;r--;)if(G(e[r][0],t))return r;return-1}function M(e,t,r,n){var o,s=-1,i=c,a=!0,l=e.length,d=[],h=t.length;if(!l)return d;r&&(t=function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(t,(o=r,function(e){return o(e)}))),n?(i=u,a=!1):t.length>=200&&(i=p,a=!1,t=new C(t));e:for(;++s<l;){var _=e[s],m=r?r(_):_;if(_=n||0!==_?_:0,a&&m==m){for(var f=h;f--;)if(t[f]===m)continue e;d.push(_)}else i(t,m,n)||d.push(_)}return d}I.prototype.clear=function(){this.__data__=P?P(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(P){var r=t[e];return r===n?void 0:r}return S.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return P?void 0!==t[e]:S.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=P&&void 0===t?n:t,this},U.prototype.clear=function(){this.__data__=[]},U.prototype.delete=function(e){var t=this.__data__,r=j(t,e);return!(r<0||(r==t.length-1?t.pop():A.call(t,r,1),0))},U.prototype.get=function(e){var t=this.__data__,r=j(t,e);return r<0?void 0:t[r][1]},U.prototype.has=function(e){return j(this.__data__,e)>-1},U.prototype.set=function(e,t){var r=this.__data__,n=j(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new I,map:new(L||U),string:new I}},N.prototype.delete=function(e){return k(this,e).delete(e)},N.prototype.get=function(e){return k(this,e).get(e)},N.prototype.has=function(e){return k(this,e).has(e)},N.prototype.set=function(e,t){return k(this,e).set(e,t),this},C.prototype.add=C.prototype.push=function(e){return this.__data__.set(e,n),this},C.prototype.has=function(e){return this.__data__.has(e)};var w=O&&1/h(new O([,-0]))[1]==1/0?function(e){return new O(e)}:function(){};function k(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function x(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!V(e)||g&&g in e)return!1;var t=H(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?R:o;return t.test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}var D,B,Y=(D=function(e){return function(e,t,r){for(var n=-1,o=e.length;++n<o;)var s=s?l(M(s,e[n],t,r),M(e[n],s,t,r)):e[n];return s&&s.length?function(e,t,r){var n=-1,o=c,s=e.length,i=!0,a=[],l=a;if(r)i=!1,o=u;else if(s>=200){var d=t?null:w(e);if(d)return h(d);i=!1,o=p,l=new C}else l=t?[]:a;e:for(;++n<s;){var _=e[n],m=t?t(_):_;if(_=r||0!==_?_:0,i&&m==m){for(var f=l.length;f--;)if(l[f]===m)continue e;t&&l.push(m),a.push(_)}else o(l,m,r)||(l!==a&&l.push(m),a.push(_))}return a}(s,t,r):[]}(function(e,t){for(var r=-1,n=e?e.length:0,o=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[o++]=i)}return s}(e,F))},B=v(void 0===B?D.length-1:B,0),function(){for(var e=arguments,t=-1,r=v(e.length-B,0),n=Array(r);++t<r;)n[t]=e[B+t];t=-1;for(var o=Array(B+1);++t<B;)o[t]=e[t];return o[B]=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(D,this,o)});function G(e,t){return e===t||e!=e&&t!=t}function F(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!H(e)}(e)}function H(e){var t=V(e)?b.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=Y},"../../node_modules/to-json-schema/lib/helpers.js":(e,t,r)=>{var n=r("../../node_modules/lodash.isequal/index.js"),o=r("../../node_modules/lodash.xor/index.js"),s=r("../../node_modules/lodash.keys/index.js"),i=r("../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js"),a=i.types,c=i.FORMAT_REGEXPS,u=i.isFormat,l={stringFormats:s(c),isFormat:u,typeNames:["integer","number","string","array","object","boolean","null","date"],getType:function(e){return l.typeNames.find(function(t){return a[t](e)})},mergeSchemaObjs:function(e,t){var r=s(e),i=s(t);if(!n(r,i)){if("array"===e.type&&"array"===t.type&&n(o(r,i),["items"])){var a=r.length>i.length?t:e,c=r.length>i.length?e:t;if(s(a).reduce(function(e,t){return n(a[t],c[t])&&e},!0))return a}if("object"!==e.type||"object"!==t.type)return null}for(var u={},d=0,p=r.length;d<p;d++){var h=r[d];if("object"===l.getType(e[h])){var _=l.mergeSchemaObjs(e[h],t[h]);if(_)u[h]=_;else{if("object"===e.type||"object"===t.type)return{type:"object"};if("items"!==h||"array"!==e.type||"array"!==t.type)return null}}else if("type"===h)if(e[h]!==t[h]){if(!("integer"===e[h]&&"number"===t[h]||"number"===e[h]&&"integer"===t[h]))return null;u[h]="number"}else u[h]=e[h];else{if(!n(e[h],t[h]))return null;u[h]=e[h]}}return u}};e.exports=l},"../../node_modules/to-json-schema/lib/index.js":(e,t,r)=>{function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r("../../node_modules/lodash.merge/index.js"),s=r("../../node_modules/lodash.isequal/index.js"),i=r("../../node_modules/to-json-schema/lib/helpers.js"),a={required:!1,postProcessFnc:null,strings:{detectFormat:!0,preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},c=["hostname","host-name","alpha","alphanumeric","regex","regexp","pattern"],u=i.stringFormats.filter(function(e){return c.indexOf(e)<0}),l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=o({},a,t),this.getObjectSchemaDefault=this.getObjectSchemaDefault.bind(this),this.getStringSchemaDefault=this.getStringSchemaDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this),this.commmonPostProcessDefault=this.commmonPostProcessDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this)}var t,r;return t=e,(r=[{key:"getCommonArrayItemSchema",value:function(e){var t=this,r=e.map(function(e){return t.getSchema(e)});return r.reduce(function(e,t){return i.mergeSchemaObjs(e,t)},r.pop())}},{key:"getObjectSchemaDefault",value:function(e){var t=this,r={type:"object"},n=Object.keys(e);return n.length>0&&(r.properties=n.reduce(function(r,n){return r[n]=t.getSchema(e[n]),r},{})),r}},{key:"getObjectSchema",value:function(e){return this.options.objects.preProcessFnc?this.options.objects.preProcessFnc(e,this.getObjectSchemaDefault):this.getObjectSchemaDefault(e)}},{key:"getArraySchemaMerging",value:function(e){var t={type:"array"},r=function(e){return function(e){for(var t,r=0,n=e.length;r<n;r++){var o=e[r];if(r>0&&("integer"===o&&"number"===t?o="number":"number"===o&&"integer"===t&&(t="number"),t!==o))return null;t=o}return t}(e.map(function(e){return i.getType(e)}))}(e);if(r)if(t.items={type:r},"integer"!==r&&"number"!==r){var n=this.getCommonArrayItemSchema(e);n&&(t.items=n)}else this.options.required&&(t.items.required=!0);return t}},{key:"getArraySchemaNoMerging",value:function(e){var t={type:"array"};return e.length>0&&(t.items=this.getSchema(e[0])),t}},{key:"getArraySchemaTuple",value:function(e){var t=this,r={type:"array"};return e.length>0&&(r.items=e.map(function(e){return t.getSchema(e)})),r}},{key:"getArraySchemaUniform",value:function(e){var t=this.getArraySchemaNoMerging(e);if(e.length>1)for(var r=1;r<e.length;r++)if(!s(t.items,this.getSchema(e[r])))throw new Error("Invalid schema, incompatible array items");return t}},{key:"getArraySchema",value:function(e){if(0===e.length)return{type:"array"};switch(this.options.arrays.mode){case"all":return this.getArraySchemaMerging(e);case"first":return this.getArraySchemaNoMerging(e);case"uniform":return this.getArraySchemaUniform(e);case"tuple":return this.getArraySchemaTuple(e);default:throw new Error("Unknown array mode option '".concat(this.options.arrays.mode,"'"))}}},{key:"getStringSchemaDefault",value:function(e){var t={type:"string"};if(!this.options.strings.detectFormat)return t;var r=u.findIndex(function(t){return i.isFormat(e,t)});return r>=0&&(t.format=u[r]),t}},{key:"getStringSchema",value:function(e){return this.options.strings.preProcessFnc?this.options.strings.preProcessFnc(e,this.getStringSchemaDefault):this.getStringSchemaDefault(e)}},{key:"commmonPostProcessDefault",value:function(e,t,r){return this.options.required?o({},t,{required:!0}):t}},{key:"objectPostProcessDefault",value:function(e,t){return!1===this.options.objects.additionalProperties&&Object.getOwnPropertyNames(t).length>0?o({},e,{additionalProperties:!1}):e}},{key:"getSchema",value:function(e){var t,r=i.getType(e);if(!r)throw new Error("Type of value couldn't be determined");switch(r){case"object":t=this.getObjectSchema(e);break;case"array":t=this.getArraySchema(e);break;case"string":t=this.getStringSchema(e);break;default:t={type:r}}return t=this.options.postProcessFnc?this.options.postProcessFnc(r,t,e,this.commmonPostProcessDefault):this.commmonPostProcessDefault(r,t,e),"object"===r&&(t=this.options.objects.postProcessFnc?this.options.objects.postProcessFnc(t,e,this.objectPostProcessDefault):this.objectPostProcessDefault(t,e)),t}}])&&n(t.prototype,r),e}();e.exports=function(e,t){return new l(t).getSchema(e)}},"../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js":e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var r={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e&&isFinite(e)},integer:function(e){return"number"==typeof e&&e%1==0},boolean:function(e){return"boolean"==typeof e},array:function(e){return e instanceof Array},null:function(e){return null===e},date:function(e){return e instanceof Date},any:function(e){return!0},object:function(e){return e&&"object"===t(e)&&!(e instanceof Array)&&!(e instanceof Date)}},n={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w!#$%&'*+-/=?^`{|}~]+\.)*[\w!#$%&'*+-/=?^`{|}~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/\s*(.+?):\s*([^;]+);?/g,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};n.regexp=n.regex,n.pattern=n.regex,n.ipv4=n["ip-address"],e.exports={types:r,isFormat:function(e,t){if("string"==typeof e&&void 0!==n[t]){if(n[t]instanceof RegExp)return n[t].test(e);if("function"==typeof n[t])return n[t](e)}return!0},FORMAT_REGEXPS:n}},"./src/config/constants.ts":(e,t,r)=>{r.r(t),r.d(t,{CONTINUOUS_DEBUGGING_TIMEOUT:()=>T,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>g,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>f,OTEL_IGNORE_URLS:()=>R,OTEL_MP_SAMPLE_TRACE_RATIO:()=>n,PACKAGE_VERSION_EXPORT:()=>b,REMOTE_SESSION_RECORDING_START:()=>y,REMOTE_SESSION_RECORDING_STOP:()=>S,SESSION_ADD_EVENT:()=>_,SESSION_AUTO_CREATED:()=>h,SESSION_ID_PROP_NAME:()=>o,SESSION_PROP_NAME:()=>c,SESSION_RESPONSE:()=>E,SESSION_SHORT_ID_PROP_NAME:()=>s,SESSION_STARTED_EVENT:()=>u,SESSION_STATE_PROP_NAME:()=>i,SESSION_STOPPED_EVENT:()=>l,SESSION_SUBSCRIBE_EVENT:()=>d,SESSION_TYPE_PROP_NAME:()=>a,SESSION_UNSUBSCRIBE_EVENT:()=>p,SOCKET_SET_USER_EVENT:()=>m});const n=.15,o="multiplayer-session-id",s="multiplayer-session-short-id",i="multiplayer-session-state",a="multiplayer-session-type",c="multiplayer-session-data",u="debug-session:started",l="debug-session:stopped",d="debug-session:subscribe",p="debug-session:unsubscribe",h="debug-session:auto-created",_="debug-session:rrweb:add-event",m="socket:set-user",f=1e5,E="multiplayer-debug-session-response",T=6e4,g=630,y="remote-session-recording:start",S="remote-session-recording:stop",b="1.3.15",R=[/.*\/v1\/traces/,/.*\/v0\/radar\/debug-sessions\/start$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/stop$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/continuous-debug-sessions\/start$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/save$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/remote-debug-session\/check$/]},"./src/config/defaults.ts":(e,t,r)=>{r.r(t),r.d(t,{BASE_CONFIG:()=>d,DEFAULT_MASKING_CONFIG:()=>u,DEFAULT_WIDGET_TEXT_CONFIG:()=>l});var n=r("../session-recorder-common/dist/esm/index-browser.js"),o=r("./src/types/index.ts"),s=r("./src/config/constants.ts");const{mask:i,sensitiveFields:a,sensitiveHeaders:c}=n.SessionRecorderSdk,u={maskAllInputs:!0,isContentMaskingEnabled:!0,maskBody:i(a),maskHeaders:i(c),maskBodyFieldsList:a,maskHeadersList:c,headersToInclude:[],headersToExclude:[]},l={initialTitleWithContinuous:"Encountered an issue?",initialTitleWithoutContinuous:"Encountered an issue?",initialDescriptionWithContinuous:"Record your session so we can see the problem and fix it faster.",initialDescriptionWithoutContinuous:"Record your session so we can see the problem and fix it faster.",continuousRecordingLabel:"Continuous recording",startRecordingButtonText:"Start recording",finalTitle:"Done recording?",finalDescription:"You can also add a quick note with extra context, expectations, or questions. Thank you!",commentPlaceholder:"Add a message...",saveButtonText:"Submit recording",cancelButtonText:"Cancel recording",continuousOverlayTitle:"Save time, skip the reproductions",continuousOverlayDescription:"We keep a rolling record of your recent activity. If something doesn’t work as expected, just save the recording and continue working. No need to worry about exceptions and errors - we automatically save recordings for those!",saveLastSnapshotButtonText:"Save recording",submitDialogTitle:"Save recording",submitDialogSubtitle:"This full-stack session recording will be saved directly to your selected Multiplayer project. All data is automatically correlated end-to-end.",submitDialogCommentLabel:"You can also add context, comments, or notes.",submitDialogCommentPlaceholder:"Add a message...",submitDialogSubmitText:"Save",submitDialogCancelText:"Cancel"},d={apiKey:"",version:"",application:"",environment:"",showWidget:!0,showContinuousRecording:!0,widgetButtonPlacement:o.WidgetButtonPlacement.bottomRight,usePostMessageFallback:!1,apiBaseUrl:n.MULTIPLAYER_BASE_API_URL,exporterEndpoint:n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,recordCanvas:!1,recordNavigation:!0,schemifyDocSpanPayload:!0,ignoreUrls:[],propagateTraceHeaderCorsUrls:[],sampleTraceRatio:s.OTEL_MP_SAMPLE_TRACE_RATIO,maxCapturingHttpPayloadSize:s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,captureBody:!0,captureHeaders:!0,masking:u,widgetTextOverrides:l,useWebsocket:!0}},"./src/config/index.ts":(e,t,r)=>{r.r(t),r.d(t,{BASE_CONFIG:()=>o.BASE_CONFIG,CONTINUOUS_DEBUGGING_TIMEOUT:()=>n.CONTINUOUS_DEBUGGING_TIMEOUT,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>n.DEBUG_SESSION_MAX_DURATION_SECONDS,DEFAULT_MASKING_CONFIG:()=>o.DEFAULT_MASKING_CONFIG,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>n.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,DEFAULT_WIDGET_TEXT_CONFIG:()=>o.DEFAULT_WIDGET_TEXT_CONFIG,OTEL_IGNORE_URLS:()=>n.OTEL_IGNORE_URLS,OTEL_MP_SAMPLE_TRACE_RATIO:()=>n.OTEL_MP_SAMPLE_TRACE_RATIO,PACKAGE_VERSION_EXPORT:()=>n.PACKAGE_VERSION_EXPORT,REMOTE_SESSION_RECORDING_START:()=>n.REMOTE_SESSION_RECORDING_START,REMOTE_SESSION_RECORDING_STOP:()=>n.REMOTE_SESSION_RECORDING_STOP,SESSION_ADD_EVENT:()=>n.SESSION_ADD_EVENT,SESSION_AUTO_CREATED:()=>n.SESSION_AUTO_CREATED,SESSION_ID_PROP_NAME:()=>n.SESSION_ID_PROP_NAME,SESSION_PROP_NAME:()=>n.SESSION_PROP_NAME,SESSION_RESPONSE:()=>n.SESSION_RESPONSE,SESSION_SHORT_ID_PROP_NAME:()=>n.SESSION_SHORT_ID_PROP_NAME,SESSION_STARTED_EVENT:()=>n.SESSION_STARTED_EVENT,SESSION_STATE_PROP_NAME:()=>n.SESSION_STATE_PROP_NAME,SESSION_STOPPED_EVENT:()=>n.SESSION_STOPPED_EVENT,SESSION_SUBSCRIBE_EVENT:()=>n.SESSION_SUBSCRIBE_EVENT,SESSION_TYPE_PROP_NAME:()=>n.SESSION_TYPE_PROP_NAME,SESSION_UNSUBSCRIBE_EVENT:()=>n.SESSION_UNSUBSCRIBE_EVENT,SOCKET_SET_USER_EVENT:()=>n.SOCKET_SET_USER_EVENT,getMaskingConfig:()=>i.getMaskingConfig,getSessionRecorderConfig:()=>a.getSessionRecorderConfig,isValidArray:()=>s.isValidArray,isValidBoolean:()=>s.isValidBoolean,isValidEnum:()=>s.isValidEnum,isValidFunction:()=>s.isValidFunction,isValidNumber:()=>s.isValidNumber,isValidString:()=>s.isValidString,isValidStringOrRegExp:()=>s.isValidStringOrRegExp});var n=r("./src/config/constants.ts"),o=r("./src/config/defaults.ts"),s=r("./src/config/validators.ts"),i=r("./src/config/masking.ts"),a=r("./src/config/session-recorder.ts")},"./src/config/masking.ts":(e,t,r)=>{r.r(t),r.d(t,{getMaskingConfig:()=>u});var n=r("./src/config/defaults.ts"),o=r("./src/config/validators.ts"),s=r("../session-recorder-common/dist/esm/index-browser.js");const{mask:i,sensitiveFields:a,sensitiveHeaders:c}=s.SessionRecorderSdk,u=e=>{var t,r,s,u;const l=n.DEFAULT_MASKING_CONFIG;if("object"!=typeof e)return l;const d=(0,o.isValidArray)(e.maskHeadersList,c),p=(0,o.isValidArray)(e.maskBodyFieldsList,a);return{maskAllInputs:(0,o.isValidBoolean)(e.maskAllInputs,null===(t=l.maskAllInputs)||void 0===t||t),maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,maskInputOptions:e.maskInputOptions&&"object"==typeof e.maskInputOptions?e.maskInputOptions:void 0,maskInput:(0,o.isValidFunction)(e.maskInput,void 0),maskText:(0,o.isValidFunction)(e.maskText,void 0),maskConsoleEvent:(0,o.isValidFunction)(e.maskConsoleEvent,void 0),maskHeadersList:d,maskBodyFieldsList:p,headersToInclude:(0,o.isValidArray)(e.headersToInclude,null!==(r=l.headersToInclude)&&void 0!==r?r:[]),headersToExclude:(0,o.isValidArray)(e.headersToExclude,null!==(s=l.headersToExclude)&&void 0!==s?s:[]),isContentMaskingEnabled:(0,o.isValidBoolean)(e.isContentMaskingEnabled,null===(u=l.isContentMaskingEnabled)||void 0===u||u),maskBody:(0,o.isValidFunction)(e.maskBody,i(p)),maskHeaders:(0,o.isValidFunction)(e.maskHeaders,i(d))}}},"./src/config/session-recorder.ts":(e,t,r)=>{r.r(t),r.d(t,{getSessionRecorderConfig:()=>a});var n=r("./src/types/index.ts"),o=r("./src/config/defaults.ts"),s=r("./src/config/masking.ts"),i=r("./src/config/validators.ts");const a=e=>{var t,r,a;return e?{apiKey:(0,i.isValidString)(e.apiKey,o.BASE_CONFIG.apiKey),version:(0,i.isValidString)(e.version,o.BASE_CONFIG.version),application:(0,i.isValidString)(e.application,o.BASE_CONFIG.application),environment:(0,i.isValidString)(e.environment,o.BASE_CONFIG.environment),exporterEndpoint:(0,i.isValidString)(e.exporterEndpoint,o.BASE_CONFIG.exporterEndpoint),apiBaseUrl:(0,i.isValidString)(e.apiBaseUrl,o.BASE_CONFIG.apiBaseUrl),usePostMessageFallback:(0,i.isValidBoolean)(e.usePostMessageFallback,o.BASE_CONFIG.usePostMessageFallback),showWidget:(0,i.isValidBoolean)(e.showWidget,o.BASE_CONFIG.showWidget),showContinuousRecording:(0,i.isValidBoolean)(e.showContinuousRecording,o.BASE_CONFIG.showContinuousRecording),recordCanvas:(0,i.isValidBoolean)(e.recordCanvas,o.BASE_CONFIG.recordCanvas),recordNavigation:(0,i.isValidBoolean)(e.recordNavigation,o.BASE_CONFIG.recordNavigation),widgetButtonPlacement:(0,i.isValidEnum)(e.widgetButtonPlacement,o.BASE_CONFIG.widgetButtonPlacement,Object.values(n.WidgetButtonPlacement)),ignoreUrls:(0,i.isValidArray)(e.ignoreUrls,o.BASE_CONFIG.ignoreUrls),sampleTraceRatio:(0,i.isValidNumber)(e.sampleTraceRatio,o.BASE_CONFIG.sampleTraceRatio),propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls||o.BASE_CONFIG.propagateTraceHeaderCorsUrls,schemifyDocSpanPayload:(0,i.isValidBoolean)(e.schemifyDocSpanPayload,o.BASE_CONFIG.schemifyDocSpanPayload),maxCapturingHttpPayloadSize:(0,i.isValidNumber)(e.maxCapturingHttpPayloadSize,o.BASE_CONFIG.maxCapturingHttpPayloadSize),captureBody:(0,i.isValidBoolean)(e.captureBody,o.BASE_CONFIG.captureBody),captureHeaders:(0,i.isValidBoolean)(e.captureHeaders,o.BASE_CONFIG.captureHeaders),masking:(0,s.getMaskingConfig)(e.masking),widgetTextOverrides:(r=e.widgetTextOverrides,a=o.BASE_CONFIG.widgetTextOverrides,r&&"object"==typeof r?{initialTitleWithContinuous:(0,i.isValidString)(r.initialTitleWithContinuous,a.initialTitleWithContinuous),initialTitleWithoutContinuous:(0,i.isValidString)(r.initialTitleWithoutContinuous,a.initialTitleWithoutContinuous),initialDescriptionWithContinuous:(0,i.isValidString)(r.initialDescriptionWithContinuous,a.initialDescriptionWithContinuous),initialDescriptionWithoutContinuous:(0,i.isValidString)(r.initialDescriptionWithoutContinuous,a.initialDescriptionWithoutContinuous),continuousRecordingLabel:(0,i.isValidString)(r.continuousRecordingLabel,a.continuousRecordingLabel),startRecordingButtonText:(0,i.isValidString)(r.startRecordingButtonText,a.startRecordingButtonText),finalTitle:(0,i.isValidString)(r.finalTitle,a.finalTitle),finalDescription:(0,i.isValidString)(r.finalDescription,a.finalDescription),commentPlaceholder:(0,i.isValidString)(r.commentPlaceholder,a.commentPlaceholder),saveButtonText:(0,i.isValidString)(r.saveButtonText,a.saveButtonText),cancelButtonText:(0,i.isValidString)(r.cancelButtonText,a.cancelButtonText),continuousOverlayTitle:(0,i.isValidString)(r.continuousOverlayTitle,a.continuousOverlayTitle),continuousOverlayDescription:(0,i.isValidString)(r.continuousOverlayDescription,a.continuousOverlayDescription),saveLastSnapshotButtonText:(0,i.isValidString)(r.saveLastSnapshotButtonText,a.saveLastSnapshotButtonText),submitDialogTitle:(0,i.isValidString)(r.submitDialogTitle,a.submitDialogTitle),submitDialogSubtitle:(0,i.isValidString)(r.submitDialogSubtitle,a.submitDialogSubtitle),submitDialogCommentLabel:(0,i.isValidString)(r.submitDialogCommentLabel,a.submitDialogCommentLabel),submitDialogCommentPlaceholder:(0,i.isValidString)(r.submitDialogCommentPlaceholder,a.submitDialogCommentPlaceholder),submitDialogSubmitText:(0,i.isValidString)(r.submitDialogSubmitText,a.submitDialogSubmitText),submitDialogCancelText:(0,i.isValidString)(r.submitDialogCancelText,a.submitDialogCancelText)}:a),useWebsocket:(0,i.isValidBoolean)(e.useWebsocket,null!==(t=o.BASE_CONFIG.useWebsocket)&&void 0!==t&&t)}:o.BASE_CONFIG}},"./src/config/validators.ts":(e,t,r)=>{r.r(t),r.d(t,{isValidArray:()=>a,isValidBoolean:()=>i,isValidEnum:()=>c,isValidFunction:()=>u,isValidNumber:()=>s,isValidString:()=>o,isValidStringOrRegExp:()=>n});const n=(e,t)=>"string"==typeof e||e instanceof RegExp?e:t,o=(e,t)=>"string"==typeof e?e.trim():t,s=(e,t)=>"number"==typeof e?e:t,i=(e,t)=>"boolean"==typeof e?e:t,a=(e,t)=>Array.isArray(e)?e:t,c=(e,t,r)=>r.includes(e)?e:t,u=(e,t)=>"function"==typeof e?e:t},"./src/services/messaging.service.ts":(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n=new class{constructor(){this.promiseIdCounter=0,this.promiseMap=new Map,this.messagingServices=new Map,this.isBrowser="undefined"!=typeof window,this.setupMessageListener()}generatePromiseId(){return"promise_"+ ++this.promiseIdCounter}sendMessage(e,t){if(!this.isBrowser)return;const r={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t};window.postMessage(r,"*")}sendMessagePromise(e,t){if(!this.isBrowser)return Promise.reject(new Error("Not in browser environment"));const r=this.generatePromiseId(),n=new Promise((e,t)=>{this.promiseMap.set(r,{resolve:e,reject:t})}),o={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t,promiseId:r};return window.postMessage(o,"*"),n}on(e,t){const r=this.messagingServices.get(e)||[];r.push(t),this.messagingServices.set(e,r)}off(e,t){if(!t)return void this.messagingServices.delete(e);const r=this.messagingServices.get(e);if(r){const n=r.indexOf(t);-1!==n&&(r.splice(n,1),0===r.length?this.messagingServices.delete(e):this.messagingServices.set(e,r))}}setupMessageListener(){this.isBrowser&&window.addEventListener("message",e=>{const{type:t,action:r,payload:n,promiseId:o}=e.data;if("MULTIPLAYER_SESSION_DEBUGGER_EXTENSION"!==t||!r)return;if(o&&this.promiseMap.has(o)){const{resolve:e,reject:t}=this.promiseMap.get(o),{error:r,response:s}=n;return r?t(r):e(s),void this.promiseMap.delete(o)}const s=this.messagingServices.get(r);s&&s.forEach(e=>e(n))})}}},"./src/services/socket.service.ts":(e,t,r)=>{r.r(t),r.d(t,{SocketService:()=>a});var n=r("../../node_modules/socket.io-client/build/esm/index.js"),o=r("../../node_modules/lib0/observable.js"),s=r("./src/services/messaging.service.ts"),i=r("./src/config/index.ts");class a extends o.Observable{constructor(){super(),this.socket=null,this.queue=[],this.isConnecting=!1,this.isConnected=!1,this.attempts=0,this.sessionId=null,this.usePostMessage=!1,this.options={apiKey:"",socketUrl:"",keepAlive:!1,usePostMessageFallback:!1}}init(e){this.options={...this.options,...e},this.options.keepAlive&&this.options.socketUrl&&this.options.apiKey&&this._initConnection()}updateConfigs(e){var t;Object.keys(e).some(t=>{const r=t;return void 0!==e[r]&&e[r]!==this.options[r]})&&(this.options={...this.options,...e},(null===(t=this.socket)||void 0===t?void 0:t.connected)&&this.close().then(()=>{this.options.keepAlive&&this.options.socketUrl&&this.options.apiKey&&this._initConnection()}))}_initConnection(){this.isConnecting||this.isConnected||(this.attempts++,this.isConnecting=!0,this.usePostMessage=!1,this.socket=(0,n.default)(this.options.socketUrl,{path:"/v0/radar/ws",auth:{"x-api-key":this.options.apiKey},reconnectionAttempts:2,transports:["websocket"]}),this.socket.on("ready",()=>{this.isConnecting=!1,this.isConnected=!0,this.usePostMessage=!1,this.flushQueue()}),this.socket.on("disconnect",e=>{this.isConnecting=!1,this.isConnected=!1}),this.socket.on("connect_error",e=>{this.isConnecting=!1,this.isConnected=!1,this.checkReconnectionAttempts()}),this.socket.on(i.SESSION_STOPPED_EVENT,e=>{this.emit(i.SESSION_STOPPED_EVENT,[e])}),this.socket.on(i.SESSION_AUTO_CREATED,e=>{this.emit(i.SESSION_AUTO_CREATED,[e])}),this.socket.on(i.REMOTE_SESSION_RECORDING_START,e=>{this.emit(i.REMOTE_SESSION_RECORDING_START,[e])}),this.socket.on(i.REMOTE_SESSION_RECORDING_STOP,e=>{this.emit(i.REMOTE_SESSION_RECORDING_STOP,[e])}))}checkReconnectionAttempts(){this.attempts>=2&&(this.usePostMessage=!!this.options.usePostMessageFallback,this.flushQueue())}sendViaPostMessage(e,t){const r=e===i.SESSION_ADD_EVENT?"rrweb-event":"socket-emit";s.default.sendMessage(r,t)}emitSocketEvent(e,t){this.usePostMessage?this.sendViaPostMessage(e,t):this.socket&&this.isConnected?this.socket.emit(e,t):(this.queue.push({data:t,name:e}),this._initConnection())}flushQueue(){for(;this.queue.length>0&&(this.usePostMessage||this.isConnected);){const e=this.queue.shift();e&&(this.usePostMessage?this.sendViaPostMessage(e.name,e.data):this.socket&&this.isConnected&&this.socket.emit(e.name,e.data))}}send(e){this.emitSocketEvent(i.SESSION_ADD_EVENT,e)}subscribeToSession(e){this.sessionId=e.shortId||e._id;const t={projectId:e.project,workspaceId:e.workspace,debugSessionId:this.sessionId,sessionType:e.creationType};this.emitSocketEvent(i.SESSION_SUBSCRIBE_EVENT,t),this.emitSocketEvent(i.SESSION_STARTED_EVENT,{debugSessionId:e._id})}unsubscribeFromSession(e){this.sessionId&&(this.emitSocketEvent(i.SESSION_UNSUBSCRIBE_EVENT,{debugSessionId:this.sessionId}),e&&this.emitSocketEvent(i.SESSION_STOPPED_EVENT,{}))}setUser(e){this.emitSocketEvent(i.SOCKET_SET_USER_EVENT,e)}close(){return new Promise(e=>{var t;this.usePostMessage&&this.sendViaPostMessage("close",{}),(null===(t=this.socket)||void 0===t?void 0:t.connected)?setTimeout(()=>{var t;this.unsubscribeFromSession(),this.attempts=0,this.isConnected=!1,this.isConnecting=!1,null===(t=this.socket)||void 0===t||t.disconnect(),this.socket=null,e()},500):e()})}}},"./src/types/index.ts":(e,t,r)=>{r.r(t),r.d(t,{SessionState:()=>n.SessionState,WidgetButtonPlacement:()=>n.WidgetButtonPlacement}),r("./src/types/widget.ts");var n=r("./src/types/session-recorder.ts")},"./src/types/session-recorder.ts":(e,t,r)=>{var n,o;r.r(t),r.d(t,{SessionState:()=>o,WidgetButtonPlacement:()=>n}),function(e){e.topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"}(n||(n={})),function(e){e.started="2",e.paused="1",e.stopped="0"}(o||(o={}))},"./src/types/widget.ts":(e,t,r)=>{r.r(t)},"../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderIdGenerator:()=>i});var n=r("../session-recorder-common/dist/esm/type/index.js"),o=r("../session-recorder-common/dist/esm/constants/constants.base.js"),s=r("../session-recorder-common/dist/esm/sdk/index.js"),i=function(){function e(){this.generateLongId=(0,s.getIdGenerator)(16),this.generateShortId=(0,s.getIdGenerator)(8),this.sessionShortId="",this.sessionType=n.SessionType.MANUAL}return e.prototype.generateTraceId=function(){var e=this.generateLongId();if(this.sessionShortId){var t="";t=this.sessionType===n.SessionType.CONTINUOUS?o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:o.MULTIPLAYER_TRACE_DEBUG_PREFIX;var r="".concat(t).concat(this.sessionShortId);return"".concat(r).concat(e.substring(r.length,e.length))}return e},e.prototype.generateSpanId=function(){return this.generateShortId()},e.prototype.setSessionId=function(e,t){void 0===t&&(t=n.SessionType.MANUAL),this.sessionShortId=e,this.sessionType=t},e}()},"../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderTraceIdRatioBasedSampler:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=r("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=r("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){if(t.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))return{decision:o.SamplingDecision.RECORD_AND_SAMPLED};var r=o.SamplingDecision.NOT_RECORD;return(0,n.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound&&(r=o.SamplingDecision.RECORD_AND_SAMPLED),{decision:r}},e.prototype.toString=function(){return"SessionRecorderTraceIdRatioBasedSampler{".concat(this._ratio,"}")},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r<e.length/8;r++){var n=8*r;t=(t^parseInt(e.slice(n,n+8),16))>>>0}return t},e}()},"../session-recorder-common/dist/esm/constants/constants.base.js":(e,t,r)=>{r.r(t),r.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>S,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>T,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>g,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>M,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>w,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>k,ATTR_MULTIPLAYER_HTTP_PROXY:()=>A,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>v,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>L,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>P,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>O,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>U,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>I,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>b,ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH:()=>F,ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH:()=>Y,ATTR_MULTIPLAYER_ISSUE_HASH:()=>G,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>x,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>D,ATTR_MULTIPLAYER_PLATFORM_ID:()=>E,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>y,ATTR_MULTIPLAYER_PROJECT_ID:()=>f,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>N,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>C,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>j,ATTR_MULTIPLAYER_SESSION_ID:()=>R,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>B,ATTR_MULTIPLAYER_USER_HASH:()=>H,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>m,MASK_PLACEHOLDER:()=>V,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>_,MULTIPLAYER_BASE_API_URL:()=>h,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>p,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>l,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>c,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>d,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>u,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>a,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>o,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>i,MULTIPLAYER_TRACE_DOC_PREFIX:()=>n});var n="d0cd0c",o="debdeb",s="cdbcdb",i=16,a="https://api.multiplayer.app/v1/traces",c="https://api.multiplayer.app/v1/logs",u="https://otlp.multiplayer.app/v1/traces",l="https://otlp.multiplayer.app/v1/logs",d="https://otlp.multiplayer.app:4317/v1/traces",p="https://otlp.multiplayer.app:4317/v1/logs",h="https://api.multiplayer.app",_="multiplayer.",m="multiplayer.workspace.id",f="multiplayer.project.id",E="multiplayer.platform.id",T="multiplayer.session.auto-save",g="multiplayer.session.auto-save.reason",y="multiplayer.platform.name",S="multiplayer.client.id",b="multiplayer.integration.id",R="multiplayer.session.id",A="multiplayer.http.proxy",v="multiplayer.http.proxy.type",L="multiplayer.http.request.body",O="multiplayer.http.response.body",P="multiplayer.http.request.headers",I="multiplayer.http.response.headers",U="multiplayer.http.response.body.encoding",N="multiplayer.rpc.request.message",C="multiplayer.rpc.request.message.encoding",j="multiplayer.rpc.response.message",M="multiplayer.rpc.grpc.request.message",w="multiplayer.rpc.request.message.encoding",k="multiplayer.rpc.grpc.response.message",x="multiplayer.messaging.message.body",D="multiplayer.messaging.message.body.encoding",B="multiplayer.session-recorder.version",Y="multiplayer.issue.custom-hash",G="multiplayer.issue.hash",F="multiplayer.issue.component-hash",H="multiplayer.user.hash",V="***MASKED***"},"../session-recorder-common/dist/esm/constants/constants.browser.js":(e,t,r)=>{r.r(t),r.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>n.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>n.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH,ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH,ATTR_MULTIPLAYER_ISSUE_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_HASH,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>n.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>n.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>n.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>n.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>n.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_USER_HASH:()=>n.ATTR_MULTIPLAYER_USER_HASH,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>n.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>n.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>n.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>n.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>n.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>n.MULTIPLAYER_TRACE_DOC_PREFIX});var n=r("../session-recorder-common/dist/esm/constants/constants.base.js")},"../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderBrowserTraceExporter:()=>i});var n=r("../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js"),o=r("../session-recorder-common/dist/esm/constants/constants.base.js"),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},i=function(){function e(e){void 0===e&&(e={}),this.usePostMessage=!1;var t=e.url,r=void 0===t?o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:t,n=e.apiKey,i=e.headers,a=void 0===i?{}:i,c=e.timeoutMillis,u=void 0===c?3e4:c,l=e.keepAlive,d=void 0===l||l,p=e.concurrencyLimit,h=void 0===p?20:p,_=e.postMessageType,m=void 0===_?"MULTIPLAYER_SESSION_DEBUGGER_LIB":_,f=e.postMessageTargetOrigin,E=void 0===f?"*":f;this.config=s(s({},e),{url:r,apiKey:n,headers:a,timeoutMillis:u,keepAlive:d,concurrencyLimit:h}),this.postMessageType=m,this.postMessageTargetOrigin=E,this.exporter=this._createExporter()}return e.prototype.export=function(e,t){var r=this,n=e.filter(function(e){var t=e.spanContext().traceId;return t.startsWith(o.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)});0!==n.length?this.usePostMessage?this.exportViaPostMessage(n,t):this.exporter.export(n,function(e){0===e.code?t(e):r.config.usePostMessageFallback?(r.usePostMessage=!0,r.exportViaPostMessage(n,t)):t(e)}):t({code:0})},e.prototype.shutdown=function(){return this.exporter.shutdown()},e.prototype.exportViaPostMessage=function(e,t){var r=this;if("undefined"!=typeof window)try{window.postMessage({action:"traces",type:this.postMessageType,payload:e.map(function(e){return r._serializeSpan(e)})},this.postMessageTargetOrigin),t({code:0})}catch(e){t({code:1})}else t({code:1})},e.prototype._serializeSpan=function(e){var t;return{_spanContext:e.spanContext(),name:e.name,kind:e.kind,links:e.links,ended:e.ended,events:e.events,status:e.status,endTime:e.endTime,startTime:e.startTime,duration:e.duration,attributes:e.attributes,parentSpanId:null===(t=e.parentSpanContext)||void 0===t?void 0:t.spanId,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,resource:{attributes:e.resource.attributes,asyncAttributesPending:e.resource.asyncAttributesPending}}},e.prototype._createExporter=function(){return new n.OTLPTraceExporter({url:this.config.url,headers:s(s({"Content-Type":"application/json"},this.config.apiKey?{Authorization:this.config.apiKey}:{}),this.config.headers||{}),timeoutMillis:this.config.timeoutMillis,keepAlive:this.config.keepAlive,concurrencyLimit:this.config.concurrencyLimit})},e.prototype.setApiKey=function(e){this.config.apiKey=e,this.exporter=this._createExporter()},e}()},"../session-recorder-common/dist/esm/exporters/index-browser.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderBrowserTraceExporter:()=>n.SessionRecorderBrowserTraceExporter});var n=r("../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js")},"../session-recorder-common/dist/esm/index-browser.js":(e,t,r)=>{r.r(t),r.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>n.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>n.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH,ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH,ATTR_MULTIPLAYER_ISSUE_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_HASH,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>n.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>n.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>n.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>n.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>n.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_USER_HASH:()=>n.ATTR_MULTIPLAYER_USER_HASH,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>n.ATTR_MULTIPLAYER_WORKSPACE_ID,DebugSessionDataType:()=>a.DebugSessionDataType,MASK_PLACEHOLDER:()=>n.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>n.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>n.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>n.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>n.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderBrowserTraceExporter:()=>c.SessionRecorderBrowserTraceExporter,SessionRecorderIdGenerator:()=>o.SessionRecorderIdGenerator,SessionRecorderSdk:()=>i,SessionRecorderTraceIdRatioBasedSampler:()=>s.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>a.SessionType,UserType:()=>a.UserType});var n=r("../session-recorder-common/dist/esm/constants/constants.browser.js"),o=r("../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js"),s=r("../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),i=r("../session-recorder-common/dist/esm/sdk/index.js"),a=r("../session-recorder-common/dist/esm/type/index.js"),c=r("../session-recorder-common/dist/esm/exporters/index-browser.js")},"../session-recorder-common/dist/esm/sdk/capture-exception.js":(e,t,r)=>{r.r(t),r.d(t,{captureException:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),i=function(e){if(e){var t=n.trace.getSpan(o.context.active());t&&(t.recordException(e),t.setStatus({code:s.SpanStatusCode.ERROR,message:e.message}))}}},"../session-recorder-common/dist/esm/sdk/id-generator.js":(e,t,r)=>{r.r(t),r.d(t,{getIdGenerator:()=>o});var n=Array(32),o=function(e){return function(){for(var t=0;t<2*e;t++)n[t]=Math.floor(16*Math.random())+48,n[t]>=58&&(n[t]+=39);return String.fromCharCode.apply(null,n.slice(0,2*e))}}},"../session-recorder-common/dist/esm/sdk/index.js":(e,t,r)=>{r.r(t),r.d(t,{captureException:()=>a.captureException,getIdGenerator:()=>i.getIdGenerator,isGzip:()=>s.isGzip,mask:()=>n.default,saveContinuousSession:()=>u.saveContinuousSession,schemify:()=>o.default,sensitiveFields:()=>n.sensitiveFields,sensitiveHeaders:()=>n.sensitiveHeaders,setAttribute:()=>c.setAttribute,setGrpcRequestMessage:()=>c.setGrpcRequestMessage,setGrpcResponseMessage:()=>c.setGrpcResponseMessage,setHttpRequestBody:()=>c.setHttpRequestBody,setHttpRequestHeaders:()=>c.setHttpRequestHeaders,setHttpResponseBody:()=>c.setHttpResponseBody,setHttpResponseHeaders:()=>c.setHttpResponseHeaders,setMessageBody:()=>c.setMessageBody,setRpcRequestMessage:()=>c.setRpcRequestMessage,setRpcResponseMessage:()=>c.setRpcResponseMessage});var n=r("../session-recorder-common/dist/esm/sdk/mask.js"),o=r("../session-recorder-common/dist/esm/sdk/schemify.js"),s=r("../session-recorder-common/dist/esm/sdk/is-gzip.js"),i=r("../session-recorder-common/dist/esm/sdk/id-generator.js"),a=r("../session-recorder-common/dist/esm/sdk/capture-exception.js"),c=r("../session-recorder-common/dist/esm/sdk/set-attribute.js"),u=r("../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js")},"../session-recorder-common/dist/esm/sdk/is-gzip.js":(e,t,r)=>{r.r(t),r.d(t,{isGzip:()=>n});var n=function(e){return!(!e||e.length<3)&&31===e[0]&&139===e[1]&&8===e[2]}},"../session-recorder-common/dist/esm/sdk/mask.js":(e,t,r)=>{r.r(t),r.d(t,{default:()=>c,sensitiveFields:()=>o,sensitiveHeaders:()=>s});var n=r("../session-recorder-common/dist/esm/constants/constants.base.js"),o=["password","pass","passwd","pwd","token","access_token","accessToken","refresh_token","refreshToken","secret","api_key","apiKey","authorization","auth_token","authToken","jwt","session_id","sessionId","sessionToken","client_secret","clientSecret","private_key","privateKey","public_key","publicKey","key","encryption_key","encryptionKey","credit_card","creditCard","card_number","cardNumber","cvv","cvc","ssn","sin","pin","security_code","securityCode","bank_account","bankAccount","iban","swift","bic","routing_number","routingNumber","license_key","licenseKey","otp","mfa_code","mfaCode","phone_number","phoneNumber","email","address","dob","tax_id","taxId","passport_number","passportNumber","driver_license","driverLicense","set-cookie","cookie","authorization","proxyAuthorization"],s=["set-cookie","cookie","authorization","proxyAuthorization"],i=function(e,t){void 0===t&&(t=0);var r=typeof e,o="object"===r,s=!1;if(Array.isArray(e)&&(s=!0),!(t>8&&(o||s))){if(s)return e.map(function(e){return i(e,t+1)},e);if(o){for(var a in e)e[a]=i(e[a],t+1);return e}return"string"===r?n.MASK_PLACEHOLDER:e}},a=function(e,t){var r="object"===typeof e,o=new Set(t);if(Array.isArray(e))return e.map(function(e){return a(e,t)},e);if(r){for(var s in e)o.has(s)?e[s]=n.MASK_PLACEHOLDER:e[s]=a(e[s],t);return e}return e};const c=function(e){return void 0===e&&(e=[]),function(t,r){var n,o;try{n=JSON.parse(t)}catch(e){n=t}return"string"!=typeof(o=e.length?a(n,e):i(n))&&(o=JSON.stringify(o)),o}}},"../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js":(e,t,r)=>{r.r(t),r.d(t,{saveContinuousSession:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=r("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(e){var t=n.trace.getSpan(o.context.active());t&&(null==t||t.setAttribute(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,!0),(null==e?void 0:e.length)&&(null==t||t.addEvent(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,{reason:e})))}},"../session-recorder-common/dist/esm/sdk/schemify.js":(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r("../../node_modules/to-json-schema/lib/index.js"),o=(null==n?void 0:r.n(n)())||n,s={strings:{preProcessFnc:function(e,t){return(null==e?void 0:e.length)>=30?t("some_string"):t(e)}},arrays:{mode:"first"}};const i=function(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r=s),!e)return"";var n;if("string"==typeof e)try{n=JSON.parse(e)}catch(t){return e}else{if("object"!=typeof e)return e;n=e}try{var i=o(n,r);return t?JSON.stringify(i):i}catch(e){return""}}},"../session-recorder-common/dist/esm/sdk/set-attribute.js":(e,t,r)=>{r.r(t),r.d(t,{setAttribute:()=>a,setGrpcRequestMessage:()=>m,setGrpcResponseMessage:()=>f,setHttpRequestBody:()=>c,setHttpRequestHeaders:()=>u,setHttpResponseBody:()=>l,setHttpResponseHeaders:()=>d,setMessageBody:()=>p,setRpcRequestMessage:()=>h,setRpcResponseMessage:()=>_});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=r("../session-recorder-common/dist/esm/constants/constants.base.js"),i=r("../session-recorder-common/dist/esm/sdk/mask.js"),a=function(e,t){var r=n.trace.getSpan(o.context.active());r&&r.setAttribute(e,t)},c=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,e))},u=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveHeaders)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,e))},l=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,e))},d=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,e))},p=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,e))},h=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,e))},_=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,e))},m=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,e))},f=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,e))}},"../session-recorder-common/dist/esm/type/index.js":(e,t,r)=>{r.r(t),r.d(t,{DebugSessionDataType:()=>s.DebugSessionDataType,SessionType:()=>n.SessionType,UserType:()=>o.UserType});var n=r("../session-recorder-common/dist/esm/type/session-type.enum.js"),o=r("../session-recorder-common/dist/esm/type/user-type.enum.js"),s=r("../session-recorder-common/dist/esm/type/session.js")},"../session-recorder-common/dist/esm/type/session-type.enum.js":(e,t,r)=>{var n;r.r(t),r.d(t,{SessionType:()=>n}),function(e){e.CONTINUOUS="CONTINUOUS",e.PLAIN="MANUAL",e.MANUAL="MANUAL"}(n||(n={}))},"../session-recorder-common/dist/esm/type/session.js":(e,t,r)=>{var n;r.r(t),r.d(t,{DebugSessionDataType:()=>n}),function(e){e.OTLP_TRACES="OTLP_TRACES",e.OTLP_LOGS="OTLP_LOGS",e.RRWEB_EVENTS="RRWEB_EVENTS"}(n||(n={}))},"../session-recorder-common/dist/esm/type/user-type.enum.js":(e,t,r)=>{var n;r.r(t),r.d(t,{UserType:()=>n}),function(e){e.USER="USER",e.VISITOR="VISITOR",e.API_CLIENT="API_CLIENT"}(n||(n={}))},"../../node_modules/@socket.io/component-emitter/lib/esm/index.js":(e,t,r)=>{function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}r.r(t),r.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},"../../node_modules/engine.io-client/build/esm/contrib/has-cors.js":(e,t,r)=>{r.r(t),r.d(t,{hasCORS:()=>o});let n=!1;try{n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const o=n},"../../node_modules/engine.io-client/build/esm/contrib/parseqs.js":(e,t,r)=>{function n(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function o(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}r.r(t),r.d(t,{decode:()=>o,encode:()=>n})},"../../node_modules/engine.io-client/build/esm/contrib/parseuri.js":(e,t,r)=>{r.r(t),r.d(t,{parse:()=>s});const n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function s(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),s=e.indexOf("]");-1!=r&&-1!=s&&(e=e.substring(0,r)+e.substring(r,s).replace(/:/g,";")+e.substring(s,e.length));let i=n.exec(e||""),a={},c=14;for(;c--;)a[o[c]]=i[c]||"";return-1!=r&&-1!=s&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const r=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,a.path),a.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,a.query),a}},"../../node_modules/engine.io-client/build/esm/contrib/yeast.js":(e,t,r)=>{r.r(t),r.d(t,{decode:()=>l,encode:()=>u,yeast:()=>d});const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o=64,s={};let i,a=0,c=0;function u(e){let t="";do{t=n[e%o]+t,e=Math.floor(e/o)}while(e>0);return t}function l(e){let t=0;for(c=0;c<e.length;c++)t=t*o+s[e.charAt(c)];return t}function d(){const e=u(+new Date);return e!==i?(a=0,i=e):e+"."+u(a++)}for(;c<o;c++)s[n[c]]=c},"../../node_modules/engine.io-client/build/esm/globalThis.browser.js":(e,t,r)=>{r.r(t),r.d(t,{globalThisShim:()=>n});const n="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"../../node_modules/engine.io-client/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{Socket:()=>n.Socket,Transport:()=>o.Transport,TransportError:()=>o.TransportError,installTimerFunctions:()=>i.installTimerFunctions,nextTick:()=>c.nextTick,parse:()=>a.parse,protocol:()=>u,transports:()=>s.transports});var n=r("../../node_modules/engine.io-client/build/esm/socket.js"),o=r("../../node_modules/engine.io-client/build/esm/transport.js"),s=r("../../node_modules/engine.io-client/build/esm/transports/index.js"),i=r("../../node_modules/engine.io-client/build/esm/util.js"),a=r("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),c=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");const u=n.Socket.protocol},"../../node_modules/engine.io-client/build/esm/socket.js":(e,t,r)=>{r.r(t),r.d(t,{Socket:()=>l});var n=r("../../node_modules/engine.io-client/build/esm/transports/index.js"),o=r("../../node_modules/engine.io-client/build/esm/util.js"),s=r("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js"),i=r("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),a=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),c=r("../../node_modules/engine.io-parser/build/esm/index.js"),u=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");class l extends a.Emitter{constructor(e,t={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,i.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,i.parse)(t.host).host),(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=c.protocol,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new n.transports[e](r)}open(){let e;if(this.opts.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),r=!1;l.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function o(){r||(r=!0,u(),t.close(),t=null)}const s=e=>{const r=new Error("probe error: "+e);r.transport=t.name,o(),this.emitReserved("upgradeError",r)};function i(){s("transport closed")}function a(){s("socket closed")}function c(e){t&&e.name!==t.name&&o()}const u=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",c)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=(0,o.byteLength)(r)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const o={type:e,data:t,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){l.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r<n;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}l.protocol=c.protocol},"../../node_modules/engine.io-client/build/esm/transport.js":(e,t,r)=>{r.r(t),r.d(t,{Transport:()=>c,TransportError:()=>a});var n=r("../../node_modules/engine.io-parser/build/esm/index.js"),o=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),s=r("../../node_modules/engine.io-client/build/esm/util.js"),i=r("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js");class a extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class c extends o.Emitter{constructor(e){super(),this.writable=!1,(0,s.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new a(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,n.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,i.encode)(e);return t.length?"?"+t:""}}},"../../node_modules/engine.io-client/build/esm/transports/index.js":(e,t,r)=>{r.r(t),r.d(t,{transports:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/transports/polling.js"),o=r("../../node_modules/engine.io-client/build/esm/transports/websocket.js"),s=r("../../node_modules/engine.io-client/build/esm/transports/webtransport.js");const i={websocket:o.WS,webtransport:s.WT,polling:n.Polling}},"../../node_modules/engine.io-client/build/esm/transports/polling.js":(e,t,r)=>{r.r(t),r.d(t,{Polling:()=>p,Request:()=>h});var n=r("../../node_modules/engine.io-client/build/esm/transport.js"),o=r("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=r("../../node_modules/engine.io-parser/build/esm/index.js"),i=r("../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js"),a=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),c=r("../../node_modules/engine.io-client/build/esm/util.js"),u=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function l(){}const d=null!=new i.XHR({xdomain:!1}).responseType;class p extends n.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=d&&!t,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){(0,s.decodePayload)(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,(0,s.encodePayload)(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class h extends a.Emitter{constructor(e,t){super(),(0,c.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=(0,c.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new i.XHR(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=h.requestsCount++,h.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=l,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete h.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(h.requestsCount=0,h.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",_);else if("function"==typeof addEventListener){const e="onpagehide"in u.globalThisShim?"pagehide":"unload";addEventListener(e,_,!1)}function _(){for(let e in h.requests)h.requests.hasOwnProperty(e)&&h.requests[e].abort()}},"../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js":(e,t,r)=>{r.r(t),r.d(t,{WebSocket:()=>s,defaultBinaryType:()=>a,nextTick:()=>o,usingBrowserWebSocket:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");const o="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),s=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,i=!0,a="arraybuffer"},"../../node_modules/engine.io-client/build/esm/transports/websocket.js":(e,t,r)=>{r.r(t),r.d(t,{WS:()=>u});var n=r("../../node_modules/engine.io-client/build/esm/transport.js"),o=r("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=r("../../node_modules/engine.io-client/build/esm/util.js"),i=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),a=r("../../node_modules/engine.io-parser/build/esm/index.js");const c="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class u extends n.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=c?{}:(0,s.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!c?t?new i.WebSocket(e,t):new i.WebSocket(e):new i.WebSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;(0,a.encodePacket)(r,this.supportsBinary,e=>{const t={};!i.usingBrowserWebSocket&&(r.options&&(t.compress=r.options.compress),this.opts.perMessageDeflate)&&("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1);try{i.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){}n&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!i.WebSocket}}},"../../node_modules/engine.io-client/build/esm/transports/webtransport.js":(e,t,r)=>{r.r(t),r.d(t,{WT:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/transport.js"),o=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),s=r("../../node_modules/engine.io-parser/build/esm/index.js");class i extends n.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=(0,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=(0,s.createPacketEncoderStream)();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const o=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;this.writer.write(r).then(()=>{n&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}},"../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js":(e,t,r)=>{r.r(t),r.d(t,{XHR:()=>s,createCookieJar:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/contrib/has-cors.js"),o=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function s(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(o.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function i(){}},"../../node_modules/engine.io-client/build/esm/util.js":(e,t,r)=>{r.r(t),r.d(t,{byteLength:()=>u,installTimerFunctions:()=>a,pick:()=>o});var n=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function o(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const s=n.globalThisShim.setTimeout,i=n.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=s.bind(n.globalThisShim),e.clearTimeoutFn=i.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))}const c=1.33;function u(e){return"string"==typeof e?function(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(e):Math.ceil((e.byteLength||e.size)*c)}},"../../node_modules/engine.io-parser/build/esm/commons.js":(e,t,r)=>{r.r(t),r.d(t,{ERROR_PACKET:()=>s,PACKET_TYPES:()=>n,PACKET_TYPES_REVERSE:()=>o});const n=Object.create(null);n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const o=Object.create(null);Object.keys(n).forEach(e=>{o[n[e]]=e});const s={type:"error",data:"parser error"}},"../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js":(e,t,r)=>{r.r(t),r.d(t,{decode:()=>i,encode:()=>s});const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)o[n.charCodeAt(e)]=e;const s=e=>{let t,r=new Uint8Array(e),o=r.length,s="";for(t=0;t<o;t+=3)s+=n[r[t]>>2],s+=n[(3&r[t])<<4|r[t+1]>>4],s+=n[(15&r[t+1])<<2|r[t+2]>>6],s+=n[63&r[t+2]];return o%3==2?s=s.substring(0,s.length-1)+"=":o%3==1&&(s=s.substring(0,s.length-2)+"=="),s},i=e=>{let t,r,n,s,i,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),d=new Uint8Array(l);for(t=0;t<c;t+=4)r=o[e.charCodeAt(t)],n=o[e.charCodeAt(t+1)],s=o[e.charCodeAt(t+2)],i=o[e.charCodeAt(t+3)],d[u++]=r<<2|n>>4,d[u++]=(15&n)<<4|s>>2,d[u++]=(3&s)<<6|63&i;return l}},"../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js":(e,t,r)=>{r.r(t),r.d(t,{decodePacket:()=>i});var n=r("../../node_modules/engine.io-parser/build/esm/commons.js"),o=r("../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js");const s="function"==typeof ArrayBuffer,i=(e,t)=>{if("string"!=typeof e)return{type:"message",data:c(e,t)};const r=e.charAt(0);return"b"===r?{type:"message",data:a(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[r]?e.length>1?{type:n.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[r]}:n.ERROR_PACKET},a=(e,t)=>{if(s){const r=(0,o.decode)(e);return c(r,t)}return{base64:!0,data:e}},c=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},"../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js":(e,t,r)=>{r.r(t),r.d(t,{encodePacket:()=>a,encodePacketToBinary:()=>d});var n=r("../../node_modules/engine.io-parser/build/esm/commons.js");const o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},r,a)=>o&&t instanceof Blob?r?a(t):c(t,a):s&&(t instanceof ArrayBuffer||i(t))?r?a(t):c(new Blob([t]),a):a(n.PACKET_TYPES[e]+(t||"")),c=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let l;function d(e,t){return o&&e.data instanceof Blob?e.data.arrayBuffer().then(u).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(u(e.data)):void a(e,!1,e=>{l||(l=new TextEncoder),t(l.encode(e))})}},"../../node_modules/engine.io-parser/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{createPacketDecoderStream:()=>h,createPacketEncoderStream:()=>u,decodePacket:()=>o.decodePacket,decodePayload:()=>c,encodePacket:()=>n.encodePacket,encodePayload:()=>a,protocol:()=>_});var n=r("../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"),o=r("../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"),s=r("../../node_modules/engine.io-parser/build/esm/commons.js");const i=String.fromCharCode(30),a=(e,t)=>{const r=e.length,o=new Array(r);let s=0;e.forEach((e,a)=>{(0,n.encodePacket)(e,!1,e=>{o[a]=e,++s===r&&t(o.join(i))})})},c=(e,t)=>{const r=e.split(i),n=[];for(let e=0;e<r.length;e++){const s=(0,o.decodePacket)(r[e],t);if(n.push(s),"error"===s.type)break}return n};function u(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,r=>{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}let l;function d(e){return e.reduce((e,t)=>e+t.length,0)}function p(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function h(e,t){l||(l=new TextDecoder);const r=[];let n=0,i=-1,a=!1;return new TransformStream({transform(c,u){for(r.push(c);;){if(0===n){if(d(r)<1)break;const e=p(r,1);a=!(128&~e[0]),i=127&e[0],n=i<126?3:126===i?1:2}else if(1===n){if(d(r)<2)break;const e=p(r,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(d(r)<8)break;const e=p(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){u.enqueue(s.ERROR_PACKET);break}i=o*Math.pow(2,32)+t.getUint32(4),n=3}else{if(d(r)<i)break;const e=p(r,i);u.enqueue((0,o.decodePacket)(a?e:l.decode(e),t)),n=0}if(0===i||i>e){u.enqueue(s.ERROR_PACKET);break}}}})}const _=4},"../../node_modules/lib0/array.js":(e,t,r)=>{r.r(t),r.d(t,{appendTo:()=>a,copy:()=>i,create:()=>s,equalFlat:()=>d,every:()=>u,flatten:()=>p,fold:()=>_,from:()=>c,isArray:()=>m,last:()=>o,map:()=>T,some:()=>l,unfold:()=>h,unique:()=>f,uniqueBy:()=>E});var n=r("../../node_modules/lib0/set.js");const o=e=>e[e.length-1],s=()=>[],i=e=>e.slice(),a=(e,t)=>{for(let r=0;r<t.length;r++)e.push(t[r])},c=Array.from,u=(e,t)=>{for(let r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0},l=(e,t)=>{for(let r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1},d=(e,t)=>e.length===t.length&&u(e,(e,r)=>e===t[r]),p=e=>_(e,[],(e,t)=>e.concat(t)),h=(e,t)=>{const r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n,r);return r},_=(e,t,r)=>e.reduce(r,t),m=Array.isArray,f=e=>c(n.from(e)),E=(e,t)=>{const r=n.create(),o=[];for(let n=0;n<e.length;n++){const s=e[n],i=t(s);r.has(i)||(r.add(i),o.push(s))}return o},T=(e,t)=>{const r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=t(e[n],n,e);return r}},"../../node_modules/lib0/map.js":(e,t,r)=>{r.r(t),r.d(t,{all:()=>c,any:()=>a,copy:()=>o,create:()=>n,map:()=>i,setIfUndefined:()=>s});const n=()=>new Map,o=e=>{const t=n();return e.forEach((e,r)=>{t.set(r,e)}),t},s=(e,t,r)=>{let n=e.get(t);return void 0===n&&e.set(t,n=r()),n},i=(e,t)=>{const r=[];for(const[n,o]of e)r.push(t(o,n));return r},a=(e,t)=>{for(const[r,n]of e)if(t(n,r))return!0;return!1},c=(e,t)=>{for(const[r,n]of e)if(!t(n,r))return!1;return!0}},"../../node_modules/lib0/observable.js":(e,t,r)=>{r.r(t),r.d(t,{Observable:()=>i});var n=r("../../node_modules/lib0/map.js"),o=r("../../node_modules/lib0/set.js"),s=r("../../node_modules/lib0/array.js");class i{constructor(){this._observers=n.create()}on(e,t){n.setIfUndefined(this._observers,e,o.create).add(t)}once(e,t){const r=(...n)=>{this.off(e,r),t(...n)};this.on(e,r)}off(e,t){const r=this._observers.get(e);void 0!==r&&(r.delete(t),0===r.size&&this._observers.delete(e))}emit(e,t){return s.from((this._observers.get(e)||n.create()).values()).forEach(e=>e(...t))}destroy(){this._observers=n.create()}}},"../../node_modules/lib0/set.js":(e,t,r)=>{r.r(t),r.d(t,{create:()=>n,first:()=>s,from:()=>i,toArray:()=>o});const n=()=>new Set,o=e=>Array.from(e),s=e=>e.values().next().value||void 0,i=e=>new Set(e)},"../../node_modules/socket.io-client/build/esm/contrib/backo2.js":(e,t,r)=>{function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}r.r(t),r.d(t,{Backoff:()=>n}),n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},"../../node_modules/socket.io-client/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{Manager:()=>o.Manager,Socket:()=>s.Socket,connect:()=>c,default:()=>c,io:()=>c,protocol:()=>i.protocol});var n=r("../../node_modules/socket.io-client/build/esm/url.js"),o=r("../../node_modules/socket.io-client/build/esm/manager.js"),s=r("../../node_modules/socket.io-client/build/esm/socket.js"),i=r("../../node_modules/socket.io-parser/build/esm/index.js");const a={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const r=(0,n.url)(e,t.path||"/socket.io"),s=r.source,i=r.id,c=r.path,u=a[i]&&c in a[i].nsps;let l;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?l=new o.Manager(s,t):(a[i]||(a[i]=new o.Manager(s,t)),l=a[i]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(c,{Manager:o.Manager,Socket:s.Socket,io:c,connect:c})},"../../node_modules/socket.io-client/build/esm/manager.js":(e,t,r)=>{r.r(t),r.d(t,{Manager:()=>u});var n=r("../../node_modules/engine.io-client/build/esm/index.js"),o=r("../../node_modules/socket.io-client/build/esm/socket.js"),s=r("../../node_modules/socket.io-parser/build/esm/index.js"),i=r("../../node_modules/socket.io-client/build/esm/on.js"),a=r("../../node_modules/socket.io-client/build/esm/contrib/backo2.js"),c=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");class u extends c.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,n.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new a.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||s;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new n.Socket(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=(0,i.on)(t,"open",function(){r.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=(0,i.on)(t,"error",s);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(o),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,i.on)(e,"ping",this.onping.bind(this)),(0,i.on)(e,"data",this.ondata.bind(this)),(0,i.on)(e,"error",this.onerror.bind(this)),(0,i.on)(e,"close",this.onclose.bind(this)),(0,i.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){(0,n.nextTick)(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new o.Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}},"../../node_modules/socket.io-client/build/esm/on.js":(e,t,r)=>{function n(e,t,r){return e.on(t,r),function(){e.off(t,r)}}r.r(t),r.d(t,{on:()=>n})},"../../node_modules/socket.io-client/build/esm/socket.js":(e,t,r)=>{r.r(t),r.d(t,{Socket:()=>a});var n=r("../../node_modules/socket.io-parser/build/esm/index.js"),o=r("../../node_modules/socket.io-client/build/esm/on.js"),s=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");const i=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends s.Emitter{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(i.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const r={type:n.PacketType.EVENT,data:t,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),r.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},n),s=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{const o=(e,t)=>e?n(e):r(t);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:n.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case n.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.PacketType.EVENT:case n.PacketType.BINARY_EVENT:this.onevent(e);break;case n.PacketType.ACK:case n.PacketType.BINARY_ACK:this.onack(e);break;case n.PacketType.DISCONNECT:this.ondisconnect();break;case n.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...o){r||(r=!0,t.packet({type:n.PacketType.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:n.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}},"../../node_modules/socket.io-client/build/esm/url.js":(e,t,r)=>{r.r(t),r.d(t,{url:()=>o});var n=r("../../node_modules/engine.io-client/build/esm/index.js");function o(e,t="",r){let o=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),o=(0,n.parse)(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const s=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+t,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}},"../../node_modules/socket.io-parser/build/esm/binary.js":(e,t,r)=>{r.r(t),r.d(t,{deconstructPacket:()=>o,reconstructPacket:()=>i});var n=r("../../node_modules/socket.io-parser/build/esm/is-binary.js");function o(e){const t=[],r=e.data,n=e;return n.data=s(r,t),n.attachments=t.length,{packet:n,buffers:t}}function s(e,t){if(!e)return e;if((0,n.isBinary)(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=s(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=s(e[n],t));return r}return e}function i(e,t){return e.data=a(e.data,t),delete e.attachments,e}function a(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=a(e[r],t);else if("object"==typeof e)for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=a(e[r],t));return e}},"../../node_modules/socket.io-parser/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{Decoder:()=>d,Encoder:()=>u,PacketType:()=>c,protocol:()=>a});var n=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),o=r("../../node_modules/socket.io-parser/build/esm/binary.js"),s=r("../../node_modules/socket.io-parser/build/esm/is-binary.js");const i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],a=5;var c;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c||(c={}));class u{constructor(e){this.replacer=e}encode(e){return e.type!==c.EVENT&&e.type!==c.ACK||!(0,s.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==c.BINARY_EVENT&&e.type!==c.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=(0,o.deconstructPacket)(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}class d extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===c.BINARY_EVENT;r||t.type===c.BINARY_ACK?(t.type=r?c.EVENT:c.ACK,this.reconstructor=new p(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,s.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===c[r.type])throw new Error("unknown packet type "+r.type);if(r.type===c.BINARY_EVENT||r.type===c.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(n,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!d.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return l(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"==typeof t||l(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===i.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,o.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},"../../node_modules/socket.io-parser/build/esm/is-binary.js":(e,t,r)=>{r.r(t),r.d(t,{hasBinary:()=>u,isBinary:()=>c});const n="function"==typeof ArrayBuffer,o=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,s=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===s.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===s.call(File);function c(e){return n&&(e instanceof ArrayBuffer||o(e))||i&&e instanceof Blob||a&&e instanceof File}function u(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(u(e[t]))return!0;return!1}if(c(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{r.r(n),r.d(n,{RrwebEventExporter:()=>e.SocketService,TraceExporter:()=>t.SessionRecorderBrowserTraceExporter});var e=r("./src/services/socket.service.ts"),t=r("../session-recorder-common/dist/esm/index-browser.js");window.__MP_SDK_EXPORTS__={RrwebEventExporter:e.SocketService,TraceExporter:t.SessionRecorderBrowserTraceExporter}})();var o=n.RrwebEventExporter,s=n.TraceExporter;export{o as RrwebEventExporter,s as TraceExporter};
|
|
2
|
+
var e={"../../node_modules/@opentelemetry/api/build/esm/api/context.js":(e,t,r)=>{r.r(t),r.d(t,{ContextAPI:()=>c});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/api/diag.js"),i="context",a=new n.NoopContextManager,c=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,o.registerGlobal)(i,e,s.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(n=this._getContextManager()).with.apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([e,t,r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(o),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,o.getGlobal)(i)||a},e.prototype.disable=function(){this._getContextManager().disable(),(0,o.unregisterGlobal)(i,s.DiagAPI.instance())},e}()},"../../node_modules/@opentelemetry/api/build/esm/api/diag.js":(e,t,r)=>{r.r(t),r.d(t,{DiagAPI:()=>a});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/diag/types.js"),i=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),a=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,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,a,c;if(void 0===r&&(r={logLevel:s.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,o.createLogLevelDiagLogger)(null!==(a=r.logLevel)&&void 0!==a?a:s.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)=>{r.r(t),r.d(t,{TraceAPI:()=>u});var n=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"),s=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 o.ProxyTracerProvider,this.wrapSpanContext=s.wrapSpanContext,this.isSpanContextValid=s.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 o.ProxyTracerProvider},e}()},"../../node_modules/@opentelemetry/api/build/esm/context-api.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),r.d(t,{NoopContextManager:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/context/context.js"),o=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return t.call.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(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)=>{function n(e){return Symbol.for(e)}r.r(t),r.d(t,{ROOT_CONTEXT:()=>o,createContextKey:()=>n});var o=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 o=new e(r._currentContext);return o._currentContext.set(t,n),o},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)=>{r.r(t),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)=>{r.r(t),r.d(t,{DiagComponentLogger:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"),o=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 s("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s("verbose",this._namespace,e)},e}();function s(e,t,r){var o=(0,n.getGlobal)("diag");if(o)return r.unshift(t),o[e].apply(o,function(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return i}(r),!1))}},"../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js":(e,t,r)=>{r.r(t),r.d(t,{createLogLevelDiagLogger:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag/types.js");function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.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)=>{var n;r.r(t),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)=>{r.r(t),r.d(t,{getGlobal:()=>l,registerGlobal:()=>u,unregisterGlobal:()=>d});var n=r("../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/version.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/internal/semver.js"),i=o.VERSION.split(".")[0],a=Symbol.for("opentelemetry.js.api."+i),c=n._globalThis;function u(e,t,r,n){var s;void 0===n&&(n=!1);var i=c[a]=null!==(s=c[a])&&void 0!==s?s:{version:o.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}return i.version!==o.VERSION?(u=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+o.VERSION),r.error(u.stack||u.message),!1):(i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.VERSION+"."),!0)}function l(e){var t,r,n=null===(t=c[a])||void 0===t?void 0:t.version;if(n&&(0,s.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"+o.VERSION+".");var r=c[a];r&&delete r[e]}},"../../node_modules/@opentelemetry/api/build/esm/internal/semver.js":(e,t,r)=>{r.r(t),r.d(t,{_makeCompatibilityCheck:()=>s,isCompatible:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/version.js"),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function s(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var s=+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(o);if(!n)return c(e);var l=+n[1],d=+n[2],p=+n[3];return null!=n[4]||s!==l?c(e):0===s?i===d&&a<=p?u(e):c(e):i<=d?u(e):c(e)}}var i=s(n.VERSION)},"../../node_modules/@opentelemetry/api/build/esm/platform/browser/globalThis.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),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)=>{r.r(t),r.d(t,{NonRecordingSpan:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=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)=>{r.r(t),r.d(t,{NoopTracer:()=>c});var n=r("../../node_modules/@opentelemetry/api/build/esm/api/context.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"),s=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 s.NonRecordingSpan;var n,c=r&&(0,o.getSpanContext)(r);return"object"==typeof(n=c)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,i.isSpanContextValid)(c)?new s.NonRecordingSpan(c):new s.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,n){var s,i,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(s=t,c=r):(s=t,i=r,c=n);var u=null!=i?i:a.active(),l=this.startSpan(e,s,u),d=(0,o.setSpan)(u,l);return a.with(d,c,void 0,l)}},e}()},"../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js":(e,t,r)=>{r.r(t),r.d(t,{NoopTracerProvider:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"),o=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)=>{r.r(t),r.d(t,{ProxyTracer:()=>o});var n=new(r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js").NoopTracer),o=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 o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,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)=>{r.r(t),r.d(t,{ProxyTracerProvider:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"),o=new(r("../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js").NoopTracerProvider),s=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var o;return null!==(o=this.getDelegateTracer(e,t,r))&&void 0!==o?o:new n.ProxyTracer(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o},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)=>{r.r(t),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"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=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(s.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 o.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)=>{r.r(t),r.d(t,{INVALID_SPANID:()=>o,INVALID_SPAN_CONTEXT:()=>i,INVALID_TRACEID:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"),o="0000000000000000",s="00000000000000000000000000000000",i={traceId:s,spanId:o,traceFlags:n.TraceFlags.NONE}},"../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js":(e,t,r)=>{r.r(t),r.d(t,{isSpanContextValid:()=>u,isValidSpanId:()=>c,isValidTraceId:()=>a,wrapSpanContext:()=>l});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"),s=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function a(e){return s.test(e)&&e!==n.INVALID_TRACEID}function c(e){return i.test(e)&&e!==n.INVALID_SPANID}function u(e){return a(e.traceId)&&c(e.spanId)}function l(e){return new o.NonRecordingSpan(e)}},"../../node_modules/@opentelemetry/api/build/esm/trace/status.js":(e,t,r)=>{var n;r.r(t),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)=>{var n;r.r(t),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)=>{r.r(t),r.d(t,{VERSION:()=>n});var n="1.9.0"},"../../node_modules/@opentelemetry/core/build/esm/ExportResult.js":(e,t,r)=>{var n;r.r(t),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)=>{r.r(t),r.d(t,{addHrTimes:()=>T,getTimeOrigin:()=>c,hrTime:()=>u,hrTimeDuration:()=>d,hrTimeToMicroseconds:()=>m,hrTimeToMilliseconds:()=>_,hrTimeToNanoseconds:()=>h,hrTimeToTimeStamp:()=>p,isTimeInput:()=>E,isTimeInputHrTime:()=>f,millisToHrTime:()=>a,timeInputToHrTime:()=>l});var n=r("../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js");const o=9,s=Math.pow(10,6),i=Math.pow(10,o);function a(e){const t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*s)]}function c(){let e=n.otperformance.timeOrigin;if("number"!=typeof e){const t=n.otperformance;e=t.timing&&t.timing.fetchStart}return e}function u(e){return T(a(c()),a("number"==typeof e?e:n.otperformance.now()))}function l(e){if(f(e))return e;if("number"==typeof e)return e<c()?u(e):a(e);if(e instanceof Date)return a(e.getTime());throw TypeError("Invalid input type")}function d(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=i),[r,n]}function p(e){const t=o,r=`${"0".repeat(t)}${e[1]}Z`,n=r.substring(r.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",n)}function h(e){return e[0]*i+e[1]}function _(e){return 1e3*e[0]+e[1]/1e6}function m(e){return 1e6*e[0]+e[1]/1e3}function f(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function E(e){return f(e)||"number"==typeof e||e instanceof Date}function T(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=i&&(r[1]-=i,r[0]+=1),r}},"../../node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js":(e,t,r)=>{r.r(t),r.d(t,{otperformance:()=>n});const n=performance},"../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js":(e,t,r)=>{r.r(t),r.d(t,{OTLPTraceExporter:()=>i});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js"),o=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js"),s=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js");class i extends n.OTLPExporterBase{constructor(e={}){super((0,s.createLegacyOtlpBrowserExportDelegate)(e,o.JsonTraceSerializer,"v1/traces",{"Content-Type":"application/json"}))}}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),r.d(t,{createBoundedQueueExportPromiseHandler:()=>o});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 o(e){return new n(e.concurrencyLimit)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js":(e,t,r)=>{r.r(t),r.d(t,{convertLegacyBrowserHttpOptions:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js");function s(e,t,r){return(0,n.mergeOtlpHttpConfigurationWithDefaults)({url:e.url,timeoutMillis:e.timeoutMillis,headers:(0,o.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)=>{r.r(t),r.d(t,{createLegacyOtlpBrowserExportDelegate:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js");function s(e,t,r,s){const i=!!e.headers||"function"!=typeof navigator.sendBeacon,a=(0,o.convertLegacyBrowserHttpOptions)(e,r,s);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)=>{r.r(t),r.d(t,{getHttpConfigurationDefaults:()=>c,mergeOtlpHttpConfigurationWithDefaults:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js");function s(e,t,r){const n={...r()},o={};return()=>(null!=t&&Object.assign(o,t()),null!=e&&Object.assign(o,e()),Object.assign(o,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:s((0,o.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)=>{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 o(e){if(null!=e)return()=>e}function s(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.r(t),r.d(t,{getSharedConfigurationDefaults:()=>i,mergeOtlpSharedConfigurationWithDefaults:()=>s,validateTimeoutMillis:()=>n,wrapStaticHeadersInFunction:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js":(e,t,r)=>{function n(e){return[429,502,503,504].includes(e)}function o(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.r(t),r.d(t,{isExportRetryable:()=>n,parseRetryAfterToMills:()=>o})},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/logging-response-handler.js":(e,t,r)=>{r.r(t),r.d(t,{createLoggingPartialSuccessResponseHandler:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(){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)=>{r.r(t),r.d(t,{createOtlpSendBeaconExportDelegate:()=>c,createOtlpXhrExportDelegate:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js"),s=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,o.createXhrTransport)(e)}))}function c(e,t){return(0,i.createOtlpNetworkExportDelegate)(e,t,(0,n.createRetryingTransport)({transport:(0,s.createSendBeaconTransport)({url:e.url,blobType:e.headers()["Content-Type"]})}))}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js":(e,t,r)=>{r.r(t),r.d(t,{createOtlpExportDelegate:()=>c});var n=r("../../node_modules/@opentelemetry/core/build/esm/ExportResult.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js"),s=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,o){this._transport=e,this._serializer=t,this._responseHandler=r,this._promiseQueue=n,this._timeout=o,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 o.OTLPExporterError("Export failed with retryable status")}):t({code:n.ExportResultCode.FAILED,error:new o.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,s.createLoggingPartialSuccessResponseHandler)(),e.promiseHandler,t.timeout)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js":(e,t,r)=>{r.r(t),r.d(t,{createOtlpNetworkExportDelegate:()=>s});var n=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/bounded-queue-export-promise-handler.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js");function s(e,t,r){return(0,o.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)=>{function n(){return.4*Math.random()-.2}r.r(t),r.d(t,{createRetryingTransport:()=>s});class o{_transport;constructor(e){this._transport=e}retry(e,t,r){return new Promise((n,o)=>{setTimeout(()=>{this._transport.send(e,t).then(n,o)},r)})}async send(e,t){const r=Date.now()+t;let o=await this._transport.send(e,t),s=5,i=1e3;for(;"retryable"===o.status&&s>0;){s--;const t=Math.max(Math.min(i,5e3)+n(),0);i*=1.5;const a=o.retryInMillis??t,c=r-Date.now();if(a>c)return o;o=await this.retry(e,c,a)}return o}shutdown(){return this._transport.shutdown()}}function s(e){return new o(e.transport)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js":(e,t,r)=>{r.r(t),r.d(t,{createSendBeaconTransport:()=>s});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");class o{_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 s(e){return new o(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js":(e,t,r)=>{r.r(t),r.d(t,{createXhrTransport:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js"),o=r("../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js");class s{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(r=>{const s=new XMLHttpRequest;s.timeout=t,s.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{s.setRequestHeader(e,t)}),s.ontimeout=e=>{r({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=()=>{s.status>=200&&s.status<=299?(n.diag.debug("XHR success"),r({status:"success"})):s.status&&(0,o.isExportRetryable)(s.status)?r({status:"retryable",retryInMillis:(0,o.parseRetryAfterToMills)(s.getResponseHeader("Retry-After"))}):0!==s.status&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},s.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},s.send(e)})}shutdown(){}}function i(e){return new s(e)}},"../../node_modules/@opentelemetry/otlp-exporter-base/build/esm/types.js":(e,t,r)=>{r.r(t),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)=>{r.r(t),r.d(t,{validateAndNormalizeHeaders:()=>o});var n=r("../../node_modules/@opentelemetry/api/build/esm/diag-api.js");function o(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)=>{function n(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function o(e){const t=new Uint8Array(e.length/2);let r=0;for(let o=0;o<e.length;o+=2){const s=n(e.charCodeAt(o)),i=n(e.charCodeAt(o+1));t[r++]=s<<4|i}return t}r.r(t),r.d(t,{hexToBinary:()=>o})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js":(e,t,r)=>{function n(e){return{attributes:s(e.attributes),droppedAttributesCount:0}}function o(e){return{name:e.name,version:e.version}}function s(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.r(t),r.d(t,{createInstrumentationScope:()=>o,createResource:()=>n,toAnyValue:()=>a,toAttributes:()=>s,toKeyValue:()=>i})},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js":(e,t,r)=>{r.r(t),r.d(t,{encodeAsLongBits:()=>a,encodeAsString:()=>c,getOtlpEncoder:()=>h,hrTimeToNanos:()=>s,toLongBits:()=>i});var n=r("../../node_modules/@opentelemetry/core/build/esm/common/time.js"),o=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/hex-to-binary.js");function s(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function a(e){return i(s(e))}function c(e){return s(e).toString()}const u="undefined"!=typeof BigInt?c:n.hrTimeToNanoseconds;function l(e){return e}function d(e){if(void 0!==e)return(0,o.hexToBinary)(e)}const p={encodeHrTime:a,encodeSpanContext:o.hexToBinary,encodeOptionalSpanContext:d};function h(e){if(void 0===e)return p;const t=e.useLongBits??!0,r=e.useHex??!1;return{encodeHrTime:t?a:u,encodeSpanContext:r?l:o.hexToBinary,encodeOptionalSpanContext:r?l:d}}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js":(e,t,r)=>{r.r(t),r.d(t,{createExportTraceServiceRequest:()=>c,sdkSpanToOtlpSpan:()=>s,toOtlpLink:()=>i,toOtlpSpanEvent:()=>a});var n=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js"),o=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js");function s(e,t){const r=e.spanContext(),o=e.status,s=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:s,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=>a(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map(e=>i(e,t)),droppedLinksCount:e.droppedLinksCount}}function i(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}}function a(e,t){return{attributes:e.attributes?(0,n.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function c(e,t){return{resourceSpans:u(e,(0,o.getOtlpEncoder)(t))}}function u(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 o=e.get(n);o||(o=[],e.set(n,o)),o.push(r)}return t}(e),o=[],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=>s(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};o.push(d),a=i.next()}return o}},"../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js":(e,t,r)=>{r.r(t),r.d(t,{JsonTraceSerializer:()=>o});var n=r("../../node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js");const o={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)=>{var n;r.r(t),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/lodash.isequal/index.js":(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,s="[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]",_="[object Promise]",m="[object RegExp]",f="[object Set]",E="[object String]",T="[object WeakMap]",g="[object ArrayBuffer]",y="[object DataView]",S=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[s]=R[i]=R[g]=R[a]=R[y]=R[c]=R[u]=R[l]=R[d]=R[p]=R[h]=R[m]=R[f]=R[E]=R[T]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,L=A||v||Function("return this")(),O=t&&!t.nodeType&&t,P=O&&e&&!e.nodeType&&e,I=P&&P.exports===O,U=I&&A.process,N=function(){try{return U&&U.binding&&U.binding("util")}catch(e){}}(),C=N&&N.isTypedArray;function j(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 M(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function w(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var k,x,D,B=Array.prototype,Y=Function.prototype,G=Object.prototype,F=L["__core-js_shared__"],H=Y.toString,V=G.hasOwnProperty,q=(k=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",z=G.toString,X=RegExp("^"+H.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=I?L.Buffer:void 0,K=L.Symbol,$=L.Uint8Array,Q=G.propertyIsEnumerable,J=B.splice,Z=K?K.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=W?W.isBuffer:void 0,re=(x=Object.keys,D=Object,function(e){return x(D(e))}),ne=Pe(L,"DataView"),oe=Pe(L,"Map"),se=Pe(L,"Promise"),ie=Pe(L,"Set"),ae=Pe(L,"WeakMap"),ce=Pe(Object,"create"),ue=Ce(ne),le=Ce(oe),de=Ce(se),pe=Ce(ie),he=Ce(ae),_e=K?K.prototype:void 0,me=_e?_e.valueOf:void 0;function fe(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 Ee(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 Te(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 ge(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Te;++t<r;)this.add(e[t])}function ye(e){var t=this.__data__=new Ee(e);this.size=t.size}function Se(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=V.call(e,Z),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var o=z.call(e);return n&&(t?e[Z]=r:delete e[Z]),o}(e):function(e){return z.call(e)}(e)}function Re(e){return Ye(e)&&be(e)==s}function Ae(e,t,r,n,o){return e===t||(null==e||null==t||!Ye(e)&&!Ye(t)?e!=e&&t!=t:function(e,t,r,n,o,l){var _=we(e),T=we(t),S=_?i:Ue(e),b=T?i:Ue(t),R=(S=S==s?h:S)==h,A=(b=b==s?h:b)==h,v=S==b;if(v&&ke(e)){if(!ke(t))return!1;_=!0,R=!1}if(v&&!R)return l||(l=new ye),_||Ge(e)?ve(e,t,r,n,o,l):function(e,t,r,n,o,s,i){switch(r){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case g:return!(e.byteLength!=t.byteLength||!s(new $(e),new $(t)));case a:case c:case p:return je(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case E:return e==t+"";case d:var l=M;case f:var h=1&n;if(l||(l=w),e.size!=t.size&&!h)return!1;var _=i.get(e);if(_)return _==t;n|=2,i.set(e,t);var T=ve(l(e),l(t),n,o,s,i);return i.delete(e),T;case"[object Symbol]":if(me)return me.call(e)==me.call(t)}return!1}(e,t,S,r,n,o,l);if(!(1&r)){var L=R&&V.call(e,"__wrapped__"),O=A&&V.call(t,"__wrapped__");if(L||O){var P=L?e.value():e,I=O?t.value():t;return l||(l=new ye),o(P,I,r,n,l)}}return!!v&&(l||(l=new ye),function(e,t,r,n,o,s){var i=1&r,a=Le(e),c=a.length;if(c!=Le(t).length&&!i)return!1;for(var u=c;u--;){var l=a[u];if(!(i?l in t:V.call(t,l)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var p=!0;s.set(e,t),s.set(t,e);for(var h=i;++u<c;){var _=e[l=a[u]],m=t[l];if(n)var f=i?n(m,_,l,t,e,s):n(_,m,l,e,t,s);if(!(void 0===f?_===m||o(_,m,r,n,s):f)){p=!1;break}h||(h="constructor"==l)}if(p&&!h){var E=e.constructor,T=t.constructor;E==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof T&&T instanceof T||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,r,n,o,l))}(e,t,r,n,Ae,o))}function ve(e,t,r,n,o,s){var i=1&r,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var l=-1,d=!0,p=2&r?new ge:void 0;for(s.set(e,t),s.set(t,e);++l<a;){var h=e[l],_=t[l];if(n)var m=i?n(_,h,l,t,e,s):n(h,_,l,e,t,s);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!j(t,function(e,t){if(i=t,!p.has(i)&&(h===e||o(h,e,r,n,s)))return p.push(t);var i})){d=!1;break}}else if(h!==_&&!o(h,_,r,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function Le(e){return function(e,t,r){var n=t(e);return we(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Fe,Ie)}function Oe(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Pe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Be(e)||function(e){return!!q&&q in e}(e))&&(xe(e)?X:S).test(Ce(e))}(r)?r:void 0}fe.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(ce){var r=t[e];return r===n?void 0:r}return V.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:V.call(t,e)},fe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ce&&void 0===t?n:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():J.call(t,r,1),--this.size,0))},Ee.prototype.get=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]},Ee.prototype.has=function(e){return Se(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Te.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(oe||Ee),string:new fe}},Te.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},Te.prototype.get=function(e){return Oe(this,e).get(e)},Te.prototype.has=function(e){return Oe(this,e).has(e)},Te.prototype.set=function(e,t){var r=Oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new Ee,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var n=r.__data__;if(!oe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Te(n)}return r.set(e,t),this.size=r.size,this};var Ie=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,s=[];++r<n;){var i=e[r];t(i)&&(s[o++]=i)}return s}(ee(e),function(t){return Q.call(e,t)}))}:function(){return[]},Ue=be;function Ne(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||b.test(e))&&e>-1&&e%1==0&&e<t}function Ce(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(ne&&Ue(new ne(new ArrayBuffer(1)))!=y||oe&&Ue(new oe)!=d||se&&Ue(se.resolve())!=_||ie&&Ue(new ie)!=f||ae&&Ue(new ae)!=T)&&(Ue=function(e){var t=be(e),r=t==h?e.constructor:void 0,n=r?Ce(r):"";if(n)switch(n){case ue:return y;case le:return d;case de:return _;case pe:return f;case he:return T}return t});var Me=Re(function(){return arguments}())?Re:function(e){return Ye(e)&&V.call(e,"callee")&&!Q.call(e,"callee")},we=Array.isArray,ke=te||function(){return!1};function xe(e){if(!Be(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ye(e){return null!=e&&"object"==typeof e}var Ge=C?function(e){return function(t){return e(t)}}(C):function(e){return Ye(e)&&De(e.length)&&!!R[be(e)]};function Fe(e){return null!=(t=e)&&De(t.length)&&!xe(t)?function(e,t){var r=we(e),n=!r&&Me(e),o=!r&&!n&&ke(e),s=!r&&!n&&!o&&Ge(e),i=r||n||o||s,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&&!V.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ne(u,c))||a.push(u);return a}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||G))return re(e);var t,r,n=[];for(var o in Object(e))V.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e);var t}e.exports=function(e,t){return Ae(e,t)}},"../../node_modules/lodash.keys/index.js":e=>{var t,r,n=9007199254740991,o=/^(?:0|[1-9]\d*)$/,s=Object.prototype,i=s.hasOwnProperty,a=s.toString,c=s.propertyIsEnumerable,u=(t=Object.keys,r=Object,function(e){return t(r(e))});function l(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var d=Array.isArray;function p(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?a.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}e.exports=function(e){return p(e)?function(e,t){var r=d(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&p(e)}(e)&&i.call(e,"callee")&&(!c.call(e,"callee")||"[object Arguments]"==a.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var s in e)!t&&!i.call(e,s)||o&&("length"==s||l(s,n))||r.push(s);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||s))return u(e);var t,r,n=[];for(var o in Object(e))i.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e)}},"../../node_modules/lodash.merge/index.js":(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Function]",a="[object Object]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[s]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[i]=l["[object Map]"]=l["[object Number]"]=l[a]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var d,p,h,_="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,m="object"==typeof self&&self&&self.Object===Object&&self,f=_||m||Function("return this")(),E=t&&!t.nodeType&&t,T=E&&e&&!e.nodeType&&e,g=T&&T.exports===E,y=g&&_.process,S=function(){try{return T&&T.require&&T.require("util").types||y&&y.binding&&y.binding("util")}catch(e){}}(),b=S&&S.isTypedArray,R=Array.prototype,A=Function.prototype,v=Object.prototype,L=f["__core-js_shared__"],O=A.toString,P=v.hasOwnProperty,I=(d=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",U=v.toString,N=O.call(Object),C=RegExp("^"+O.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=g?f.Buffer:void 0,M=f.Symbol,w=f.Uint8Array,k=(j&&j.allocUnsafe,p=Object.getPrototypeOf,h=Object,function(e){return p(h(e))}),x=Object.create,D=v.propertyIsEnumerable,B=R.splice,Y=M?M.toStringTag:void 0,G=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=j?j.isBuffer:void 0,H=Math.max,V=Date.now,q=ae(f,"Map"),z=ae(Object,"create"),X=function(){function e(){}return function(t){if(!ge(t))return{};if(x)return x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function W(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 K(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){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 Q(e){var t=this.__data__=new K(e);this.size=t.size}function J(e,t,r){(void 0!==r&&!pe(e[t],r)||void 0===r&&!(t in e))&&te(e,t,r)}function Z(e,t,r){var n=e[t];P.call(e,t)&&pe(n,r)&&(void 0!==r||t in e)||te(e,t,r)}function ee(e,t){for(var r=e.length;r--;)if(pe(e[r][0],t))return r;return-1}function te(e,t,r){"__proto__"==t&&G?G(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}W.prototype.clear=function(){this.__data__=z?z(null):{},this.size=0},W.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},W.prototype.get=function(e){var t=this.__data__;if(z){var r=t[e];return r===n?void 0:r}return P.call(t,e)?t[e]:void 0},W.prototype.has=function(e){var t=this.__data__;return z?void 0!==t[e]:P.call(t,e)},W.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=z&&void 0===t?n:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,r=ee(t,e);return!(r<0||(r==t.length-1?t.pop():B.call(t,r,1),--this.size,0))},K.prototype.get=function(e){var t=this.__data__,r=ee(t,e);return r<0?void 0:t[r][1]},K.prototype.has=function(e){return ee(this.__data__,e)>-1},K.prototype.set=function(e,t){var r=this.__data__,n=ee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new W,map:new(q||K),string:new W}},$.prototype.delete=function(e){var t=ie(this,e).delete(e);return this.size-=t?1:0,t},$.prototype.get=function(e){return ie(this,e).get(e)},$.prototype.has=function(e){return ie(this,e).has(e)},$.prototype.set=function(e,t){var r=ie(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Q.prototype.clear=function(){this.__data__=new K,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $(n)}return r.set(e,t),this.size=r.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=P.call(e,Y),r=e[Y];try{e[Y]=void 0;var n=!0}catch(e){}var o=U.call(e);return n&&(t?e[Y]=r:delete e[Y]),o}(e):function(e){return U.call(e)}(e)}function ne(e){return ye(e)&&re(e)==s}function oe(e,t,r,n,o){e!==t&&function(e,t,r){for(var n=-1,o=Object(e),s=r(e),i=s.length;i--;){var a=s[++n];if(!1===t(o[a],a,o))break}}(t,function(s,i){if(o||(o=new Q),ge(s))!function(e,t,r,n,o,s,i){var c=le(e,r),u=le(t,r),l=i.get(u);if(l)J(e,r,l);else{var d,p,h,_,m,f=s?s(c,u,r+"",e,t,i):void 0,E=void 0===f;if(E){var T=_e(u),g=!T&&fe(u),y=!T&&!g&&Se(u);f=u,T||g||y?_e(c)?f=c:ye(m=c)&&me(m)?f=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(c):g?(E=!1,f=function(e){return e.slice()}(u)):y?(E=!1,_=new(h=(d=u).buffer).constructor(h.byteLength),new w(_).set(new w(h)),p=_,f=new d.constructor(p,d.byteOffset,d.length)):f=[]:function(e){if(!ye(e)||re(e)!=a)return!1;var t=k(e);if(null===t)return!0;var r=P.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&O.call(r)==N}(u)||he(u)?(f=c,he(c)?f=function(e){return function(e,t,r){var n=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var i=t[o],a=void 0;void 0===a&&(a=e[i]),n?te(r,i,a):Z(r,i,a)}return r}(e,be(e))}(c):ge(c)&&!Ee(c)||(f=function(e){return"function"!=typeof e.constructor||ue(e)?{}:X(k(e))}(u))):E=!1}E&&(i.set(u,f),o(f,u,n,s,i),i.delete(u)),J(e,r,f)}}(e,t,i,r,oe,n,o);else{var c=n?n(le(e,i),s,i+"",e,t,o):void 0;void 0===c&&(c=s),J(e,i,c)}},be)}var se=G?function(e,t){return G(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:ve;function ie(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ge(e)||function(e){return!!I&&I in e}(e))&&(Ee(e)?C:c).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function ce(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||v)}function le(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,r=0;return function(){var n=V(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(se);function pe(e,t){return e===t||e!=e&&t!=t}var he=ne(function(){return arguments}())?ne:function(e){return ye(e)&&P.call(e,"callee")&&!D.call(e,"callee")},_e=Array.isArray;function me(e){return null!=e&&Te(e.length)&&!Ee(e)}var fe=F||function(){return!1};function Ee(e){if(!ge(e))return!1;var t=re(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ge(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ye(e){return null!=e&&"object"==typeof e}var Se=b?function(e){return function(t){return e(t)}}(b):function(e){return ye(e)&&Te(e.length)&&!!l[re(e)]};function be(e){return me(e)?function(e,t){var r=_e(e),n=!r&&he(e),o=!r&&!n&&fe(e),s=!r&&!n&&!o&&Se(e),i=r||n||o||s,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&&!P.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ce(u,c))||a.push(u);return a}(e,!0):function(e){if(!ge(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ue(e),r=[];for(var n in e)("constructor"!=n||!t&&P.call(e,n))&&r.push(n);return r}(e)}var Re,Ae=(Re=function(e,t,r){oe(e,t,r)},function(e,t){return de(function(e,t,r){return t=H(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=H(n.length-t,0),i=Array(s);++o<s;)i[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(i),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,ve),e+"")}(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(o=Re.length>3&&"function"==typeof o?(n--,o):void 0,s&&function(e,t,r){if(!ge(r))return!1;var n=typeof t;return!!("number"==n?me(r)&&ce(t,r.length):"string"==n&&t in r)&&pe(r[t],e)}(t[0],t[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var i=t[r];i&&Re(e,i,r)}return e}));function ve(e){return e}e.exports=Ae},"../../node_modules/lodash.xor/index.js":(e,t,r)=>{var n="__lodash_hash_undefined__",o=/^\[object .+?Constructor\]$/,s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,i="object"==typeof self&&self&&self.Object===Object&&self,a=s||i||Function("return this")();function c(e,t){return!(!e||!e.length)&&function(e,t){if(t!=t)return function(e,t){for(var r=e.length,n=-1;++n<r;)if(t(e[n],n,e))return n;return-1}(e,d);for(var r=-1,n=e.length;++r<n;)if(e[r]===t)return r;return-1}(e,t)>-1}function u(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)if(r(t,e[n]))return!0;return!1}function l(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function d(e){return e!=e}function p(e,t){return e.has(t)}function h(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var _,m=Array.prototype,f=Function.prototype,E=Object.prototype,T=a["__core-js_shared__"],g=(_=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",y=f.toString,S=E.hasOwnProperty,b=E.toString,R=RegExp("^"+y.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=m.splice,v=Math.max,L=x(a,"Map"),O=x(a,"Set"),P=x(Object,"create");function I(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function U(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function C(e){var t=-1,r=e?e.length:0;for(this.__data__=new N;++t<r;)this.add(e[t])}function j(e,t){for(var r=e.length;r--;)if(G(e[r][0],t))return r;return-1}function M(e,t,r,n){var o,s=-1,i=c,a=!0,l=e.length,d=[],h=t.length;if(!l)return d;r&&(t=function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(t,(o=r,function(e){return o(e)}))),n?(i=u,a=!1):t.length>=200&&(i=p,a=!1,t=new C(t));e:for(;++s<l;){var _=e[s],m=r?r(_):_;if(_=n||0!==_?_:0,a&&m==m){for(var f=h;f--;)if(t[f]===m)continue e;d.push(_)}else i(t,m,n)||d.push(_)}return d}I.prototype.clear=function(){this.__data__=P?P(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(P){var r=t[e];return r===n?void 0:r}return S.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return P?void 0!==t[e]:S.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=P&&void 0===t?n:t,this},U.prototype.clear=function(){this.__data__=[]},U.prototype.delete=function(e){var t=this.__data__,r=j(t,e);return!(r<0||(r==t.length-1?t.pop():A.call(t,r,1),0))},U.prototype.get=function(e){var t=this.__data__,r=j(t,e);return r<0?void 0:t[r][1]},U.prototype.has=function(e){return j(this.__data__,e)>-1},U.prototype.set=function(e,t){var r=this.__data__,n=j(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new I,map:new(L||U),string:new I}},N.prototype.delete=function(e){return k(this,e).delete(e)},N.prototype.get=function(e){return k(this,e).get(e)},N.prototype.has=function(e){return k(this,e).has(e)},N.prototype.set=function(e,t){return k(this,e).set(e,t),this},C.prototype.add=C.prototype.push=function(e){return this.__data__.set(e,n),this},C.prototype.has=function(e){return this.__data__.has(e)};var w=O&&1/h(new O([,-0]))[1]==1/0?function(e){return new O(e)}:function(){};function k(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function x(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!V(e)||g&&g in e)return!1;var t=H(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?R:o;return t.test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}var D,B,Y=(D=function(e){return function(e,t,r){for(var n=-1,o=e.length;++n<o;)var s=s?l(M(s,e[n],t,r),M(e[n],s,t,r)):e[n];return s&&s.length?function(e,t,r){var n=-1,o=c,s=e.length,i=!0,a=[],l=a;if(r)i=!1,o=u;else if(s>=200){var d=t?null:w(e);if(d)return h(d);i=!1,o=p,l=new C}else l=t?[]:a;e:for(;++n<s;){var _=e[n],m=t?t(_):_;if(_=r||0!==_?_:0,i&&m==m){for(var f=l.length;f--;)if(l[f]===m)continue e;t&&l.push(m),a.push(_)}else o(l,m,r)||(l!==a&&l.push(m),a.push(_))}return a}(s,t,r):[]}(function(e,t){for(var r=-1,n=e?e.length:0,o=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[o++]=i)}return s}(e,F))},B=v(void 0===B?D.length-1:B,0),function(){for(var e=arguments,t=-1,r=v(e.length-B,0),n=Array(r);++t<r;)n[t]=e[B+t];t=-1;for(var o=Array(B+1);++t<B;)o[t]=e[t];return o[B]=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(D,this,o)});function G(e,t){return e===t||e!=e&&t!=t}function F(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!H(e)}(e)}function H(e){var t=V(e)?b.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=Y},"../../node_modules/to-json-schema/lib/helpers.js":(e,t,r)=>{var n=r("../../node_modules/lodash.isequal/index.js"),o=r("../../node_modules/lodash.xor/index.js"),s=r("../../node_modules/lodash.keys/index.js"),i=r("../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js"),a=i.types,c=i.FORMAT_REGEXPS,u=i.isFormat,l={stringFormats:s(c),isFormat:u,typeNames:["integer","number","string","array","object","boolean","null","date"],getType:function(e){return l.typeNames.find(function(t){return a[t](e)})},mergeSchemaObjs:function(e,t){var r=s(e),i=s(t);if(!n(r,i)){if("array"===e.type&&"array"===t.type&&n(o(r,i),["items"])){var a=r.length>i.length?t:e,c=r.length>i.length?e:t;if(s(a).reduce(function(e,t){return n(a[t],c[t])&&e},!0))return a}if("object"!==e.type||"object"!==t.type)return null}for(var u={},d=0,p=r.length;d<p;d++){var h=r[d];if("object"===l.getType(e[h])){var _=l.mergeSchemaObjs(e[h],t[h]);if(_)u[h]=_;else{if("object"===e.type||"object"===t.type)return{type:"object"};if("items"!==h||"array"!==e.type||"array"!==t.type)return null}}else if("type"===h)if(e[h]!==t[h]){if(!("integer"===e[h]&&"number"===t[h]||"number"===e[h]&&"integer"===t[h]))return null;u[h]="number"}else u[h]=e[h];else{if(!n(e[h],t[h]))return null;u[h]=e[h]}}return u}};e.exports=l},"../../node_modules/to-json-schema/lib/index.js":(e,t,r)=>{function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r("../../node_modules/lodash.merge/index.js"),s=r("../../node_modules/lodash.isequal/index.js"),i=r("../../node_modules/to-json-schema/lib/helpers.js"),a={required:!1,postProcessFnc:null,strings:{detectFormat:!0,preProcessFnc:null},arrays:{mode:"all"},objects:{preProcessFnc:null,postProcessFnc:null,additionalProperties:!0}},c=["hostname","host-name","alpha","alphanumeric","regex","regexp","pattern"],u=i.stringFormats.filter(function(e){return c.indexOf(e)<0}),l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=o({},a,t),this.getObjectSchemaDefault=this.getObjectSchemaDefault.bind(this),this.getStringSchemaDefault=this.getStringSchemaDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this),this.commmonPostProcessDefault=this.commmonPostProcessDefault.bind(this),this.objectPostProcessDefault=this.objectPostProcessDefault.bind(this)}var t,r;return t=e,(r=[{key:"getCommonArrayItemSchema",value:function(e){var t=this,r=e.map(function(e){return t.getSchema(e)});return r.reduce(function(e,t){return i.mergeSchemaObjs(e,t)},r.pop())}},{key:"getObjectSchemaDefault",value:function(e){var t=this,r={type:"object"},n=Object.keys(e);return n.length>0&&(r.properties=n.reduce(function(r,n){return r[n]=t.getSchema(e[n]),r},{})),r}},{key:"getObjectSchema",value:function(e){return this.options.objects.preProcessFnc?this.options.objects.preProcessFnc(e,this.getObjectSchemaDefault):this.getObjectSchemaDefault(e)}},{key:"getArraySchemaMerging",value:function(e){var t={type:"array"},r=function(e){return function(e){for(var t,r=0,n=e.length;r<n;r++){var o=e[r];if(r>0&&("integer"===o&&"number"===t?o="number":"number"===o&&"integer"===t&&(t="number"),t!==o))return null;t=o}return t}(e.map(function(e){return i.getType(e)}))}(e);if(r)if(t.items={type:r},"integer"!==r&&"number"!==r){var n=this.getCommonArrayItemSchema(e);n&&(t.items=n)}else this.options.required&&(t.items.required=!0);return t}},{key:"getArraySchemaNoMerging",value:function(e){var t={type:"array"};return e.length>0&&(t.items=this.getSchema(e[0])),t}},{key:"getArraySchemaTuple",value:function(e){var t=this,r={type:"array"};return e.length>0&&(r.items=e.map(function(e){return t.getSchema(e)})),r}},{key:"getArraySchemaUniform",value:function(e){var t=this.getArraySchemaNoMerging(e);if(e.length>1)for(var r=1;r<e.length;r++)if(!s(t.items,this.getSchema(e[r])))throw new Error("Invalid schema, incompatible array items");return t}},{key:"getArraySchema",value:function(e){if(0===e.length)return{type:"array"};switch(this.options.arrays.mode){case"all":return this.getArraySchemaMerging(e);case"first":return this.getArraySchemaNoMerging(e);case"uniform":return this.getArraySchemaUniform(e);case"tuple":return this.getArraySchemaTuple(e);default:throw new Error("Unknown array mode option '".concat(this.options.arrays.mode,"'"))}}},{key:"getStringSchemaDefault",value:function(e){var t={type:"string"};if(!this.options.strings.detectFormat)return t;var r=u.findIndex(function(t){return i.isFormat(e,t)});return r>=0&&(t.format=u[r]),t}},{key:"getStringSchema",value:function(e){return this.options.strings.preProcessFnc?this.options.strings.preProcessFnc(e,this.getStringSchemaDefault):this.getStringSchemaDefault(e)}},{key:"commmonPostProcessDefault",value:function(e,t,r){return this.options.required?o({},t,{required:!0}):t}},{key:"objectPostProcessDefault",value:function(e,t){return!1===this.options.objects.additionalProperties&&Object.getOwnPropertyNames(t).length>0?o({},e,{additionalProperties:!1}):e}},{key:"getSchema",value:function(e){var t,r=i.getType(e);if(!r)throw new Error("Type of value couldn't be determined");switch(r){case"object":t=this.getObjectSchema(e);break;case"array":t=this.getArraySchema(e);break;case"string":t=this.getStringSchema(e);break;default:t={type:r}}return t=this.options.postProcessFnc?this.options.postProcessFnc(r,t,e,this.commmonPostProcessDefault):this.commmonPostProcessDefault(r,t,e),"object"===r&&(t=this.options.objects.postProcessFnc?this.options.objects.postProcessFnc(t,e,this.objectPostProcessDefault):this.objectPostProcessDefault(t,e)),t}}])&&n(t.prototype,r),e}();e.exports=function(e,t){return new l(t).getSchema(e)}},"../../node_modules/to-json-schema/lib/jsonSchemaHelpers.js":e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var r={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e&&isFinite(e)},integer:function(e){return"number"==typeof e&&e%1==0},boolean:function(e){return"boolean"==typeof e},array:function(e){return e instanceof Array},null:function(e){return null===e},date:function(e){return e instanceof Date},any:function(e){return!0},object:function(e){return e&&"object"===t(e)&&!(e instanceof Array)&&!(e instanceof Date)}},n={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w!#$%&'*+-/=?^`{|}~]+\.)*[\w!#$%&'*+-/=?^`{|}~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/\s*(.+?):\s*([^;]+);?/g,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};n.regexp=n.regex,n.pattern=n.regex,n.ipv4=n["ip-address"],e.exports={types:r,isFormat:function(e,t){if("string"==typeof e&&void 0!==n[t]){if(n[t]instanceof RegExp)return n[t].test(e);if("function"==typeof n[t])return n[t](e)}return!0},FORMAT_REGEXPS:n}},"./src/config/constants.ts":(e,t,r)=>{r.r(t),r.d(t,{CONTINUOUS_DEBUGGING_TIMEOUT:()=>T,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>g,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>f,OTEL_IGNORE_URLS:()=>R,OTEL_MP_SAMPLE_TRACE_RATIO:()=>n,PACKAGE_VERSION_EXPORT:()=>b,REMOTE_SESSION_RECORDING_START:()=>y,REMOTE_SESSION_RECORDING_STOP:()=>S,SESSION_ADD_EVENT:()=>_,SESSION_AUTO_CREATED:()=>h,SESSION_ID_PROP_NAME:()=>o,SESSION_PROP_NAME:()=>c,SESSION_RESPONSE:()=>E,SESSION_SHORT_ID_PROP_NAME:()=>s,SESSION_STARTED_EVENT:()=>u,SESSION_STATE_PROP_NAME:()=>i,SESSION_STOPPED_EVENT:()=>l,SESSION_SUBSCRIBE_EVENT:()=>d,SESSION_TYPE_PROP_NAME:()=>a,SESSION_UNSUBSCRIBE_EVENT:()=>p,SOCKET_SET_USER_EVENT:()=>m});const n=.15,o="multiplayer-session-id",s="multiplayer-session-short-id",i="multiplayer-session-state",a="multiplayer-session-type",c="multiplayer-session-data",u="debug-session:started",l="debug-session:stopped",d="debug-session:subscribe",p="debug-session:unsubscribe",h="debug-session:auto-created",_="debug-session:rrweb:add-event",m="socket:set-user",f=1e5,E="multiplayer-debug-session-response",T=6e4,g=630,y="remote-session-recording:start",S="remote-session-recording:stop",b="1.3.16",R=[/.*\/v1\/traces/,/.*\/v0\/radar\/debug-sessions\/start$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/stop$/,/.*\/v0\/radar\/debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/continuous-debug-sessions\/start$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/save$/,/.*\/v0\/radar\/continuous-debug-sessions\/[^/]+\/cancel$/,/.*\/v0\/radar\/remote-debug-session\/check$/]},"./src/config/defaults.ts":(e,t,r)=>{r.r(t),r.d(t,{BASE_CONFIG:()=>d,DEFAULT_MASKING_CONFIG:()=>u,DEFAULT_WIDGET_TEXT_CONFIG:()=>l});var n=r("../session-recorder-common/dist/esm/index-browser.js"),o=r("./src/types/index.ts"),s=r("./src/config/constants.ts");const{mask:i,sensitiveFields:a,sensitiveHeaders:c}=n.SessionRecorderSdk,u={maskAllInputs:!0,isContentMaskingEnabled:!0,maskBody:i(a),maskHeaders:i(c),maskBodyFieldsList:a,maskHeadersList:c,headersToInclude:[],headersToExclude:[]},l={initialTitleWithContinuous:"Encountered an issue?",initialTitleWithoutContinuous:"Encountered an issue?",initialDescriptionWithContinuous:"Record your session so we can see the problem and fix it faster.",initialDescriptionWithoutContinuous:"Record your session so we can see the problem and fix it faster.",continuousRecordingLabel:"Continuous recording",startRecordingButtonText:"Start recording",finalTitle:"Done recording?",finalDescription:"You can also add a quick note with extra context, expectations, or questions. Thank you!",commentPlaceholder:"Add a message...",saveButtonText:"Submit recording",cancelButtonText:"Cancel recording",continuousOverlayTitle:"Save time, skip the reproductions",continuousOverlayDescription:"We keep a rolling record of your recent activity. If something doesn’t work as expected, just save the recording and continue working. No need to worry about exceptions and errors - we automatically save recordings for those!",saveLastSnapshotButtonText:"Save recording",submitDialogTitle:"Save recording",submitDialogSubtitle:"This full-stack session recording will be saved directly to your selected Multiplayer project. All data is automatically correlated end-to-end.",submitDialogCommentLabel:"You can also add context, comments, or notes.",submitDialogCommentPlaceholder:"Add a message...",submitDialogSubmitText:"Save",submitDialogCancelText:"Cancel"},d={apiKey:"",version:"",application:"",environment:"",showWidget:!0,showContinuousRecording:!0,widgetButtonPlacement:o.WidgetButtonPlacement.bottomRight,usePostMessageFallback:!1,apiBaseUrl:n.MULTIPLAYER_BASE_API_URL,exporterEndpoint:n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,recordCanvas:!1,recordNavigation:!0,schemifyDocSpanPayload:!0,ignoreUrls:[],propagateTraceHeaderCorsUrls:[],sampleTraceRatio:s.OTEL_MP_SAMPLE_TRACE_RATIO,maxCapturingHttpPayloadSize:s.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,captureBody:!0,captureHeaders:!0,masking:u,widgetTextOverrides:l,useWebsocket:!0}},"./src/config/index.ts":(e,t,r)=>{r.r(t),r.d(t,{BASE_CONFIG:()=>o.BASE_CONFIG,CONTINUOUS_DEBUGGING_TIMEOUT:()=>n.CONTINUOUS_DEBUGGING_TIMEOUT,DEBUG_SESSION_MAX_DURATION_SECONDS:()=>n.DEBUG_SESSION_MAX_DURATION_SECONDS,DEFAULT_MASKING_CONFIG:()=>o.DEFAULT_MASKING_CONFIG,DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE:()=>n.DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE,DEFAULT_WIDGET_TEXT_CONFIG:()=>o.DEFAULT_WIDGET_TEXT_CONFIG,OTEL_IGNORE_URLS:()=>n.OTEL_IGNORE_URLS,OTEL_MP_SAMPLE_TRACE_RATIO:()=>n.OTEL_MP_SAMPLE_TRACE_RATIO,PACKAGE_VERSION_EXPORT:()=>n.PACKAGE_VERSION_EXPORT,REMOTE_SESSION_RECORDING_START:()=>n.REMOTE_SESSION_RECORDING_START,REMOTE_SESSION_RECORDING_STOP:()=>n.REMOTE_SESSION_RECORDING_STOP,SESSION_ADD_EVENT:()=>n.SESSION_ADD_EVENT,SESSION_AUTO_CREATED:()=>n.SESSION_AUTO_CREATED,SESSION_ID_PROP_NAME:()=>n.SESSION_ID_PROP_NAME,SESSION_PROP_NAME:()=>n.SESSION_PROP_NAME,SESSION_RESPONSE:()=>n.SESSION_RESPONSE,SESSION_SHORT_ID_PROP_NAME:()=>n.SESSION_SHORT_ID_PROP_NAME,SESSION_STARTED_EVENT:()=>n.SESSION_STARTED_EVENT,SESSION_STATE_PROP_NAME:()=>n.SESSION_STATE_PROP_NAME,SESSION_STOPPED_EVENT:()=>n.SESSION_STOPPED_EVENT,SESSION_SUBSCRIBE_EVENT:()=>n.SESSION_SUBSCRIBE_EVENT,SESSION_TYPE_PROP_NAME:()=>n.SESSION_TYPE_PROP_NAME,SESSION_UNSUBSCRIBE_EVENT:()=>n.SESSION_UNSUBSCRIBE_EVENT,SOCKET_SET_USER_EVENT:()=>n.SOCKET_SET_USER_EVENT,getMaskingConfig:()=>i.getMaskingConfig,getSessionRecorderConfig:()=>a.getSessionRecorderConfig,isValidArray:()=>s.isValidArray,isValidBoolean:()=>s.isValidBoolean,isValidEnum:()=>s.isValidEnum,isValidFunction:()=>s.isValidFunction,isValidNumber:()=>s.isValidNumber,isValidString:()=>s.isValidString,isValidStringOrRegExp:()=>s.isValidStringOrRegExp});var n=r("./src/config/constants.ts"),o=r("./src/config/defaults.ts"),s=r("./src/config/validators.ts"),i=r("./src/config/masking.ts"),a=r("./src/config/session-recorder.ts")},"./src/config/masking.ts":(e,t,r)=>{r.r(t),r.d(t,{getMaskingConfig:()=>u});var n=r("./src/config/defaults.ts"),o=r("./src/config/validators.ts"),s=r("../session-recorder-common/dist/esm/index-browser.js");const{mask:i,sensitiveFields:a,sensitiveHeaders:c}=s.SessionRecorderSdk,u=e=>{var t,r,s,u;const l=n.DEFAULT_MASKING_CONFIG;if("object"!=typeof e)return l;const d=(0,o.isValidArray)(e.maskHeadersList,c),p=(0,o.isValidArray)(e.maskBodyFieldsList,a);return{maskAllInputs:(0,o.isValidBoolean)(e.maskAllInputs,null===(t=l.maskAllInputs)||void 0===t||t),maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,maskInputOptions:e.maskInputOptions&&"object"==typeof e.maskInputOptions?e.maskInputOptions:void 0,maskInput:(0,o.isValidFunction)(e.maskInput,void 0),maskText:(0,o.isValidFunction)(e.maskText,void 0),maskConsoleEvent:(0,o.isValidFunction)(e.maskConsoleEvent,void 0),maskHeadersList:d,maskBodyFieldsList:p,headersToInclude:(0,o.isValidArray)(e.headersToInclude,null!==(r=l.headersToInclude)&&void 0!==r?r:[]),headersToExclude:(0,o.isValidArray)(e.headersToExclude,null!==(s=l.headersToExclude)&&void 0!==s?s:[]),isContentMaskingEnabled:(0,o.isValidBoolean)(e.isContentMaskingEnabled,null===(u=l.isContentMaskingEnabled)||void 0===u||u),maskBody:(0,o.isValidFunction)(e.maskBody,i(p)),maskHeaders:(0,o.isValidFunction)(e.maskHeaders,i(d))}}},"./src/config/session-recorder.ts":(e,t,r)=>{r.r(t),r.d(t,{getSessionRecorderConfig:()=>a});var n=r("./src/types/index.ts"),o=r("./src/config/defaults.ts"),s=r("./src/config/masking.ts"),i=r("./src/config/validators.ts");const a=e=>{var t,r,a;return e?{apiKey:(0,i.isValidString)(e.apiKey,o.BASE_CONFIG.apiKey),version:(0,i.isValidString)(e.version,o.BASE_CONFIG.version),application:(0,i.isValidString)(e.application,o.BASE_CONFIG.application),environment:(0,i.isValidString)(e.environment,o.BASE_CONFIG.environment),exporterEndpoint:(0,i.isValidString)(e.exporterEndpoint,o.BASE_CONFIG.exporterEndpoint),apiBaseUrl:(0,i.isValidString)(e.apiBaseUrl,o.BASE_CONFIG.apiBaseUrl),usePostMessageFallback:(0,i.isValidBoolean)(e.usePostMessageFallback,o.BASE_CONFIG.usePostMessageFallback),showWidget:(0,i.isValidBoolean)(e.showWidget,o.BASE_CONFIG.showWidget),showContinuousRecording:(0,i.isValidBoolean)(e.showContinuousRecording,o.BASE_CONFIG.showContinuousRecording),recordCanvas:(0,i.isValidBoolean)(e.recordCanvas,o.BASE_CONFIG.recordCanvas),recordNavigation:(0,i.isValidBoolean)(e.recordNavigation,o.BASE_CONFIG.recordNavigation),widgetButtonPlacement:(0,i.isValidEnum)(e.widgetButtonPlacement,o.BASE_CONFIG.widgetButtonPlacement,Object.values(n.WidgetButtonPlacement)),ignoreUrls:(0,i.isValidArray)(e.ignoreUrls,o.BASE_CONFIG.ignoreUrls),sampleTraceRatio:(0,i.isValidNumber)(e.sampleTraceRatio,o.BASE_CONFIG.sampleTraceRatio),propagateTraceHeaderCorsUrls:e.propagateTraceHeaderCorsUrls||o.BASE_CONFIG.propagateTraceHeaderCorsUrls,schemifyDocSpanPayload:(0,i.isValidBoolean)(e.schemifyDocSpanPayload,o.BASE_CONFIG.schemifyDocSpanPayload),maxCapturingHttpPayloadSize:(0,i.isValidNumber)(e.maxCapturingHttpPayloadSize,o.BASE_CONFIG.maxCapturingHttpPayloadSize),captureBody:(0,i.isValidBoolean)(e.captureBody,o.BASE_CONFIG.captureBody),captureHeaders:(0,i.isValidBoolean)(e.captureHeaders,o.BASE_CONFIG.captureHeaders),masking:(0,s.getMaskingConfig)(e.masking),widgetTextOverrides:(r=e.widgetTextOverrides,a=o.BASE_CONFIG.widgetTextOverrides,r&&"object"==typeof r?{initialTitleWithContinuous:(0,i.isValidString)(r.initialTitleWithContinuous,a.initialTitleWithContinuous),initialTitleWithoutContinuous:(0,i.isValidString)(r.initialTitleWithoutContinuous,a.initialTitleWithoutContinuous),initialDescriptionWithContinuous:(0,i.isValidString)(r.initialDescriptionWithContinuous,a.initialDescriptionWithContinuous),initialDescriptionWithoutContinuous:(0,i.isValidString)(r.initialDescriptionWithoutContinuous,a.initialDescriptionWithoutContinuous),continuousRecordingLabel:(0,i.isValidString)(r.continuousRecordingLabel,a.continuousRecordingLabel),startRecordingButtonText:(0,i.isValidString)(r.startRecordingButtonText,a.startRecordingButtonText),finalTitle:(0,i.isValidString)(r.finalTitle,a.finalTitle),finalDescription:(0,i.isValidString)(r.finalDescription,a.finalDescription),commentPlaceholder:(0,i.isValidString)(r.commentPlaceholder,a.commentPlaceholder),saveButtonText:(0,i.isValidString)(r.saveButtonText,a.saveButtonText),cancelButtonText:(0,i.isValidString)(r.cancelButtonText,a.cancelButtonText),continuousOverlayTitle:(0,i.isValidString)(r.continuousOverlayTitle,a.continuousOverlayTitle),continuousOverlayDescription:(0,i.isValidString)(r.continuousOverlayDescription,a.continuousOverlayDescription),saveLastSnapshotButtonText:(0,i.isValidString)(r.saveLastSnapshotButtonText,a.saveLastSnapshotButtonText),submitDialogTitle:(0,i.isValidString)(r.submitDialogTitle,a.submitDialogTitle),submitDialogSubtitle:(0,i.isValidString)(r.submitDialogSubtitle,a.submitDialogSubtitle),submitDialogCommentLabel:(0,i.isValidString)(r.submitDialogCommentLabel,a.submitDialogCommentLabel),submitDialogCommentPlaceholder:(0,i.isValidString)(r.submitDialogCommentPlaceholder,a.submitDialogCommentPlaceholder),submitDialogSubmitText:(0,i.isValidString)(r.submitDialogSubmitText,a.submitDialogSubmitText),submitDialogCancelText:(0,i.isValidString)(r.submitDialogCancelText,a.submitDialogCancelText)}:a),useWebsocket:(0,i.isValidBoolean)(e.useWebsocket,null!==(t=o.BASE_CONFIG.useWebsocket)&&void 0!==t&&t)}:o.BASE_CONFIG}},"./src/config/validators.ts":(e,t,r)=>{r.r(t),r.d(t,{isValidArray:()=>a,isValidBoolean:()=>i,isValidEnum:()=>c,isValidFunction:()=>u,isValidNumber:()=>s,isValidString:()=>o,isValidStringOrRegExp:()=>n});const n=(e,t)=>"string"==typeof e||e instanceof RegExp?e:t,o=(e,t)=>"string"==typeof e?e.trim():t,s=(e,t)=>"number"==typeof e?e:t,i=(e,t)=>"boolean"==typeof e?e:t,a=(e,t)=>Array.isArray(e)?e:t,c=(e,t,r)=>r.includes(e)?e:t,u=(e,t)=>"function"==typeof e?e:t},"./src/services/messaging.service.ts":(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n=new class{constructor(){this.promiseIdCounter=0,this.promiseMap=new Map,this.messagingServices=new Map,this.isBrowser="undefined"!=typeof window,this.setupMessageListener()}generatePromiseId(){return"promise_"+ ++this.promiseIdCounter}sendMessage(e,t){if(!this.isBrowser)return;const r={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t};window.postMessage(r,"*")}sendMessagePromise(e,t){if(!this.isBrowser)return Promise.reject(new Error("Not in browser environment"));const r=this.generatePromiseId(),n=new Promise((e,t)=>{this.promiseMap.set(r,{resolve:e,reject:t})}),o={type:"MULTIPLAYER_SESSION_DEBUGGER_LIB",action:e,payload:t,promiseId:r};return window.postMessage(o,"*"),n}on(e,t){const r=this.messagingServices.get(e)||[];r.push(t),this.messagingServices.set(e,r)}off(e,t){if(!t)return void this.messagingServices.delete(e);const r=this.messagingServices.get(e);if(r){const n=r.indexOf(t);-1!==n&&(r.splice(n,1),0===r.length?this.messagingServices.delete(e):this.messagingServices.set(e,r))}}setupMessageListener(){this.isBrowser&&window.addEventListener("message",e=>{const{type:t,action:r,payload:n,promiseId:o}=e.data;if("MULTIPLAYER_SESSION_DEBUGGER_EXTENSION"!==t||!r)return;if(o&&this.promiseMap.has(o)){const{resolve:e,reject:t}=this.promiseMap.get(o),{error:r,response:s}=n;return r?t(r):e(s),void this.promiseMap.delete(o)}const s=this.messagingServices.get(r);s&&s.forEach(e=>e(n))})}}},"./src/services/socket.service.ts":(e,t,r)=>{r.r(t),r.d(t,{SocketService:()=>a});var n=r("../../node_modules/socket.io-client/build/esm/index.js"),o=r("../../node_modules/lib0/observable.js"),s=r("./src/services/messaging.service.ts"),i=r("./src/config/index.ts");class a extends o.Observable{constructor(){super(),this.socket=null,this.queue=[],this.isConnecting=!1,this.isConnected=!1,this.attempts=0,this.sessionId=null,this.usePostMessage=!1,this.options={apiKey:"",socketUrl:"",keepAlive:!1,usePostMessageFallback:!1}}init(e){this.options={...this.options,...e},this.options.keepAlive&&this.options.socketUrl&&this.options.apiKey&&this._initConnection()}updateConfigs(e){var t;Object.keys(e).some(t=>{const r=t;return void 0!==e[r]&&e[r]!==this.options[r]})&&(this.options={...this.options,...e},(null===(t=this.socket)||void 0===t?void 0:t.connected)&&this.close().then(()=>{this.options.keepAlive&&this.options.socketUrl&&this.options.apiKey&&this._initConnection()}))}_initConnection(){this.isConnecting||this.isConnected||(this.attempts++,this.isConnecting=!0,this.usePostMessage=!1,this.socket=(0,n.default)(this.options.socketUrl,{path:"/v0/radar/ws",auth:{"x-api-key":this.options.apiKey},reconnectionAttempts:2,transports:["websocket"]}),this.socket.on("ready",()=>{this.isConnecting=!1,this.isConnected=!0,this.usePostMessage=!1,this.flushQueue()}),this.socket.on("disconnect",e=>{this.isConnecting=!1,this.isConnected=!1}),this.socket.on("connect_error",e=>{this.isConnecting=!1,this.isConnected=!1,this.checkReconnectionAttempts()}),this.socket.on(i.SESSION_STOPPED_EVENT,e=>{this.emit(i.SESSION_STOPPED_EVENT,[e])}),this.socket.on(i.SESSION_AUTO_CREATED,e=>{this.emit(i.SESSION_AUTO_CREATED,[e])}),this.socket.on(i.REMOTE_SESSION_RECORDING_START,e=>{this.emit(i.REMOTE_SESSION_RECORDING_START,[e])}),this.socket.on(i.REMOTE_SESSION_RECORDING_STOP,e=>{this.emit(i.REMOTE_SESSION_RECORDING_STOP,[e])}))}checkReconnectionAttempts(){this.attempts>=2&&(this.usePostMessage=!!this.options.usePostMessageFallback,this.flushQueue())}sendViaPostMessage(e,t){const r=e===i.SESSION_ADD_EVENT?"rrweb-event":"socket-emit";s.default.sendMessage(r,t)}emitSocketEvent(e,t){this.usePostMessage?this.sendViaPostMessage(e,t):this.socket&&this.isConnected?this.socket.emit(e,t):(this.queue.push({data:t,name:e}),this._initConnection())}flushQueue(){for(;this.queue.length>0&&(this.usePostMessage||this.isConnected);){const e=this.queue.shift();e&&(this.usePostMessage?this.sendViaPostMessage(e.name,e.data):this.socket&&this.isConnected&&this.socket.emit(e.name,e.data))}}send(e){this.emitSocketEvent(i.SESSION_ADD_EVENT,e)}subscribeToSession(e){this.sessionId=e.shortId||e._id;const t={projectId:e.project,workspaceId:e.workspace,debugSessionId:this.sessionId,sessionType:e.creationType};this.emitSocketEvent(i.SESSION_SUBSCRIBE_EVENT,t),this.emitSocketEvent(i.SESSION_STARTED_EVENT,{debugSessionId:e._id})}unsubscribeFromSession(e){this.sessionId&&(this.emitSocketEvent(i.SESSION_UNSUBSCRIBE_EVENT,{debugSessionId:this.sessionId}),e&&this.emitSocketEvent(i.SESSION_STOPPED_EVENT,{}))}setUser(e){this.emitSocketEvent(i.SOCKET_SET_USER_EVENT,e)}close(){return new Promise(e=>{var t;this.usePostMessage&&this.sendViaPostMessage("close",{}),(null===(t=this.socket)||void 0===t?void 0:t.connected)?setTimeout(()=>{var t;this.unsubscribeFromSession(),this.attempts=0,this.isConnected=!1,this.isConnecting=!1,null===(t=this.socket)||void 0===t||t.disconnect(),this.socket=null,e()},500):e()})}}},"./src/types/index.ts":(e,t,r)=>{r.r(t),r.d(t,{SessionState:()=>n.SessionState,WidgetButtonPlacement:()=>n.WidgetButtonPlacement}),r("./src/types/widget.ts");var n=r("./src/types/session-recorder.ts")},"./src/types/session-recorder.ts":(e,t,r)=>{var n,o;r.r(t),r.d(t,{SessionState:()=>o,WidgetButtonPlacement:()=>n}),function(e){e.topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"}(n||(n={})),function(e){e.started="2",e.paused="1",e.stopped="0"}(o||(o={}))},"./src/types/widget.ts":(e,t,r)=>{r.r(t)},"../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderIdGenerator:()=>i});var n=r("../session-recorder-common/dist/esm/type/index.js"),o=r("../session-recorder-common/dist/esm/constants/constants.base.js"),s=r("../session-recorder-common/dist/esm/sdk/index.js"),i=function(){function e(){this.generateLongId=(0,s.getIdGenerator)(16),this.generateShortId=(0,s.getIdGenerator)(8),this.sessionShortId="",this.sessionType=n.SessionType.MANUAL}return e.prototype.generateTraceId=function(){var e=this.generateLongId();if(this.sessionShortId){var t="";t=this.sessionType===n.SessionType.CONTINUOUS?o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:o.MULTIPLAYER_TRACE_DEBUG_PREFIX;var r="".concat(t).concat(this.sessionShortId);return"".concat(r).concat(e.substring(r.length,e.length))}return e},e.prototype.generateSpanId=function(){return this.generateShortId()},e.prototype.setSessionId=function(e,t){void 0===t&&(t=n.SessionType.MANUAL),this.sessionShortId=e,this.sessionType=t},e}()},"../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderTraceIdRatioBasedSampler:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"),o=r("../../node_modules/@opentelemetry/sdk-trace-base/build/esm/Sampler.js"),s=r("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){if(t.startsWith(s.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(s.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX))return{decision:o.SamplingDecision.RECORD_AND_SAMPLED};var r=o.SamplingDecision.NOT_RECORD;return(0,n.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound&&(r=o.SamplingDecision.RECORD_AND_SAMPLED),{decision:r}},e.prototype.toString=function(){return"SessionRecorderTraceIdRatioBasedSampler{".concat(this._ratio,"}")},e.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r<e.length/8;r++){var n=8*r;t=(t^parseInt(e.slice(n,n+8),16))>>>0}return t},e}()},"../session-recorder-common/dist/esm/constants/constants.base.js":(e,t,r)=>{r.r(t),r.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>S,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>T,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>g,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>M,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>w,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>k,ATTR_MULTIPLAYER_HTTP_PROXY:()=>A,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>v,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>L,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>P,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>O,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>U,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>I,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>b,ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH:()=>F,ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH:()=>Y,ATTR_MULTIPLAYER_ISSUE_HASH:()=>G,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>x,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>D,ATTR_MULTIPLAYER_PLATFORM_ID:()=>E,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>y,ATTR_MULTIPLAYER_PROJECT_ID:()=>f,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>N,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>C,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>j,ATTR_MULTIPLAYER_SESSION_ID:()=>R,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>B,ATTR_MULTIPLAYER_USER_HASH:()=>H,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>m,MASK_PLACEHOLDER:()=>V,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>_,MULTIPLAYER_BASE_API_URL:()=>h,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>p,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>l,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>c,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>d,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>u,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>a,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>s,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>o,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>i,MULTIPLAYER_TRACE_DOC_PREFIX:()=>n});var n="d0cd0c",o="debdeb",s="cdbcdb",i=16,a="https://api.multiplayer.app/v1/traces",c="https://api.multiplayer.app/v1/logs",u="https://otlp.multiplayer.app/v1/traces",l="https://otlp.multiplayer.app/v1/logs",d="https://otlp.multiplayer.app:4317/v1/traces",p="https://otlp.multiplayer.app:4317/v1/logs",h="https://api.multiplayer.app",_="multiplayer.",m="multiplayer.workspace.id",f="multiplayer.project.id",E="multiplayer.platform.id",T="multiplayer.session.auto-save",g="multiplayer.session.auto-save.reason",y="multiplayer.platform.name",S="multiplayer.client.id",b="multiplayer.integration.id",R="multiplayer.session.id",A="multiplayer.http.proxy",v="multiplayer.http.proxy.type",L="multiplayer.http.request.body",O="multiplayer.http.response.body",P="multiplayer.http.request.headers",I="multiplayer.http.response.headers",U="multiplayer.http.response.body.encoding",N="multiplayer.rpc.request.message",C="multiplayer.rpc.request.message.encoding",j="multiplayer.rpc.response.message",M="multiplayer.rpc.grpc.request.message",w="multiplayer.rpc.request.message.encoding",k="multiplayer.rpc.grpc.response.message",x="multiplayer.messaging.message.body",D="multiplayer.messaging.message.body.encoding",B="multiplayer.session-recorder.version",Y="multiplayer.issue.custom-hash",G="multiplayer.issue.hash",F="multiplayer.issue.component-hash",H="multiplayer.user.hash",V="***MASKED***"},"../session-recorder-common/dist/esm/constants/constants.browser.js":(e,t,r)=>{r.r(t),r.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>n.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>n.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH,ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH,ATTR_MULTIPLAYER_ISSUE_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_HASH,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>n.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>n.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>n.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>n.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>n.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_USER_HASH:()=>n.ATTR_MULTIPLAYER_USER_HASH,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>n.ATTR_MULTIPLAYER_WORKSPACE_ID,MASK_PLACEHOLDER:()=>n.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>n.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>n.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>n.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>n.MULTIPLAYER_TRACE_DOC_PREFIX});var n=r("../session-recorder-common/dist/esm/constants/constants.base.js")},"../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderBrowserTraceExporter:()=>i});var n=r("../../node_modules/@opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js"),o=r("../session-recorder-common/dist/esm/constants/constants.base.js"),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},i=function(){function e(e){void 0===e&&(e={}),this.usePostMessage=!1;var t=e.url,r=void 0===t?o.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:t,n=e.apiKey,i=e.headers,a=void 0===i?{}:i,c=e.timeoutMillis,u=void 0===c?3e4:c,l=e.keepAlive,d=void 0===l||l,p=e.concurrencyLimit,h=void 0===p?20:p,_=e.postMessageType,m=void 0===_?"MULTIPLAYER_SESSION_DEBUGGER_LIB":_,f=e.postMessageTargetOrigin,E=void 0===f?"*":f;this.config=s(s({},e),{url:r,apiKey:n,headers:a,timeoutMillis:u,keepAlive:d,concurrencyLimit:h}),this.postMessageType=m,this.postMessageTargetOrigin=E,this.exporter=this._createExporter()}return e.prototype.export=function(e,t){var r=this,n=e.filter(function(e){var t=e.spanContext().traceId;return t.startsWith(o.MULTIPLAYER_TRACE_DEBUG_PREFIX)||t.startsWith(o.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX)});0!==n.length?this.usePostMessage?this.exportViaPostMessage(n,t):this.exporter.export(n,function(e){0===e.code?t(e):r.config.usePostMessageFallback?(r.usePostMessage=!0,r.exportViaPostMessage(n,t)):t(e)}):t({code:0})},e.prototype.shutdown=function(){return this.exporter.shutdown()},e.prototype.exportViaPostMessage=function(e,t){var r=this;if("undefined"!=typeof window)try{window.postMessage({action:"traces",type:this.postMessageType,payload:e.map(function(e){return r._serializeSpan(e)})},this.postMessageTargetOrigin),t({code:0})}catch(e){t({code:1})}else t({code:1})},e.prototype._serializeSpan=function(e){var t;return{_spanContext:e.spanContext(),name:e.name,kind:e.kind,links:e.links,ended:e.ended,events:e.events,status:e.status,endTime:e.endTime,startTime:e.startTime,duration:e.duration,attributes:e.attributes,parentSpanId:null===(t=e.parentSpanContext)||void 0===t?void 0:t.spanId,droppedAttributesCount:e.droppedAttributesCount,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,resource:{attributes:e.resource.attributes,asyncAttributesPending:e.resource.asyncAttributesPending}}},e.prototype._createExporter=function(){return new n.OTLPTraceExporter({url:this.config.url,headers:s(s({"Content-Type":"application/json"},this.config.apiKey?{Authorization:this.config.apiKey}:{}),this.config.headers||{}),timeoutMillis:this.config.timeoutMillis,keepAlive:this.config.keepAlive,concurrencyLimit:this.config.concurrencyLimit})},e.prototype.setApiKey=function(e){this.config.apiKey=e,this.exporter=this._createExporter()},e}()},"../session-recorder-common/dist/esm/exporters/index-browser.js":(e,t,r)=>{r.r(t),r.d(t,{SessionRecorderBrowserTraceExporter:()=>n.SessionRecorderBrowserTraceExporter});var n=r("../session-recorder-common/dist/esm/exporters/SessionRecorderBrowserTraceExporter.js")},"../session-recorder-common/dist/esm/index-browser.js":(e,t,r)=>{r.r(t),r.d(t,{ATTR_MULTIPLAYER_CLIENT_ID:()=>n.ATTR_MULTIPLAYER_CLIENT_ID,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON:()=>n.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_HTTP_PROXY:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY,ATTR_MULTIPLAYER_HTTP_PROXY_TYPE:()=>n.ATTR_MULTIPLAYER_HTTP_PROXY_TYPE,ATTR_MULTIPLAYER_HTTP_REQUEST_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY_ENCODING,ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS:()=>n.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,ATTR_MULTIPLAYER_INTEGRATION_ID:()=>n.ATTR_MULTIPLAYER_INTEGRATION_ID,ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_COMPONENT_HASH,ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_CUSTOM_HASH,ATTR_MULTIPLAYER_ISSUE_HASH:()=>n.ATTR_MULTIPLAYER_ISSUE_HASH,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING:()=>n.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY_ENCODING,ATTR_MULTIPLAYER_PLATFORM_ID:()=>n.ATTR_MULTIPLAYER_PLATFORM_ID,ATTR_MULTIPLAYER_PLATFORM_NAME:()=>n.ATTR_MULTIPLAYER_PLATFORM_NAME,ATTR_MULTIPLAYER_PROJECT_ID:()=>n.ATTR_MULTIPLAYER_PROJECT_ID,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING:()=>n.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE_ENCODING,ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE:()=>n.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,ATTR_MULTIPLAYER_SESSION_ID:()=>n.ATTR_MULTIPLAYER_SESSION_ID,ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION:()=>n.ATTR_MULTIPLAYER_SESSION_RECORDER_VERSION,ATTR_MULTIPLAYER_USER_HASH:()=>n.ATTR_MULTIPLAYER_USER_HASH,ATTR_MULTIPLAYER_WORKSPACE_ID:()=>n.ATTR_MULTIPLAYER_WORKSPACE_ID,DebugSessionDataType:()=>a.DebugSessionDataType,MASK_PLACEHOLDER:()=>n.MASK_PLACEHOLDER,MULTIPLAYER_ATTRIBUTE_PREFIX:()=>n.MULTIPLAYER_ATTRIBUTE_PREFIX,MULTIPLAYER_BASE_API_URL:()=>n.MULTIPLAYER_BASE_API_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_LOGS_EXPORTER_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_GRPC_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_HTTP_URL,MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL:()=>n.MULTIPLAYER_OTEL_DEFAULT_TRACES_EXPORTER_URL,MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_CONTINUOUS_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_PREFIX:()=>n.MULTIPLAYER_TRACE_DEBUG_PREFIX,MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH:()=>n.MULTIPLAYER_TRACE_DEBUG_SESSION_SHORT_ID_LENGTH,MULTIPLAYER_TRACE_DOC_PREFIX:()=>n.MULTIPLAYER_TRACE_DOC_PREFIX,SessionRecorderBrowserTraceExporter:()=>c.SessionRecorderBrowserTraceExporter,SessionRecorderIdGenerator:()=>o.SessionRecorderIdGenerator,SessionRecorderSdk:()=>i,SessionRecorderTraceIdRatioBasedSampler:()=>s.SessionRecorderTraceIdRatioBasedSampler,SessionType:()=>a.SessionType,UserType:()=>a.UserType});var n=r("../session-recorder-common/dist/esm/constants/constants.browser.js"),o=r("../session-recorder-common/dist/esm/SessionRecorderIdGenerator.js"),s=r("../session-recorder-common/dist/esm/SessionRecorderTraceIdRatioBasedSampler.js"),i=r("../session-recorder-common/dist/esm/sdk/index.js"),a=r("../session-recorder-common/dist/esm/type/index.js"),c=r("../session-recorder-common/dist/esm/exporters/index-browser.js")},"../session-recorder-common/dist/esm/sdk/capture-exception.js":(e,t,r)=>{r.r(t),r.d(t,{captureException:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=r("../../node_modules/@opentelemetry/api/build/esm/trace/status.js"),i=function(e){if(e){var t=n.trace.getSpan(o.context.active());t&&(t.recordException(e),t.setStatus({code:s.SpanStatusCode.ERROR,message:e.message}))}}},"../session-recorder-common/dist/esm/sdk/id-generator.js":(e,t,r)=>{r.r(t),r.d(t,{getIdGenerator:()=>o});var n=Array(32),o=function(e){return function(){for(var t=0;t<2*e;t++)n[t]=Math.floor(16*Math.random())+48,n[t]>=58&&(n[t]+=39);return String.fromCharCode.apply(null,n.slice(0,2*e))}}},"../session-recorder-common/dist/esm/sdk/index.js":(e,t,r)=>{r.r(t),r.d(t,{captureException:()=>a.captureException,getIdGenerator:()=>i.getIdGenerator,isGzip:()=>s.isGzip,mask:()=>n.default,saveContinuousSession:()=>u.saveContinuousSession,schemify:()=>o.default,sensitiveFields:()=>n.sensitiveFields,sensitiveHeaders:()=>n.sensitiveHeaders,setAttribute:()=>c.setAttribute,setGrpcRequestMessage:()=>c.setGrpcRequestMessage,setGrpcResponseMessage:()=>c.setGrpcResponseMessage,setHttpRequestBody:()=>c.setHttpRequestBody,setHttpRequestHeaders:()=>c.setHttpRequestHeaders,setHttpResponseBody:()=>c.setHttpResponseBody,setHttpResponseHeaders:()=>c.setHttpResponseHeaders,setMessageBody:()=>c.setMessageBody,setRpcRequestMessage:()=>c.setRpcRequestMessage,setRpcResponseMessage:()=>c.setRpcResponseMessage});var n=r("../session-recorder-common/dist/esm/sdk/mask.js"),o=r("../session-recorder-common/dist/esm/sdk/schemify.js"),s=r("../session-recorder-common/dist/esm/sdk/is-gzip.js"),i=r("../session-recorder-common/dist/esm/sdk/id-generator.js"),a=r("../session-recorder-common/dist/esm/sdk/capture-exception.js"),c=r("../session-recorder-common/dist/esm/sdk/set-attribute.js"),u=r("../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js")},"../session-recorder-common/dist/esm/sdk/is-gzip.js":(e,t,r)=>{r.r(t),r.d(t,{isGzip:()=>n});var n=function(e){return!(!e||e.length<3)&&31===e[0]&&139===e[1]&&8===e[2]}},"../session-recorder-common/dist/esm/sdk/mask.js":(e,t,r)=>{r.r(t),r.d(t,{default:()=>c,sensitiveFields:()=>o,sensitiveHeaders:()=>s});var n=r("../session-recorder-common/dist/esm/constants/constants.base.js"),o=["password","pass","passwd","pwd","token","access_token","accessToken","refresh_token","refreshToken","secret","api_key","apiKey","authorization","auth_token","authToken","jwt","session_id","sessionId","sessionToken","client_secret","clientSecret","private_key","privateKey","public_key","publicKey","key","encryption_key","encryptionKey","credit_card","creditCard","card_number","cardNumber","cvv","cvc","ssn","sin","pin","security_code","securityCode","bank_account","bankAccount","iban","swift","bic","routing_number","routingNumber","license_key","licenseKey","otp","mfa_code","mfaCode","phone_number","phoneNumber","email","address","dob","tax_id","taxId","passport_number","passportNumber","driver_license","driverLicense","set-cookie","cookie","authorization","proxyAuthorization"],s=["set-cookie","cookie","authorization","proxyAuthorization"],i=function(e,t){void 0===t&&(t=0);var r=typeof e,o="object"===r,s=!1;if(Array.isArray(e)&&(s=!0),!(t>8&&(o||s))){if(s)return e.map(function(e){return i(e,t+1)},e);if(o){for(var a in e)e[a]=i(e[a],t+1);return e}return"string"===r?n.MASK_PLACEHOLDER:e}},a=function(e,t){var r="object"===typeof e,o=new Set(t);if(Array.isArray(e))return e.map(function(e){return a(e,t)},e);if(r){for(var s in e)o.has(s)?e[s]=n.MASK_PLACEHOLDER:e[s]=a(e[s],t);return e}return e};const c=function(e){return void 0===e&&(e=[]),function(t,r){var n,o;try{n=JSON.parse(t)}catch(e){n=t}return"string"!=typeof(o=e.length?a(n,e):i(n))&&(o=JSON.stringify(o)),o}}},"../session-recorder-common/dist/esm/sdk/save-continuous-deb-session.js":(e,t,r)=>{r.r(t),r.d(t,{saveContinuousSession:()=>i});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=r("../session-recorder-common/dist/esm/constants/constants.base.js"),i=function(e){var t=n.trace.getSpan(o.context.active());t&&(null==t||t.setAttribute(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE,!0),(null==e?void 0:e.length)&&(null==t||t.addEvent(s.ATTR_MULTIPLAYER_CONTINUOUS_SESSION_AUTO_SAVE_REASON,{reason:e})))}},"../session-recorder-common/dist/esm/sdk/schemify.js":(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r("../../node_modules/to-json-schema/lib/index.js"),o=(null==n?void 0:r.n(n)())||n,s={strings:{preProcessFnc:function(e,t){return(null==e?void 0:e.length)>=30?t("some_string"):t(e)}},arrays:{mode:"first"}};const i=function(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r=s),!e)return"";var n;if("string"==typeof e)try{n=JSON.parse(e)}catch(t){return e}else{if("object"!=typeof e)return e;n=e}try{var i=o(n,r);return t?JSON.stringify(i):i}catch(e){return""}}},"../session-recorder-common/dist/esm/sdk/set-attribute.js":(e,t,r)=>{r.r(t),r.d(t,{setAttribute:()=>a,setGrpcRequestMessage:()=>m,setGrpcResponseMessage:()=>f,setHttpRequestBody:()=>c,setHttpRequestHeaders:()=>u,setHttpResponseBody:()=>l,setHttpResponseHeaders:()=>d,setMessageBody:()=>p,setRpcRequestMessage:()=>h,setRpcResponseMessage:()=>_});var n=r("../../node_modules/@opentelemetry/api/build/esm/trace-api.js"),o=r("../../node_modules/@opentelemetry/api/build/esm/context-api.js"),s=r("../session-recorder-common/dist/esm/constants/constants.base.js"),i=r("../session-recorder-common/dist/esm/sdk/mask.js"),a=function(e,t){var r=n.trace.getSpan(o.context.active());r&&r.setAttribute(e,t)},c=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_BODY,e))},u=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveHeaders)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_REQUEST_HEADERS,e))},l=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_BODY,e))},d=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_HTTP_RESPONSE_HEADERS,e))},p=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_MESSAGING_MESSAGE_BODY,e))},h=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_RPC_REQUEST_MESSAGE,e))},_=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_RPC_RESPONSE_MESSAGE,e))},m=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_GRPC_REQUEST_MESSAGE,e))},f=function(e,t){void 0===t&&(t={mask:!0});var r=n.trace.getSpan(o.context.active());r&&((null==t?void 0:t.mask)&&(e=(0,i.default)(i.sensitiveFields)(e,r)),r.setAttribute(s.ATTR_MULTIPLAYER_GRPC_RESPONSE_MESSAGE,e))}},"../session-recorder-common/dist/esm/type/index.js":(e,t,r)=>{r.r(t),r.d(t,{DebugSessionDataType:()=>s.DebugSessionDataType,SessionType:()=>n.SessionType,UserType:()=>o.UserType});var n=r("../session-recorder-common/dist/esm/type/session-type.enum.js"),o=r("../session-recorder-common/dist/esm/type/user-type.enum.js"),s=r("../session-recorder-common/dist/esm/type/session.js")},"../session-recorder-common/dist/esm/type/session-type.enum.js":(e,t,r)=>{var n;r.r(t),r.d(t,{SessionType:()=>n}),function(e){e.CONTINUOUS="CONTINUOUS",e.PLAIN="MANUAL",e.MANUAL="MANUAL"}(n||(n={}))},"../session-recorder-common/dist/esm/type/session.js":(e,t,r)=>{var n;r.r(t),r.d(t,{DebugSessionDataType:()=>n}),function(e){e.OTLP_TRACES="OTLP_TRACES",e.OTLP_LOGS="OTLP_LOGS",e.RRWEB_EVENTS="RRWEB_EVENTS"}(n||(n={}))},"../session-recorder-common/dist/esm/type/user-type.enum.js":(e,t,r)=>{var n;r.r(t),r.d(t,{UserType:()=>n}),function(e){e.USER="USER",e.VISITOR="VISITOR",e.API_CLIENT="API_CLIENT"}(n||(n={}))},"../../node_modules/@socket.io/component-emitter/lib/esm/index.js":(e,t,r)=>{function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}r.r(t),r.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},"../../node_modules/engine.io-client/build/esm/contrib/has-cors.js":(e,t,r)=>{r.r(t),r.d(t,{hasCORS:()=>o});let n=!1;try{n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const o=n},"../../node_modules/engine.io-client/build/esm/contrib/parseqs.js":(e,t,r)=>{function n(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function o(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}r.r(t),r.d(t,{decode:()=>o,encode:()=>n})},"../../node_modules/engine.io-client/build/esm/contrib/parseuri.js":(e,t,r)=>{r.r(t),r.d(t,{parse:()=>s});const n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function s(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),s=e.indexOf("]");-1!=r&&-1!=s&&(e=e.substring(0,r)+e.substring(r,s).replace(/:/g,";")+e.substring(s,e.length));let i=n.exec(e||""),a={},c=14;for(;c--;)a[o[c]]=i[c]||"";return-1!=r&&-1!=s&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const r=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,a.path),a.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,a.query),a}},"../../node_modules/engine.io-client/build/esm/contrib/yeast.js":(e,t,r)=>{r.r(t),r.d(t,{decode:()=>l,encode:()=>u,yeast:()=>d});const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o=64,s={};let i,a=0,c=0;function u(e){let t="";do{t=n[e%o]+t,e=Math.floor(e/o)}while(e>0);return t}function l(e){let t=0;for(c=0;c<e.length;c++)t=t*o+s[e.charAt(c)];return t}function d(){const e=u(+new Date);return e!==i?(a=0,i=e):e+"."+u(a++)}for(;c<o;c++)s[n[c]]=c},"../../node_modules/engine.io-client/build/esm/globalThis.browser.js":(e,t,r)=>{r.r(t),r.d(t,{globalThisShim:()=>n});const n="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"../../node_modules/engine.io-client/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{Socket:()=>n.Socket,Transport:()=>o.Transport,TransportError:()=>o.TransportError,installTimerFunctions:()=>i.installTimerFunctions,nextTick:()=>c.nextTick,parse:()=>a.parse,protocol:()=>u,transports:()=>s.transports});var n=r("../../node_modules/engine.io-client/build/esm/socket.js"),o=r("../../node_modules/engine.io-client/build/esm/transport.js"),s=r("../../node_modules/engine.io-client/build/esm/transports/index.js"),i=r("../../node_modules/engine.io-client/build/esm/util.js"),a=r("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),c=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");const u=n.Socket.protocol},"../../node_modules/engine.io-client/build/esm/socket.js":(e,t,r)=>{r.r(t),r.d(t,{Socket:()=>l});var n=r("../../node_modules/engine.io-client/build/esm/transports/index.js"),o=r("../../node_modules/engine.io-client/build/esm/util.js"),s=r("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js"),i=r("../../node_modules/engine.io-client/build/esm/contrib/parseuri.js"),a=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),c=r("../../node_modules/engine.io-parser/build/esm/index.js"),u=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js");class l extends a.Emitter{constructor(e,t={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,i.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,i.parse)(t.host).host),(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=c.protocol,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new n.transports[e](r)}open(){let e;if(this.opts.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),r=!1;l.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function o(){r||(r=!0,u(),t.close(),t=null)}const s=e=>{const r=new Error("probe error: "+e);r.transport=t.name,o(),this.emitReserved("upgradeError",r)};function i(){s("transport closed")}function a(){s("socket closed")}function c(e){t&&e.name!==t.name&&o()}const u=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",c)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=(0,o.byteLength)(r)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const o={type:e,data:t,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){l.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r<n;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}l.protocol=c.protocol},"../../node_modules/engine.io-client/build/esm/transport.js":(e,t,r)=>{r.r(t),r.d(t,{Transport:()=>c,TransportError:()=>a});var n=r("../../node_modules/engine.io-parser/build/esm/index.js"),o=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),s=r("../../node_modules/engine.io-client/build/esm/util.js"),i=r("../../node_modules/engine.io-client/build/esm/contrib/parseqs.js");class a extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class c extends o.Emitter{constructor(e){super(),this.writable=!1,(0,s.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new a(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,n.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,i.encode)(e);return t.length?"?"+t:""}}},"../../node_modules/engine.io-client/build/esm/transports/index.js":(e,t,r)=>{r.r(t),r.d(t,{transports:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/transports/polling.js"),o=r("../../node_modules/engine.io-client/build/esm/transports/websocket.js"),s=r("../../node_modules/engine.io-client/build/esm/transports/webtransport.js");const i={websocket:o.WS,webtransport:s.WT,polling:n.Polling}},"../../node_modules/engine.io-client/build/esm/transports/polling.js":(e,t,r)=>{r.r(t),r.d(t,{Polling:()=>p,Request:()=>h});var n=r("../../node_modules/engine.io-client/build/esm/transport.js"),o=r("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=r("../../node_modules/engine.io-parser/build/esm/index.js"),i=r("../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js"),a=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),c=r("../../node_modules/engine.io-client/build/esm/util.js"),u=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function l(){}const d=null!=new i.XHR({xdomain:!1}).responseType;class p extends n.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=d&&!t,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){(0,s.decodePayload)(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,(0,s.encodePayload)(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class h extends a.Emitter{constructor(e,t){super(),(0,c.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=(0,c.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new i.XHR(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=h.requestsCount++,h.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=l,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete h.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(h.requestsCount=0,h.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",_);else if("function"==typeof addEventListener){const e="onpagehide"in u.globalThisShim?"pagehide":"unload";addEventListener(e,_,!1)}function _(){for(let e in h.requests)h.requests.hasOwnProperty(e)&&h.requests[e].abort()}},"../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js":(e,t,r)=>{r.r(t),r.d(t,{WebSocket:()=>s,defaultBinaryType:()=>a,nextTick:()=>o,usingBrowserWebSocket:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");const o="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),s=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,i=!0,a="arraybuffer"},"../../node_modules/engine.io-client/build/esm/transports/websocket.js":(e,t,r)=>{r.r(t),r.d(t,{WS:()=>u});var n=r("../../node_modules/engine.io-client/build/esm/transport.js"),o=r("../../node_modules/engine.io-client/build/esm/contrib/yeast.js"),s=r("../../node_modules/engine.io-client/build/esm/util.js"),i=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),a=r("../../node_modules/engine.io-parser/build/esm/index.js");const c="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class u extends n.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=c?{}:(0,s.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!c?t?new i.WebSocket(e,t):new i.WebSocket(e):new i.WebSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;(0,a.encodePacket)(r,this.supportsBinary,e=>{const t={};!i.usingBrowserWebSocket&&(r.options&&(t.compress=r.options.compress),this.opts.perMessageDeflate)&&("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1);try{i.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){}n&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!i.WebSocket}}},"../../node_modules/engine.io-client/build/esm/transports/webtransport.js":(e,t,r)=>{r.r(t),r.d(t,{WT:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/transport.js"),o=r("../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js"),s=r("../../node_modules/engine.io-parser/build/esm/index.js");class i extends n.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=(0,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=(0,s.createPacketEncoderStream)();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const o=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;this.writer.write(r).then(()=>{n&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}},"../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js":(e,t,r)=>{r.r(t),r.d(t,{XHR:()=>s,createCookieJar:()=>i});var n=r("../../node_modules/engine.io-client/build/esm/contrib/has-cors.js"),o=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function s(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(o.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}function i(){}},"../../node_modules/engine.io-client/build/esm/util.js":(e,t,r)=>{r.r(t),r.d(t,{byteLength:()=>u,installTimerFunctions:()=>a,pick:()=>o});var n=r("../../node_modules/engine.io-client/build/esm/globalThis.browser.js");function o(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const s=n.globalThisShim.setTimeout,i=n.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=s.bind(n.globalThisShim),e.clearTimeoutFn=i.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))}const c=1.33;function u(e){return"string"==typeof e?function(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(e):Math.ceil((e.byteLength||e.size)*c)}},"../../node_modules/engine.io-parser/build/esm/commons.js":(e,t,r)=>{r.r(t),r.d(t,{ERROR_PACKET:()=>s,PACKET_TYPES:()=>n,PACKET_TYPES_REVERSE:()=>o});const n=Object.create(null);n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const o=Object.create(null);Object.keys(n).forEach(e=>{o[n[e]]=e});const s={type:"error",data:"parser error"}},"../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js":(e,t,r)=>{r.r(t),r.d(t,{decode:()=>i,encode:()=>s});const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)o[n.charCodeAt(e)]=e;const s=e=>{let t,r=new Uint8Array(e),o=r.length,s="";for(t=0;t<o;t+=3)s+=n[r[t]>>2],s+=n[(3&r[t])<<4|r[t+1]>>4],s+=n[(15&r[t+1])<<2|r[t+2]>>6],s+=n[63&r[t+2]];return o%3==2?s=s.substring(0,s.length-1)+"=":o%3==1&&(s=s.substring(0,s.length-2)+"=="),s},i=e=>{let t,r,n,s,i,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),d=new Uint8Array(l);for(t=0;t<c;t+=4)r=o[e.charCodeAt(t)],n=o[e.charCodeAt(t+1)],s=o[e.charCodeAt(t+2)],i=o[e.charCodeAt(t+3)],d[u++]=r<<2|n>>4,d[u++]=(15&n)<<4|s>>2,d[u++]=(3&s)<<6|63&i;return l}},"../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js":(e,t,r)=>{r.r(t),r.d(t,{decodePacket:()=>i});var n=r("../../node_modules/engine.io-parser/build/esm/commons.js"),o=r("../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js");const s="function"==typeof ArrayBuffer,i=(e,t)=>{if("string"!=typeof e)return{type:"message",data:c(e,t)};const r=e.charAt(0);return"b"===r?{type:"message",data:a(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[r]?e.length>1?{type:n.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[r]}:n.ERROR_PACKET},a=(e,t)=>{if(s){const r=(0,o.decode)(e);return c(r,t)}return{base64:!0,data:e}},c=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},"../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js":(e,t,r)=>{r.r(t),r.d(t,{encodePacket:()=>a,encodePacketToBinary:()=>d});var n=r("../../node_modules/engine.io-parser/build/esm/commons.js");const o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},r,a)=>o&&t instanceof Blob?r?a(t):c(t,a):s&&(t instanceof ArrayBuffer||i(t))?r?a(t):c(new Blob([t]),a):a(n.PACKET_TYPES[e]+(t||"")),c=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let l;function d(e,t){return o&&e.data instanceof Blob?e.data.arrayBuffer().then(u).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(u(e.data)):void a(e,!1,e=>{l||(l=new TextEncoder),t(l.encode(e))})}},"../../node_modules/engine.io-parser/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{createPacketDecoderStream:()=>h,createPacketEncoderStream:()=>u,decodePacket:()=>o.decodePacket,decodePayload:()=>c,encodePacket:()=>n.encodePacket,encodePayload:()=>a,protocol:()=>_});var n=r("../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"),o=r("../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"),s=r("../../node_modules/engine.io-parser/build/esm/commons.js");const i=String.fromCharCode(30),a=(e,t)=>{const r=e.length,o=new Array(r);let s=0;e.forEach((e,a)=>{(0,n.encodePacket)(e,!1,e=>{o[a]=e,++s===r&&t(o.join(i))})})},c=(e,t)=>{const r=e.split(i),n=[];for(let e=0;e<r.length;e++){const s=(0,o.decodePacket)(r[e],t);if(n.push(s),"error"===s.type)break}return n};function u(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,r=>{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}let l;function d(e){return e.reduce((e,t)=>e+t.length,0)}function p(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function h(e,t){l||(l=new TextDecoder);const r=[];let n=0,i=-1,a=!1;return new TransformStream({transform(c,u){for(r.push(c);;){if(0===n){if(d(r)<1)break;const e=p(r,1);a=!(128&~e[0]),i=127&e[0],n=i<126?3:126===i?1:2}else if(1===n){if(d(r)<2)break;const e=p(r,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(d(r)<8)break;const e=p(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){u.enqueue(s.ERROR_PACKET);break}i=o*Math.pow(2,32)+t.getUint32(4),n=3}else{if(d(r)<i)break;const e=p(r,i);u.enqueue((0,o.decodePacket)(a?e:l.decode(e),t)),n=0}if(0===i||i>e){u.enqueue(s.ERROR_PACKET);break}}}})}const _=4},"../../node_modules/lib0/array.js":(e,t,r)=>{r.r(t),r.d(t,{appendTo:()=>a,copy:()=>i,create:()=>s,equalFlat:()=>d,every:()=>u,flatten:()=>p,fold:()=>_,from:()=>c,isArray:()=>m,last:()=>o,map:()=>T,some:()=>l,unfold:()=>h,unique:()=>f,uniqueBy:()=>E});var n=r("../../node_modules/lib0/set.js");const o=e=>e[e.length-1],s=()=>[],i=e=>e.slice(),a=(e,t)=>{for(let r=0;r<t.length;r++)e.push(t[r])},c=Array.from,u=(e,t)=>{for(let r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0},l=(e,t)=>{for(let r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1},d=(e,t)=>e.length===t.length&&u(e,(e,r)=>e===t[r]),p=e=>_(e,[],(e,t)=>e.concat(t)),h=(e,t)=>{const r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n,r);return r},_=(e,t,r)=>e.reduce(r,t),m=Array.isArray,f=e=>c(n.from(e)),E=(e,t)=>{const r=n.create(),o=[];for(let n=0;n<e.length;n++){const s=e[n],i=t(s);r.has(i)||(r.add(i),o.push(s))}return o},T=(e,t)=>{const r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=t(e[n],n,e);return r}},"../../node_modules/lib0/map.js":(e,t,r)=>{r.r(t),r.d(t,{all:()=>c,any:()=>a,copy:()=>o,create:()=>n,map:()=>i,setIfUndefined:()=>s});const n=()=>new Map,o=e=>{const t=n();return e.forEach((e,r)=>{t.set(r,e)}),t},s=(e,t,r)=>{let n=e.get(t);return void 0===n&&e.set(t,n=r()),n},i=(e,t)=>{const r=[];for(const[n,o]of e)r.push(t(o,n));return r},a=(e,t)=>{for(const[r,n]of e)if(t(n,r))return!0;return!1},c=(e,t)=>{for(const[r,n]of e)if(!t(n,r))return!1;return!0}},"../../node_modules/lib0/observable.js":(e,t,r)=>{r.r(t),r.d(t,{Observable:()=>i});var n=r("../../node_modules/lib0/map.js"),o=r("../../node_modules/lib0/set.js"),s=r("../../node_modules/lib0/array.js");class i{constructor(){this._observers=n.create()}on(e,t){n.setIfUndefined(this._observers,e,o.create).add(t)}once(e,t){const r=(...n)=>{this.off(e,r),t(...n)};this.on(e,r)}off(e,t){const r=this._observers.get(e);void 0!==r&&(r.delete(t),0===r.size&&this._observers.delete(e))}emit(e,t){return s.from((this._observers.get(e)||n.create()).values()).forEach(e=>e(...t))}destroy(){this._observers=n.create()}}},"../../node_modules/lib0/set.js":(e,t,r)=>{r.r(t),r.d(t,{create:()=>n,first:()=>s,from:()=>i,toArray:()=>o});const n=()=>new Set,o=e=>Array.from(e),s=e=>e.values().next().value||void 0,i=e=>new Set(e)},"../../node_modules/socket.io-client/build/esm/contrib/backo2.js":(e,t,r)=>{function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}r.r(t),r.d(t,{Backoff:()=>n}),n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},"../../node_modules/socket.io-client/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{Manager:()=>o.Manager,Socket:()=>s.Socket,connect:()=>c,default:()=>c,io:()=>c,protocol:()=>i.protocol});var n=r("../../node_modules/socket.io-client/build/esm/url.js"),o=r("../../node_modules/socket.io-client/build/esm/manager.js"),s=r("../../node_modules/socket.io-client/build/esm/socket.js"),i=r("../../node_modules/socket.io-parser/build/esm/index.js");const a={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const r=(0,n.url)(e,t.path||"/socket.io"),s=r.source,i=r.id,c=r.path,u=a[i]&&c in a[i].nsps;let l;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?l=new o.Manager(s,t):(a[i]||(a[i]=new o.Manager(s,t)),l=a[i]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(c,{Manager:o.Manager,Socket:s.Socket,io:c,connect:c})},"../../node_modules/socket.io-client/build/esm/manager.js":(e,t,r)=>{r.r(t),r.d(t,{Manager:()=>u});var n=r("../../node_modules/engine.io-client/build/esm/index.js"),o=r("../../node_modules/socket.io-client/build/esm/socket.js"),s=r("../../node_modules/socket.io-parser/build/esm/index.js"),i=r("../../node_modules/socket.io-client/build/esm/on.js"),a=r("../../node_modules/socket.io-client/build/esm/contrib/backo2.js"),c=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");class u extends c.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,n.installTimerFunctions)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new a.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||s;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new n.Socket(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=(0,i.on)(t,"open",function(){r.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=(0,i.on)(t,"error",s);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(o),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,i.on)(e,"ping",this.onping.bind(this)),(0,i.on)(e,"data",this.ondata.bind(this)),(0,i.on)(e,"error",this.onerror.bind(this)),(0,i.on)(e,"close",this.onclose.bind(this)),(0,i.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){(0,n.nextTick)(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new o.Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}},"../../node_modules/socket.io-client/build/esm/on.js":(e,t,r)=>{function n(e,t,r){return e.on(t,r),function(){e.off(t,r)}}r.r(t),r.d(t,{on:()=>n})},"../../node_modules/socket.io-client/build/esm/socket.js":(e,t,r)=>{r.r(t),r.d(t,{Socket:()=>a});var n=r("../../node_modules/socket.io-parser/build/esm/index.js"),o=r("../../node_modules/socket.io-client/build/esm/on.js"),s=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js");const i=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends s.Emitter{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[(0,o.on)(e,"open",this.onopen.bind(this)),(0,o.on)(e,"packet",this.onpacket.bind(this)),(0,o.on)(e,"error",this.onerror.bind(this)),(0,o.on)(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(i.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const r={type:n.PacketType.EVENT,data:t,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),r.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},n),s=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{const o=(e,t)=>e?n(e):r(t);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:n.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case n.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.PacketType.EVENT:case n.PacketType.BINARY_EVENT:this.onevent(e);break;case n.PacketType.ACK:case n.PacketType.BINARY_ACK:this.onack(e);break;case n.PacketType.DISCONNECT:this.ondisconnect();break;case n.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...o){r||(r=!0,t.packet({type:n.PacketType.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:n.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}},"../../node_modules/socket.io-client/build/esm/url.js":(e,t,r)=>{r.r(t),r.d(t,{url:()=>o});var n=r("../../node_modules/engine.io-client/build/esm/index.js");function o(e,t="",r){let o=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),o=(0,n.parse)(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const s=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+t,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}},"../../node_modules/socket.io-parser/build/esm/binary.js":(e,t,r)=>{r.r(t),r.d(t,{deconstructPacket:()=>o,reconstructPacket:()=>i});var n=r("../../node_modules/socket.io-parser/build/esm/is-binary.js");function o(e){const t=[],r=e.data,n=e;return n.data=s(r,t),n.attachments=t.length,{packet:n,buffers:t}}function s(e,t){if(!e)return e;if((0,n.isBinary)(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=s(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=s(e[n],t));return r}return e}function i(e,t){return e.data=a(e.data,t),delete e.attachments,e}function a(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=a(e[r],t);else if("object"==typeof e)for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=a(e[r],t));return e}},"../../node_modules/socket.io-parser/build/esm/index.js":(e,t,r)=>{r.r(t),r.d(t,{Decoder:()=>d,Encoder:()=>u,PacketType:()=>c,protocol:()=>a});var n=r("../../node_modules/@socket.io/component-emitter/lib/esm/index.js"),o=r("../../node_modules/socket.io-parser/build/esm/binary.js"),s=r("../../node_modules/socket.io-parser/build/esm/is-binary.js");const i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],a=5;var c;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c||(c={}));class u{constructor(e){this.replacer=e}encode(e){return e.type!==c.EVENT&&e.type!==c.ACK||!(0,s.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==c.BINARY_EVENT&&e.type!==c.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=(0,o.deconstructPacket)(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}class d extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===c.BINARY_EVENT;r||t.type===c.BINARY_ACK?(t.type=r?c.EVENT:c.ACK,this.reconstructor=new p(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,s.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===c[r.type])throw new Error("unknown packet type "+r.type);if(r.type===c.BINARY_EVENT||r.type===c.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(n,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!d.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return l(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"==typeof t||l(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===i.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,o.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},"../../node_modules/socket.io-parser/build/esm/is-binary.js":(e,t,r)=>{r.r(t),r.d(t,{hasBinary:()=>u,isBinary:()=>c});const n="function"==typeof ArrayBuffer,o=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,s=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===s.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===s.call(File);function c(e){return n&&(e instanceof ArrayBuffer||o(e))||i&&e instanceof Blob||a&&e instanceof File}function u(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(u(e[t]))return!0;return!1}if(c(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{r.r(n),r.d(n,{RrwebEventExporter:()=>e.SocketService,TraceExporter:()=>t.SessionRecorderBrowserTraceExporter});var e=r("./src/services/socket.service.ts"),t=r("../session-recorder-common/dist/esm/index-browser.js");window.__MP_SDK_EXPORTS__={RrwebEventExporter:e.SocketService,TraceExporter:t.SessionRecorderBrowserTraceExporter}})();var o=n.RrwebEventExporter,s=n.TraceExporter;export{o as RrwebEventExporter,s as TraceExporter};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js
CHANGED
|
@@ -24149,7 +24149,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
|
24149
24149
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
24150
24150
|
const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
|
|
24151
24151
|
const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
|
|
24152
|
-
const PACKAGE_VERSION_EXPORT = "1.3.
|
|
24152
|
+
const PACKAGE_VERSION_EXPORT = "1.3.16" || 0;
|
|
24153
24153
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
24154
24154
|
const OTEL_IGNORE_URLS = [
|
|
24155
24155
|
// Traces endpoint
|
package/dist/index.umd.js
CHANGED
|
@@ -24323,7 +24323,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
|
24323
24323
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
24324
24324
|
const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
|
|
24325
24325
|
const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
|
|
24326
|
-
const PACKAGE_VERSION_EXPORT = "1.3.
|
|
24326
|
+
const PACKAGE_VERSION_EXPORT = "1.3.16" || 0;
|
|
24327
24327
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
24328
24328
|
const OTEL_IGNORE_URLS = [
|
|
24329
24329
|
// Traces endpoint
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplayer-app/session-recorder-browser",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.16",
|
|
4
4
|
"description": "Multiplayer Fullstack Session Recorder for Browser",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Multiplayer Software, Inc.",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"webpack-cli": "5.1.4"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@multiplayer-app/session-recorder-common": "1.3.
|
|
73
|
+
"@multiplayer-app/session-recorder-common": "1.3.16",
|
|
74
74
|
"@opentelemetry/auto-instrumentations-web": "0.49.0",
|
|
75
75
|
"@opentelemetry/context-zone": "2.0.1",
|
|
76
76
|
"@opentelemetry/core": "2.0.1",
|