PageSourceSearch

https://ieltsidpindia.com/chunk-4CNC3AYJ.js

js ieltsidpindia.com collected 2026-10-02 17:04:57 UTC 495,575 bytes, 265 lines download raw bytes

1import{a as ce,b as He,d as Zo,g as ut,h as Jo}from"./chunk-AQHZ5JOB.js";var Hu={9466(r,t,e){e.d(t,{_:()=>p});var n=e(5350),i=function(f,g){var m=typeof Symbol=="function"&&f[Symbol.iterator];if(!m)return f;var y,v,b=m.call(f),T=[];try{for(;(g===void 0||g-- >0)&&!(y=b.next()).done;)T.push(y.value)}catch(E){v={error:E}}finally{try{y&&!y.done&&(m=b.return)&&m.call(b)}finally{if(v)throw v.error}}return T},o=function(f,g,m){if(m||arguments.length===2)for(var y,v=0,b=g.length;v<b;v++)!y&&v in g||(y||(y=Array.prototype.slice.call(g,0,v)),y[v]=g[v]);return f.concat(y||Array.prototype.slice.call(g))},s=(function(){function f(){}return f.prototype.active=function(){return n.l},f.prototype.with=function(g,m,y){for(var v=[],b=3;b<arguments.length;b++)v[b-3]=arguments[b];return m.call.apply(m,o([y],i(v),!1))},f.prototype.bind=function(g,m){return m},f.prototype.enable=function(){return this},f.prototype.disable=function(){return this},f})(),a=e(9234),u=e(5236),c=function(f,g){var m=typeof Symbol=="function"&&f[Symbol.iterator];if(!m)return f;var y,v,b=m.call(f),T=[];try{for(;(g===void 0||g-- >0)&&!(y=b.next()).done;)T.push(y.value)}catch(E){v={error:E}}finally{try{y&&!y.done&&(m=b.return)&&m.call(b)}finally{if(v)throw v.error}}return T},l=function(f,g,m){if(m||arguments.length===2)for(var y,v=0,b=g.length;v<b;v++)!y&&v in g||(y||(y=Array.prototype.slice.call(g,0,v)),y[v]=g[v]);return f.concat(y||Array.prototype.slice.call(g))},d="context",h=new s,p=(function(){function f(){}return f.getInstance=function(){return this._instance||(this._instance=new f),this._instance},f.prototype.setGlobalContextManager=function(g){return(0,a.$G)(d,g,u.K.instance())},f.prototype.active=function(){return this._getContextManager().active()},f.prototype.with=function(g,m,y){for(var v,b=[],T=3;T<arguments.length;T++)b[T-3]=arguments[T];return(v=this._getContextManager()).with.apply(v,l([g,m,y],c(b),!1))},f.prototype.bind=function(g,m){return this._getContextManager().bind(g,m)},f.prototype._getContextManager=function(){return(0,a.mS)(d)||h},f.prototype.disable=function(){this._getContextManager().disable(),(0,a.kv)(d,u.K.instance())},f})()},5236(r,t,e){e.d(t,{K:()=>d});var n=e(9234),i=function(h,p){var f=typeof Symbol=="function"&&h[Symbol.iterator];if(!f)return h;var g,m,y=f.call(h),v=[];try{for(;(p===void 0||p-- >0)&&!(g=y.next()).done;)v.push(g.value)}catch(b){m={error:b}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(m)throw m.error}}return v},o=function(h,p,f){if(f||arguments.length===2)for(var g,m=0,y=p.length;m<y;m++)!g&&m in p||(g||(g=Array.prototype.slice.call(p,0,m)),g[m]=p[m]);return h.concat(g||Array.prototype.slice.call(p))},s=(function(){function h(p){this._namespace=p.namespace||"DiagComponentLogger"}return h.prototype.debug=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];return a("debug",this._namespace,p)},h.prototype.error=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];return a("error",this._namespace,p)},h.prototype.info=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];return a("info",this._namespace,p)},h.prototype.warn=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];return a("warn",this._namespace,p)},h.prototype.verbose=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];return a("verbose",this._namespace,p)},h})();function a(h,p,f){var g=(0,n.mS)("diag");if(g)return f.unshift(p),g[h].apply(g,o([],i(f),!1))}var u=e(6096),c=function(h,p){var f=typeof Symbol=="function"&&h[Symbol.iterator];if(!f)return h;var g,m,y=f.call(h),v=[];try{for(;(p===void 0||p-- >0)&&!(g=y.next()).done;)v.push(g.value)}catch(b){m={error:b}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(m)throw m.error}}return v},l=function(h,p,f){if(f||arguments.length===2)for(var g,m=0,y=p.length;m<y;m++)!g&&m in p||(g||(g=Array.prototype.slice.call(p,0,m)),g[m]=p[m]);return h.concat(g||Array.prototype.slice.call(p))},d=(function(){function h(){function p(g){return function(){for(var m=[],y=0;y<arguments.length;y++)m[y]=arguments[y];var v=(0,n.mS)("diag");if(v)return v[g].apply(v,l([],c(m),!1))}}var f=this;f.setLogger=function(g,m){var y,v,b;if(m===void 0&&(m={logLevel:u.u.INFO}),g===f){var T=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return f.error((y=T.stack)!==null&&y!==void 0?y:T.message),!1}typeof m=="number"&&(m={logLevel:m});var E=(0,n.mS)("diag"),_=(function(w,R){function C(A,D){var j=R[A];return typeof j=="function"&&w>=D?j.bind(R):function(){}}return w<u.u.NONE?w=u.u.NONE:w>u.u.ALL&&(w=u.u.ALL),R=R||{},{error:C("error",u.u.ERROR),warn:C("warn",u.u.WARN),info:C("info",u.u.INFO),debug:C("debug",u.u.DEBUG),verbose
1:C("verbose",u.u.VERBOSE)}})((v=m.logLevel)!==null&&v!==void 0?v:u.u.INFO,g);if(E&&!m.suppressOverrideMessage){var O=(b=new Error().stack)!==null&&b!==void 0?b:"<failed to generate stacktrace>";E.warn("Current logger will be overwritten from "+O),_.warn("Current logger will overwrite one already registered from "+O)}return(0,n.$G)("diag",_,f,!0)},f.disable=function(){(0,n.kv)("diag",f)},f.createComponentLogger=function(g){return new s(g)},f.verbose=p("verbose"),f.debug=p("debug"),f.info=p("info"),f.warn=p("warn"),f.error=p("error")}return h.instance=function(){return this._instance||(this._instance=new h),this._instance},h})()},9862(r,t,e){e.d(t,{B:()=>l,L:()=>c});var n=e(5236),i=function(d,h){var p=typeof Symbol=="function"&&d[Symbol.iterator];if(!p)return d;var f,g,m=p.call(d),y=[];try{for(;(h===void 0||h-- >0)&&!(f=m.next()).done;)y.push(f.value)}catch(v){g={error:v}}finally{try{f&&!f.done&&(p=m.return)&&p.call(m)}finally{if(g)throw g.error}}return y},o=function(d){var h=typeof Symbol=="function"&&Symbol.iterator,p=h&&d[h],f=0;if(p)return p.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&f>=d.length&&(d=void 0),{value:d&&d[f++],done:!d}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(function(){function d(h){this._entries=h?new Map(h):new Map}return d.prototype.getEntry=function(h){var p=this._entries.get(h);if(p)return Object.assign({},p)},d.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(h){var p=i(h,2);return[p[0],p[1]]})},d.prototype.setEntry=function(h,p){var f=new d(this._entries);return f._entries.set(h,p),f},d.prototype.removeEntry=function(h){var p=new d(this._entries);return p._entries.delete(h),p},d.prototype.removeEntries=function(){for(var h,p,f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var m=new d(this._entries);try{for(var y=o(f),v=y.next();!v.done;v=y.next()){var b=v.value;m._entries.delete(b)}}catch(T){h={error:T}}finally{try{v&&!v.done&&(p=y.return)&&p.call(y)}finally{if(h)throw h.error}}return m},d.prototype.clear=function(){return new d},d})(),a=Symbol("BaggageEntryMetadata"),u=n.K.instance();function c(d){return d===void 0&&(d={}),new s(new Map(Object.entries(d)))}function l(d){return typeof d!="string"&&(u.error("Cannot create baggage metadata from unknown type: "+typeof d),d=""),{__TYPE__:a,toString:function(){return d}}}},5339(r,t,e){e.d(t,{_:()=>n});var n=e(9466)._.getInstance()},5350(r,t,e){function n(o){return Symbol.for(o)}e.d(t,{l:()=>i,n:()=>n});var i=new function o(s){var a=this;a._currentContext=s?new Map(s):new Map,a.getValue=function(u){return a._currentContext.get(u)},a.setValue=function(u,c){var l=new o(a._currentContext);return l._currentContext.set(u,c),l},a.deleteValue=function(u){var c=new o(a._currentContext);return c._currentContext.delete(u),c}}},6547(r,t,e){e.d(t,{s:()=>n});var n=e(5236).K.instance()},576(r,t,e){e.d(t,{F:()=>i});var n=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],i=function(){function o(a){return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];if(console){var l=console[a];if(typeof l!="function"&&(l=console.log),typeof l=="function")return l.apply(console,u)}}}for(var s=0;s<n.length;s++)this[n[s].n]=o(n[s].c)}},6096(r,t,e){var n;e.d(t,{u:()=>n}),(function(i){i[i.NONE=0]="NONE",i[i.ERROR=30]="ERROR",i[i.WARN=50]="WARN",i[i.INFO=60]="INFO",i[i.DEBUG=70]="DEBUG",i[i.VERBOSE=80]="VERBOSE",i[i.ALL=9999]="ALL"})(n||(n={}))},6071(r,t,e){e.d(t,{DiagConsoleLogger:()=>o.F,DiagLogLevel:()=>s.u,INVALID_SPANID:()=>O.w9,INVALID_SPAN_CONTEXT:()=>O.dM,INVALID_TRACEID:()=>O.RH,ProxyTracer:()=>l.y,ProxyTracerProvider:()=>d.n,ROOT_CONTEXT:()=>i.l,SamplingDecision:()=>h.i,SpanKind:()=>p.v,SpanStatusCode:()=>f.s,TraceFlags:()=>g.X,ValueType:()=>u.e,baggageEntryMetadataFromString:()=>n.B,context:()=>w._,createContextKey:()=>i.n,createNoopMeter:()=>a.Ac,createTraceState:()=>E,default:()=>j,defaultTextMapGetter:()=>c.q,defaultTextMapSetter:()=>c.U,diag:()=>R.s,isSpanContextValid:()=>_.YA,isValidSpanId:()=>_.wN,isValidTraceId:()=>_.hX,metrics:()=>C.q,propagation:()=>A.$,trace:()=>D.u}),e.r(t);var n=e(9862),i=e(5350),o=e(576),s=e(6096),a=e(9526),u=e(9831),c=e(1298),l=e(1654),d=e(5719),h=e(9623),p=e(4956),f=e(4913),g=e(7722),m="[_0-9a-z-*/]",y=new RegExp("^(?:"+("[a-z]"+m+"{0,255}")+"|"+("[a-z0-9]"+m+"{0,240}
1@[a-z]"+m+"{0,13}")+")$"),v=/^[ -~]{0,255}[!-~]$/,b=/,|=/,T=(function(){function M(G){this._internalState=new Map,G&&this._parse(G)}return M.prototype.set=function(G,V){var U=this._clone();return U._internalState.has(G)&&U._internalState.delete(G),U._internalState.set(G,V),U},M.prototype.unset=function(G){var V=this._clone();return V._internalState.delete(G),V},M.prototype.get=function(G){return this._internalState.get(G)},M.prototype.serialize=function(){var G=this;return this._keys().reduce(function(V,U){return V.push(U+"="+G.get(U)),V},[]).join(",")},M.prototype._parse=function(G){G.length>512||(this._internalState=G.split(",").reverse().reduce(function(V,U){var F=U.trim(),B=F.indexOf("=");if(B!==-1){var W=F.slice(0,B),J=F.slice(B+1,U.length);(function(se){return y.test(se)})(W)&&(function(se){return v.test(se)&&!b.test(se)})(J)&&V.set(W,J)}return V},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},M.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},M.prototype._clone=function(){var G=new M;return G._internalState=new Map(this._internalState),G},M})();function E(M){return new T(M)}var _=e(4624),O=e(4105),w=e(5339),R=e(6547),C=e(9457),A=e(431),D=e(3837);let j={context:w._,diag:R.s,metrics:C.q,propagation:A.$,trace:D.u}},9234(r,t,e){e.d(t,{mS:()=>d,$G:()=>l,kv:()=>h});var n=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof e.g=="object"?e.g:{},i="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s=(function(p){var f=new Set([p]),g=new Set,m=p.match(o);if(!m)return function(){return!1};var y=+m[1],v=+m[2],b=+m[3];
1if(m[4]!=null)return function(_){return _===p};function T(_){return g.add(_),!1}function E(_){return f.add(_),!0}return function(_){if(f.has(_))return!0;if(g.has(_))return!1;var O=_.match(o);if(!O)return T(_);var w=+O[1],R=+O[2],C=+O[3];return O[4]!=null||y!==w?T(_):y===0?v===R&&b<=C?E(_):T(_):v<=R?E(_):T(_)}})(i),a=i.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n;function l(p,f,g,m){var y;m===void 0&&(m=!1);var v=c[u]=(y=c[u])!==null&&y!==void 0?y:{version:i};if(!m&&v[p]){var b=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+p);return g.error(b.stack||b.message),!1}return v.version!==i?(b=new Error("@opentelemetry/api: Registration of version v"+v.version+" for "+p+" does not match previously registered API v"+i),g.error(b.stack||b.message),!1):(v[p]=f,g.debug("@opentelemetry/api: Registered a global for "+p+" v"+i+"."),!0)}function d(p){var f,g,m=(f=c[u])===null||f===void 0?void 0:f.version;if(m&&s(m))return(g=c[u])===null||g===void 0?void 0:g[p]}function h(p,f){f.debug("@opentelemetry/api: Unregistering a global for "+p+" v"+i+".");var g=c[u];g&&delete g[p]}},9457(r,t,e){e.d(t,{q:()=>u});var n=e(9526),i=new((function(){function c(){}return c.prototype.getMeter=function(l,d,h){return n.Dq},c})()),o=e(9234),s=e(5236),a="metrics",u=(function(){function c(){}return c.getInstance=function(){return this._instance||(this._instance=new c),this._instance},c.prototype.setGlobalMeterProvider=function(l){return(0,o.$G)(a,l,s.K.instance())},c.prototype.getMeterProvider=function(){return(0,o.mS)(a)||i},c.prototype.getMeter=function(l,d,h){return this.getMeterProvider().getMeter(l,d,h)},c.prototype.disable=function(){(0,o.kv)(a,s.K.instance())},c})().getInstance()},9831(r,t,e){var n;e.d(t,{e:()=>n}),(function(i){i[i.INT=0]="INT",i[i.DOUBLE=1]="DOUBLE"})(n||(n={}))},9526(r,t,e){e.d(t,{Ac:()=>O,Dq:()=>g});
1var n,i=(n=function(w,R){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,A){C.__proto__=A}||function(C,A){for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(C[D]=A[D])},n(w,R)},function(w,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function C(){this.constructor=w}n(w,R),w.prototype=R===null?Object.create(R):(C.prototype=R.prototype,new C)}),o=(function(){function w(){}return w.prototype.createGauge=function(R,C){return y},w.prototype.createHistogram=function(R,C){return v},w.prototype.createCounter=function(R,C){return m},w.prototype.createUpDownCounter=function(R,C){return b},w.prototype.createObservableGauge=function(R,C){return E},w.prototype.createObservableCounter=function(R,C){return T},w.prototype.createObservableUpDownCounter=function(R,C){return _},w.prototype.addBatchObservableCallback=function(R,C){},w.prototype.removeBatchObservableCallback=function(R){},w})(),s=function(){},a=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R.prototype.add=function(C,A){},R})(s),u=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R.prototype.add=function(C,A){},R})(s),c=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R.prototype.record=function(C,A){},R})(s),l=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R.prototype.record=function(C,A){},R})(s),d=(function(){function w(){}return w.prototype.addCallback=function(R){},w.prototype.removeCallback=function(R){},w})(),h=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R})(d),p=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R})(d),f=(function(w){function R(){return w!==null&&w.apply(this,arguments)||this}return i(R,w),R})(d),g=new o,m=new a,y=new c,v=new l,b=new u,T=new h,E=new p,_=new f;function O(){return g}},431(r,t,e){e.d(t,{$:()=>y});var n=e(9234),i=(function(){function v(){}return v.prototype.inject=function(b,T){},v.prototype.extract=function(b,T){return b},v.prototype.fields=function(){return[]},v})(),o=e(1298),s=e(9466),a=(0,e(5350).n)("OpenTelemetry Baggage Key");function u(v){return v.getValue(a)||void 0}function c(){return u(s._.getInstance().active())}function l(v,b){return v.setValue(a,b)}function d(v){return v.deleteValue(a)}var h=e(9862),p=e(5236),f="propagation",g=new i,m=(function(){function v(){this.createBaggage=h.L,this.getBaggage=u,this.getActiveBaggage=c,this.setBaggage=l,this.deleteBaggage=d}return v.getInstance=function(){return this._instance||(this._instance=new v),this._instance},v.prototype.setGlobalPropagator=function(b){return(0,n.$G)(f,b,p.K.instance())},v.prototype.inject=function(b,T,E){return E===void 0&&(E=o.U),this._getGlobalPropagator().inject(b,T,E)},v.prototype.extract=function(b,T,E){return E===void 0&&(E=o.q),this._getGlobalPropagator().extract(b,T,E)},v.prototype.fields=function(){return this._getGlobalPropagator().fields()},v.prototype.disable=function(){(0,n.kv)(f,p.K.instance())},v.prototype._getGlobalPropagator=function(){return(0,n.mS)(f)||g},v})(),y=m.getInstance()},1298(r,t,e){e.d(t,{U:()=>i,q:()=>n});var n={get:function(o,s){if(o!=null)return o[s]},keys:function(o){return o==null?[]:Object.keys(o)}},i={set:function(o,s,a){o!=null&&(o[s]=a)}}},3837(r,t,e){e.d(t,{u:()=>c});var n=e(9234),i=e(5719),o=e(4624),s=e(7888),a=e(5236),u="trace",c=(function(){function l(){this._proxyTracerProvider=new i.n,this.wrapSpanContext=o.IP,this.isSpanContextValid=o.YA,this.deleteSpan=s.EW,this.getSpan=s.fU,this.getActiveSpan=s.Bk,this.getSpanContext=s.w8,this.setSpan=s.Bx,this.setSpanContext=s.g_}return l.getInstance=function(){return this._instance||(this._instance=new l),this._instance},l.prototype.setGlobalTracerProvider=function(d){var h=(0,n.$G)(u,this._proxyTracerProvider,a.K.instance());return h&&this._proxyTracerProvider.setDelegate(d),h},l.prototype.getTracerProvider=function(){return(0,n.mS)(u)||this._proxyTracerProvider},l.prototype.getTracer=function(d,h){return this.getTracerProvider().getTracer(d,h)},l.prototype.disable=function(){(0,n.kv)(u,a.K.instance()),this._proxyTracerProvider=new i.n},l})().getInstance()},1005(r,t,e){e.d(t,{d:()=>i});var n=e(4105),i=(function(){function o(s){s===void 0&&(s=n.dM),this._spanContext=s}return o.prototype.spanContext=function(){return this._spanContext},o.prototype.setAttribute=function(s,a){return this},o.prototype.setAttributes=function(s){return this},o.prototype.addEvent=function(s,a){return this},o.prototype.addLink=function(s){return this},o.prototype.addLinks=function(s){return this},o.prototype.setStatus=function(s){return this},o.prototype.updateName=function(s){return this},o.prototype.end=function(s){},o.prototype.isRecording=function(){return!1},o.prototype.recordException=function(s,a){},o})()},6694(r,t,e){e.d(t,{o:()=>u});var n=e(9466),i=e(7888),o=e(1005),s=e(4624),a=n._.getInstance(),u=(function(){function c(){}return c.prototype.startSpan=function(l,d,h){if(h===void 0&&(h=a.active()),!!d?.root)return new o.d;var p,f=h&&(0,i.w8)(h);return typeof(p=f)=="object"&&typeof p.spanId=="string"&&typeof p.traceId=="string"&&typeof p.traceFlags=="number"&&(0,s.YA)(f)?new o.d(f):new o.d},c.prototype.startActiveSpan=function(l,d,h,p){var f,g,m;if(!(arguments.length<2)){arguments.length===2?m=d:arguments.length===3?(f=d,m=h):(f=d,g=h,m=p);var y=g??a.active(),v=this.startSpan(l,f,y),b=(0,i.Bx)(y,v);return a.with(b,m,void 0,v)}},c})()},1654(r,t,e){e.d(t,{y:()=>i});var n=new(e(6694)).o,i=(function(){function o(s,a,u,c){this._provider=s,this.name=a,this.version=u,this.options=c}return o.prototype.startSpan=function(s,a,u){return this._getTracer().startSpan(s,a,u)},o.prototype.startActiveSpan=function(s,a,u,c){var l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)},o.prototype._getTracer=function(){if(this._delegate)return this._delegate;var s=this._provider.getDelegateTracer(this.name,this.version,this.options);return s?(this._delegate=s,this._delegate):n},o})()},5719(r,t,e){e.d(t,{n:()=>s});var n=e(1654),i=e(6694),o=new((function(){function a(){}return a.prototype.getTracer=function(u,c,l){return new i.o},a})()),s=(function(){function a(){}return a.prototype.getTracer=function(u,c,l){var d;return(d=this.getDelegateTracer(u,c,l))!==null&&d!==void 0?d:new n.y(this,u,c,l)},a.prototype.getDelegate=function(){var u;return(u=this._delegate)!==null&&u!==void 0?u:o},a.prototype.setDelegate=function(u){this._delegate=u},a.prototype.getDelegateTracer=function(u,c,l){var d;return(d=this._delegate)===null||d===void 0?void 0:d.getTracer(u,c,l)},a})()},9623(r,t,e){var n;e.d(t,{i:()=>n}),(function(i){i[i.NOT_RECORD=0]="NOT_RECORD",i[i.RECORD=1]="RECORD",i[i.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n||(n={}))},7888(r,t,e){e.d(t,{Bk:()=>u,Bx:()=>c,EW:()=>l,fU:()=>a,g_:()=>d,w8:()=>h});var n=e(5350),i=e(1005),o=e(9466),s=(0,n.n)("OpenTelemetry Context Key SPAN");function a(p){return p.getValue(s)||void 0}function u(){return a(o._.getInstance().active())}function c(p,f){return p.setValue(s,f)}function l(p){return p.deleteValue(s)}function d(p,f){return c(p,new i.d(f))}function h(p){var f;return(f=a(p))===null||f===void 0?void 0:f.spanContext()}},4105(r,t,e){e.d(t,{RH:()=>o,dM:()=>s,w9:()=>i});var n=e(7722),i="0000000000000000",o="00000000000000000000000000000000",s={traceId:o,spanId:i,traceFlags:n.X.NONE}},4956(r,t,e){var n;e.d(t,{v:()=>n}),(function(i){i[i.INTERNAL=0]="INTERNAL",i[i.SERVER=1]="SERVER",i[i.CLIENT=2]="CLIENT",i[i.PRODUCER=3]="PRODUCER",i[i.CONSUMER=4]="CONSUMER"})(n||(n={}))},4624(r,t,e){e.d(t,{IP:()=>l,YA:()=>c,hX:()=>a,wN:()=>u});var n=e(4105),i=e(1005),o=/^([0-9a-f]{32})$/i,s=/^[0-9a-f]{16}$/i;function a(d){return o.test(d)&&d!==n.RH}function u(d){return s.test(d)&&d!==n.w9}function c(d){return a(d.traceId)&&u(d.spanId)}function l(d){return new i.d(d)}},4913(r,t,e){var n;e.d(t,{s:()=>n}),(function(i){i[i.UNSET=0]="UNSET",i[i.OK=1]="OK",i[i.ERROR=2]="ERROR"})(n||(n={}))},7722(r,t,e){var n;e.d(t,{X:()=>n}),(function(i){i[i.NONE=0]="NONE",i[i.SAMPLED=1]="SAMPLED"})(n||(n={}))},2874(r,t,e){var n;e.d(t,{V:()=>n}),(function(i){i[i.SUCCESS=0]="SUCCESS",i[i.FAILED=1]="FAILED"})(n||(n={}))},3045(r,t,e){e.d(t,{EC:()=>o,KV:()=>u,QC:()=>a,hN:()=>i,kI:()=>c,r_:()=>s,un:()=>n});var n="=",i=";",o=",",s="baggage",a=180,u=4096,c=8192},2559(r,t,e){e.d(t,{t:()=>a});var n=e(431),i=e(9239),o=e(3045),s=e(3849),a=(function(){function u(){}return u.prototype.inject=function(c,l,d){var h=n.$.getBaggage(c);if(h&&!(0,i.Zf)(c)){var p=(0,s.pX)(h).filter(function(g){return g.length<=o.KV}).slice(0,o.QC),f=(0,s.L7)(p);f.length>0&&d.set(l,o.r_,f)}},u.prototype.extract=function(c,l,d){var h=d.get(l,o.r_),p=Array.isArray(h)?h.join(o.EC):h;if(!p)return c;var f={};
1return p.length===0?c:(p.split(o.EC).forEach(function(g){var m=(0,s.Qd)(g);if(m){var y={value:m.value};m.metadata&&(y.metadata=m.metadata),f[m.key]=y}}),Object.entries(f).length===0?c:n.$.setBaggage(c,n.$.createBaggage(f)))},u.prototype.fields=function(){return[o.r_]},u})()},3849(r,t,e){e.d(t,{L7:()=>s,Qd:()=>u,hD:()=>c,pX:()=>a});var n=e(9862),i=e(3045),o=function(l,d){var h=typeof Symbol=="function"&&l[Symbol.iterator];if(!h)return l;var p,f,g=h.call(l),m=[];try{for(;(d===void 0||d-- >0)&&!(p=g.next()).done;)m.push(p.value)}catch(y){f={error:y}}finally{try{p&&!p.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return m};function s(l){return l.reduce(function(d,h){var p=""+d+(d!==""?i.EC:"")+h;return p.length>i.kI?d:p},"")}function a(l){return l.getAllEntries().map(function(d){var h=o(d,2),p=h[0],f=h[1],g=encodeURIComponent(p)+"="+encodeURIComponent(f.value);return f.metadata!==void 0&&(g+=i.hN+f.metadata.toString()),g})}function u(l){var d=l.split(i.hN);if(!(d.length<=0)){var h=d.shift();if(h){var p=h.indexOf(i.un);if(!(p<=0)){var f,g=decodeURIComponent(h.substring(0,p).trim()),m=decodeURIComponent(h.substring(p+1).trim());return d.length>0&&(f=(0,n.B)(d.join(i.hN))),{key:g,value:m,metadata:f}}}}}function c(l){return typeof l!="string"||l.length===0?{}:l.split(i.EC).map(function(d){return u(d)}).filter(function(d){return d!==void 0&&d.value.length>0}).reduce(function(d,h){return d[h.key]=h.value,d},{})}},4414(r,t,e){e.d(t,{L:()=>s,m:()=>u,oU:()=>a});var n=e(6547),i=function(l){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&l[d],p=0;if(h)return h.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&p>=l.length&&(l=void 0),{value:l&&l[p++],done:!l}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(l,d){var h=typeof Symbol=="function"&&l[Symbol.iterator];if(!h)return l;var p,f,g=h.call(l),m=[];try{for(;(d===void 0||d-- >0)&&!(p=g.next()).done;)m.push(p.value)}catch(y){f={error:y}}finally{try{p&&!p.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return m};function s(l){var d,h,p={};if(typeof l!="object"||l==null)return p;try{for(var f=i(Object.entries(l)),g=f.next();!g.done;g=f.next()){var m=o(g.value,2),y=m[0],v=m[1];a(y)?u(v)?Array.isArray(v)?p[y]=v.slice():p[y]=v:n.s.warn("Invalid attribute value set for key: "+y):n.s.warn("Invalid attribute key: "+y)}}catch(b){d={error:b}}finally{try{g&&!g.done&&(h=f.return)&&h.call(f)}finally{if(d)throw d.error}}return p}function a(l){return typeof l=="string"&&l.length>0}function u(l){return l==null||(Array.isArray(l)?(function(d){var h,p,f;try{for(var g=i(d),m=g.next();!m.done;m=g.next()){var y=m.value;if(y!=null){if(!f){if(c(y)){f=typeof y;continue}return!1}if(typeof y!==f)return!1}}}catch(v){h={error:v}}finally{try{m&&!m.done&&(p=g.return)&&p.call(g)}finally{if(h)throw h.error}}return!0})(l):c(l))}function c(l){switch(typeof l){case"number":case"boolean":case"string":return!0}return!1}},6446(r,t,e){e.d(t,{s:()=>o,u:()=>i});var n=(0,e(4772).o)();function i(s){n=s}function o(s){try{n(s)}catch{}}},4772(r,t,e){e.d(t,{o:()=>i});var n=e(6547);function i(){return function(o){n.s.error((function(s){return typeof s=="string"?s:JSON.stringify((function(a){for(var u={},c=a;c!==null;)Object.getOwnPropertyNames(c).forEach(function(l){if(!u[l]){var d=c[l];d&&(u[l]=String(d))}}),c=Object.getPrototypeOf(c);return u})(s))})(o))}}},8958(r,t,e){e.d(t,{Ir:()=>m,JU:()=>p,KJ:()=>c,VL:()=>g,W5:()=>l,_5:()=>u,lg:()=>s,mw:()=>y,tq:()=>d,u5:()=>h,uc:()=>a,w_:()=>f});var n=e(6452),i=Math.pow(10,6),o=Math.pow(10,9);function s(v){var b=v/1e3;return[Math.trunc(b),Math.round(v%1e3*i)]}function a(){var v=n.u.timeOrigin;if(typeof v!="number"){var b=n.u;v=b.timing&&b.timing.fetchStart}return v}function u(v){return y(s(a()),s(typeof v=="number"?v:n.u.now()))}function c(v){if(g(v))return v;if(typeof v=="number")return v<a()?u(v):s(v);if(v instanceof Date)return s(v.getTime());throw TypeError("Invalid input type")}function l(v,b){var T=b[0]-v[0],E=b[1]-v[1];return E<0&&(T-=1,E+=o),[T,E]}function d(v){var b=""+"0".repeat(9)+v[1]+"Z",T=b.substring(b.length-9-1);return new Date(1e3*v[0]).toISOString().replace("000Z",T)}function h(v){return v[0]*o+v[1]}function p(v){return 1e3*v[0]+v[1]/1e6}function f(v){return 1e6*v[0]+v[1]/1e3}function g(v){return Array.isArray(v)&&v.length===2&&typeof v[0]=="number"&&typeof v[1]=="number"}function m(v){return g(v)||typeof v=="number"||v instanceof Date}function y(v,b){var T=[v[0]+b[0],v[1]+b[1]];return T[1]>=o&&(T[1]-=o,T[0]+=1),T}},7844(r,t,e){e.d(t,{AlwaysOffSampler:()=>U,AlwaysOnSampler:()=>F,AnchoredClock:()=>i,BindOnceFuture:()=>Ie.I,CompositePropagator:()=>R.n,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Y.fv,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Y.aE,DEFAULT_ENVIRONMENT:()=>Y.Uz,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Y.h9,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Y.V,ExportResultCode:()=>d.V,ParentBasedSampler:()=>se,RPCType:()=>b,RandomIdGenerator:()=>p,SDK_INFO:()=>T.q,TRACE_PARENT_HEADER:()=>C.ZS,TRACE_STATE_HEADER:()=>C.UD,TimeoutError:()=>Ee,TraceIdRatioBasedSampler:()=>Q,TraceState:()=>te.n,TracesSamplerValues:()=>ie.R,VERSION:()=>Se.x,W3CBaggagePropagator:()=>n.t,W3CTraceContextPropagator:()=>C.lm,_globalThis:()=>E.X,addHrTimes:()=>u.mw,baggageUtils:()=>Me,callWithTimeout:()=>fe,deleteRPCMetadata:()=>j,getEnv:()=>_._,getEnvWithoutDefaults:()=>_.w,getRPCMetadata:()=>M,getTimeOrigin:()=>u.uc,globalErrorHandler:()=>s.s,hexToBase64:()=>v,hexToBinary:()=>l,hrTime:()=>u._5,hrTimeDuration:()=>u.W5,hrTimeToMicroseconds:()=>u.w_,hrTimeToMilliseconds:()=>u.JU,hrTimeToNanoseconds:()=>u.u5,hrTimeToTimeStamp:()=>u.tq,internal:()=>Ae,isAttributeKey:()=>o.oU,isAttributeValue:()=>
1o.m,isTimeInput:()=>u.Ir,isTimeInputHrTime:()=>u.VL,isTracingSuppressed:()=>ae.Zf,isUrlIgnored:()=>Le.K,isWrapped:()=>xe,loggingErrorHandler:()=>a.o,merge:()=>ne.h,millisToHrTime:()=>u.lg,otperformance:()=>O.u,parseEnvironment:()=>Y.Nq,parseTraceParent:()=>C.ZI,sanitizeAttributes:()=>o.L,setGlobalErrorHandler:()=>s.u,setRPCMetadata:()=>D,suppressTracing:()=>ae.M1,timeInputToHrTime:()=>u.KJ,unrefTimer:()=>w.K,unsuppressTracing:()=>ae.FU,urlMatches:()=>Le.f}),e.r(t);var n=e(2559),i=(function(){function X(H,P){this._monotonicClock=P,this._epochMillis=H.now(),this._performanceMillis=P.now()}return X.prototype.now=function(){var H=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+H},X})(),o=e(4414),s=e(6446),a=e(4772),u=e(8958);function c(X){return X>=48&&X<=57?X-48:X>=97&&X<=102?X-87:X-55}function l(X){for(var H=new Uint8Array(X.length/2),P=0,L=0;L<X.length;L+=2){var N=c(X.charCodeAt(L)),ee=c(X.charCodeAt(L+1));H[P++]=N<<4|ee}return H}var d=e(2874),h=e(3849),p=function(){this.generateTraceId=g(16),this.generateSpanId=g(8)},f=Array(32);function g(X){return function(){for(var H=0;H<2*X;H++)f[H]=Math.floor(16*Math.random())+48,f[H]>=58&&(f[H]+=39);return String.fromCharCode.apply(null,f.slice(0,2*X))}}var m=function(X,H){var P=typeof Symbol=="function"&&X[Symbol.iterator];if(!P)return X;var L,N,ee=P.call(X),he=[];try{for(;(H===void 0||H-- >0)&&!(L=ee.next()).done;)he.push(L.value)}catch(ge){N={error:ge}}finally{try{L&&!L.done&&(P=ee.return)&&P.call(ee)}finally{if(N)throw N.error}}return he},y=function(X,H,P){if(P||arguments.length===2)for(var L,N=0,ee=H.length;N<ee;N++)!L&&N in H||(L||(L=Array.prototype.slice.call(H,0,N)),L[N]=H[N]);return X.concat(L||Array.prototype.slice.call(H))};function v(X){return btoa(String.fromCharCode.apply(String,y([],m(l(X)),!1)))}var b,T=e(387),E=e(5691),_=e(1347),O=e(6452),w=e(2168),R=e(1923),C=e(5077),A=(0,e(5350).n)("OpenTelemetry SDK Context Key RPC_METADATA");function D(X,H){return X.setValue(A,H)}function j(X){return X.deleteValue(A)}function M(X){return X.getValue(A)}(function(X){X.HTTP="http"})(b||(b={}));var G,V=e(9623),U=(function(){function X(){}return X.prototype.shouldSample=function(){return{decision:V.i.NOT_RECORD}},X.prototype.toString=function(){return"AlwaysOffSampler"},X})(),F=(function(){function X(){}return X.prototype.shouldSample=function(){return{decision:V.i.RECORD_AND_SAMPLED}},X.prototype.toString=function(){return"AlwaysOnSampler"},X})(),B=e(3837),W=e(4624),J=e(7722),se=(function(){function X(H){var P,L,N,ee;this._root=H.root,this._root||((0,s.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new F),this._remoteParentSampled=(P=H.remoteParentSampled)!==null&&P!==void 0?P:new F,this._remoteParentNotSampled=(L=H.remoteParentNotSampled)!==null&&L!==void 0?L:new U,this._localParentSampled=(N=H.localParentSampled)!==null&&N!==void 0?N:new F,this._localParentNotSampled=(ee=H.localParentNotSampled)!==null&&ee!==void 0?ee:new U}return X.prototype.shouldSample=function(H,P,L,N,ee,he){var ge=B.u.getSpanContext(H);return ge&&(0,W.YA)(ge)?ge.isRemote?ge.traceFlags&J.X.SAMPLED?this._remoteParentSampled.shouldSample(H,P,L,N,ee,he):this._remoteParentNotSampled.shouldSample(H,P,L,N,ee,he):ge.traceFlags&J.X.SAMPLED?this._localParentSampled.shouldSample(H,P,L,N,ee,he):this._localParentNotSampled.shouldSample(H,P,L,N,ee,he):this._root.shouldSample(H,P,L,N,ee,he)},X.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},X})(),Q=(function(){function X(H){H===void 0&&(H=0),this._ratio=H,this._ratio=this._normalize(H),this._upperBound=Math.floor(4294967295*this._ratio)}return X.prototype.shouldSample=function(H,P){return{decision:(0,W.hX)(P)&&this._accumulate(P)<this._upperBound?V.i.RECORD_AND_SAMPLED:V.i.NOT_RECORD}},X.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},X.prototype._normalize=function(H){return typeof H!="number"||isNaN(H)?0:H>=1?1:H<=0?0:H},X.prototype._accumulate=function(H){for(var P=0,L=0;L<H.length/8;L++){var N=8*L;P=(P^parseInt(H.slice(N,N+8),16))>>>0}return P},X})(),ae=e(9239),te=e(6092),Y=e(5146),ne=e(9396),ie=e(6758),de=(G=function(X,H){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,L){P.__proto__=L}||function(P,L){for(var N in L)Object.prototype.hasOwnProperty.call(L,N)&&(P[N]=L[N])},G(X,H)},function(X,H){if(typeof H!="function"&&H!==null)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function P(){this.constructor=X}
1G(X,H),X.prototype=H===null?Object.create(H):(P.prototype=H.prototype,new P)}),Ee=(function(X){function H(P){var L=X.call(this,P)||this;return Object.setPrototypeOf(L,H.prototype),L}return de(H,X),H})(Error);function fe(X,H){var P,L=new Promise(function(N,ee){P=setTimeout(function(){ee(new Ee("Operation timed out."))},H)});return Promise.race([X,L]).then(function(N){return clearTimeout(P),N},function(N){throw clearTimeout(P),N})}var Le=e(3074);function xe(X){return typeof X=="function"&&typeof X.__original=="function"&&typeof X.__unwrap=="function"&&X.__wrapped===!0}var Ie=e(1431),Se=e(9905),De=e(5339),Me={getKeyPairs:h.pX,serializeKeyPairs:h.L7,parseKeyPairsIntoRecord:h.hD,parsePairKeyValue:h.Qd},Ae={_export:function(X,H){return new Promise(function(P){De._.with((0,ae.M1)(De._.active()),function(){X.export(H,function(L){P(L)})})})}}},1347(r,t,e){e.d(t,{_:()=>o,w:()=>s});var n=e(5146),i=e(5691);function o(){var a=(0,n.Nq)(i.X);return Object.assign({},n.Uz,a)}function s(){return(0,n.Nq)(i.X)}},5691(r,t,e){e.d(t,{X:()=>n});var n=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof e.g=="object"?e.g:{}},6452(r,t,e){e.d(t,{u:()=>n});var n=performance},387(r,t,e){e.d(t,{q:()=>s});var n,i=e(9905),o=e(6036),s=((n={})[o.$L]="opentelemetry",n[o.lb]="browser",n[o.Pl]=o.uh,n[o.y$]=i.x,n)},2168(r,t,e){function n(i){}e.d(t,{K:()=>n})},1923(r,t,e){e.d(t,{n:()=>o});var n=e(6547),i=function(s){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&s[a],c=0;if(u)return u.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&c>=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(function(){function s(a){var u;a===void 0&&(a={}),this._propagators=(u=a.propagators)!==null&&u!==void 0?u:[],this._fields=Array.from(new Set(this._propagators.map(function(c){return typeof c.fields=="function"?c.fields():[]}).reduce(function(c,l){return c.concat(l)},[])))}return s.prototype.inject=function(a,u,c){var l,d;try{for(var h=i(this._propagators),p=h.next();!p.done;p=h.next()){var f=p.value;try{f.inject(a,u,c)}catch(g){n.s.warn("Failed to inject with "+f.constructor.name+". Err: "+g.message)}}}catch(g){l={error:g}}finally{try{p&&!p.done&&(d=h.return)&&d.call(h)}finally{if(l)throw l.error}}},s.prototype.extract=function(a,u,c){return this._propagators.reduce(function(l,d){try{return d.extract(l,u,c)}catch(h){n.s.warn("Failed to extract with "+d.constructor.name+". Err: "+h.message)}return l},a)},s.prototype.fields=function(){return this._fields.slice()},s})()},6092(r,t,e){e.d(t,{n:()=>a});var n="[_0-9a-z-*/]",i=new RegExp("^(?:"+("[a-z]"+n+"{0,255}")+"|"+("[a-z0-9]"+n+"{0,240}@[a-z]"+n+"{0,13}")+")$"),o=/^[ -~]{0,255}[!-~]$/,s=/,|=/,a=(function(){function u(c){this._internalState=new Map,c&&this._parse(c)}return u.prototype.set=function(c,l){var d=this._clone();return d._internalState.has(c)&&d._internalState.delete(c),d._internalState.set(c,l),d},u.prototype.unset=function(c){var l=this._clone();return l._internalState.delete(c),l},u.prototype.get=function(c){return this._internalState.get(c)},u.prototype.serialize=function(){var c=this;return this._keys().reduce(function(l,d){return l.push(d+"="+c.get(d)),l},[]).join(",")},u.prototype._parse=function(c){c.length>512||(this._internalState=c.split(",").reverse().reduce(function(l,d){var h=d.trim(),p=h.indexOf("=");if(p!==-1){var f=h.slice(0,p),g=h.slice(p+1,d.length);(function(m){return i.test(m)})(f)&&(function(m){return o.test(m)&&!s.test(m)})(g)&&l.set(f,g)}return l},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},u.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},u.prototype._clone=function(){var c=new u;return c._internalState=new Map(this._internalState),c},u})()},5077(r,t,e){e.d(t,{UD:()=>c,ZI:()=>d,ZS:()=>u,lm:()=>h});var n=e(7722),i=e(4624),o=e(3837),s=e(9239),a=e(6092),u="traceparent",c="tracestate",l=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function d(p){var f=l.exec(p);return f?f[1]==="00"&&f[5]?null:{traceId:f[2],spanId:f[3],traceFlags:parseInt(f[4],16)}:null}var h=(function(){function p(){}return p.prototype.inject=function(f,g,m){var y=o.u.getSpanContext(f);if(y&&!(0,s.Zf)(f)&&(0,i.YA)(y)){var v="00-"+y.traceId+"-"+y.spanId+"-0"+Number(y.traceFlags||n.X.NONE).toString(16);m.set(g,u,v),y.traceState&&m.set(g,c,y.traceState.serialize())}},p.prototype.extract=function(f,g,m){var y=m.get(g,u);if(!y)return f;var v=Array.isArray(y)?y[0]:y;if(typeof v!="string")return f;var b=d(v);if(!b)return f;b.isRemote=!0;var T=m.get(g,c);if(T){var E=Array.isArray(T)?T.join(","):T;b.traceState=new a.n(typeof E=="string"?E:void 0)}return o.u.setSpanContext(f,b)},p.prototype.fields=function(){return[u,c]},p})()},9239(r,t,e){e.d(t,{FU:()=>o,M1:()=>i,Zf:()=>s});var n=(0,e(5350).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(a){return a.setValue(n,!0)}function o(a){return a.deleteValue(n)}function s(a){return a.getValue(n)===!0}},1431(r,t,e){e.d(t,{I:()=>s});var n=(function(){function a(){var u=this;this._promise=new Promise(function(c,l){u._resolve=c,u._reject=l})}return Object.defineProperty(a.prototype,"promise",{get:function(){return this._promise}
1,enumerable:!1,configurable:!0}),a.prototype.resolve=function(u){this._resolve(u)},a.prototype.reject=function(u){this._reject(u)},a})(),i=function(a,u){var c=typeof Symbol=="function"&&a[Symbol.iterator];if(!c)return a;var l,d,h=c.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=h.next()).done;)p.push(l.value)}catch(f){d={error:f}}finally{try{l&&!l.done&&(c=h.return)&&c.call(h)}finally{if(d)throw d.error}}return p},o=function(a,u,c){if(c||arguments.length===2)for(var l,d=0,h=u.length;d<h;d++)!l&&d in u||(l||(l=Array.prototype.slice.call(u,0,d)),l[d]=u[d]);return a.concat(l||Array.prototype.slice.call(u))},s=(function(){function a(u,c){this._callback=u,this._that=c,this._isCalled=!1,this._deferred=new n}return Object.defineProperty(a.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),a.prototype.call=function(){for(var u,c=this,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((u=this._callback).call.apply(u,o([this._that],i(l),!1))).then(function(h){return c._deferred.resolve(h)},function(h){return c._deferred.reject(h)})}catch(h){this._deferred.reject(h)}}return this._deferred.promise},a})()},5146(r,t,e){e.d(t,{Nq:()=>E,Uz:()=>g,V:()=>f,aE:()=>d,fv:()=>h,h9:()=>p});var n=e(6096),i=e(6758),o=["OTEL_SDK_DISABLED"];function s(_){return o.indexOf(_)>-1}var a=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function u(_){return a.indexOf(_)>-1}var c=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function l(_){return c.indexOf(_)>-1}var d=1/0,h=128,p=128,f=128,g={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:n.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:d,OTEL_ATTRIBUTE_COUNT_LIMIT:h,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:d,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:h,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:d,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:h,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:p,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:f,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:i.R.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function m(_,O,w){if(w[_]!==void 0){var R=String(w[_]);O[_]=R.toLowerCase()==="true"}}function y(_,O,w,R,C){if(R===void 0&&(R=-1/0),C===void 0&&(C=1/0),w[_]!==void 0){var A=Number(w[_]);isNaN(A)||(O[_]=A<R?R:A>C?C:A)}}function v(_,O,w,R){R===void 0&&(R=",");var C=w[_];typeof C=="string"&&(O[_]=C.split(R).map(function(A){return A.trim()}))}var b={ALL:n.u.ALL,VERBOSE:n.u.VERBOSE,DEBUG:n.u.DEBUG,INFO:n.u.INFO,WARN:n.u.WARN,ERROR:n.u.ERROR,NONE:n.u.NONE};function T(_,O,w){var R=w[_];
1if(typeof R=="string"){var C=b[R.toUpperCase()];C!=null&&(O[_]=C)}}function E(_){var O={};for(var w in g){var R=w;if(R==="OTEL_LOG_LEVEL")T(R,O,_);else if(s(R))m(R,O,_);else if(u(R))y(R,O,_);else if(l(R))v(R,O,_);else{var C=_[R];C!=null&&(O[R]=String(C))}}return O}},9396(r,t,e){e.d(t,{h:()=>p});var n="[object Null]",i="[object Undefined]",o=Function.prototype.toString,s=o.call(Object),a=(function(E,_){return function(O){return E(_(O))}})(Object.getPrototypeOf,Object),u=Object.prototype,c=u.hasOwnProperty,l=Symbol?Symbol.toStringTag:void 0,d=u.toString;function h(E){if(!(function(w){return w!=null&&typeof w=="object"})(E)||(function(w){return w==null?w===void 0?i:n:l&&l in Object(w)?(function(R){var C=c.call(R,l),A=R[l],D=!1;try{R[l]=void 0,D=!0}catch{}var j=d.call(R);return D&&(C?R[l]=A:delete R[l]),j})(w):(function(R){return d.call(R)})(w)})(E)!=="[object Object]")return!1;var _=a(E);if(_===null)return!0;var O=c.call(_,"constructor")&&_.constructor;return typeof O=="function"&&O instanceof O&&o.call(O)===s}function p(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];for(var O=E.shift(),w=new WeakMap;E.length>0;)O=g(O,E.shift(),0,w);return O}function f(E){return y(E)?E.slice():E}function g(E,_,O,w){var R;if(O===void 0&&(O=0),!(O>20)){if(O++,T(E)||T(_)||v(_))R=f(_);else if(y(E)){if(R=E.slice(),y(_))for(var C=0,A=_.length;C<A;C++)R.push(f(_[C]));else if(b(_))for(C=0,A=(D=Object.keys(_)).length;C<A;C++)R[j=D[C]]=f(_[j])}else if(b(E))if(b(_)){if(!(function(B,W){return!(!h(B)||!h(W))})(E,_))return _;R=Object.assign({},E);var D;for(C=0,A=(D=Object.keys(_)).length;C<A;C++){var j,M=_[j=D[C]];if(T(M))M===void 0?delete R[j]:R[j]=M;else{var G=R[j],V=M;if(m(E,j,w)||m(_,j,w))delete R[j];else{if(b(G)&&b(V)){var U=w.get(G)||[],F=w.get(V)||[];U.push({obj:E,key:j}),F.push({obj:_,key:j}),w.set(G,U),w.set(V,F)}R[j]=g(R[j],M,O,w)}}}}else R=_;return R}}function m(E,_,O){for(var w=O.get(E[_])||[],R=0,C=w.length;R<C;R++){var A=w[R];if(A.key===_&&A.obj===E)return!0}return!1}function y(E){return Array.isArray(E)}function v(E){return typeof E=="function"}function b(E){return!T(E)&&!y(E)&&!v(E)&&typeof E=="object"}function T(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||E===void 0||E instanceof Date||E instanceof RegExp||E===null}},6758(r,t,e){var n;e.d(t,{R:()=>n}),(function(i){i.AlwaysOff="always_off",i.AlwaysOn="always_on",i.ParentBasedAlwaysOff="parentbased_always_off",i.ParentBasedAlwaysOn="parentbased_always_on",i.ParentBasedTraceIdRatio="parentbased_traceidratio",i.TraceIdRatio="traceidratio"})(n||(n={}))},3074(r,t,e){e.d(t,{K:()=>o,f:()=>i});var n=function(s){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&s[a],c=0;if(u)return u.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&c>=s.length&&(s=void 0),{value:s&&s[c++],done:!s}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};function i(s,a){return typeof a=="string"?s===a:!!s.match(a)}function o(s,a){var u,c;if(!a)return!1;try{for(var l=n(a),d=l.next();!d.done;d=l.next())if(i(s,d.value))return!0}catch(h){u={error:h}}finally{try{d&&!d.done&&(c=l.return)&&c.call(l)}finally{if(u)throw u.error}}return!1}},9905(r,t,e){e.d(t,{x:()=>n});var n="1.30.1"},1210(r,t,e){t.jS=t.py=t.Ux=void 0;let n=e(6071),i=e(7844),o=e(7387),s={[n.SpanKind.CLIENT]:o.SpanKind.CLIENT,[n.SpanKind.SERVER]:o.SpanKind.SERVER,[n.SpanKind.CONSUMER]:o.SpanKind.CONSUMER,[n.SpanKind.PRODUCER]:o.SpanKind.PRODUCER,[n.SpanKind.INTERNAL]:void 0};function a({attributes:c,resource:l,status:d,droppedAttributesCount:h,droppedEventsCount:p,droppedLinksCount:f},g,m){let y={};for(let v of Object.keys(c))y[v]=String(c[v]);return d.code!==n.SpanStatusCode.UNSET&&(y[g]=String(n.SpanStatusCode[d.code])),d.code===n.SpanStatusCode.ERROR&&d.message&&(y[m]=d.message),h&&(y["otel.dropped_attributes_count"]=String(h)),p&&(y["otel.dropped_events_count"]=String(p)),f&&(y["otel.dropped_links_count"]=String(f)),Object.keys(l.attributes).forEach(v=>y[v]=String(l.attributes[v])),y}function u(c){return c.map(l=>({timestamp:Math.round((0,i.hrTimeToMicroseconds)(l.time)),value:l.name}))}t.Ux="otel.status_code",t.py="error",t.jS=function(c,l,d,h){return{traceId:c.spanContext().traceId,parentId:c.parentSpanId,name:c.name,id:c.spanContext().spanId,kind:s[c.kind],timestamp:(0,i.hrTimeToMicroseconds)(c.startTime),duration:Math.round((0,i.hrTimeToMicroseconds)(c.duration)),localEndpoint:{serviceName:l},tags:a(c,d,h),annotations:c.events.length?u(c.events):void 0}}}
1,7387(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SpanKind=void 0,(function(e){e.CLIENT="CLIENT",e.SERVER="SERVER",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER"})(t.SpanKind||(t.SpanKind={}))},685(r,t,e){function n(i){for(var o={},s=i.length,a=0;a<s;a++){var u=i[a];u&&(o[String(u).toUpperCase().replace(/[-.]/g,"_")]=u)}return o}e.d(t,{O:()=>n})},6036(r,t,e){e.d(t,{$L:()=>l,AV:()=>c,Pl:()=>d,lb:()=>u,uh:()=>f,y$:()=>h}),e(685);var n="process.runtime.name",i="service.name",o="telemetry.sdk.name",s="telemetry.sdk.language",a="telemetry.sdk.version",u=n,c=i,l=o,d=s,h=a,p="webjs",f=p},554(r){function t(a){return typeof a=="function"}var e=console.error.bind(console);function n(a,u,c){var l=!!a[u]&&a.propertyIsEnumerable(u);Object.defineProperty(a,u,{configurable:!0,enumerable:l,writable:!0,value:c})}function i(a){a&&a.logger&&(t(a.logger)?e=a.logger:e("new logger isn't a function, not replacing"))}function o(a,u,c){if(a&&a[u]){if(!c)return e("no wrapper function"),void e(new Error().stack);if(t(a[u])&&t(c)){var l=a[u],d=c(l,u);return n(d,"__original",l),n(d,"__unwrap",function(){a[u]===d&&n(a,u,l)}),n(d,"__wrapped",!0),n(a,u,d),d}e("original object and wrapper must be functions")}else e("no original function "+u+" to wrap")}function s(a,u){return a&&a[u]?a[u].__unwrap?a[u].__unwrap():void e("no original to unwrap to -- has "+u+" already been unwrapped?"):(e("no function to unwrap."),void e(new Error().stack))}i.wrap=o,i.massWrap=function(a,u,c){if(!a)return e("must provide one or more modules to patch"),void e(new Error().stack);Array.isArray(a)||(a=[a]),u&&Array.isArray(u)?a.forEach(function(l){u.forEach(function(d){o(l,d,c)})}):e("must provide one or more functions to wrap on modules")},i.unwrap=s,i.massUnwrap=function(a,u){if(!a)return e("must provide one or more modules to patch"),void e(new Error().stack);Array.isArray(a)||(a=[a]),u&&Array.isArray(u)?a.forEach(function(c){u.forEach(function(l){s(c,l)})}):e("must provide one or more functions to unwrap on modules")},r.exports=i},5934(r,t,e){var n=e(5969),i=e(5275),o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(i(s)+" is not a function")}},6840(r,t,e){var n=e(8017),i=e(5275),o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(i(s)+" is not a constructor")}},8286(r,t,e){var n=e(9081),i=String,o=TypeError;r.exports=function(s){if(n(s))return s;throw new o("Can't set "+i(s)+" as a prototype")}},9348(r,t,e){var n=e(8470).has;r.exports=function(i){return n(i),i}},1801(r,t,e){var n=e(7759),i=e(596),o=e(2837).f,s=n("unscopables"),a=Array.prototype;a[s]===void 0&&o(a,s,{configurable:!0,value:i(null)}),r.exports=function(u){a[s][u]=!0}},4897(r,t,e){var n=e(7504).charAt;r.exports=function(i,o,s){return o+(s&&n(i,o).length||1)}},6539(r,t,e){var n=e(7165),i=TypeError;r.exports=function(o,s){if(n(s,o))return o;throw new i("Incorrect invocation")}},4467(r,t,e){var n=e(1142),i=String,o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(i(s)+" is not an object")}},1951(r){r.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},4430(r,t,e){var n=e(2100),i=e(1094),o=e(3132),s=n.ArrayBuffer,a=n.TypeError;r.exports=s&&i(s.prototype,"byteLength","get")||function(u){if(o(u)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return u.byteLength}},9490(r,t,e){var n=e(2100),i=e(1951),o=e(4430),s=n.DataView;r.exports=function(a){if(!i||o(a)!==0)return!1;try{return new s(a),!1}catch{return!0}}},1229(r,t,e){var n=e(9490),i=TypeError;r.exports=function(o){if(n(o))throw new i("ArrayBuffer is detached");return o}},8632(r,t,e){var n=e(2100),i=e(2244),o=e(1094),s=e(1628),a=e(1229),u=e(4430),c=e(5159),l=e(400),d=n.structuredClone,h=n.ArrayBuffer,p=n.DataView,f=Math.max,g=Math.min,m=h.prototype,y=p.prototype,v=i(m.slice),b=o(m,"resizable","get"),T=o(m,"maxByteLength","get"),E=i(y.getInt8),_=i(y.setInt8);r.exports=(l||c)&&function(O,w,R){var C,A=u(O),D=w===void 0?A:s(w),j=!b||!b(O);if(a(O),l&&(O=d(O,{transfer:[O]}),A===D&&(R||j)))return O;if(A>=D&&(!R||j))C=v(O,0,D);else{var M=R&&!j&&T?{maxByteLength:f(D,T(O))}:void 0;C=new h(D,M);for(var G=new p(O),V=new p(C),U=g(D,A),F=0;F<U;F++)_(V,F,E(G,F))}return l||c(O),C}},4832(r,t,e){var n,i,o,s=e(1951),a=e(8224),u=e(2100),c=e(5969),l=e(1142),d=e(253),h=e(8023),p=e(5275),f=e(1519),g=e(3828),m=e(4966),y=e(7165),v=e(1959),b=e(1779),T=e(7759),E=e(3524),_=e(9265),O=_.enforce,w=_.get,R=u.Int8Array,C=R&&R.prototype,A=u.Uint8ClampedArray,D=A&&A.prototype,j=R&&v(R),M=C&&v(C),G=Object.prototype,V=u.TypeError,U=T("toStringTag"),F=E("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",W=s&&!!b&&h(u.opera)!=="Opera",J=!1,se={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Q={BigInt64Array:8,BigUint64Array:8},ae=function(Y){var ne=v(Y);if(l(ne)){var ie=w(ne);return ie&&d(ie,B)?ie[B]:ae(ne)}},te=function(Y){if(!l(Y))return!1;var ne=h(Y);return d(se,ne)||d(Q,ne)};for(n in se)(o=(i=u[n])&&i.prototype)?O(o)[B]=i:W=!1;for(n in Q)(o=(i=u[n])&&i.prototype)&&(O(o)[B]=i);if((!W||!c(j)||j===Function.prototype)&&(j=function(){throw new V("Incorrect invocation")},W))for(n in se)u[n]&&b(u[n],j);if((!W||!M||M===G)&&(M=j.prototype,W))for(n in se)u[n]&&b(u[n].prototype,M);if(W&&v(D)!==M&&b(D,M),a&&!d(M,U))for(n in J=!0,m(M,U,{configurable:!0,get:function(){return l(this)?this[F]:void 0}}),se)u[n]&&f(u[n].prototype,F,n);
1r.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_TAG:J&&F,aTypedArray:function(Y){if(te(Y))return Y;throw new V("Target is not a typed array")},aTypedArrayConstructor:function(Y){if(c(Y)&&(!b||y(j,Y)))return Y;throw new V(p(Y)+" is not a typed array constructor")},exportTypedArrayMethod:function(Y,ne,ie,de){if(a){if(ie)for(var Ee in se){var fe=u[Ee];if(fe&&d(fe.prototype,Y))try{delete fe.prototype[Y]}catch{try{fe.prototype[Y]=ne}catch{}}}M[Y]&&!ie||g(M,Y,ie?ne:W&&C[Y]||ne,de)}},exportTypedArrayStaticMethod:function(Y,ne,ie){var de,Ee;if(a){if(b){if(ie){for(de in se)if((Ee=u[de])&&d(Ee,Y))try{delete Ee[Y]}catch{}}if(j[Y]&&!ie)return;try{return g(j,Y,ie?ne:W&&j[Y]||ne)}catch{}}for(de in se)!(Ee=u[de])||Ee[Y]&&!ie||g(Ee,Y,ne)}},getTypedArrayConstructor:ae,isView:function(Y){if(!l(Y))return!1;var ne=h(Y);return ne==="DataView"||d(se,ne)||d(Q,ne)},isTypedArray:te,TypedArray:j,TypedArrayPrototype:M}},9710(r,t,e){var n=e(2100),i=e(2244),o=e(8224),s=e(1951),a=e(8226),u=e(1519),c=e(4966),l=e(4699),d=e(7091),h=e(6539),p=e(6399),f=e(1628),g=e(6421),m=e(2462),y=e(1959),v=e(1779),b=e(1169),T=e(8348),E=e(7571),_=e(3720),O=e(915),w=e(9265),R=a.PROPER,C=a.CONFIGURABLE,A="ArrayBuffer",D="DataView",j="prototype",M="Wrong index",G=w.getterFor(A),V=w.getterFor(D),U=w.set,F=n[A],B=F,W=B&&B[j],J=n[D],se=J&&J[j],Q=Object.prototype,ae=n.Array,te=n.RangeError,Y=i(b),ne=i([].reverse),ie=m.pack,de=m.unpack,Ee=function(L){return[255&L]},fe=function(L){return[255&L,L>>8&255]},Le=function(L){return[255&L,L>>8&255,L>>16&255,L>>24&255]},xe=function(L){return L[3]<<24|L[2]<<16|L[1]<<8|L[0]},Ie=function(L){return ie(g(L),23,4)},Se=function(L){return ie(L,52,8)},De=function(L,N,ee){c(L[j],N,{configurable:!0,get:function(){return ee(this)[N]}})},Me=function(L,N,ee,he){var ge=V(L),Pe=f(ee),be=!!he;if(Pe+N>ge.byteLength)throw new te(M);var Ue=ge.bytes,Je=Pe+ge.byteOffset,Be=T(Ue,Je,Je+N);return be?Be:ne(Be)},Ae=function(L,N,ee,he,ge,Pe){var be=V(L),Ue=f(ee),Je=he(+ge),Be=!!Pe;if(Ue+N>be.byteLength)throw new te(M);for(var We=be.bytes,ze=Ue+be.byteOffset,ve=0;ve<N;ve++)We[ze+ve]=Je[Be?ve:N-ve-1]};if(s){var X=R&&F.name!==A;d(function(){F(1)})&&d(function(){new F(-1)})&&!d(function(){return new F,new F(1.5),new F(NaN),F.length!==1||X&&!C})?X&&C&&u(F,"name",A):((B=function(L){return h(this,W),E(new F(f(L)),this,B)})[j]=W,W.constructor=B,_(B,F)),v&&y(se)!==Q&&v(se,Q);var H=new J(new B(2)),P=i(se.setInt8);H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||l(se,{setInt8:function(L,N){P(this,L,N<<24>>24)},setUint8:function(L,N){P(this,L,N<<24>>24)}},{unsafe:!0})}else W=(B=function(L){h(this,W);var N=f(L);U(this,{type:A,bytes:Y(ae(N),0),byteLength:N}),o||(this.byteLength=N,this.detached=!1)})[j],se=(J=function(L,N,ee){h(this,se),h(L,W);var he=G(L),ge=he.byteLength,Pe=p(N);if(Pe<0||Pe>ge)throw new te("Wrong offset");if(Pe+(ee=ee===void 0?ge-Pe:f(ee))>ge)throw new te("Wrong length");U(this,{type:D,buffer:L,byteLength:ee,byteOffset:Pe,bytes:he.bytes}),o||(this.buffer=L,this.byteLength=ee,this.byteOffset=Pe)})[j],o&&(De(B,"byteLength",G),De(J,"buffer",V),De(J,"byteLength",V),De(J,"byteOffset",V)),l(se,{getInt8:function(L){return Me(this,1,L)[0]<<24>>24},getUint8:function(L){return Me(this,1,L)[0]},getInt16:function(L){var N=Me(this,2,L,arguments.length>1&&arguments[1]);return(N[1]<<8|N[0])<<16>>16},getUint16:function(L){var N=Me(this,2,L,arguments.length>1&&arguments[1]);return N[1]<<8|N[0]},getInt32:function(L){return xe(Me(this,4,L,arguments.length>1&&arguments[1]))},getUint32:function(L){return xe(Me(this,4,L,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(L){return de(Me(this,4,L,arguments.length>1&&arguments[1]),23)},getFloat64:function(L){return de(Me(this,8,L,arguments.length>1&&arguments[1]),52)},setInt8:function(L,N){Ae(this,1,L,Ee,N)},setUint8:function(L,N){Ae(this,1,L,Ee,N)},setInt16:function(L,N){Ae(this,2,L,fe,N,arguments.length>2&&arguments[2])},setUint16:function(L,N){Ae(this,2,L,fe,N,arguments.length>2&&arguments[2])},setInt32:function(L,N){Ae(this,4,L,Le,N,arguments.length>2&&arguments[2])},setUint32:function(L,N){Ae(this,4,L,Le,N,arguments.length>2&&arguments[2])},setFloat32:function(L,N){Ae(this,4,L,Ie,N,arguments.length>2&&arguments[2])},setFloat64:function(L,N){Ae(this,8,L,Se,N,arguments.length>2&&arguments[2])}});O(B,A),O(J,D),r.exports={ArrayBuffer:B,DataView:J}},1169(r,t,e){var n=e(3017),i=e(7326),o=e(4450);r.exports=function(s){for(var a=n(this),u=o(a),c=arguments.length,l=i(c>1?arguments[1]:void 0,u),d=c>2?arguments[2]:void 0,h=d===void 0?u:i(d,u);h>l;)a[l++]=s;return a}},8886(r,t,e){var n=e(4450);r.exports=function(i,o,s){for(var a=0,u=arguments.length>2?s:n(o),c=new i(u);u>a;)c[a]=o[a++];return c}},88(r,t,e){var n=e(716),i=e(9529),o=e(3017),s=e(6387),a=e(3485),u=e(8017),c=e(4450),l=e(8460),d=e(7875),h=e(8461),p=e(5031),f=e(2591),g=Array;r.exports=function(m){var y=u(this),v=arguments.length,b=v>1?arguments[1]:void 0,T=b!==void 0;T&&(b=n(b,v>2?arguments[2]:void 0));var E,_,O,w,R,C,A=o(m),D=p(A),j=0;if(!D||this===g&&a(D))for(E=c(A),_=y?new this(E):g(E);E>j;j++)C=T?b(A[j],j):A[j],l(_,j,C);else for(_=y?new this:[],R=(w=h(A,D)).next;!(O=i(R,w)).done;j++){C=T?s(w,b,[O.value,j],!0):O.value;try{l(_,j,C)}catch(M){f(w,"throw",M)}}return d(_,j),_}},5501(r,t,e){var n=e(2377),i=e(7326),o=e(4450),s=function(a){return function(u,c,l){var d=n(u),h=o(d);if(h===0)return!a&&-1;var p,f=i(l,h);if(a&&c!=c){for(;h>f;)if((p=d[f++])!=p)return!0}else for(;h>f;f++)if((a||f in d)&&d[f]===c)return a||f||0;return!a&&-1}};r.exports={includes:s(!0),indexOf:s(!1)}},1195(r,t,e){var n=e(716),i=e(2243),o=e(3017),s=e(4450),a=function(u){var c=u===1;return function(l,d,h){for(var p,f=o(l),g=i(f),m=s(g),y=n(d,h);m-- >0;)if(y(p=g[m],m,f))switch(u){case 0:return p;case 1:return m}return c?-1:void 0}};r.exports={findLast:a(0),findLastIndex:a(1)}},129(r,t,e){var n=e(716),i=e(2243),o=e(3017),s=e(4450),a=e(737),u=e(8460),c=function(l){var d=l===1,h=l===2,p=l===3,f=l===4,g=l===6,m=l===7,y=l===5||g;return function(v,b,T){for(var E,_,O=o(v),w=i(O),R=s(w),C=n(b,T),A=0,D=0,j=d?a(v,R):h||m?a(v,0):void 0;R>A;
1A++)if((y||A in w)&&(_=C(E=w[A],A,O),l))if(d)u(j,A,_);else if(_)switch(l){case 3:return!0;case 5:return E;case 6:return A;case 2:u(j,D++,E)}else switch(l){case 4:return!1;case 7:u(j,D++,E)}return g?-1:p||f?f:j}};r.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},4290(r,t,e){var n=e(7091);r.exports=function(i,o){var s=[][i];return!!s&&n(function(){s.call(null,o||function(){return 1},1)})}},3653(r,t,e){var n=e(5934),i=e(3017),o=e(2243),s=e(4450),a=TypeError,u="Reduce of empty array with no initial value",c=function(l){return function(d,h,p,f){var g=i(d),m=o(g),y=s(g);if(n(h),y===0&&p<2)throw new a(u);var v=l?y-1:0,b=l?-1:1;if(p<2)for(;;){if(v in m){f=m[v],v+=b;break}if(v+=b,l?v<0:y<=v)throw new a(u)}for(;l?v>=0:y>v;v+=b)v in m&&(f=h(f,m[v],v,g));return f}};r.exports={left:c(!1),right:c(!0)}},7875(r,t,e){var n=e(8224),i=e(7484),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}})();r.exports=a?function(u,c){if(i(u)&&!s(u,"length").writable)throw new o("Cannot set read only .length");return u.length=c}:function(u,c){return u.length=c}},8348(r,t,e){var n=e(2244);r.exports=n([].slice)},332(r,t,e){var n=e(8348),i=Math.floor,o=function(s,a){var u=s.length;if(u<8)for(var c,l,d=1;d<u;){for(l=d,c=s[d];l&&a(s[l-1],c)>0;)s[l]=s[--l];l!==d++&&(s[l]=c)}else for(var h=i(u/2),p=o(n(s,0,h),a),f=o(n(s,h),a),g=p.length,m=f.length,y=0,v=0;y<g||v<m;)s[y+v]=y<g&&v<m?a(p[y],f[v])<=0?p[y++]:f[v++]:y<g?p[y++]:f[v++];return s};r.exports=o},6269(r,t,e){var n=e(7484),i=e(8017),o=e(1142),s=e(7759)("species"),a=Array;r.exports=function(u){var c;return n(u)&&(c=u.constructor,(i(c)&&(c===a||n(c.prototype))||o(c)&&(c=c[s])===null)&&(c=void 0)),c===void 0?a:c}},737(r,t,e){var n=e(6269);r.exports=function(i,o){return new(n(i))(o===0?0:o)}},6387(r,t,e){var n=e(4467),i=e(2591);r.exports=function(o,s,a,u){try{return u?s(n(a)[0],a[1]):s(a)}catch(c){i(o,"throw",c)}}},3928(r,t,e){var n=e(7759)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch{}r.exports=function(a,u){try{if(!u&&!i)return!1}catch{return!1}var c=!1;try{var l={};l[n]=function(){return{next:function(){return{done:c=!0}}}},a(l)}catch{}return c}},3132(r,t,e){var n=e(2244),i=n({}.toString),o=n("".slice);r.exports=function(s){return o(i(s),8,-1)}},8023(r,t,e){var n=e(1048),i=e(5969),o=e(3132),s=e(7759)("toStringTag"),a=Object,u=o((function(){return arguments})())==="Arguments";r.exports=n?o:function(c){var l,d,h;return c===void 0?"Undefined":c===null?"Null":typeof(d=(function(p,f){try{return p[f]}catch{}})(l=a(c),s))=="string"?d:u?o(l):(h=o(l))==="Object"&&i(l.callee)?"Arguments":h}},3720(r,t,e){var n=e(253),i=e(8619),o=e(1055),s=e(2837);r.exports=function(a,u,c){for(var l=i(u),d=s.f,h=o.f,p=0;p<l.length;p++){var f=l[p];n(a,f)||c&&n(c,f)||d(a,f,h(u,f))}}},3479(r,t,e){var n=e(7091);r.exports=!n(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},3373(r){r.exports=function(t,e){return{value:t,done:e}}},1519(r,t,e){var n=e(8224),i=e(2837),o=e(2112);r.exports=n?function(s,a,u){return i.f(s,a,o(1,u))}:function(s,a,u){return s[a]=u,s}},2112(r){r.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8460(r,t,e){var n=e(8224),i=e(2837),o=e(2112);r.exports=function(s,a,u){n?i.f(s,a,o(0,u)):s[a]=u}},4966(r,t,e){var n=e(1679),i=e(2837);r.exports=function(o,s,a){return a.get&&n(a.get,s,{getter:!0}),a.set&&n(a.set,s,{setter:!0}),i.f(o,s,a)}}
1,3828(r,t,e){var n=e(5969),i=e(2837),o=e(1679),s=e(4021);r.exports=function(a,u,c,l){l||(l={});var d=l.enumerable,h=l.name!==void 0?l.name:u;if(n(c)&&o(c,h,l),l.global)d?a[u]=c:s(u,c);else{try{l.unsafe?a[u]&&(d=!0):delete a[u]}catch{}d?a[u]=c:i.f(a,u,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a}},4699(r,t,e){var n=e(3828);r.exports=function(i,o,s){for(var a in o)n(i,a,o[a],s);return i}},4021(r,t,e){var n=e(2100),i=Object.defineProperty;r.exports=function(o,s){try{i(n,o,{value:s,configurable:!0,writable:!0})}catch{n[o]=s}return s}},4026(r,t,e){var n=e(5275),i=TypeError;r.exports=function(o,s){if(!delete o[s])throw new i("Cannot delete property "+n(s)+" of "+n(o))}},8224(r,t,e){var n=e(7091);r.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},5159(r,t,e){var n,i,o,s,a=e(2100),u=e(6281),c=e(400),l=a.structuredClone,d=a.ArrayBuffer,h=a.MessageChannel,p=!1;if(c)p=function(f){l(f,{transfer:[f]})};else if(d)try{h||(n=u("worker_threads"))&&(h=n.MessageChannel),h&&(i=new h,o=new d(2),s=function(f){i.port1.postMessage(null,[f])},o.byteLength===2&&(s(o),o.byteLength===0&&(p=s)))}catch{}r.exports=p},7907(r,t,e){var n=e(2100),i=e(1142),o=n.document,s=i(o)&&i(o.createElement);r.exports=function(a){return s?o.createElement(a):{}}},6569(r){var t=TypeError;r.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},5916(r){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2084(r,t,e){var n=e(7907)("span").classList,i=n&&n.constructor&&n.constructor.prototype;r.exports=i===Object.prototype?void 0:i},4499(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5185(r,t,e){var n=e(6379).match(/firefox\/(\d+)/i);r.exports=!!n&&+n[1]},3871(r,t,e){var n=e(6379);r.exports=/MSIE|Trident/.test(n)},7277(r,t,e){var n=e(6379);r.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u"},2052(r,t,e){var n=e(6379);r.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)},4189(r,t,e){var n=e(5123);r.exports=n==="NODE"},6424(r,t,e){var n=e(6379);r.exports=/web0s(?!.*chrome)/i.test(n)},6379(r,t,e){var n=e(2100).navigator,i=n&&n.userAgent;r.exports=i?String(i):""},8395(r,t,e){var n,i,o=e(2100),s=e(6379),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),r.exports=i},6419(r,t,e){var n=e(6379).match(/AppleWebKit\/(\d+)\./);r.exports=!!n&&+n[1]},5123(r,t,e){var n=e(2100),i=e(6379),o=e(3132),s=function(a){return i.slice(0,a.length)===a};r.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":o(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"},2989(r,t,e){var n=e(2244),i=Error,o=n("".replace),s=String(new i("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);r.exports=function(c,l){if(u&&typeof c=="string"&&!i.prepareStackTrace)for(;l--;)c=o(c,a,"");return c}},8343(r,t,e){var n=e(1519),i=e(2989),o=e(7727),s=Error.captureStackTrace;r.exports=function(a,u,c,l){o&&(s?s(a,u):n(a,"stack",i(c,l)))}}
1,7727(r,t,e){var n=e(7091),i=e(2112);r.exports=!n(function(){var o=new Error("a");return!("stack"in o)||(Object.defineProperty(o,"stack",i(1,7)),o.stack!==7)})},3322(r,t,e){var n=e(2100),i=e(1055).f,o=e(1519),s=e(3828),a=e(4021),u=e(3720),c=e(9576);r.exports=function(l,d){var h,p,f,g,m,y=l.target,v=l.global,b=l.stat;if(h=v?n:b?n[y]||a(y,{}):n[y]&&n[y].prototype)for(p in d){if(g=d[p],f=l.dontCallGetSet?(m=i(h,p))&&m.value:h[p],!c(v?p:y+(b?".":"#")+p,l.forced)&&f!==void 0){if(typeof g==typeof f)continue;u(g,f)}(l.sham||f&&f.sham)&&o(g,"sham",!0),s(h,p,g,l)}}},7091(r){r.exports=function(t){try{return!!t()}catch{return!0}}},4720(r,t,e){e(4603);var n=e(9529),i=e(3828),o=e(5263),s=e(7091),a=e(7759),u=e(1519),c=a("species"),l=RegExp.prototype;r.exports=function(d,h,p,f){var g=a(d),m=!s(function(){var T={};return T[g]=function(){return 7},""[d](T)!==7}),y=m&&!s(function(){var T=!1,E=/a/;if(d==="split"){var _={};_[c]=function(){return E},(E={constructor:_,flags:""})[g]=/./[g]}return E.exec=function(){return T=!0,null},E[g](""),!T});if(!m||!y||p){var v=/./[g],b=h(g,""[d],function(T,E,_,O,w){var R=E.exec;return R===o||R===l.exec?m&&!w?{done:!0,value:n(v,E,_,O)}:{done:!0,value:n(T,_,E,O)}:{done:!1}});i(String.prototype,d,b[0]),i(l,g,b[1])}f&&u(l[g],"sham",!0)}},7861(r,t,e){var n=e(8100),i=Function.prototype,o=i.apply,s=i.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},716(r,t,e){var n=e(6608),i=e(5934),o=e(8100),s=n(n.bind);r.exports=function(a,u){return i(a),u===void 0?a:o?s(a,u):function(){return a.apply(u,arguments)}}},8100(r,t,e){var n=e(7091);r.exports=!n(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9529(r,t,e){var n=e(8100),i=Function.prototype.call;r.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},8226(r,t,e){var n=e(8224),i=e(253),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&function(){}.name==="something",c=a&&(!n||n&&s(o,"name").configurable);r.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},1094(r,t,e){var n=e(2244),i=e(5934);r.exports=function(o,s,a){try{return n(i(Object.getOwnPropertyDescriptor(o,s)[a]))}catch{}}},6608(r,t,e){var n=e(3132),i=e(2244);r.exports=function(o){if(n(o)==="Function")return i(o)}},2244(r,t,e){var n=e(8100),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);r.exports=n?s:function(a){return function(){return o.apply(a,arguments)}}},6281(r,t,e){var n=e(2100),i=e(4189);r.exports=function(o){if(i){try{return n.process.getBuiltinModule(o)}catch{}try{return Function('return require("'+o+'")')()}catch{}}}},9496(r,t,e){var n=e(2100);r.exports=function(i,o){var s=n[i],a=s&&s.prototype;return a&&a[o]}},7851(r,t,e){var n=e(2100),i=e(5969);r.exports=function(o,s){return arguments.length<2?(a=n[o],i(a)?a:void 0):n[o]&&n[o][s];var a}},891(r){r.exports=function(t){return{iterator:t,next:t.next,done:!1}}},3210(r,t,e){var n=e(9529),i=e(4467),o=e(891),s=e(5031);r.exports=function(a,u){u&&typeof a=="string"||i(a);var c=s(a);return o(i(c!==void 0?n(c,a):a))}},5031(r,t,e){var n=e(8023),i=e(9794),o=e(9377),s=e(7505),a=e(7759)("iterator");r.exports=function(u){if(!o(u))return i(u,a)||i(u,"@@iterator")||s[n(u)]}},8461(r,t,e){var n=e(9529),i=e(5934),o=e(4467),s=e(5275),a=e(5031),u=TypeError;r.exports=function(c,l){var d=arguments.length<2?a(c):l;if(i(d))return o(n(d,c));throw new u(s(c)+" is not iterable")}},9794(r,t,e){var n=e(5934),i=e(9377);
1r.exports=function(o,s){var a=o[s];return i(a)?void 0:n(a)}},8073(r,t,e){var n=e(5934),i=e(4467),o=e(9529),s=e(6399),a=e(891),u="Invalid size",c=RangeError,l=TypeError,d=Math.max,h=function(p,f){this.set=p,this.size=d(f,0),this.has=n(p.has),this.keys=n(p.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(p){return o(this.has,this.set,p)}},r.exports=function(p){i(p);var f=+p.size;if(f!=f)throw new l(u);var g=s(f);if(g<0)throw new c(u);return new h(p,g)}},5986(r,t,e){var n=e(2244),i=e(3017),o=Math.floor,s=n("".charAt),a=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;r.exports=function(d,h,p,f,g,m){var y=p+d.length,v=f.length,b=l;return g!==void 0&&(g=i(g),b=c),a(m,b,function(T,E){var _;switch(s(E,0)){case"$":return"$";case"&":return d;case"`":return u(h,0,p);case"'":return u(h,y);case"<":_=g[u(E,1,-1)];break;default:var O=+E;if(O===0)return T;if(O>v){var w=o(O/10);return w===0?T:w<=v?f[w-1]===void 0?s(E,1):f[w-1]+s(E,1):T}_=f[O-1]}return _===void 0?"":_})}},2100(r,t,e){var n=function(i){return i&&i.Math===Math&&i};r.exports=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof e.g=="object"&&e.g)||n(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},253(r,t,e){var n=e(2244),i=e(3017),o=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,a){return o(i(s),a)}},2089(r){r.exports={}},9417(r){r.exports=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}}},7441(r,t,e){var n=e(7851);r.exports=n("document","documentElement")},513(r,t,e){var n=e(8224),i=e(7091),o=e(7907);r.exports=!n&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},2462(r){var t=Array,e=Math.abs,n=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2;r.exports={pack:function(a,u,c){var l,d,h,p=t(c),f=8*c-u-1,g=(1<<f)-1,m=g>>1,y=u===23?n(2,-24)-n(2,-77):0,v=a<0||a===0&&1/a<0?1:0,b=0;for((a=e(a))!=a||a===1/0?(d=a!=a?1:0,l=g):(l=i(o(a)/s),a*(h=n(2,-l))<1&&(l--,h*=2),(a+=l+m>=1?y/h:y*n(2,1-m))*h>=2&&(l++,h/=2),l+m>=g?(d=0,l=g):l+m>=1?(d=(a*h-1)*n(2,u),l+=m):(d=a*n(2,m-1)*n(2,u),l=0));u>=8;)p[b++]=255&d,d/=256,u-=8;for(l=l<<u|d,f+=u;f>0;)p[b++]=255&l,l/=256,f-=8;return p[b-1]|=128*v,p},unpack:function(a,u){var c,l=a.length,d=8*l-u-1,h=(1<<d)-1,p=h>>1,f=d-7,g=l-1,m=a[g--],y=127&m;for(m>>=7;f>0;)y=256*y+a[g--],f-=8;for(c=y&(1<<-f)-1,y>>=-f,f+=u;f>0;)c=256*c+a[g--],f-=8;if(y===0)y=1-p;else{if(y===h)return c?NaN:m?-1/0:1/0;c+=n(2,u),y-=p}return(m?-1:1)*c*n(2,y-u)}}},2243(r,t,e){var n=e(2244),i=e(7091),o=e(3132),s=Object,a=n("".split);r.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(u){return o(u)==="String"?a(u,""):s(u)}:s},7571(r,t,e){var n=e(5969),i=e(1142),o=e(1779);r.exports=function(s,a,u){var c,l;return o&&n(c=a.constructor)&&c!==u&&i(l=c.prototype)&&l!==u.prototype&&o(s,l),s}},7390(r,t,e){var n=e(2244),i=e(5969),o=e(6953),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(a){return s(a)}),r.exports=o.inspectSource},2212(r,t,e){var n=e(1142),i=e(1519);r.exports=function(o,s){n(s)&&"cause"in s&&i(o,"cause",s.cause)}},9265(r,t,e){var n,i,o,s=e(1922),a=e(2100),u=e(1142),c=e(1519),l=e(253),d=e(6953),h=e(5747),p=e(2089),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(b,T){if(y.has(b))throw new g(f);return T.facade=b,y.set(b,T),T},i=function(b){return y.get(b)||{}},o=function(b){return y.has(b)}}else{var v=h("state");p[v]=!0,n=function(b,T){if(l(b,v))throw new g(f);return T.facade=b,c(b,v,T),T},i=function(b){return l(b,v)?b[v]:{}},o=function(b){return l(b,v)}}r.exports={set:n,get:i,has:o,enforce:function(b){return o(b)?i(b):n(b,{})},getterFor:function(b){return function(T){var E;if(!u(T)||(E=i(T)).type!==b)throw new g("Incompatible receiver, "+b+" required");return E}}}},3485(r,t,e){var n=e(7759),i=e(7505),o=n("iterator"),s=Array.prototype;r.exports=function(a){return a!==void 0&&(i.Array===a||s[o]===a)}},7484(r,t,e){var n=e(3132);r.exports=Array.isArray||function(i){return n(i)==="Array"}},1859(r,t,e){var n=e(8023);r.exports=function(i){var o=n(i);return o==="BigInt64Array"||o==="BigUint64Array"}},5969(r){var t=typeof document=="object"&&document.all;r.exports=t===void 0&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"}},8017(r,t,e){var n=e(2244),i=e(7091),o=e(5969),s=e(8023),a=e(7851),u=e(7390),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=n(d.exec),p=!d.test(c),f=function(m){if(!o(m))return!1;try{return l(c,[],m),!0}catch{return!1}},g=function(m){if(!o(m))return!1;switch(s(m)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,u(m))}catch{return!0}};g.sham=!0,r.exports=!l||i(function(){var m;
1return f(f.call)||!f(Object)||!f(function(){m=!0})||m})?g:f},9576(r,t,e){var n=e(7091),i=e(5969),o=/#|\.prototype\./,s=function(d,h){var p=u[a(d)];return p===l||p!==c&&(i(h)?n(h):!!h)},a=s.normalize=function(d){return String(d).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";r.exports=s},1131(r,t,e){var n=e(1142),i=Math.floor;r.exports=Number.isInteger||function(o){return!n(o)&&isFinite(o)&&i(o)===o}},9377(r){r.exports=function(t){return t==null}},1142(r,t,e){var n=e(5969);r.exports=function(i){return typeof i=="object"?i!==null:n(i)}},9081(r,t,e){var n=e(1142);r.exports=function(i){return n(i)||i===null}},4487(r){r.exports=!1},7998(r,t,e){var n=e(1142),i=e(9265).get;r.exports=function(o){if(!n(o))return!1;var s=i(o);return!!s&&s.type==="RawJSON"}},6251(r,t,e){var n=e(1142),i=e(3132),o=e(7759)("match");r.exports=function(s){var a;return n(s)&&((a=s[o])!==void 0?!!a:i(s)==="RegExp")}},7161(r,t,e){var n=e(7851),i=e(5969),o=e(7165),s=e(6564),a=Object;r.exports=s?function(u){return typeof u=="symbol"}:function(u){var c=n("Symbol");return i(c)&&o(c.prototype,a(u))}},6775(r,t,e){var n=e(9529);r.exports=function(i,o,s){for(var a,u,c=s?i:i.iterator,l=i.next;!(a=n(l,c)).done;)if((u=o(a.value))!==void 0)return u}},9824(r,t,e){var n=e(716),i=e(9529),o=e(4467),s=e(5275),a=e(3485),u=e(4450),c=e(7165),l=e(8461),d=e(5031),h=e(2591),p=TypeError,f=function(m,y){this.stopped=m,this.result=y},g=f.prototype;r.exports=function(m,y,v){var b,T,E,_,O,w,R,C=v&&v.that,A=!(!v||!v.AS_ENTRIES),D=!(!v||!v.IS_RECORD),j=!(!v||!v.IS_ITERATOR),M=!(!v||!v.INTERRUPTED),G=n(y,C),V=function(B){var W=b;return b=void 0,W&&h(W,"normal"),new f(!0,B)},U=function(B){return A?(o(B),M?G(B[0],B[1],V):G(B[0],B[1])):M?G(B,V):G(B)};if(D)b=m.iterator;else if(j)b=m;else{if(!(T=d(m)))throw new p(s(m)+" is not iterable");if(a(T)){for(E=0,_=u(m);_>E;E++)if((O=U(m[E]))&&c(g,O))return O;return new f(!1)}b=l(m,T)}for(w=D?m.next:b.next;!(R=i(w,b)).done;){var F=R.value;try{O=U(F)}catch(B){if(!b)throw B;h(b,"throw",B)}if(typeof O=="object"&&O&&c(g,O))return O}return new f(!1)}},669(r,t,e){var n=e(2591);r.exports=function(i,o,s){for(var a=i.length-1;a>=0;a--)if(i[a]!==void 0)try{s=n(i[a].iterator,o,s)}catch(u){o="throw",s=u}if(o==="throw")throw s;return s}},2591(r,t,e){var n=e(9529),i=e(4467),o=e(9794);r.exports=function(s,a,u){var c,l;i(s);try{if(!(c=o(s,"return"))){if(a==="throw")throw u;return u}c=n(c,s)}catch(d){l=!0,c=d}if(a==="throw")throw u;if(l)throw c;return i(c),u}},8182(r,t,e){var n=e(7117).IteratorPrototype,i=e(596),o=e(2112),s=e(915),a=e(7505),u=function(){return this};r.exports=function(c,l,d,h){var p=l+" Iterator";return c.prototype=i(n,{next:o(+!h,d)}),s(c,p,!1,!0),a[p]=u,c}},7082(r,t,e){var n=e(9529),i=e(596),o=e(1519),s=e(4699),a=e(7759),u=e(9265),c=e(9794),l=e(7117).IteratorPrototype,d=e(3373),h=e(2591),p=e(669),f=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",y="normal",v="throw",b=u.set,T=function(O){var w=u.getterFor(O?m:g);return s(i(l),{next:function(){var R=w(this);if(O)return R.nextHandler();if(R.done)return d(void 0,!0);try{var C=R.nextHandler();return R.returnHandlerResult?C:d(C,R.done)}catch(A){throw R.done=!0,A}},return:function(){var R=w(this),C=R.iterator,A=R.done;if(R.done=!0,O){var D=c(C,"return");return D?n(D,C):d(void 0,!0)}if(A)return d(void 0,!0);if(R.inner)try{h(R.inner.iterator,y)}catch(j){return h(C,v,j)}if(R.openIters)try{p(R.openIters,y)}catch(j){if(C)return h(C,v,j);throw j}return C&&h(C,y),d(void 0,!0)}})},E=T(!0),_=T(!1);o(_,f,"Iterator Helper"),r.exports=function(O,w,R){var C=function(A,D){D?(D.iterator=A.iterator,D.next=A.next):D=A,D.type=w?m:g,D.returnHandlerResult=!!R,D.nextHandler=O,D.counter=0,D.done=!1,b(this,D)};return C.prototype=w?E:_,C}},4132(r,t,e){var n=e(3322),i=e(9529),o=e(4487),s=e(8226),a=e(5969),u=e(8182),c=e(1959),l=e(1779),d=e(915),h=e(1519),p=e(3828),f=e(7759),g=e(7505),m=e(7117),y=s.PROPER,v=s.CONFIGURABLE,b=m.IteratorPrototype,T=m.BUGGY_SAFARI_ITERATORS,E=f("iterator"),_="keys",O="values",w="entries",R=function(){return this};r.exports=function(C,A,D,j,M,G,V){u(D,A,j);var U,F,B,W=function(ne){if(ne===M&&te)return te;if(!T&&ne&&ne in Q)return Q[ne];switch(ne){case _:case O:case w:return function(){return new D(this,ne)}}return function(){return new D(this)}},J=A+" Iterator",se=!1,Q=C.prototype,ae=Q[E]||Q["@@iterator"]||M&&Q[M],te=!T&&ae||W(M),Y=A==="Array"&&Q.entries||ae;if(Y&&(U=c(Y.call(new C)))!==Object.prototype&&U.next&&(o||c(U)===b||(l?l(U,b):a(U[E])||p(U,E,R)),d(U,J,!0,!0),o&&(g[J]=R)),y&&M===O&&ae&&ae.name!==O&&(!o&&v?h(Q,"name",O):(se=!0,te=function(){return i(ae,this)})),M)if(F={values:W(O),keys:G?te:W(_),entries:W(w)},V)for(B in F)(T||se||!(B in Q))&&p(Q,B,F[B]);else n({target:A,proto:!0,forced:T||se},F);return o&&!V||Q[E]===te||p(Q,E,te,{name:M}),g[A]=te,F}}
1,9632(r){r.exports=function(t,e){var n=typeof Iterator=="function"&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch{return!0}}},9441(r,t,e){var n=e(2100);r.exports=function(i,o){var s=n.Iterator,a=s&&s.prototype,u=a&&a[i],c=!1;if(u)try{u.call({next:function(){return{done:!0}},return:function(){c=!0}},-1)}catch(l){l instanceof o||(c=!1)}if(!c)return u}},7117(r,t,e){var n,i,o,s=e(7091),a=e(5969),u=e(1142),c=e(596),l=e(1959),d=e(3828),h=e(7759),p=e(4487),f=h("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(n=i):g=!0),!u(n)||s(function(){var m={};return n[f].call(m)!==m})?n={}:p&&(n=c(n)),a(n[f])||d(n,f,function(){return this}),r.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},7505(r){r.exports={}},4450(r,t,e){var n=e(5378);r.exports=function(i){return n(i.length)}},1679(r,t,e){var n=e(2244),i=e(7091),o=e(5969),s=e(253),a=e(8224),u=e(8226).CONFIGURABLE,c=e(7390),l=e(9265),d=l.enforce,h=l.get,p=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),y=n([].join),v=a&&!i(function(){return f(function(){},"length",{value:8}).length!==8}),b=String(String).split("String"),T=r.exports=function(E,_,O){g(p(_),0,7)==="Symbol("&&(_="["+m(p(_),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(_="get "+_),O&&O.setter&&(_="set "+_),(!s(E,"name")||u&&E.name!==_)&&(a?f(E,"name",{value:_,configurable:!0}):E.name=_),v&&O&&s(O,"arity")&&E.length!==O.arity&&f(E,"length",{value:O.arity});try{O&&s(O,"constructor")&&O.constructor?a&&f(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch{}var w=d(E);return s(w,"source")||(w.source=y(b,typeof _=="string"?_:"")),E};Function.prototype.toString=T(function(){return o(this)&&h(this).source||c(this)},"toString")},2744(r,t,e){var n=e(1138),i=e(2134),o=Math.abs;r.exports=function(s,a,u,c){var l=+s,d=o(l),h=n(l);if(d<c)return h*i(d/c/a)*c*a;var p=(1+a/2220446049250313e-31)*d,f=p-(p-d);return f>u||f!=f?h*(1/0):h*f}},6421(r,t,e){var n=e(2744);r.exports=Math.fround||function(i){return n(i,11920928955078125e-23,34028234663852886e22,11754943508222875e-54)}},2134(r){var t=4503599627370496;r.exports=function(e){return e+t-t}},1138(r){r.exports=Math.sign||function(t){var e=+t;return e===0||e!=e?e:e<0?-1:1}},897(r){var t=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(n){var i=+n;return(i>0?e:t)(i)}},3535(r,t,e){var n,i,o,s,a,u=e(2100),c=e(7185),l=e(716),d=e(3853).set,h=e(8669),p=e(2052),f=e(7277),g=e(6424),m=e(4189),y=u.MutationObserver||u.WebKitMutationObserver,v=u.document,b=u.process,T=u.Promise,E=c("queueMicrotask");if(!E){var _=new h,O=function(){var w,R;for(m&&(w=b.domain)&&w.exit();R=_.get();)try{R()}catch(C){throw _.head&&n(),C}w&&w.enter()};p||m||g||!y||!v?!f&&T&&T.resolve?((s=T.resolve(void 0)).constructor=T,a=l(s.then,s),n=function(){a(O)}):m?n=function(){b.nextTick(O)}:(d=l(d,u),n=function(){d(O)}):(i=!0,o=v.createTextNode(""),new y(O).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),E=function(w){_.head||n(),_.add(w)}}r.exports=E},8567(r,t,e){var n=e(7091);r.exports=!n(function(){var i="9007199254740993",o=JSON.rawJSON(i);return!JSON.isRawJSON(o)||JSON.stringify(o)!==i})},6839(r,t,e){var n=e(5934),i=TypeError,o=function(s){var a,u;this.promise=new s(function(c,l){if(a!==void 0||u!==void 0)throw new i("Bad Promise constructor");a=c,u=l}),this.resolve=n(a),this.reject=n(u)};r.exports.f=function(s){return new o(s)}},1023(r,t,e){var n=e(8371);r.exports=function(i,o){return i===void 0?arguments.length<2?"":o:n(i)}},105(r,t,e){var n=e(8224),i=e(2244),o=e(9529),s=e(7091),a=e(1564),u=e(9297),c=e(153),l=e(3017),d=e(2243),h=Object.assign,p=Object.defineProperty,f=i([].concat);r.exports=!h||s(function(){if(n&&h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},m={},y=Symbol("assign detection"),v="abcdefghijklmnopqrst";return g[y]=7,v.split("").forEach(function(b){m[b]=b}),h({},g)[y]!==7||a(h({},m)).join("")!==v})?function(g,m){for(var y=l(g),v=arguments.length,b=1,T=u.f,E=c.f;v>b;)for(var _,O=d(arguments[b++]),w=T?f(a(O),T(O)):a(O),R=w.length,C=0;R>C;)_=w[C++],n&&!o(E,O,_)||(y[_]=O[_]);return y}:h},596(r,t,e){var n,i=e(4467),o=e(7997),s=e(4499),a=e(2089),u=e(7441),c=e(7907),l=e(5747),d="prototype",h="script",p=l("IE_PROTO"),f=function(){},g=function(v){return"<"+h+">"+v+"</"+h+">"},m=function(v){v.write(g("")),v.close();var b=v.parentWindow.Object;return v=null,b},y=function(){try{n=new ActiveXObject("htmlfile")}catch{}var v,b,T;y=typeof document<"u"?document.domain&&n?m(n):(b=c("iframe"),T="java"+h+":",b.style.display="none",u.appendChild(b),b.src=String(T),(v=b.contentWindow.document).open(),v.
1write(g("document.F=Object")),v.close(),v.F):m(n);for(var E=s.length;E--;)delete y[d][s[E]];return y()};a[p]=!0,r.exports=Object.create||function(v,b){var T;return v!==null?(f[d]=i(v),T=new f,f[d]=null,T[p]=v):T=y(),b===void 0?T:o.f(T,b)}},7997(r,t,e){var n=e(8224),i=e(3266),o=e(2837),s=e(4467),a=e(2377),u=e(1564);t.f=n&&!i?Object.defineProperties:function(c,l){s(c);for(var d,h=a(l),p=u(l),f=p.length,g=0;f>g;)o.f(c,d=p[g++],h[d]);return c}},2837(r,t,e){var n=e(8224),i=e(513),o=e(3266),s=e(4467),a=e(5661),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=n?o?function(f,g,m){if(s(f),g=a(g),s(m),typeof f=="function"&&g==="prototype"&&"value"in m&&p in m&&!m[p]){var y=l(f,g);y&&y[p]&&(f[g]=m.value,m={configurable:h in m?m[h]:y[h],enumerable:d in m?m[d]:y[d],writable:!1})}return c(f,g,m)}:c:function(f,g,m){if(s(f),g=a(g),s(m),i)try{return c(f,g,m)}catch{}if("get"in m||"set"in m)throw new u("Accessors not supported");return"value"in m&&(f[g]=m.value),f}},1055(r,t,e){var n=e(8224),i=e(9529),o=e(153),s=e(2112),a=e(2377),u=e(5661),c=e(253),l=e(513),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(h,p){if(h=a(h),p=u(p),l)try{return d(h,p)}catch{}if(c(h,p))return s(!i(o.f,h,p),h[p])}},1756(r,t,e){var n=e(4920),i=e(4499).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(o){return n(o,i)}},9297(r,t){t.f=Object.getOwnPropertySymbols},1959(r,t,e){var n=e(253),i=e(5969),o=e(3017),s=e(5747),a=e(3479),u=s("IE_PROTO"),c=Object,l=c.prototype;r.exports=a?c.getPrototypeOf:function(d){var h=o(d);if(n(h,u))return h[u];var p=h.constructor;return i(p)&&h instanceof p?p.prototype:h instanceof c?l:null}},7165(r,t,e){var n=e(2244);r.exports=n({}.isPrototypeOf)},4920(r,t,e){var n=e(2244),i=e(253),o=e(2377),s=e(5501).indexOf,a=e(2089),u=n([].push);r.exports=function(c,l){var d,h=o(c),p=0,f=[];for(d in h)!i(a,d)&&i(h,d)&&u(f,d);for(;l.length>p;)i(h,d=l[p++])&&(~s(f,d)||u(f,d));return f}},1564(r,t,e){var n=e(4920),i=e(4499);r.exports=Object.keys||function(o){return n(o,i)}},153(r,t){var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!e.call({1:2},1);t.f=i?function(o){var s=n(this,o);return!!s&&s.enumerable}:e},1779(r,t,e){var n=e(1094),i=e(1142),o=e(6034),s=e(8286);
1r.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a,u=!1,c={};try{(a=n(Object.prototype,"__proto__","set"))(c,[]),u=c instanceof Array}catch{}return function(l,d){return o(l),s(d),i(l)&&(u?a(l,d):l.__proto__=d),l}})():void 0)},5402(r,t,e){var n=e(9529),i=e(5969),o=e(1142),s=TypeError;r.exports=function(a,u){var c,l;if(u==="string"&&i(c=a.toString)&&!o(l=n(c,a))||i(c=a.valueOf)&&!o(l=n(c,a))||u!=="string"&&i(c=a.toString)&&!o(l=n(c,a)))return l;throw new s("Can't convert object to primitive value")}},8619(r,t,e){var n=e(7851),i=e(2244),o=e(1756),s=e(9297),a=e(4467),u=i([].concat);r.exports=n("Reflect","ownKeys")||function(c){var l=o.f(a(c)),d=s.f;return d?u(l,d(c)):l}},5084(r,t,e){var n=e(2244),i=e(253),o=SyntaxError,s=parseInt,a=String.fromCharCode,u=n("".charAt),c=n("".slice),l=n(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	"},h=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;r.exports=function(f,g){for(var m=!0,y="";g<f.length;){var v=u(f,g);if(v==="\\"){var b=c(f,g,g+2);if(i(d,b))y+=d[b],g+=2;else{if(b!=="\\u")throw new o('Unknown escape sequence: "'+b+'"');var T=c(f,g+=2,g+4);if(!l(h,T))throw new o("Bad Unicode escape at: "+g);y+=a(s(T,16)),g+=4}}else{if(v==='"'){m=!1,g++;break}if(l(p,v))throw new o("Bad control character in string literal at: "+g);y+=v,g++}}if(m)throw new o("Unterminated string at: "+g);return{value:y,end:g}}},8403(r,t,e){var n=e(2100);r.exports=n},2227(r){r.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},1288(r,t,e){var n=e(2100),i=e(2458),o=e(5969),s=e(9576),a=e(7390),u=e(7759),c=e(5123),l=e(4487),d=e(8395),h=i&&i.prototype,p=u("species"),f=!1,g=o(n.PromiseRejectionEvent),m=s("Promise",function(){var y=a(i),v=y!==String(i);if(!v&&d===66||l&&(!h.catch||!h.finally))return!0;if(!d||d<51||!/native code/.test(y)){var b=new i(function(E){E(1)}),T=function(E){E(function(){},function(){})};if((b.constructor={})[p]=T,!(f=b.then(function(){})instanceof T))return!0}return!(v||c!=="BROWSER"&&c!=="DENO"||g)});r.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:f}},2458(r,t,e){var n=e(2100);r.exports=n.Promise},3642(r,t,e){var n=e(4467),i=e(1142),o=e(6839);r.exports=function(s,a){if(n(s),i(a)&&a.constructor===s)return a;var u=o.f(s);return(0,u.resolve)(a),u.promise}},4165(r,t,e){var n=e(2458),i=e(3928),o=e(1288).CONSTRUCTOR;r.exports=o||!i(function(s){n.all(s).then(void 0,function(){})})},6364(r,t,e){var n=e(2837).f;r.exports=function(i,o,s){s in i||n(i,s,{configurable:!0,get:function(){return o[s]},set:function(a){o[s]=a}})}},8669(r){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var n={item:e,next:null},i=this.tail;i?i.next=n:this.head=n,this.tail=n},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},r.exports=t},8686(r,t,e){var n=e(9529),i=e(4467),o=e(5969),s=e(3132),a=e(5263),u=TypeError;r.exports=function(c,l){var d=c.exec;if(o(d)){var h=n(d,c,l);return h!==null&&i(h),h}if(s(c)==="RegExp")return n(a,c,l);throw new u("RegExp#exec called on incompatible receiver")}},5263(r,t,e){var n,i,o=e(9529),s=e(2244),a=e(8371),u=e(6879),c=e(8617),l=e(2365),d=e(596),h=e(9265).get,p=e(3583),f=e(7930),g=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,y=m,v=s("".charAt),b=s("".indexOf),T=s("".replace),E=s("".slice),_=(i=/b*/g,o(m,n=/a/,"a"),o(m,i,"a"),n.lastIndex!==0||i.lastIndex!==0),O=c.BROKEN_CARET,w=/()??/.exec("")[1]!==void 0,R=function(C,A){for(var D=C.groups=d(null),j=0;j<A.length;j++){var M=A[j];D[M[0]]=C[M[1]]}};(_||w||O||p||f)&&(y=function(C){var A,D,j,M=this,G=h(M),V=a(C),U=G.raw;if(U)return U.lastIndex=M.lastIndex,A=o(y,U,V),M.lastIndex=U.lastIndex,A&&G.groups&&R(A,G.groups),A;var F=G.groups,B=O&&M.sticky,W=o(u,M),J=M.source,se=0,Q=V;if(B){W=T(W,"y",""),b(W,"g")===-1&&(W+="g"),Q=E(V,M.lastIndex);var ae=M.lastIndex>0&&v(V,M.lastIndex-1);M.lastIndex>0&&(!M.multiline||M.multiline&&ae!==`
3`&&ae!=="\r"&&ae!=="\u2028"&&ae!=="\u2029")&&(J="(?: (?:"+J+"))",Q=" "+Q,se++),D=new RegExp("^(?:"+J+")",W)}w&&(D=new RegExp("^"+J+"$(?!\\s)",W)),_&&(j=M.lastIndex);var te=o(m,B?D:M,Q);return B?te?(te.input=V,te[0]=E(te[0],se),te.index=M.lastIndex,M.lastIndex+=te[0].length):M.lastIndex=0:_&&te&&(M.lastIndex=M.global?te.index+te[0].length:j),w&&te&&te.length>1&&o(g,te[0],D,function(){for(var Y=1;Y<arguments.length-2;Y++)arguments[Y]===void 0&&(te[Y]=void 0)}),te&&F&&R(te,F),te}),r.exports=y},9473(r,t,e){var n=e(2100),i=e(7091),o=n.RegExp,s=!i(function(){var a=!0;try{o(".","d")}catch{a=!1}var u={},c="",l=a?"dgimsy":"gimsy",d=function(f,g){Object.defineProperty(u,f,{get:function(){return c+=g,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var p in a&&(h.hasIndices="d"),h)d(p,h[p]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(u)!==l||c!==l});r.exports={correct:s}},6879(r,t,e){var n=e(4467);
3r.exports=function(){var i=n(this),o="";return i.hasIndices&&(o+="d"),i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.unicodeSets&&(o+="v"),i.sticky&&(o+="y"),o}},8830(r,t,e){var n=e(9529),i=e(253),o=e(7165),s=e(9473),a=e(6879),u=RegExp.prototype;r.exports=s.correct?function(c){return c.flags}:function(c){return s.correct||!o(u,c)||i(c,"flags")?c.flags:n(a,c)}},8617(r,t,e){var n=e(7091),i=e(2100).RegExp,o=n(function(){var u=i("a","y");return u.lastIndex=2,u.exec("abcd")!==null}),s=o||n(function(){return!i("a","y").sticky}),a=o||n(function(){var u=i("^r","gy");return u.lastIndex=2,u.exec("str")!==null});r.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},3583(r,t,e){var n=e(7091),i=e(2100).RegExp;r.exports=n(function(){var o=i(".","s");return!(o.dotAll&&o.test(`
4`)&&o.flags==="s")})},7930(r,t,e){var n=e(7091),i=e(2100).RegExp;r.exports=n(function(){var o=i("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},6034(r,t,e){var n=e(9377),i=TypeError;r.exports=function(o){if(n(o))throw new i("Can't call method on "+o);return o}},7185(r,t,e){var n=e(2100),i=e(8224),o=Object.getOwnPropertyDescriptor;r.exports=function(s){if(!i)return n[s];var a=o(n,s);return a&&a.value}},7556(r,t,e){var n,i=e(2100),o=e(7861),s=e(5969),a=e(5123),u=e(6379),c=e(8348),l=e(7584),d=i.Function,h=/MSIE .\./.test(u)||a==="BUN"&&((n=i.Bun.version.split(".")).length<3||n[0]==="0"&&(n[1]<3||n[1]==="3"&&n[2]==="0"));r.exports=function(p,f){var g=f?2:1;return h?function(m,y){var v=l(arguments.length,1)>g,b=s(m)?m:d(m),T=v?c(arguments,g):[],E=v?function(){o(b,this,T)}:b;return f?p(E,y):p(E)}:p}},6610(r,t,e){var n=e(8470),i=e(5329),o=n.Set,s=n.add;r.exports=function(a){var u=new o;return i(a,function(c){s(u,c)}),u}},5100(r,t,e){var n=e(9348),i=e(8470),o=e(6610),s=e(5502),a=e(8073),u=e(5329),c=e(6775),l=i.has,d=i.remove;r.exports=function(h){var p=n(this),f=a(h),g=o(p);return s(g)<=f.size?u(g,function(m){f.includes(m)&&d(g,m)}):c(f.getIterator(),function(m){l(g,m)&&d(g,m)}),g}},8470(r,t,e){var n=e(2244),i=Set.prototype;r.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},2778(r,t,e){var n=e(9348),i=e(8470),o=e(5502),s=e(8073),a=e(5329),u=e(6775),c=i.Set,l=i.add,d=i.has;r.exports=function(h){var p=n(this),f=s(h),g=new c;return o(p)>f.size?u(f.getIterator(),function(m){d(p,m)&&l(g,m)}):a(p,function(m){f.includes(m)&&l(g,m)}),g}},8125(r,t,e){var n=e(9348),i=e(8470).has,o=e(5502),s=e(8073),a=e(5329),u=e(6775),c=e(2591);r.exports=function(l){var d=n(this),h=s(l);if(o(d)<=h.size)return a(d,function(f){if(h.includes(f))return!1},!0)!==!1;var p=h.getIterator();return u(p,function(f){if(i(d,f))return c(p.iterator,"normal",!1)})!==!1}},6026(r,t,e){var n=e(9348),i=e(5502),o=e(5329),s=e(8073);r.exports=function(a){var u=n(this),c=s(a);return!(i(u)>c.size)&&o(u,function(l){if(!c.includes(l))return!1},!0)!==!1}},979(r,t,e){var n=e(9348),i=e(8470).has,o=e(5502),s=e(8073),a=e(6775),u=e(2591);r.exports=function(c){var l=n(this),d=s(c);if(o(l)<d.size)return!1;var h=d.getIterator();return a(h,function(p){if(!i(l,p))return u(h.iterator,"normal",!1)})!==!1}},5329(r,t,e){var n=e(2244),i=e(6775),o=e(8470),s=o.Set,a=o.proto,u=n(a.forEach),c=n(a.keys),l=c(new s).next;r.exports=function(d,h,p){return p?i({iterator:c(d),next:l},h):u(d,h)}},392(r,t,e){var n=e(7851),i=function(s){return{size:s,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(s){return{size:s,has:function(){return!0},keys:function(){throw new Error("e")}}};r.exports=function(s,a){var u=n("Set");try{new u()[s](i(0));try{return new u()[s](i(-1)),!1}catch{if(!a)return!0;try{return new u()[s](o(-1/0)),!1}catch{return a(new u([1,2])[s](o(1/0)))}}}catch{return!1}}},8015(r){r.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},i=e[t](n);return i.size===1&&i.values().next().value===4}catch{return!1}}},5502(r,t,e){var n=e(1094),i=e(8470);r.exports=n(i.proto,"size","get")||function(o){return o.size}},6941(r,t,e){var n=e(7851),i=e(4966),o=e(7759),s=e(8224),a=o("species");r.exports=function(u){var c=n(u);s&&c&&!c[a]&&i(c,a,{configurable:!0,get:function(){return this}})}},6054(r,t,e){var n=e(9348),i=e(8470),o=e(6610),s=e(8073),a=e(6775),u=i.add,c=i.has,l=i.remove;r.exports=function(d){var h=n(this),p=s(d).getIterator(),f=o(h);return a(p,function(g){c(h,g)?l(f,g):u(f,g)}),f}},915(r,t,e){var n=e(2837).f,i=e(253),o=e(7759)("toStringTag");r.exports=function(s,a,u){s&&!u&&(s=s.prototype),s&&!i(s,o)&&n(s,o,{configurable:!0,value:a})}},4360(r,t,e){var n=e(9348),i=e(8470).add,o=e(6610),s=e(8073),a=e(6775);
4r.exports=function(u){var c=n(this),l=s(u).getIterator(),d=o(c);return a(l,function(h){i(d,h)}),d}},5747(r,t,e){var n=e(2365),i=e(3524),o=n("keys");r.exports=function(s){return o[s]||(o[s]=i(s))}},6953(r,t,e){var n=e(4487),i=e(2100),o=e(4021),s="__core-js_shared__",a=r.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2365(r,t,e){var n=e(6953);r.exports=function(i,o){return n[i]||(n[i]=o||{})}},4737(r,t,e){var n=e(4467),i=e(6840),o=e(9377),s=e(7759)("species");r.exports=function(a,u){var c,l=n(a).constructor;return l===void 0||o(c=n(l)[s])?u:i(c)}},7504(r,t,e){var n=e(2244),i=e(6399),o=e(8371),s=e(6034),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(d){return function(h,p){var f,g,m=o(s(h)),y=i(p),v=m.length;return y<0||y>=v?d?"":void 0:(f=u(m,y))<55296||f>56319||y+1===v||(g=u(m,y+1))<56320||g>57343?d?a(m,y):f:d?c(m,y,y+2):g-56320+(f-55296<<10)+65536}};r.exports={codeAt:l(!1),charAt:l(!0)}},3465(r,t,e){var n=e(2244),i=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=n(s.exec),l=Math.floor,d=String.fromCharCode,h=n("".charCodeAt),p=n([].join),f=n([].push),g=n("".replace),m=n("".split),y=n("".toLowerCase),v=function(E){return E+22+75*(E<26)},b=function(E,_,O){var w=0;for(E=O?l(E/700):E>>1,E+=l(E/_);E>455;)E=l(E/35),w+=36;return l(w+36*E/(E+38))},T=function(E){var _=[];E=(function(se){for(var Q=[],ae=0,te=se.length;ae<te;){var Y=h(se,ae++);if(Y>=55296&&Y<=56319&&ae<te){var ne=h(se,ae++);(64512&ne)==56320?f(Q,((1023&Y)<<10)+(1023&ne)+65536):(f(Q,Y),ae--)}else f(Q,Y)}return Q})(E);var O,w,R=E.length,C=128,A=0,D=72;for(O=0;O<E.length;O++)(w=E[O])<128&&f(_,d(w));var j=_.length,M=j;for(j&&f(_,"-");M<R;){var G=i;for(O=0;O<E.length;O++)(w=E[O])>=C&&w<G&&(G=w);var V=M+1;if(G-C>l((i-A)/V))throw new u(a);for(A+=(G-C)*V,C=G,O=0;O<E.length;O++){if((w=E[O])<C&&++A>i)throw new u(a);if(w===C){for(var U=A,F=36;;){var B=F<=D?1:F>=D+26?26:F-D;if(U<B)break;var W=U-B,J=36-B;f(_,d(v(B+W%J))),U=l(W/J),F+=36}f(_,d(v(U))),D=b(A,V,M===j),A=0,M++}}A++,C++}return p(_,"")};r.exports=function(E){var _,O,w=[],R=m(g(y(E),s,"."),".");for(_=0;_<R.length;_++)O=R[_],f(w,c(o,O)?"xn--"+T(O):O);return p(w,".")}},400(r,t,e){var n=e(2100),i=e(7091),o=e(8395),s=e(5123),a=n.structuredClone;r.exports=!!a&&!i(function(){if(s==="DENO"&&o>92||s==="NODE"&&o>94||s==="BROWSER"&&o>97)return!1;var u=new ArrayBuffer(8),c=a(u,{transfer:[u]});return u.byteLength!==0||c.byteLength!==8})},1867(r,t,e){var n=e(8395),i=e(7091),o=e(2100).String;r.exports=!!Object.getOwnPropertySymbols&&!i(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&n&&n<41})},3853(r,t,e){var n,i,o,s,a=e(2100),u=e(7861),c=e(716),l=e(5969),d=e(253),h=e(7091),p=e(7441),f=e(8348),g=e(7907),m=e(7584),y=e(2052),v=e(4189),b=a.setImmediate,T=a.clearImmediate,E=a.process,_=a.Dispatch,O=a.Function,w=a.MessageChannel,R=a.String,C=0,A={},D="onreadystatechange";h(function(){n=a.location});var j=function(U){if(d(A,U)){var F=A[U];delete A[U],F()}},M=function(U){return function(){j(U)}},G=function(U){j(U.data)},V=function(U){a.postMessage(R(U),n.protocol+"//"+n.host)};b&&T||(b=function(U){m(arguments.length,1);var F=l(U)?U:O(U),B=f(arguments,1);return A[++C]=function(){u(F,void 0,B)},i(C),C},T=function(U){delete A[U]},v?i=function(U){E.nextTick(M(U))}:_&&_.now?i=function(U){_.now(M(U))}:w&&!y?(s=(o=new w).port2,o.port1.onmessage=G,i=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&n.protocol!=="file:"&&!h(V)?(i=V,a.addEventListener("message",G,!1)):i=D in g("script")?function(U){p.appendChild(g("script"))[D]=function(){p.removeChild(this),j(U)}}:function(U){setTimeout(M(U),0)}),r.exports={set:b,clear:T}},7326(r,t,e){var n=e(6399),i=Math.max,o=Math.min;r.exports=function(s,a){var u=n(s);return u<0?i(u+a,0):o(u,a)}},9938(r,t,e){var n=e(7341),i=TypeError;r.exports=function(o){var s=n(o,"number");if(typeof s=="number")throw new i("Can't convert number to bigint");return BigInt(s)}},1628(r,t,e){var n=e(6399),i=e(5378),o=RangeError;r.exports=function(s){if(s===void 0)return 0;var a=n(s),u=i(a);if(a!==u)throw new o("Wrong length or index");return u}},2377(r,t,e){var n=e(2243),i=e(6034);r.exports=function(o){return n(i(o))}},6399(r,t,e){var n=e(897);r.exports=function(i){var o=+i;return o!=o||o===0?0:n(o)}},5378(r,t,e){var n=e(6399),i=Math.min;r.exports=function(o){var s=n(o);return s>0?i(s,9007199254740991):0}},3017(r,t,e){var n=e(6034),i=Object;r.exports=function(o){return i(n(o))}},9977(r,t,e){var n=e(5746),i=RangeError;r.exports=function(o,s){var a=n(o);if(a%s)throw new i("Wrong offset");return a}},5746(r,t,e){var n=e(6399),i=RangeError;r.exports=function(o){var s=n(o);if(s<0)throw new i("The argument can't be less than 0");return s}},7341(r,t,e){var n=e(9529),i=e(1142),o=e(7161),s=e(9794),a=e(5402),u=e(7759),c=TypeError,l=u("toPrimitive");r.exports=function(d,h){if(!i(d)||o(d))return d;var p,f=s(d,l);if(f){if(h===void 0&&(h="default"),p=n(f,d,h),!i(p)||o(p))return p;throw new c("Can't convert object to primitive value")}return h===void 0&&(h="number"),a(d,h)}},5661(r,t,e){var n=e(7341),i=e(7161);r.exports=function(o){var s=n(o,"string");return i(s)?s:s+""}},1048(r,t,e){var n={};
4n[e(7759)("toStringTag")]="z",r.exports=String(n)==="[object z]"},8371(r,t,e){var n=e(8023),i=String;r.exports=function(o){if(n(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(o)}},6835(r){var t=Math.floor;r.exports=function(e){var n=+e;if(n!=n||n<=0)return 0;if(n>=255)return 255;var i=t(n);return i+.5<n?i+1:n<i+.5||i%2==0?i:i+1}},5275(r){var t=String;r.exports=function(e){try{return t(e)}catch{return"Object"}}},347(r,t,e){var n=e(3322),i=e(2100),o=e(9529),s=e(8224),a=e(9545),u=e(4832),c=e(9710),l=e(6539),d=e(2112),h=e(1519),p=e(1131),f=e(1628),g=e(9977),m=e(6835),y=e(5661),v=e(253),b=e(8023),T=e(1142),E=e(7161),_=e(596),O=e(7165),w=e(1779),R=e(1756).f,C=e(3167),A=e(129).forEach,D=e(6941),j=e(4966),M=e(2837),G=e(1055),V=e(8886),U=e(9265),F=e(7571),B=U.get,W=U.set,J=U.enforce,se=M.f,Q=G.f,ae=i.RangeError,te=c.ArrayBuffer,Y=te.prototype,ne=c.DataView,ie=u.NATIVE_ARRAY_BUFFER_VIEWS,de=u.TYPED_ARRAY_TAG,Ee=u.TypedArray,fe=u.TypedArrayPrototype,Le=u.isTypedArray,xe="BYTES_PER_ELEMENT",Ie="Wrong length",Se=function(H,P){j(H,P,{configurable:!0,get:function(){return B(this)[P]}})},De=function(H){var P;return O(Y,H)||(P=b(H))==="ArrayBuffer"||P==="SharedArrayBuffer"},Me=function(H,P){return Le(H)&&!E(P)&&P in H&&p(+P)&&P>=0},Ae=function(H,P){return P=y(P),Me(H,P)?d(2,H[P]):Q(H,P)},X=function(H,P,L){return P=y(P),!(Me(H,P)&&T(L)&&v(L,"value"))||v(L,"get")||v(L,"set")||L.configurable||v(L,"writable")&&!L.writable||v(L,"enumerable")&&!L.enumerable?se(H,P,L):(H[P]=L.value,H)};s?(ie||(G.f=Ae,M.f=X,Se(fe,"buffer"),Se(fe,"byteOffset"),Se(fe,"byteLength"),Se(fe,"length")),n({target:"Object",stat:!0,forced:!ie},{getOwnPropertyDescriptor:Ae,defineProperty:X}),r.exports=function(H,P,L){var N=H.match(/\d+/)[0]/8,ee=H+(L?"Clamped":"")+"Array",he="get"+H,ge="set"+H,Pe=i[ee],be=Pe,Ue=be&&be.prototype,Je={},Be=function(ze,ve){se(ze,ve,{get:function(){return(function(et,_t){var Tt=B(et);return Tt.view[he](_t*N+Tt.byteOffset,!0)})(this,ve)},set:function(et){return(function(_t,Tt,ht){var pt=B(_t);pt.view[ge](Tt*N+pt.byteOffset,L?m(ht):ht,!0)})(this,ve,et)},enumerable:!0})};ie?a&&(be=P(function(ze,ve,et,_t){return l(ze,Ue),F(T(ve)?De(ve)?_t!==void 0?new Pe(ve,g(et,N),_t):et!==void 0?new Pe(ve,g(et,N)):new Pe(ve):Le(ve)?V(be,ve):o(C,be,ve):new Pe(f(ve)),ze,be)}),w&&w(be,Ee),A(R(Pe),function(ze){ze in be||h(be,ze,Pe[ze])}),be.prototype=Ue):(be=P(function(ze,ve,et,_t){l(ze,Ue);var Tt,ht,pt,$=0,oe=0;if(T(ve)){if(!De(ve))return Le(ve)?V(be,ve):o(C,be,ve);Tt=ve,oe=g(et,N);var ue=ve.byteLength;if(_t===void 0){if(ue%N)throw new ae(Ie);if((ht=ue-oe)<0)throw new ae(Ie)}else if((ht=f(_t)*N)+oe>ue)throw new ae(Ie);pt=ht/N}else pt=f(ve),Tt=new te(ht=pt*N);for(W(ze,{buffer:Tt,byteOffset:oe,byteLength:ht,length:pt,view:new ne(Tt)});$<pt;)Be(ze,$++)}),w&&w(be,Ee),Ue=be.prototype=_(fe)),Ue.constructor!==be&&h(Ue,"constructor",be),J(Ue).TypedArrayConstructor=be,de&&h(Ue,de,ee);var We=be!==Pe;Je[ee]=be,n({global:!0,constructor:!0,forced:We,sham:!ie},Je),xe in be||h(be,xe,N),xe in Ue||h(Ue,xe,N),D(ee)}):r.exports=function(){}},9545(r,t,e){var n=e(2100),i=e(7091),o=e(3928),s=e(4832).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,u=n.Int8Array;r.exports=!s||!i(function(){u(1)})||!i(function(){new u(-1)})||!o(function(c){new u,new u(null),new u(1.5),new u(c)},!0)||i(function(){return new u(new a(2),1,void 0).length!==1})},3167(r,t,e){var n=e(716),i=e(9529),o=e(5934),s=e(6840),a=e(3017),u=e(4450),c=e(8461),l=e(5031),d=e(3485),h=e(1859),p=e(4832).aTypedArrayConstructor,f=e(9938);r.exports=function(g){var m=s(this),y=arguments.length,v=y>1?arguments[1]:void 0,b=v!==void 0;b&&o(v);var T,E,_,O,w,R,C,A,D=a(g),j=l(D);if(j&&!d(j))for(A=(C=c(D,j)).next,D=[];!(R=i(A,C)).done;)D.push(R.value);for(b&&y>2&&(v=n(v,arguments[2])),E=u(D),_=new(p(m))(E),O=h(_),T=0;E>T;T++)w=b?v(D[T],T):D[T],_[T]=O?f(w):+w;return _}},3524(r,t,e){var n=e(2244),i=0,o=Math.random(),s=n(1.1.toString);r.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+s(++i+o,36)}},3204(r,t,e){var n=e(7091),i=e(7759),o=e(8224),s=e(4487),a=i("iterator");r.exports=!n(function(){var u=new URL("b?a=1&b=2&c=3","https://a"),c=u.searchParams,l=new URLSearchParams("a=1&a=2&b=3"),d="";
4return u.pathname="c%20d",c.forEach(function(h,p){c.delete("b"),d+=p+h}),l.delete("a",2),l.delete("b",void 0),s&&(!u.toJSON||!l.has("a",1)||l.has("a",2)||!l.has("a",void 0)||l.has("b"))||!c.size&&(s||!o)||!c.sort||u.href!=="https://a/c%20d?a=1&c=3"||c.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!c[a]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("https://a#\u0431").hash!=="#%D0%B1"||d!=="a1c3"||new URL("https://x",void 0).host!=="x"})},6564(r,t,e){var n=e(1867);r.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3266(r,t,e){var n=e(8224),i=e(7091);r.exports=n&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},7584(r){var t=TypeError;r.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},1922(r,t,e){var n=e(2100),i=e(5969),o=n.WeakMap;r.exports=i(o)&&/native code/.test(String(o))},7759(r,t,e){var n=e(2100),i=e(2365),o=e(253),s=e(3524),a=e(1867),u=e(6564),c=n.Symbol,l=i("wks"),d=u?c.for||c:c&&c.withoutSetter||s;r.exports=function(h){return o(l,h)||(l[h]=a&&o(c,h)?c[h]:d("Symbol."+h)),l[h]}},7653(r,t,e){var n=e(7851),i=e(253),o=e(1519),s=e(7165),a=e(1779),u=e(3720),c=e(6364),l=e(7571),d=e(1023),h=e(2212),p=e(8343),f=e(8224),g=e(4487);r.exports=function(m,y,v,b){var T="stackTraceLimit",E=b?2:1,_=m.split("."),O=_[_.length-1],w=n.apply(null,_);if(w){var R=w.prototype;if(!g&&i(R,"cause")&&delete R.cause,!v)return w;var C=n("Error"),A=y(function(D,j){var M=d(b?j:D,void 0),G=b?new w(D):new w;return M!==void 0&&o(G,"message",M),p(G,A,G.stack,2),this&&s(R,this)&&l(G,this,A),arguments.length>E&&h(G,arguments[E]),G});if(A.prototype=R,O!=="Error"?a?a(A,C):u(A,C,{name:!0}):f&&T in w&&(c(A,w,T),c(A,w,"prepareStackTrace")),u(A,w),!g)try{R.name!==O&&o(R,"name",O),R.constructor=A}catch{}return A}}},7833(r,t,e){var n=e(8224),i=e(4966),o=e(9490),s=ArrayBuffer.prototype;n&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return o(this)}})},8748(r,t,e){var n=e(3322),i=e(8632);i&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},7896(r,t,e){var n=e(3322),i=e(8632);i&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},711(r,t,e){var n=e(3322),i=e(3017),o=e(4450),s=e(6399),a=e(1801);n({target:"Array",proto:!0},{at:function(u){var c=i(this),l=o(c),d=s(u),h=d>=0?d:l+d;return h<0||h>=l?void 0:c[h]}}),a("at")},1571(r,t,e){var n=e(3322),i=e(5501).includes,o=e(7091),s=e(1801),a=o(function(){return!Array(1).includes()}),u=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:a||u},{includes:function(c){return i(this,c,arguments.length>1?arguments[1]:void 0)}}),s("includes")},148(r,t,e){var n=e(2377),i=e(1801),o=e(7505),s=e(9265),a=e(2837).f,u=e(4132),c=e(3373),l=e(4487),d=e(8224),h="Array Iterator",p=s.set,f=s.getterFor(h);r.exports=u(Array,"Array",function(m,y){p(this,{type:h,target:n(m),index:0,kind:y})},function(){var m=f(this),y=m.target,v=m.index++;if(!y||v>=y.length)return m.target=null,c(void 0,!0);switch(m.kind){case"keys":return c(v,!1);case"values":return c(y[v],!1)}return c([v,y[v]],!1)},"values");var g=o.Arguments=o.Array;
4if(i("keys"),i("values"),i("entries"),!l&&d&&g.name!=="values")try{a(g,"name",{value:"values"})}catch{}},5166(r,t,e){var n=e(3322),i=e(3017),o=e(4450),s=e(7875),a=e(6569);n({target:"Array",proto:!0,arity:1,forced:e(7091)(function(){return[].push.call({length:4294967296},1)!==4294967297})||!(function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(u){return u instanceof TypeError}})()},{push:function(u){var c=i(this),l=o(c),d=arguments.length;a(l+d);for(var h=0;h<d;h++)c[l]=arguments[h],l++;return s(c,l),l}})},8364(r,t,e){var n=e(3322),i=e(3653).left,o=e(4290),s=e(8395);n({target:"Array",proto:!0,forced:!e(4189)&&s>79&&s<83||!o("reduce")},{reduce:function(a){var u=arguments.length;return i(this,a,u,u>1?arguments[1]:void 0)}})},5498(r,t,e){var n=e(3322),i=e(4450),o=e(2377),s=e(8460),a=e(1801),u=Array;n({target:"Array",proto:!0},{toReversed:function(){for(var c=o(this),l=i(c),d=new u(l),h=0;h<l;h++)s(d,h,c[l-h-1]);return d}}),a("toReversed")},9757(r,t,e){var n=e(3322),i=e(2244),o=e(5934),s=e(2377),a=e(8886),u=e(9496),c=e(1801),l=Array,d=i(u("Array","sort"));n({target:"Array",proto:!0},{toSorted:function(h){h!==void 0&&o(h);var p=s(this),f=a(l,p);return d(f,h)}}),c("toSorted")},9225(r,t,e){e(1801)("flatMap")},8850(r,t,e){var n=e(3322),i=e(3017),o=e(4450),s=e(7875),a=e(4026),u=e(6569);n({target:"Array",proto:!0,arity:1,forced:[].unshift(0)!==1||!(function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(c){return c instanceof TypeError}})()},{unshift:function(c){var l=i(this),d=o(l),h=arguments.length;if(h){u(d+h);for(var p=d;p--;){var f=p+h;p in l?l[f]=l[p]:a(l,f)}for(var g=0;g<h;g++)l[g]=arguments[g]}return s(l,d+h)}})},3994(r,t,e){var n=e(3322),i=e(4450),o=e(6399),s=e(2377),a=e(8460),u=Array,c=RangeError;n({target:"Array",proto:!0,forced:(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(l){return l!==4}})()},{with:function(l,d){var h=s(this),p=i(h),f=o(l),g=f<0?p+f:f;if(g>=p||g<0)throw new c("Incorrect index");for(var m=new u(p),y=0;y<p;y++)a(m,y,y===g?d:h[y]);return m}})},7332(r,t,e){var n=e(3322),i=e(2100),o=e(7861),s=e(7653),a="WebAssembly",u=i[a],c=new Error("e",{cause:7}).cause!==7,l=function(h,p){var f={};f[h]=s(h,p,c),n({global:!0,constructor:!0,arity:1,forced:c},f)},d=function(h,p){if(u&&u[h]){var f={};f[h]=s(a+"."+h,p,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},f)}};l("Error",function(h){return function(p){return o(h,this,arguments)}}),l("EvalError",function(h){return function(p){return o(h,this,arguments)}}),l("RangeError",function(h){return function(p){return o(h,this,arguments)}}),l("ReferenceError",function(h){return function(p){return o(h,this,arguments)}}),l("SyntaxError",function(h){return function(p){return o(h,this,arguments)}}),l("TypeError",function(h){return function(p){return o(h,this,arguments)}}),l("URIError",function(h){return function(p){return o(h,this,arguments)}}),d("CompileError",function(h){return function(p){return o(h,this,arguments)}}),d("LinkError",function(h){return function(p){return o(h,this,arguments)}}),d("RuntimeError",function(h){return function(p){return o(h,this,arguments)}})},5731(r,t,e){var n=e(3322),i=e(2100),o=e(6539),s=e(4467),a=e(5969),u=e(1959),c=e(4966),l=e(8460),d=e(7091),h=e(253),p=e(7759),f=e(7117).IteratorPrototype,g=e(8224),m=e(4487),y="constructor",v="Iterator",b=p("toStringTag"),T=TypeError,E=i[v],_=m||!a(E)||E.prototype!==f||!d(function(){E({})}),O=function(){if(o(this,f),u(this)===f)throw new T("Abstract class Iterator not directly constructable")},w=function(R,C){g?c(f,R,{configurable:!0,get:function(){return C},set:function(A){if(s(this),this===f)throw new T("You can't redefine this property");h(this,R)?this[R]=A:l(this,R,A)}}):f[R]=C};h(f,b)||w(b,v),!_&&h(f,y)&&f[y]!==Object||w(y,O),O.prototype=f,n({global:!0,constructor:!0,forced:_},{Iterator:O})},7672(r,t,e){var n=e(3322),i=e(9529),o=e(9824),s=e(5934),a=e(4467),u=e(891),c=e(2591),l=e(9441)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(d){a(this);try{s(d)}catch(f){c(this,"throw",f)}if(l)return i(l,this,d);var h=u(this),p=0;return!o(h,function(f,g){if(!d(f,p++))return g()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},6469(r,t,e){var n=e(3322),i=e(9529),o=e(5934),s=e(4467),a=e(891),u=e(7082),c=e(6387),l=e(4487),d=e(2591),h=e(9632),p=e(9441),f=!l&&!h("filter",function(){}),g=!l&&!f&&p("filter",TypeError),m=l||f||g,y=u(function(){for(var v,b,T=this.iterator,E=this.predicate,_=this.next;;){if(v=s(i(_,T)),this.done=!!v.done)return;if(b=v.value,c(T,E,[b,this.counter++],!0))return b}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(v){s(this);try{o(v)}catch(b){d(this,"throw",b)}return g?i(g,this,v):new y(a(this),{predicate:v})}})},2616(r,t,e){var n=e(3322),i=e(9529),o=e(9824),s=e(5934),a=e(4467),u=e(891),c=e(2591),l=e(9441)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(d){a(this);try{s(d)}catch(f){c(this,"throw",f)}if(l)return i(l,this,d);var h=u(this),p=0;return o(h,function(f,g){if(d(f,p++))return g(f)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},8087(r,t,e){var n=e(3322),i=e(9529),o=e(5934),s=e(4467),a=e(891),u=e(3210),c=e(7082),l=e(2591),d=e(4487),h=e(9632),p=e(9441),f=!d&&!h("flatMap",function(){}),g=!d&&!f&&p("flatMap",TypeError),m=d||f||g||(function(){try{var v=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(b){return b});v.next(),v.return()}catch{return!0}})(),y=c(function(){for(var v,b,T=this.iterator,E=this.mapper;;){if(b=this.inner)try{if(!(v=s(i(b.next,b.iterator))).done)return v.value;this.inner=null}catch(_){l(T,"throw",_)}if(v=s(i(this.next,T)),this.done=!!v.done)return;try{this.inner=u(E(v.value,this.counter++),!1)}catch(_){l(T,"throw",_)}}});n({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(v){s(this);try{o(v)}catch(b){l(this,"throw",b)}return g?i(g,this,v):new y(a(this),{mapper:v,inner:null})}})},7776(r,t,e){var n=e(3322),i=e(9529),o=e(9824),s=e(5934),a=e(4467),u=e(891),c=e(2591),l=e(9441)("forEac
4h",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(d){a(this);try{s(d)}catch(f){c(this,"throw",f)}if(l)return i(l,this,d);var h=u(this),p=0;o(h,function(f){d(f,p++)},{IS_RECORD:!0})}})},5505(r,t,e){var n=e(3322),i=e(9529),o=e(5934),s=e(4467),a=e(891),u=e(7082),c=e(6387),l=e(2591),d=e(9632),h=e(9441),p=e(4487),f=!p&&!d("map",function(){}),g=!p&&!f&&h("map",TypeError),m=p||f||g,y=u(function(){var v=this.iterator,b=s(i(this.next,v));if(!(this.done=!!b.done))return c(v,this.mapper,[b.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(v){s(this);try{o(v)}catch(b){l(this,"throw",b)}return g?i(g,this,v):new y(a(this),{mapper:v})}})},6089(r,t,e){var n=e(3322),i=e(9824),o=e(5934),s=e(4467),a=e(891),u=e(2591),c=e(9441),l=e(7861),d=e(7091),h=TypeError,p=d(function(){[].keys().reduce(function(){},void 0)}),f=!p&&c("reduce",h);n({target:"Iterator",proto:!0,real:!0,forced:p||f},{reduce:function(g){s(this);try{o(g)}catch(T){u(this,"throw",T)}var m=arguments.length<2,y=m?void 0:arguments[1];if(f)return l(f,this,m?[g]:[g,y]);var v=a(this),b=0;if(i(v,function(T){m?(m=!1,y=T):y=g(y,T,b),b++},{IS_RECORD:!0}),m)throw new h("Reduce of empty iterator with no initial value");return y}})},879(r,t,e){var n=e(3322),i=e(9529),o=e(9824),s=e(5934),a=e(4467),u=e(891),c=e(2591),l=e(9441)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:l},{some:function(d){a(this);try{s(d)}catch(f){c(this,"throw",f)}if(l)return i(l,this,d);var h=u(this),p=0;return o(h,function(f,g){if(d(f,p++))return g()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},5178(r,t,e){var n=e(3322),i=e(7851),o=e(7861),s=e(9529),a=e(2244),u=e(7091),c=e(7484),l=e(5969),d=e(7998),h=e(7161),p=e(3132),f=e(8371),g=e(8348),m=e(5084),y=e(3524),v=e(1867),b=e(8567),T=String,E=i("JSON","stringify"),_=a(/./.exec),O=a("".charAt),w=a("".charCodeAt),R=a("".replace),C=a("".slice),A=a([].push),D=a(1.1.toString),j=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,G=/^[\uDC00-\uDFFF]$/,V=y(),U=V.length,F=!v||u(function(){var Q=i("Symbol")("stringify detection");return E([Q])!=="[null]"||E({a:Q})!=="{}"||E(Object(Q))!=="{}"}),B=u(function(){return E("\uDF06\uD834")!=='"\\udf06\\ud834"'||E("\uDEAD")!=='"\\udead"'}),W=F?function(Q,ae){var te=g(arguments),Y=se(ae);if(l(Y)||Q!==void 0&&!h(Q))return te[1]=function(ne,ie){if(l(Y)&&(ie=s(Y,this,T(ne),ie)),!h(ie))return ie},o(E,null,te)}:E,J=function(Q,ae,te){var Y=O(te,ae-1),ne=O(te,ae+1);return _(M,Q)&&!_(G,ne)||_(G,Q)&&!_(M,Y)?"\\u"+D(w(Q,0),16):Q},se=function(Q){if(l(Q))return Q;if(c(Q)){for(var ae=Q.length,te=[],Y=0;Y<ae;Y++){var ne=Q[Y];typeof ne=="string"?A(te,ne):typeof ne!="number"&&p(ne)!=="Number"&&p(ne)!=="String"||A(te,f(ne))}var ie=te.length,de=!0;return function(Ee,fe){if(de)return de=!1,fe;if(c(this))return fe;for(var Le=0;Le<ie;Le++)if(te[Le]===Ee)return fe}}};E&&n({target:"JSON",stat:!0,arity:3,forced:F||B||!b},{stringify:function(Q,ae,te){var Y=se(ae),ne=[],ie=W(Q,function(Se,De){var Me=l(Y)?s(Y,this,T(Se),De):De;return!b&&d(Me)?V+(A(ne,Me.rawJSON)-1):Me},te);if(typeof ie!="string"||(B&&(ie=R(ie,j,J)),b))return ie;for(var de="",Ee=ie.length,fe=0;fe<Ee;fe++){var Le=O(ie,fe);if(Le==='"'){var xe=m(ie,++fe).end-1,Ie=C(ie,fe,xe);de+=C(Ie,0,U)===V?ne[C(Ie,U)]:'"'+Ie+'"',fe=xe}else de+=Le}return de}})},5025(r,t,e){var n=e(3322),i=Math.hypot,o=Math.abs,s=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(a,u){for(var c,l,d=0,h=0,p=arguments.length,f=0;h<p;)f<(c=o(arguments[h++]))?(d=d*(l=f/c)*l+1,f=c):d+=c>0?(l=c/f)*l:c;return f===1/0?1/0:f*s(d)}})},5895(r,t,e){var n=e(3322),i=e(9529),o=e(5934),s=e(6839),a=e(2227),u=e(9824);n({target:"Promise",stat:!0,forced:e(4165)},{all:function(c){var l=this,d=s.f(l),h=d.resolve,p=d.reject,f=a(function(){var g=o(l.resolve),m=[],y=0,v=1;u(c,function(b){var T=y++,E=!1;v++,i(g,l,b).then(function(_){E||(E=!0,m[T]=_,--v||h(m))},p)}),--v||h(m)});return f.error&&p(f.value),d.promise}})},2319(r,t,e){var n=e(3322),i=e(4487),o=e(1288).CONSTRUCTOR,s=e(2458),a=e(7851),u=e(5969),c=e(3828),l=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(h){return this.then(void 0,h)}}),!i&&u(s)){var d=a("Promise").prototype.catch;l.catch!==d&&c(l,"catch",d,{unsafe:!0})}},9432(r,t,e){var n,i,o,s,a=e(3322),u=e(4487),c=e(4189),l=e(2100),d=e(8403),h=e(9529),p=e(3828),f=e(1779),g=e(915),m=e(6941),y=e(5934),v=e(5969),b=e(1142),T=e(6539),E=e(4737),_=e(3853).set,O=e(3535),w=e(9417),R=e(2227),C=e(8669),A=e(9265),D=e(2458),j=e(1288),M=e(6839),G="Promise",V=j.CONSTRUCTOR,U=j.REJECTION_EVENT,F=j.SUBCLASSING,B=A.getterFor(G),W=A.set,J=D&&D.prototype,se=D,Q=J,ae=l.TypeError,te=l.document,Y=l.process,ne=M.f,ie=ne,de=!!(te&&te.createEvent&&l.dispatchEvent),Ee="unhandledrejection",fe=function(P){var L;return!(!b(P)||!v(L=P.then))&&L},Le=function(P,L){var N,ee,he,ge=L.value,Pe=L.state===1,be=Pe?P.ok:P.fail,Ue=P.resolve,Je=P.reject,Be=P.domain;try{be?(Pe||(L.rejection===2&&Me(L),L.rejection=1),be===!0?N=ge:(Be&&Be.enter(),N=be(ge),Be&&(Be.exit(),he=!0)),N===P.promise?Je(new ae("Promise-chain cycle")):(ee=fe(N))?h(ee,N,Ue,Je):Ue(N)):Je(ge)}catch(We){Be&&!he&&Be.exit(),Je(We)}},xe=function(P,L){P.notified||(P.notified=!0,O(function(){for(var N,ee=P.reactions;N=ee.get();)Le(N,P);
4P.notified=!1,L&&!P.rejection&&Se(P)}))},Ie=function(P,L,N){var ee,he;de?((ee=te.createEvent("Event")).promise=L,ee.reason=N,ee.initEvent(P,!1,!0),l.dispatchEvent(ee)):ee={promise:L,reason:N},!U&&(he=l["on"+P])?he(ee):P===Ee&&w("Unhandled promise rejection",N)},Se=function(P){h(_,l,function(){var L,N=P.facade,ee=P.value;if(De(P)&&(L=R(function(){c?Y.emit("unhandledRejection",ee,N):Ie(Ee,N,ee)}),P.rejection=c||De(P)?2:1,L.error))throw L.value})},De=function(P){return P.rejection!==1&&!P.parent},Me=function(P){h(_,l,function(){var L=P.facade;c?Y.emit("rejectionHandled",L):Ie("rejectionhandled",L,P.value)})},Ae=function(P,L,N){return function(ee){P(L,ee,N)}},X=function(P,L,N){P.done||(P.done=!0,N&&(P=N),P.value=L,P.state=2,xe(P,!0))},H=function(P,L,N){if(!P.done){P.done=!0,N&&(P=N);try{if(P.facade===L)throw new ae("Promise can't be resolved itself");var ee=fe(L);ee?O(function(){var he={done:!1};try{h(ee,L,Ae(H,he,P),Ae(X,he,P))}catch(ge){X(he,ge,P)}}):(P.value=L,P.state=1,xe(P,!1))}catch(he){X({done:!1},he,P)}}};if(V&&(Q=(se=function(P){T(this,Q),y(P),h(n,this);var L=B(this);try{P(Ae(H,L),Ae(X,L))}catch(N){X(L,N)}}).prototype,(n=function(P){W(this,{type:G,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=p(Q,"then",function(P,L){var N=B(this),ee=ne(E(this,se));return N.parent=!0,ee.ok=!v(P)||P,ee.fail=v(L)&&L,ee.domain=c?Y.domain:void 0,N.state===0?N.reactions.add(ee):O(function(){Le(ee,N)}),ee.promise}),i=function(){var P=new n,L=B(P);this.promise=P,this.resolve=Ae(H,L),this.reject=Ae(X,L)},M.f=ne=function(P){return P===se||P===o?new i(P):ie(P)},!u&&v(D)&&J!==Object.prototype)){s=J.then,F||p(J,"then",function(P,L){var N=this;return new se(function(ee,he){h(s,N,ee,he)}).then(P,L)},{unsafe:!0});try{delete J.constructor}catch{}f&&f(J,Q)}a({global:!0,constructor:!0,wrap:!0,forced:V},{Promise:se}),o=d.Promise,g(se,G,!1,!0),m(G)},7982(r,t,e){e(9432),e(5895),e(2319),e(963),e(3021),e(4932)},963(r,t,e){var n=e(3322),i=e(9529),o=e(5934),s=e(6839),a=e(2227),u=e(9824);n({target:"Promise",stat:!0,forced:e(4165)},{race:function(c){var l=this,d=s.f(l),h=d.reject,p=a(function(){var f=o(l.resolve);u(c,function(g){i(f,l,g).then(d.resolve,h)})});return p.error&&h(p.value),d.promise}})},3021(r,t,e){var n=e(3322),i=e(6839);n({target:"Promise",stat:!0,forced:e(1288).CONSTRUCTOR},{reject:function(o){var s=i.f(this);return(0,s.reject)(o),s.promise}})},4932(r,t,e){var n=e(3322),i=e(7851),o=e(4487),s=e(2458),a=e(1288).CONSTRUCTOR,u=e(3642),c=i("Promise"),l=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(d){return u(l&&this===c?s:this,d)}})},8988(r,t,e){var n=e(3322),i=e(2100),o=e(915);n({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},2764(r,t,e){var n=e(8224),i=e(2100),o=e(2244),s=e(9576),a=e(7571),u=e(1519),c=e(596),l=e(1756).f,d=e(7165),h=e(6251),p=e(8371),f=e(8830),g=e(8617),m=e(6364),y=e(3828),v=e(7091),b=e(253),T=e(9265).enforce,E=e(6941),_=e(7759),O=e(3583),w=e(7930),R=_("match"),C=i.RegExp,A=C.prototype,D=i.SyntaxError,j=o(A.exec),M=o("".charAt),G=o("".replace),V=o("".indexOf),U=o("".slice),F=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,W=/a/g,J=new C(B)!==B,se=g.MISSED_STICKY,Q=g.UNSUPPORTED_Y,ae=n&&(!J||se||O||w||v(function(){return W[R]=!1,C(B)!==B||C(W)===W||String(C(B,"i"))!=="/a/i"}));if(s("RegExp",ae)){for(var te=function(ie,de){var Ee,fe,Le,xe,Ie,Se,De=d(A,this),Me=h(ie),Ae=de===void 0,X=[],H=ie;if(!De&&Me&&Ae&&ie.constructor===te)return ie;if((Me||d(A,ie))&&(ie=ie.source,Ae&&(de=f(H))),ie=ie===void 0?"":p(ie),de=de===void 0?"":p(de),H=ie,O&&"dotAll"in B&&(fe=!!de&&V(de,"s")>-1)&&(de=G(de,/s/g,"")),Ee=de,se&&"sticky"in B&&(Le=!!de&&V(de,"y")>-1)&&Q&&(de=G(de,/y/g,"")),w&&(xe=(function(P){for(var L,N=P.length,ee=0,he="",ge=[],Pe=c(null),be=!1,Ue=!1,Je=0,Be="";ee<N;ee++){if((L=M(P,ee))==="\\"){if(L+=M(P,++ee),!Ue&&M(L,1)==="\\"){he+="\\x5c";continue}}else if(L==="]")be=!1;else if(!be)switch(!0){case L==="[":be=!0;break;case L==="(":he+=L,j(F,U(P,ee+1))?(ee+=2,Ue=!0,Je++):M(P,ee+1)!=="?"&&Je++;continue;case(L===">"&&Ue):if(Be===""||b(Pe,Be))throw new D("Invalid capture group name");Pe[Be]=!0,ge[ge.length]=[Be,Je],Ue=!1,Be="";continue}Ue?Be+=L:he+=L}for(var We=0;We<ge.length;We++)for(var ze="\\k<"+ge[We][0]+">",ve="\\"+ge[We][1];V(he,ze)>-1;)he=G(he,ze,ve);return[he,ge]})(ie),ie=xe[0],X=xe[1]),Ie=a(C(ie,de),De?this:A,te),(fe||Le||X.length)&&(Se=T(Ie),fe&&(Se.dotAll=!0,Se.raw=te((function(P){for(var L,N=P.length,ee=0,he="",ge=!1;ee<N;ee++)(L=M(P,ee))!=="\\"?ge||L!=="."?(L==="["?ge=!0:L==="]"&&(ge=!1),he+=L):he+="[\\s\\S]":he+=L+M(P,++ee);return he})(ie),Ee)),Le&&(Se.sticky=!0),X.length&&(Se.groups=X)),ie!==H)try{u(Ie,"source",H===""?"(?:)":H)}catch{}return Ie},Y=l(C),ne=0;Y.length>ne;)m(te,C,Y[ne++]);A.constructor=te,te.prototype=A,y(i,"RegExp",te,{constructor:!0})}E("RegExp")},7381(r,t,e){var n=e(8224),i=e(3583),o=e(3132),s=e(4966),a=e(9265).get,u=RegExp.prototype,c=TypeError;n&&i&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if(o(this)==="RegExp")return!!a(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},4603(r,t,e){var n=e(3322),i=e(5263);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},1486(r,t,e){var n=e(3322),i=e(5100),o=e(7091);n({target:"Set",proto:!0,real:!0,forced:!e(392)("difference",function(s){return s.size===0})||o(function(){var s={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var c=u++>1;return a.has(1)&&a.clear(),{done:c,value:2}}}}},a=new Set([1,2,3,4]);return a.difference(s).size!==3})},{difference:i})},792(r,t,e){var n=e(3322),i=e(7091),o=e(2778);n({target:"Set",proto:!0,real:!0,forced:!e(392)("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"})},{intersection:o})},833(r,t,e){var n=e(3322),i=e(8125);n({target:"Set",proto:!0,real:!0,forced:!e(392)("isDisjointFrom",function(o){return!o})},{isDisjointFrom:i})},2376(r,t,e){var n=e(3322),i=e(6026);n({target:"Set",proto:!0,real:!0,forced:!e(392)("isSubsetOf",function(o){return o}
4)},{isSubsetOf:i})},9559(r,t,e){var n=e(3322),i=e(979);n({target:"Set",proto:!0,real:!0,forced:!e(392)("isSupersetOf",function(o){return!o})},{isSupersetOf:i})},1868(r,t,e){var n=e(3322),i=e(6054),o=e(8015);n({target:"Set",proto:!0,real:!0,forced:!e(392)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},1670(r,t,e){var n=e(3322),i=e(4360),o=e(8015);n({target:"Set",proto:!0,real:!0,forced:!e(392)("union")||!o("union")},{union:i})},4265(r,t,e){var n=e(3322),i=e(2244),o=e(6034),s=e(6399),a=e(8371),u=e(7091),c=i("".charAt);n({target:"String",proto:!0,forced:u(function(){return"\u{20BB7}".at(-2)!=="\uD842"})},{at:function(l){var d=a(o(this)),h=d.length,p=s(l),f=p>=0?p:h+p;return f<0||f>=h?void 0:c(d,f)}})},6077(r,t,e){var n=e(3322),i=e(2244),o=e(7326),s=RangeError,a=String.fromCharCode,u=String.fromCodePoint,c=i([].join);n({target:"String",stat:!0,arity:1,forced:!!u&&u.length!==1},{fromCodePoint:function(l){for(var d,h=[],p=arguments.length,f=0;p>f;){if(o(d=+arguments[f],1114111)!==d)throw new s(d+" is not a valid code point");h[f++]=d<65536?a(d):a(55296+((d-=65536)>>10),d%1024+56320)}return c(h,"")}})},3384(r,t,e){var n=e(7504).charAt,i=e(8371),o=e(9265),s=e(4132),a=e(3373),u="String Iterator",c=o.set,l=o.getterFor(u);s(String,"String",function(d){c(this,{type:u,string:i(d),index:0})},function(){var d,h=l(this),p=h.string,f=h.index;return f>=p.length?a(void 0,!0):(d=n(p,f),h.index+=d.length,a(d,!1))})},758(r,t,e){var n=e(3322),i=e(9529),o=e(2244),s=e(6034),a=e(5969),u=e(1142),c=e(6251),l=e(8371),d=e(9794),h=e(8830),p=e(5986),f=e(7759),g=e(4487),m=f("replace"),y=TypeError,v=o("".indexOf),b=o("".replace),T=o("".slice),E=Math.max;n({target:"String",proto:!0},{replaceAll:function(_,O){var w,R,C,A,D,j,M,G,V,U,F=s(this),B=0,W="";if(u(_)){if((w=c(_))&&(R=l(s(h(_))),!~v(R,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(C=d(_,m))return i(C,_,F,O);if(g&&w)return b(l(F),_,O)}for(A=l(F),D=l(_),(j=a(O))||(O=l(O)),M=D.length,G=E(1,M),V=v(A,D);V!==-1;)U=j?l(O(D,V,A)):p(D,A,V,[],void 0,O),W+=T(A,B,V)+U,B=V+M,V=V+G>A.length?-1:v(A,D,V+G);return B<A.length&&(W+=T(A,B)),W}})},4724(r,t,e){var n=e(7861),i=e(9529),o=e(2244),s=e(4720),a=e(7091),u=e(4467),c=e(5969),l=e(1142),d=e(6399),h=e(5378),p=e(8371),f=e(6034),g=e(4897),m=e(9794),y=e(5986),v=e(8830),b=e(8686),T=e(7759)("replace"),E=Math.max,_=Math.min,O=o([].concat),w=o([].push),R=o("".indexOf),C=o("".slice),A=function(M){return M===void 0?M:String(M)},D="a".replace(/./,"$0")==="$0",j=!!/./[T]&&/./[T]("a","$0")==="";s("replace",function(M,G,V){var U=j?"$":"$0";return[function(F,B){var W=f(this),J=l(F)?m(F,T):void 0;return J?i(J,F,W,B):i(G,p(W),F,B)},function(F,B){var W=u(this),J=p(F),se=c(B);se||(B=p(B));var Q=p(v(W));if(typeof B=="string"&&!~R(B,U)&&!~R(B,"$<")&&!~R(Q,"y")){var ae=V(G,W,J,B);if(ae.done)return ae.value}var te,Y=!!~R(Q,"g");Y&&(te=!!~R(Q,"u")||!!~R(Q,"v"),W.lastIndex=0);for(var ne,ie=[];(ne=b(W,J))!==null&&(w(ie,ne),Y);)p(ne[0])===""&&(W.lastIndex=g(J,h(W.lastIndex),te));for(var de="",Ee=0,fe=0;fe<ie.length;fe++){for(var Le,xe=p((ne=ie[fe])[0]),Ie=E(_(d(ne.index),J.length),0),Se=[],De=1;De<ne.length;De++)w(Se,A(ne[De]));var Me=ne.groups;if(se){var Ae=O([xe],Se,Ie,J);Me!==void 0&&w(Ae,Me),Le=p(n(B,void 0,Ae))}else Le=y(xe,J,Ie,Se,Me,B);Ie>=Ee&&(de+=C(J,Ee,Ie)+Le,Ee=Ie+xe.length)}return de+C(J,Ee)}]},!!a(function(){var M=/./;return M.exec=function(){var G=[];return G.groups={a:"7"},G},"".replace(M,"$<a>")!=="7"})||!D||j)},3976(r,t,e){var n=e(4832),i=e(4450),o=e(6399),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",function(a){var u=s(this),c=i(u),l=o(a),d=l>=0?l:c+l;return d<0||d>=c?void 0:u[d]})},5008(r,t,e){var n=e(4832),i=e(1169),o=e(9938),s=e(8023),a=e(9529),u=e(2244),c=e(7091),l=n.aTypedArray,d=n.exportTypedArrayMethod,h=u("".slice);d("fill",function(p){var f=arguments.length;l(this);var g=h(s(this),0,3)==="Big"?o(p):+p;return a(i,this,g,f>1?arguments[1]:void 0,f>2?arguments[2]:void 0)},c(function(){var p=0;return new Int8Array(2).fill({valueOf:function(){return p++}}),p!==1}))},4570(r,t,e){var n=e(4832),i=e(1195).findLastIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},5803(r,t,e){var n=e(4832),i=e(1195).findLast,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},6249(r,t,e){var n=e(2100),i=e(9529),o=e(4832),s=e(4450),a=e(9977),u=e(3017),c=e(7091),l=n.RangeError,d=n.Int8Array,h=d&&d.prototype,p=h&&h.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c(function(){var v=new Uint8ClampedArray(2);return i(p,v,{length:1,0:3},1),v[1]!==3}),y=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var v=new d(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});g("set",function(v){f(this);var b=a(arguments.length>
41?arguments[1]:void 0,1),T=u(v);if(m)return i(p,this,T,b);var E=this.length,_=s(T),O=0;if(_+b>E)throw new l("Wrong length");for(;O<_;)this[b+O]=T[O++]},!m||y)},9881(r,t,e){var n=e(2100),i=e(6608),o=e(7091),s=e(5934),a=e(332),u=e(4832),c=e(5185),l=e(3871),d=e(8395),h=e(6419),p=u.aTypedArray,f=u.exportTypedArrayMethod,g=n.Uint16Array,m=g&&i(g.prototype.sort),y=!(!m||o(function(){m(new g(2),null)})&&o(function(){m(new g(2),{})})),v=!!m&&!o(function(){if(d)return d<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var b,T,E=new g(516),_=Array(516);for(b=0;b<516;b++)T=b%4,E[b]=515-b,_[b]=b-2*T+3;for(m(E,function(O,w){return(O/4|0)-(w/4|0)}),b=0;b<516;b++)if(E[b]!==_[b])return!0});f("sort",function(b){return b!==void 0&&s(b),v?m(this,b):a(p(this),(function(T){return function(E,_){return T!==void 0?+T(E,_)||0:_!=_?E!=E?0:-1:E!=E?1:E===0&&_===0?1/E>0?1/_>0?0:1:1/_>0?-1:0:E>_?1:E<_?-1:0}})(b))},!v||y)},2039(r,t,e){var n=e(4450),i=e(4832),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",function(){for(var u=o(this),c=n(u),l=new(a(u))(c),d=0;d<c;d++)l[d]=u[c-d-1];return l})},2768(r,t,e){var n=e(4832),i=e(2244),o=e(5934),s=e(8886),a=n.aTypedArray,u=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,l=i(n.TypedArrayPrototype.sort);c("toSorted",function(d){d!==void 0&&o(d);var h=a(this),p=s(u(h),h);return l(p,d)})},4765(r,t,e){e(347)("Uint8",function(n){return function(i,o,s){return n(this,i,o,s)}})},9357(r,t,e){var n=e(4832),i=e(1859),o=e(4450),s=e(6399),a=e(9938),u=n.aTypedArray,c=n.getTypedArrayConstructor,l=n.exportTypedArrayMethod,d=RangeError,h=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(f){return f===8}})(),p=h&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();l("with",function(f,g){var m=u(this),y=o(m),v=s(f),b=v<0?y+v:v,T=i(m)?a(g):+g;if(b>=y||b<0)throw new d("Incorrect index");for(var E=new(c(m))(y),_=0;_<y;_++)E[_]=_===b?T:m[_];return E},!h||p)},7788(r,t,e){var n=e(3322),i=e(2100),o=e(3853).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},1717(r,t,e){var n=e(2100),i=e(5916),o=e(2084),s=e(148),a=e(1519),u=e(915),c=e(7759)("iterator"),l=s.values,d=function(p,f){if(p){if(p[c]!==l)try{a(p,c,l)}catch{p[c]=l}if(u(p,f,!0),i[f]){for(var g in s)if(p[g]!==s[g])try{a(p,g,s[g])}catch{p[g]=s[g]}}}};for(var h in i)d(n[h]&&n[h].prototype,h);d(o,"DOMTokenList")},2380(r,t,e){e(7788),e(2521)},943(r,t,e){var n=e(3322),i=e(2100),o=e(4966),s=e(8224),a=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(s){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(d){if(this!==i)throw new a("Illegal invocation");u(i,"self",{value:d,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:c},{self:i})}catch{}},2521(r,t,e){var n=e(3322),i=e(2100),o=e(3853).set,s=e(7556),a=i.setImmediate?s(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==a},{setImmediate:a})},3122(r,t,e){e(148),e(6077);var n=e(3322),i=e(2100),o=e(7185),s=e(7851),a=e(9529),u=e(2244),c=e(8224),l=e(3204),d=e(3828),h=e(4966),p=e(4699),f=e(915),g=e(8182),m=e(9265),y=e(6539),v=e(5969),b=e(253),T=e(716),E=e(8023),_=e(4467),O=e(1142),w=e(8371),R=e(596),C=e(2112),A=e(8461),D=e(5031),j=e(3373),M=e(7584),G=e(7759),V=e(332),U=G("iterator"),F="URLSearchParams",B=F+"Iterator",W=m.set,J=m.getterFor(F),se=m.getterFor(B),Q=o("fetch"),ae=o("Request"),te=o("Headers"),Y=ae&&ae.prototype,ne=te&&te.prototype,ie=i.TypeError,de=i.encodeURIComponent,Ee=String.fromCharCode,fe=s("String","fromCodePoint"),Le=parseInt,xe=u("".charAt),Ie=u([].join),Se=u([].push),De=u("".replace),Me=u([].shift),Ae=u([].splice),X=u("".split),H=u("".slice),P=u(/./.exec),L=/\+/g,N=/^[0-9a-f]+$/i,ee=function($,oe){var ue=H($,oe,oe+2);return P(N,ue)?Le(ue,16):NaN},he=function($){for(var oe=0,ue=128;ue>0&&($&ue)!==0;ue>>=1)oe++;return oe},ge=function($){var oe=null,ue=$.length;switch(ue){case 1:oe=$[0];break;case 2:oe=(31&$[0])<<6|63&$[1];break;case 3:oe=(15&$[0])<<12|(63&$[1])<<6|63&$[2];break;case 4:oe=(7&$[0])<<18|(63&$[1])<<12|(63&$[2])<<6|63&$[3]}return oe===null||oe>1114111||oe>=55296&&oe<=57343||oe<(ue>3?65536:ue>2?2048:ue>1?128:0)?null:oe},Pe=function($){for(var oe=($=De($,L," ")).length,ue="",pe=0;pe<oe;){var _e=xe($,pe);if(_e==="%"){if(xe($,pe+1)==="%"||pe+3>oe){ue+="%",pe++;continue}var ke=ee($,pe+1);if(ke!=ke){ue+=_e,pe++;continue}pe+=2;var Ke=he(ke);if(Ke===0)_e=Ee(ke);else{if(Ke===1||Ke>4){ue+="\uFFFD",pe++;continue}for(var Ye=[ke],nt=1;nt<Ke&&!(++pe+3>oe||xe($,pe)!=="%");){var lt=ee($,pe+1);if(lt!=lt||lt>191||lt<128||nt===1&&(ke===224&&lt<160||ke===237&&lt>159||ke===240&&lt<144||ke===244&&lt>143))break;Se(Ye,lt),pe+=2,nt++}if(Ye.length!==Ke){ue+="\uFFFD";continue}var Ut=ge(Ye);if(Ut===null){for(var On=0;On<Ke;On++)ue+="\uFFFD";pe++;continue}_e=fe(Ut)}}ue+=_e,pe++}return ue}
4,be=/[!'()~]|%20/g,Ue={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Je=function($){return Ue[$]},Be=function($){return De(de($),be,Je)},We=g(function($,oe){W(this,{type:B,target:J($).entries,index:0,kind:oe})},F,function(){var $=se(this),oe=$.target,ue=$.index++;if(!oe||ue>=oe.length)return $.target=null,j(void 0,!0);var pe=oe[ue];switch($.kind){case"keys":return j(pe.key,!1);case"values":return j(pe.value,!1)}return j([pe.key,pe.value],!1)},!0),ze=function($){this.entries=[],this.url=null,$!==void 0&&(O($)?this.parseObject($):this.parseQuery(typeof $=="string"?xe($,0)==="?"?H($,1):$:w($)))};ze.prototype={type:F,bindURL:function($){this.url=$,this.update()},parseObject:function($){var oe,ue,pe,_e,ke,Ke,Ye,nt=this.entries,lt=D($);if(lt)for(ue=(oe=A($,lt)).next;!(pe=a(ue,oe)).done;){if(ke=(_e=A(_(pe.value))).next,(Ke=a(ke,_e)).done||(Ye=a(ke,_e)).done||!a(ke,_e).done)throw new ie("Expected sequence with length 2");Se(nt,{key:w(Ke.value),value:w(Ye.value)})}else for(var Ut in $)b($,Ut)&&Se(nt,{key:Ut,value:w($[Ut])})},parseQuery:function($){if($)for(var oe,ue,pe=this.entries,_e=X($,"&"),ke=0;ke<_e.length;)(oe=_e[ke++]).length&&(ue=X(oe,"="),Se(pe,{key:Pe(Me(ue)),value:Pe(Ie(ue,"="))}))},serialize:function(){for(var $,oe=this.entries,ue=[],pe=0;pe<oe.length;)$=oe[pe++],Se(ue,Be($.key)+"="+Be($.value));return Ie(ue,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ve=function(){y(this,et);var $=W(this,new ze(arguments.length>0?arguments[0]:void 0));c||(this.size=$.entries.length)},et=ve.prototype;if(p(et,{append:function($,oe){var ue=J(this);M(arguments.length,2),Se(ue.entries,{key:w($),value:w(oe)}),c||this.size++,ue.updateURL()},delete:function($){for(var oe=J(this),ue=M(arguments.length,1),pe=oe.entries,_e=w($),ke=ue<2?void 0:arguments[1],Ke=ke===void 0?ke:w(ke),Ye=0;Ye<pe.length;){var nt=pe[Ye];nt.key!==_e||Ke!==void 0&&nt.value!==Ke?Ye++:Ae(pe,Ye,1)}c||(this.size=pe.length),oe.updateURL()},get:function($){var oe=J(this).entries;M(arguments.length,1);for(var ue=w($),pe=0;pe<oe.length;pe++)if(oe[pe].key===ue)return oe[pe].value;return null},getAll:function($){var oe=J(this).entries;M(arguments.length,1);for(var ue=w($),pe=[],_e=0;_e<oe.length;_e++)oe[_e].key===ue&&Se(pe,oe[_e].value);return pe},has:function($){for(var oe=J(this).entries,ue=M(arguments.length,1),pe=w($),_e=ue<2?void 0:arguments[1],ke=_e===void 0?_e:w(_e),Ke=0;Ke<oe.length;){var Ye=oe[Ke++];if(Ye.key===pe&&(ke===void 0||Ye.value===ke))return!0}return!1},set:function($,oe){var ue=J(this);M(arguments.length,2);for(var pe,_e=ue.entries,ke=!1,Ke=w($),Ye=w(oe),nt=0;nt<_e.length;nt++)(pe=_e[nt]).key===Ke&&(ke?Ae(_e,nt--,1):(ke=!0,pe.value=Ye));ke||Se(_e,{key:Ke,value:Ye}),c||(this.size=_e.length),ue.updateURL()},sort:function(){var $=J(this);V($.entries,function(oe,ue){return oe.key>ue.key?1:-1}),$.updateURL()},forEach:function($){for(var oe,ue=J(this).entries,pe=T($,arguments.length>1?arguments[1]:void 0),_e=0;_e<ue.length;)pe((oe=ue[_e++]).value,oe.key,this)},keys:function(){return new We(this,"keys")},values:function(){return new We(this,"values")},entries:function(){return new We(this,"entries")}},{enumerable:!0}),d(et,U,et.entries,{name:"entries"}),d(et,"toString",function(){return J(this).serialize()},{enumerable:!0}),c&&h(et,"size",{get:function(){return J(this).entries.length},configurable:!0,enumerable:!0}),f(ve,F),n({global:!0,constructor:!0,forced:!l},{URLSearchParams:ve}),!l&&v(te)){var _t=u(ne.has),Tt=u(ne.set),ht=function($){if(O($)){var oe,ue=$.body;if(E(ue)===F)return oe=$.headers?new te($.headers):new te,_t(oe,"content-type")||Tt(oe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),R($,{body:C(0,w(ue)),headers:C(0,oe)})}return $};if(v(Q)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function($){return Q($,arguments.length>1?ht(arguments[1]):{})}}),v(ae)){var pt=function($){return y(this,Y),new ae($,arguments.length>1?ht(arguments[1]):{})};Y.constructor=pt,pt.prototype=Y,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pt})}}r.exports={URLSearchParams:ve,getState:J}},9679(r,t,e){var n=e(3828),i=e(2244),o=e(8371),s=e(7584),a=URLSearchParams,u=a.prototype,c=i(u.append),l=i(u.delete),d=i(u.forEach),h=i([].push),p=new a("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&n(u,"delete",function(f){var g=arguments.length,m=g<2?void 0:arguments[1];if(g&&m===void 0)return l(this,f);var y=[];d(this,function(O,w){h(y,{key:w,value:O})}),s(g,1);for(var v,b=o(f),T=o(m),E=0,_=y.length;E<_;)l(this,(v=y[E]).key),E++;for(E=0;E<_;)(v=y[E++]).key===b&&v.value===T||c(this,v.key,v.value)},{enumerable:!0,unsafe:!0})},9130(r,t,e){var n=e(3828),i=e(2244),o=e(8371),s=e(7584),a=URLSearchParams,u=a.prototype,c=i(u.getAll),l=i(u.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||n(u,"has",function(h){var p=arguments.length,f=p<2?void 0:arguments[1];if(p&&f===void 0)return l(this,h);var g=c(this,h);s(p,1);for(var m=o(f),y=0;y<g.length;)if(g[y++]===m)return!0;return!1},{enumerable:!0,unsafe:!0})},972(r,t,e){e(3122)},9597(r,t,e){var n=e(8224),i=e(2244),o=e(4966),s=URLSearchParams.prototype,a=i(s.forEach);n&&!("size"in s)&&o(s,"size",{get:function(){var u=0;return a(this,function(){u++}),u},configurable:!0,enumerable:!0})},1690(r,t,e){e(3384);var n,i=e(3322),o=e(8224),s=e(3204),a=e(2100),u=e(716),c=e(2244),l=e(3828),d=e(4966),h=e(6539),p=e(253),f=e(105),g=e(88),m=e(8348),y=e(7504).codeAt,v=e(3465),b=e(8371),T=e(915),E=e(7584),_=e(3122),O=e(9265),w=O.set,R=O.getterFor("URL"),C=_.URLSearchParams,A=_.getState,D=a.URL,j=a.TypeError,M=a.encodeURIComponent,G=a.parseInt,V=Math.floor,U=Math.pow,F=c("".charAt),B=c(/./.exec),W=c([].join),J=c(1.1.toString),se=c([].pop),Q=c([].push),ae=c("".replace),te=c([].shift),Y=c("".split),ne=c("".slice),ie=c("".toLowerCase),de=c([].unshift),Ee="Invalid scheme",fe="Invalid host",Le="Invalid port",xe=/[a-z]/i,Ie=/[\d+\-.a-z]/i,Se=/\d/,De=/^0x/i,Me=/^[0-7]+$/,Ae=/^\d+$/,X=/^[\da-f]+$/i,H=/[\0\t\n\r #%/:<>?@[\\\]^|]/,P=/[\0\t\n\r #/:<>?@[\\\]^|]/,L=/^[\u0000-\u0020]+/,N=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ee=/[\t\n\r]/g,he=function(I){var Z,K,we,q;if(typeof I=="number"){for(Z=[],K=0;K<4;K++)de(Z,I%256),I=V(I/256);return W(Z,".")}if(typeof I=="object"){for(Z="",we=(function(Fe){for(var Re=null,x=1,re=null,ye=0,le=0;le<8;le++)Fe[le]!==0?(ye>x&&(Re=re,x=ye),re=null,ye=0):(re===null&&(re=le),++ye);return ye>x?re:Re})(I),K=0;K<8;K++)q&&I[K]===0||(q&&(q=!1),we===K?(Z+=K?":":"::",q=!0):(Z+=J(I[K],16),K<7&&
4(Z+=":")));return"["+Z+"]"}return I},ge={},Pe=f({},ge,{" ":1,'"':1,"#":1,"<":1,">":1}),be=f({},Pe,{"'":1}),Ue=f({},ge,{" ":1,'"':1,"<":1,">":1,"`":1}),Je=f({},Ue,{"#":1,"?":1,"{":1,"}":1,"^":1}),Be=f({},Je,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),We=function(I,Z){var K=y(I,0);return K>=32&&K<127&&!p(Z,I)?I:I==="'"&&p(Z,I)?"%27":M(I)},ze={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(I,Z){var K;return I.length===2&&B(xe,F(I,0))&&((K=F(I,1))===":"||!Z&&K==="|")},et=function(I){var Z;return I.length>1&&ve(ne(I,0,2))&&(I.length===2||(Z=F(I,2))==="/"||Z==="\\"||Z==="?"||Z==="#")},_t=function(I){return I==="."||ie(I)==="%2e"},Tt=function(I){return(I=ie(I))===".."||I==="%2e."||I===".%2e"||I==="%2e%2e"},ht={},pt={},$={},oe={},ue={},pe={},_e={},ke={},Ke={},Ye={},nt={},lt={},Ut={},On={},$o={},oi={},Rn={},jt={},Wo={},vn={},Xt={},si=function(I,Z,K){var we,q,Fe,Re=b(I);if(Z){if(q=this.parse(Re))throw new j(q);this.searchParams=null}else{if(K!==void 0&&(we=new si(K,!0)),q=this.parse(Re,null,we))throw new j(q);(Fe=A(new C)).bindURL(this),this.searchParams=Fe}};si.prototype={type:"URL",parse:function(I,Z,K){var we,q,Fe,Re,x=this,re=Z||ht,ye=0,le="",Bt=!1,tt=!1,rt=!1;for(I=b(I),Z||(x.scheme="",x.username="",x.password="",x.host=null,x.port=null,x.path=[],x.query=null,x.fragment=null,x.cannotBeABaseURL=!1,I=ae(I,L,""),I=ae(I,N,"$1")),I=ae(I,ee,""),we=g(I);ye<=we.length;){switch(q=we[ye],re){case ht:if(!q||!B(xe,q)){if(Z)return Ee;re=$;continue}le+=ie(q),re=pt;break;case pt:if(q&&B(Ie,q))le+=ie(q);else{if(q!==":"){if(Z)return Ee;le="",re=$,ye=0;continue}if(Z&&(x.isSpecial()!==p(ze,le)||le==="file"&&(x.includesCredentials()||x.port!==null)||x.scheme==="file"&&x.host===""))return;if(x.scheme=le,Z)return void(x.isSpecial()&&ze[x.scheme]===x.port&&(x.port=null));le="",x.scheme==="file"?re=On:x.isSpecial()&&K&&K.scheme===x.scheme?re=oe:x.isSpecial()?re=ke:we[ye+1]==="/"?(re=ue,ye++):(x.cannotBeABaseURL=!0,Q(x.path,""),re=Wo)}break;case $:if(!K||K.cannotBeABaseURL&&q!=="#")return Ee;if(K.cannotBeABaseURL&&q==="#"){x.scheme=K.scheme,x.path=m(K.path),x.query=K.query,x.fragment="",x.cannotBeABaseURL=!0,re=Xt;break}re=K.scheme==="file"?On:pe;continue;case oe:if(q!=="/"||we[ye+1]!=="/"){re=pe;continue}re=Ke,ye++;break;case ue:if(q==="/"){re=Ye;break}re=jt;continue;case pe:if(x.scheme=K.scheme,q===n)x.username=K.username,x.password=K.password,x.host=K.host,x.port=K.port,x.path=m(K.path),x.query=K.query;else if(q==="/"||q==="\\"&&x.isSpecial())re=_e;else if(q==="?")x.username=K.username,x.password=K.password,x.host=K.host,x.port=K.port,x.path=m(K.path),x.query="",re=vn;else{if(q!=="#"){x.username=K.username,x.password=K.password,x.host=K.host,x.port=K.port,x.path=m(K.path),x.path.length&&x.path.length--,re=jt;continue}x.username=K.username,x.password=K.password,x.host=K.host,x.port=K.port,x.path=m(K.path),x.query=K.query,x.fragment="",re=Xt}break;case _e:if(!x.isSpecial()||q!=="/"&&q!=="\\"){if(q!=="/"){x.username=K.username,x.password=K.password,x.host=K.host,x.port=K.port,re=jt;continue}re=Ye}else re=Ke;break;case ke:if(re=Ke,q!=="/"||we[ye+1]!=="/")continue;ye++;break;case Ke:if(q!=="/"&&q!=="\\"){re=Ye;continue}break;case Ye:if(q==="@"){Bt&&(le="%40"+le),Bt=!0,Fe=g(le);for(var Pt=0;Pt<Fe.length;Pt++){var kt=Fe[Pt];if(kt!==":"||rt){var at=We(kt,Be);rt?x.password+=at:x.username+=at}else rt=!0}le=""}else if(q===n||q==="/"||q==="?"||q==="#"||q==="\\"&&x.isSpecial()){if(Bt&&le==="")return"Invalid authority";ye-=g(le).length+1,le="",re=nt}else le+=q;break;case nt:case lt:if(Z&&x.scheme==="file"){re=oi;continue}if(q!==":"||tt){if(q===n||q==="/"||q==="?"||q==="#"||q==="\\"&&x.isSpecial()){if(x.isSpecial()&&le==="")return fe;if(Z&&le===""&&(x.includesCredentials()||x.port!==null))return;if(Re=x.parseHost(le))return Re;if(le="",re=Rn,Z)return;continue}q==="["?tt=!0:q==="]"&&(tt=!1),le+=q}else{if(le==="")return fe;if(Z===lt)return;if(Re=x.parseHost(le))return Re;le="",re=Ut}break;case Ut:if(!B(Se,q)){if(q===n||q==="/"||q==="?"||q==="#"||q==="\\"&&x.isSpecial()||Z){if(le!==""){var ai=G(le,10);if(ai>65535)return Le;x.port=x.isSpecial()&&ai===ze[x.scheme]?null:ai,le=""}if(Z)return;re=Rn;continue}return Le}le+=q;break;case On:if(x.scheme="file",x.host="",q==="/"||q==="\\")re=$o;else{if(!K||K.scheme!=="file"){re=jt;continue}switch(q){case n:x.host=K.host,x.path=m(K.path),x.query=K.query;break;case"?":x.host=K.host,x.path=m(K.path),x.query="",re=vn;break;case"#":x.host=K.host,x.path=m(K.path),x.query=K.query,x.fragment="",re=Xt;break;default:x.host=K.host,et(W(m(we,ye),""))||(x.path=m(K.path),x.shortenPath()),re=jt;continue}}break;case $o:if(q==="/"||q==="\\"){re=oi;break}K&&K.scheme==="file"&&(x.host=K.host,!et(W(m(we,ye),""))&&ve(K.path[0],!0)&&Q(x.path,K.path[0])),re=jt;continue;case oi:if(q===n||q==="/"||q==="\\"||q==="?"||q==="#"){if(!Z&&ve(le))re=jt;else if(le===""){if(x.host="",Z)return;re=Rn}else{if(Re=x.parseHost(le))return Re;if(x.host==="localhost"&&(x.host=""),Z)return;le="",re=Rn}continue}le+=q;break;case Rn:if(x.isSpecial()){if(re=jt,q!=="/"&&q!=="\\")continue}else if(Z||q!=="?")if(Z||q!=="#"){if(q!==n&&(re=jt,q!=="/"))continue}else x.fragment="",re=Xt;else x.query="",re=vn;break;case jt:if(q===n||q==="/"||q==="\\"&&x.isSpecial()||!Z&&(q==="?"||q==="#")){if(Tt(le)?(x.shortenPath(),q==="/"||q==="\\"&&x.isSpecial()||Q(x.path,"")):_t(le)?q==="/"||q==="\\"&&x.isSpecial()||Q(x.path,""):(x.scheme==="file"&&!x.path.length&&ve(le)&&(x.host!==null&&x.host!==""&&(x.host=""),le=F(le,0)+":"),Q(x.path,le)),le="",x.scheme==="file"&&(q===n||q==="?"||q==="#"))for(;x.path.length>1&&x.path[0]==="";)te(x.path);q==="?"?(x.query="",re=vn):q==="#"&&(x.fragment="",re=Xt)}else le+=We(q,Je);break;case Wo:q==="?"?(x.query="",re=vn):q==="#"?(x.fragment="",re=Xt):q!==n&&(x.path[0]+=We(q,ge));break;case vn:Z||q!=="#"?q!==n&&(x.query+=We(q,x.isSpecial()?be:Pe)):(x.fragment="",re=Xt);break;case Xt:q!==n&&(x.fragment+=We(q,Ue))}ye++}},parseHost:function(I){var Z,K,we;if(F(I,0)==="["){if(F(I,I.length-1)!=="]"||(Z=(function(q){var Fe,Re,x,re,ye,le,Bt,tt=[0,0,0,0,0,0,0,0],rt=0,Pt=null,kt=0,at=function(){return F(q,kt)};if(at()===":"){if(F(q,1)!==":")return;kt+=2,Pt=++rt}for(;at();){if(rt===8)return;if(at()!==":"){for(Fe=Re=0;Re<4&&B(X,at());)Fe=16*Fe+G(at(),16),kt++,Re++;if(at()==="."){if(Re===0||(kt-=Re,rt>6))return;for(x=0;at();){if(re=null,x>0){if(!(at()==="."&&x<4))return;kt++}if(!B(Se,at()))return;for(;
4B(Se,at());){if(ye=G(at(),10),re===null)re=ye;else{if(re===0)return;re=10*re+ye}if(re>255)return;kt++}tt[rt]=256*tt[rt]+re,++x!==2&&x!==4||rt++}if(x!==4)return;break}if(at()===":"){if(kt++,!at())return}else if(at())return;tt[rt++]=Fe}else{if(Pt!==null)return;kt++,Pt=++rt}}if(Pt!==null)for(le=rt-Pt,rt=7;rt!==0&&le>0;)Bt=tt[rt],tt[rt--]=tt[Pt+le-1],tt[Pt+--le]=Bt;else if(rt!==8)return;return tt})(ne(I,1,-1)),!Z))return fe;this.host=Z}else if(this.isSpecial()){if(I=v(I),B(H,I))return fe;if((function(q){var Fe,Re,x=Y(q,".");if(x[x.length-1]===""){if(x.length===1)return!1;x.length--}return Fe=x[x.length-1],!!B(Ae,Fe)||!!B(De,Fe)&&((Re=ne(Fe,2))===""||!!B(X,Re))})(I)){if(Z=(function(q){var Fe,Re,x,re,ye,le,Bt,tt=Y(q,".");if(tt.length&&tt[tt.length-1]===""&&tt.length--,(Fe=tt.length)>4)return null;for(Re=[],x=0;x<Fe;x++){if((re=tt[x])==="")return null;if(ye=10,re.length>1&&F(re,0)==="0"&&(ye=B(De,re)?16:8,re=ne(re,ye===8?1:2)),re==="")le=0;else{if(!B(ye===10?Ae:ye===8?Me:X,re))return null;le=G(re,ye)}Q(Re,le)}for(x=0;x<Fe;x++)if(le=Re[x],x===Fe-1){if(le>=U(256,5-Fe))return null}else if(le>255)return null;for(Bt=se(Re),x=0;x<Re.length;x++)Bt+=Re[x]*U(256,3-x);return Bt})(I),Z===null)return fe;this.host=Z}else this.host=I}else{if(B(P,I))return fe;for(Z="",K=g(I),we=0;we<K.length;we++)Z+=We(K[we],ge);this.host=Z}},cannotHaveUsernamePasswordPort:function(){return this.host===null||this.host===""||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return p(ze,this.scheme)},shortenPath:function(){var I=this.path,Z=I.length;!Z||this.scheme==="file"&&Z===1&&ve(I[0],!0)||I.length--},serialize:function(){var I=this,Z=I.scheme,K=I.username,we=I.password,q=I.host,Fe=I.port,Re=I.path,x=I.query,re=I.fragment,ye=Z+":";return q!==null?(ye+="//",I.includesCredentials()&&(ye+=K+(we?":"+we:"")+"@"),ye+=he(q),Fe!==null&&(ye+=":"+Fe)):Z==="file"&&(ye+="//"),q===null&&!I.cannotBeABaseURL&&Re.length>1&&Re[0]===""&&(ye+="/."),ye+=I.cannotBeABaseURL?Re[0]:Re.length?"/"+W(Re,"/"):"",x!==null&&(ye+="?"+x),re!==null&&(ye+="#"+re),ye},setHref:function(I){var Z=this.parse(I);if(Z)throw new j(Z);this.searchParams.update()},getOrigin:function(){var I=this.scheme,Z=this.port;if(I==="blob")try{return new Ln(this.path[0]).origin}catch{return"null"}return I!=="file"&&this.isSpecial()?I+"://"+he(this.host)+(Z!==null?":"+Z:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(I){this.parse(b(I)+":",ht)},getUsername:function(){return this.username},setUsername:function(I){var Z=g(b(I));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var K=0;K<Z.length;K++)this.username+=We(Z[K],Be)}},getPassword:function(){return this.password},setPassword:function(I){var Z=g(b(I));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var K=0;K<Z.length;K++)this.password+=We(Z[K],Be)}},getHost:function(){var I=this.host,Z=this.port;return I===null?"":Z===null?he(I):he(I)+":"+Z},setHost:function(I){this.cannotBeABaseURL||this.parse(I,nt)},getHostname:function(){var I=this.host;return I===null?"":he(I)},setHostname:function(I){this.cannotBeABaseURL||this.parse(I,lt)},getPort:function(){var I=this.port;return I===null?"":b(I)},setPort:function(I){this.cannotHaveUsernamePasswordPort()||((I=b(I))===""?this.port=null:this.parse(I,Ut))},getPathname:function(){var I=this.path;return this.cannotBeABaseURL?I[0]:I.length?"/"+W(I,"/"):""},setPathname:function(I){this.cannotBeABaseURL||(this.path=[],this.parse(I,Rn))},getSearch:function(){var I=this.query;return I?"?"+I:""},setSearch:function(I){(I=b(I))===""?this.query=null:(F(I,0)==="?"&&(I=ne(I,1)),this.query="",this.parse(I,vn)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var I=this.fragment;return I?"#"+I:""},setHash:function(I){(I=b(I))!==""?(F(I,0)==="#"&&(I=ne(I,1)),this.fragment="",this.parse(I,Xt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ln=function(I){var Z=h(this,ft),K=E(arguments.length,1)>1?arguments[1]:void 0,we=w(Z,new si(I,!1,K));o||(Z.href=we.serialize(),Z.origin=we.getOrigin(),Z.protocol=we.getProtocol(),Z.username=we.getUsername(),Z.password=we.getPassword(),Z.host=we.getHost(),Z.hostname=we.getHostname(),Z.port=we.getPort(),Z.pathname=we.getPathname(),Z.search=we.getSearch(),Z.searchParams=we.getSearchParams(),Z.hash=we.getHash())},ft=Ln.prototype,Rt=function(I,Z){return{get:function(){return R(this)[I]()},set:Z&&function(K){return R(this)[Z](K)},configurable:!0,enumerable:!0}};if(o&&(d(ft,"href",Rt("serialize","setHref")),d(ft,"origin",Rt("getOrigin")),d(ft,"protocol",Rt("getProtocol","setProtocol")),d(ft,"username",Rt("getUsername","setUsername")),d(ft,"password",Rt("getPassword","setPassword")),d(ft,"host",Rt("getHost","setHost")),d(ft,"hostname",Rt("getHostname","setHostname")),d(ft,"port",Rt("getPort","setPort")),d(ft,"pathname",Rt("getPathname","setPathname")),d(ft,"search",Rt("getSearch","setSearch")),d(ft,"searchParams",Rt("getSearchParams")),d(ft,"hash",Rt("getHash","setHash"))),l(ft,"toJSON",function(){return R(this).serialize()},{enumerable:!0}),l(ft,"toString",function(){return R(this).serialize()},{enumerable:!0}),D){var Ko=D.createObjectURL,Yo=D.revokeObjectURL;Ko&&l(Ln,"createObjectURL",u(Ko,D)),Yo&&l(Ln,"revokeObjectURL",u(Yo,D))}T(Ln,"URL"),i({global:!0,constructor:!0,forced:!s,sham:!o},{URL:Ln})},5732(r,t,e){e(1690)},2940(r,t,e){var n=e(3322),i=e(9529);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})}},Qo={};function z(r){var t=Qo[r];if(t!==void 0)return t.exports;var e=Qo[r]={exports:{}};return Hu[r].call(e.exports,e,e.exports,z),e.exports}z.d=(r,t)=>{for(var e in t)z.o(t,e)&&!z.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},z.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}
4})(),z.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),z.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};z(5731),z(5505),z(8364),z(6089),z(5166),z(1717),z(6469),z(7982);var k=z(6547),qu=z(576),Ht=z(6096),es=z(5691),Or=z(387),Ra=z(1923),Do=z(5077),qe=z(3837),La=z(9457),zu=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof z.g=="object"?z.g:{},lr=Symbol.for("io.opentelemetry.js.api.logs"),Hn=zu,ts=(function(){function r(){}return r.prototype.emit=function(t){},r})(),ns=(new ts,new((function(){function r(){}return r.prototype.getLogger=function(t,e,n){return new ts},r})())),Gu=(function(){function r(){}return r.getInstance=function(){return this._instance||(this._instance=new r),this._instance},r.prototype.setGlobalLoggerProvider=function(t){return Hn[lr]?this.getLoggerProvider():(Hn[lr]=(e=1,n=t,i=ns,function(o){return o===e?n:i}),t);var e,n,i},r.prototype.getLoggerProvider=function(){var t,e;return(e=(t=Hn[lr])===null||t===void 0?void 0:t.call(Hn,1))!==null&&e!==void 0?e:ns},r.prototype.getLogger=function(t,e,n){return this.getLoggerProvider().getLogger(t,e,n)},r.prototype.disable=function(){delete Hn[lr]},r})(),Ca=Gu.getInstance(),yn=z(6036),dr,Un,sn=function(){return sn=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},sn.apply(this,arguments)},Xu=function(r,t,e,n){return new(e||(e=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(l){o(l)}}function a(c){try{u(n.throw(c))}catch(l){o(l)}}function u(c){var l;c.done?i(c.value):(l=c.value,l instanceof e?l:new e(function(d){d(l)})).then(s,a)}u((n=n.apply(r,t||[])).next())})},$u=function(r,t){var e,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return(function(l){if(e)throw new TypeError("Generator is already executing.");for(;s;)try{if(e=1,n&&(i=2&l[0]?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,n=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(l[0]===6&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(r,s)}catch(d){l=[6,d],n=0}finally{e=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}})([u,c])}}},Wu=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s},Ai=(function(){function r(t,e){var n,i=this;this._attributes=t,this.asyncAttributesPending=e!=null,this._syncAttributes=(n=this._attributes)!==null&&n!==void 0?n:{},this._asyncAttributesPromise=e?.then(function(o){return i._attributes=Object.assign({},i._attributes,o),i.asyncAttributesPending=!1,o},function(o){return k.s.debug("a resource's async attributes promise rejected: %s",o),i.asyncAttributesPending=!1,{}})}return r.empty=function(){return r.EMPTY},r.default=function(){var t;return new r(((t={})[yn.AV]="unknown_service",t[yn.Pl]=Or.q[yn.Pl],t[yn.$L]=Or.q[yn.$L],t[yn.y$]=Or.q[yn.y$],t))},Object.defineProperty(r.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&k.s.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),r.prototype.waitForAsyncAttributes=function(){return Xu(this,void 0,void 0,function(){return $u(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},r.prototype.merge=function(t){var e,n=this;if(!t)return this;var i=sn(sn({},this._syncAttributes),(e=t._syncAttributes)!==null&&e!==void 0?e:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new r(i);var o=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(s){var a,u=Wu(s,2),c=u[0],l=u[1];return sn(sn(sn(sn({},n._syncAttributes),c),(a=t._syncAttributes)!==null&&a!==void 0?a:t.attributes),l)});return new r(i,o)}
4,r.EMPTY=new r({}),r})(),jn=z(7722),me=z(5339),In=z(1347),xa=z(1431),ln=z(9239),Jn=z(2874),Qt=z(6446),Ku=z(2168),Yu=(function(){function r(t,e){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=(0,In._)();this._maxExportBatchSize=typeof e?.maxExportBatchSize=="number"?e.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof e?.maxQueueSize=="number"?e.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof e?.scheduledDelayMillis=="number"?e.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof e?.exportTimeoutMillis=="number"?e.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new xa.I(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(k.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return r.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},r.prototype.onStart=function(t,e){},r.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&jn.X.SAMPLED)!==0&&this._addToBuffer(t)},r.prototype.shutdown=function(){return this._shutdownOnce.call()},r.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},r.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize)return this._droppedSpansCount===0&&k.s.debug("maxQueueSize reached, dropping spans"),void this._droppedSpansCount++;this._droppedSpansCount>0&&(k.s.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},r.prototype._flushAll=function(){var t=this;return new Promise(function(e,n){for(var i=[],o=0,s=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);o<s;o++)i.push(t._flushOneBatch());Promise.all(i).then(function(){e()}).catch(n)})},r.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(e,n){var i=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);me._.with((0,ln.M1)(me._.active()),function(){var o;t._finishedSpans.length<=t._maxExportBatchSize?(o=t._finishedSpans,t._finishedSpans=[]):o=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var s=function(){return t._exporter.export(o,function(d){var h;clearTimeout(i),d.code===Jn.V.SUCCESS?e():n((h=d.error)!==null&&h!==void 0?h:new Error("BatchSpanProcessor: span export failed"))})},a=null,u=0,c=o.length;u<c;u++){var l=o[u];l.resource.asyncAttributesPending&&l.resource.waitForAsyncAttributes&&(a!=null||(a=[]),a.push(l.resource.waitForAsyncAttributes()))}a===null?s():Promise.all(a).then(s,function(d){(0,Qt.s)(d),n(d)})})})},r.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var e=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){t._isExporting=!1,(0,Qt.s)(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(function(){return e()},this._scheduledDelayMillis),(0,Ku.K)(this._timer))}},r.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},r})(),Zu=(dr=function(r,t){return dr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},dr(r,t)},function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}dr(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}),Aa=(function(r){function t(e,n){var i=r.call(this,e,n)||this;return i.onInit(n),i}return Zu(t,r),t.prototype.onInit=function(e){var n=this;e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush().catch(function(i){(0,Qt.s)(i)})},this._pageHideListener=function(){n.forceFlush().catch(function(i){(0,Qt.s)(i)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t})(Yu);(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Un||(Un={}));var Bn=(function(){function r(){}return r.prototype.shouldSample=function(){return{decision:Un.NOT_RECORD}},r.prototype.toString=function(){return"AlwaysOffSampler"},r})(),en=(function(){function r(){}return r.prototype.shouldSample=function(){return{decision:Un.RECORD_AND_SAMPLED}},r.prototype.toString=function(){return"AlwaysOnSampler"},r})(),Ju=z(7844),Qu=function(r,t,e,n){return new(e||(e=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(l){o(l)}}function a(c){try{u(n.throw(c))}catch(l){o(l)}}function u(c){var l;c.done?i(c.value):(l=c.value,l instanceof e?l:new e(function(d){d(l)})).then(s,a)}u((n=n.apply(r,t||[])).next())})},ec=function(r,t){var e,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return(function(l){if(e)throw new TypeError("Generator is already executing.");for(;s;)try{if(e=1,n&&(i=2&l[0]?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,n=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(l[0]===6&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(r,s)}catch(d){l=[6,d],n=0}finally{e=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}})([u,c])}}},tc=(function(){function r(t){this._exporter=t,this._shutdownOnce=new xa.I(this._shutdown,this),this._unresolvedExports=new Set}return r.prototype.forceFlush=function(){return Qu(this,void 0,void 0,function(){return ec(this,function(t){switch(t.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return t.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:t.sent(),t.label=3;case 3:return[2]}})})},r.prototype.onStart=function(t,e){},r.prototype.onEnd=function(t){var e,n,i=this;if(!this._shutdownOnce.isCalled&&(t.spanContext().traceFlags&jn.X.SAMPLED)!==0){var o=function(){return Ju.internal._export(i._exporter,[t]).then(function(a){var u;a.code!==Jn.V.SUCCESS&&(0,Qt.s)((u=a.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+a+")"))}).catch(function(a){(0,Qt.s)(a)})};if(t.resource.asyncAttributesPending){var s=(n=(e=t.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(e).then(function(){return s!=null&&i._unresolvedExports.delete(s),o()},function(a){return(0,Qt.s)(a)});s!=null&&this._unresolvedExports.add(s)}else o()}},r.prototype.shutdown=function(){return this._shutdownOnce.call()},r.prototype._shutdown=function(){return this._exporter.shutdown()},r})(),Ne=z(8958),nc=function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},rc=(function(){function r(){}
4return r.prototype.export=function(t,e){return this._sendSpans(t,e)},r.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},r.prototype.forceFlush=function(){return Promise.resolve()},r.prototype._exportInfo=function(t){var e;return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationLibrary,traceId:t.spanContext().traceId,parentId:t.parentSpanId,traceState:(e=t.spanContext().traceState)===null||e===void 0?void 0:e.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:(0,Ne.w_)(t.startTime),duration:(0,Ne.w_)(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}},r.prototype._sendSpans=function(t,e){var n,i;try{for(var o=nc(t),s=o.next();!s.done;s=o.next()){var a=s.value;console.dir(this._exportInfo(a),{depth:3})}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}if(e)return e({code:Jn.V.SUCCESS})},r})(),Pa=z(4624),Rr=(function(){function r(t){var e,n,i,o;this._root=t.root,this._root||((0,Qt.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new en),this._remoteParentSampled=(e=t.remoteParentSampled)!==null&&e!==void 0?e:new en,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new Bn,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new en,this._localParentNotSampled=(o=t.localParentNotSampled)!==null&&o!==void 0?o:new Bn}return r.prototype.shouldSample=function(t,e,n,i,o,s){var a=qe.u.getSpanContext(t);return a&&(0,Pa.YA)(a)?a.isRemote?a.traceFlags&jn.X.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,i,o,s):this._remoteParentNotSampled.shouldSample(t,e,n,i,o,s):a.traceFlags&jn.X.SAMPLED?this._localParentSampled.shouldSample(t,e,n,i,o,s):this._localParentNotSampled.shouldSample(t,e,n,i,o,s):this._root.shouldSample(t,e,n,i,o,s)},r.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},r})();function ri(r){let t={},e=r.length;for(let n=0;n<e;n++){let i=r[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var ic="cloud.provider",oc="cloud.account.id",sc="cloud.region",ac="cloud.availability_zone",uc="cloud.platform",cc="aws.ecs.container.arn",lc="aws.ecs.cluster.arn",dc="aws.ecs.launchtype",hc="aws.ecs.task.arn",pc="aws.ecs.task.family",fc="aws.ecs.task.revision",gc="aws.eks.cluster.arn",mc="aws.log.group.names",vc="aws.log.group.arns",yc="aws.log.stream.names",bc="aws.log.stream.arns",Ec="container.name",_c="container.id",Tc="container.runtime",Sc="container.image.name",wc="container.image.tag",Oc="deployment.environment",Rc="device.id",Lc="device.model.identifier",Cc="device.model.name",xc="faas.name",Ac="faas.id",Pc="faas.version",kc="faas.instance",Ic="faas.max_memory",Mc="host.id",Nc="host.name",Dc="host.type",Uc="host.arch",jc="host.image.name",Bc="host.image.id",Fc="host.image.version",Vc="k8s.cluster.name",Hc="k8s.node.name",qc="k8s.node.uid",zc="k8s.namespace.name",Gc="k8s.pod.uid",Xc="k8s.pod.name",$c="k8s.container.name",Wc="k8s.replicaset.uid",Kc="k8s.replicaset.name",Yc="k8s.deployment.uid",Zc="k8s.deployment.name",Jc="k8s.statefulset.uid",Qc="k8s.statefulset.name",el="k8s.daemonset.uid",tl="k8s.daemonset.name",nl="k8s.job.uid",rl="k8s.job.name",il="k8s.cronjob.uid",ol="k8s.cronjob.name",sl="os.type",al="os.description",ul="os.name",cl="os.version",ll="process.pid",dl="process.executable.name",hl="process.executable.path",pl="process.command",fl="process.command_line",gl="process.command_args",ml="process.owner",vl="process.runtime.name",yl="process.runtime.version",bl="process.runtime.description",El="service.name",_l="service.namespace",Tl="service.instance.id",Sl="service.version",wl="telemetry.sdk.name",Ol="telemetry.sdk.language",Rl="telemetry.sdk.version",Ll="telemetry.auto.version",Cl="webengine.name",xl="webengine.version",Al="webengine.description",rs=ri([ic,oc,sc,ac,uc,cc,lc,dc,hc,pc,fc,gc,mc,vc,yc,bc,Ec,_c,Tc,Sc,wc,Oc,Rc,Lc,Cc,xc,Ac,Pc,kc,Ic,Mc,Nc,Dc,Uc,jc,Bc,Fc,Vc,Hc,qc,zc,Gc,Xc,$c,Wc,Kc,Yc,Zc,Jc,Qc,el,tl,nl,rl,il,ol,sl,al,ul,cl,ll,dl,hl,pl,fl,gl,ml,vl,yl,bl,El,_l,Tl,Sl,wl,Ol,Rl,Ll,Cl,xl,Al]);function S(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}z(7776);var Pi=class{addEventListener(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.events[t]||(this.events[t]=[]),this.events[t].push({listener:e,options:n})}emit(t,e){let n=this.events[t];
4n&&n.forEach(i=>{let{listener:o,options:s}=i;try{o({payload:e})}catch(a){console.error("Error in event listener",a)}s.once&&this.removeEventListener(t,o)})}removeEventListener(t,e){if(this.events[t])for(let n=0;n<this.events[t].length;n++){let{listener:i}=this.events[t][n];if(i===e){this.events[t].splice(n,1);break}}}constructor(){S(this,"events",{})}};z(7833),z(7896),z(8748),z(4765),z(3976),z(5008),z(5803),z(4570),z(6249),z(9881),z(2039),z(2768),z(9357);var ki,ka=z(9862);function Ia(r){return typeof r!="string"||r.length===0?{}:r.split(",").map(function(t){return(function(e){var n=e.split(";");if(!(n.length<=0)){var i=n.shift();if(i){var o=i.indexOf("=");if(!(o<=0)){var s,a=decodeURIComponent(i.substring(0,o).trim()),u=decodeURIComponent(i.substring(o+1).trim());return n.length>0&&(s=(0,ka.B)(n.join(";"))),{key:a,value:u,metadata:s}}}}})(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})}(function(r){r.AlwaysOff="always_off",r.AlwaysOn="always_on",r.ParentBasedAlwaysOff="parentbased_always_off",r.ParentBasedAlwaysOn="parentbased_always_on",r.ParentBasedTraceIdRatio="parentbased_traceidratio",r.TraceIdRatio="traceidratio"})(ki||(ki={}));var Pl=["OTEL_SDK_DISABLED"];function kl(r){return Pl.indexOf(r)>-1}var Il=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Ml(r){return Il.indexOf(r)>-1}var Nl=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Dl(r){return Nl.indexOf(r)>-1}var ui=1/0,is={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Ht.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ui,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ui,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ui,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ki.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Ul(r,t,e){if(e[r]!==void 0){var n=String(e[r]);t[r]=n.toLowerCase()==="true"}}function jl(r,t,e,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),e[r]!==void 0){var o=Number(e[r]);isNaN(o)||(t[r]=o<n?n:o>i?i:o)}}function Bl(r,t,e,n){n===void 0&&(n=",");var i=e[r];typeof i=="string"&&(t[r]=i.split(n).map(function(o){return o.trim()}))}var Fl={ALL:Ht.u.ALL,VERBOSE:Ht.u.VERBOSE,DEBUG:Ht.u.DEBUG,INFO:Ht.u.INFO,WARN:Ht.u.WARN,ERROR:Ht.u.ERROR,NONE:Ht.u.NONE};function Vl(r,t,e){var n=e[r];if(typeof n=="string"){var i=Fl[n.toUpperCase()];i!=null&&(t[r]=i)}}var Lr=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof z.g=="object"?z.g:{};function an(){var r=(function(t){var e={};for(var n in is){var i=n;
4if(i==="OTEL_LOG_LEVEL")Vl(i,e,t);else if(kl(i))Ul(i,e,t);else if(Ml(i))jl(i,e,t);else if(Dl(i))Bl(i,e,t);else{var o=t[i];o!=null&&(e[i]=String(o))}}return e})(Lr);return Object.assign({},is,r)}var Hl=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s},ql=1e4;function zl(r){return typeof r=="number"?r<=0?os(r,1e4):r:(function(){var t,e=Number((t=an().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&t!==void 0?t:an().OTEL_EXPORTER_OTLP_TIMEOUT);return e<=0?os(e,ql):e})()}function os(r,t){return k.s.warn("Timeout must be greater than 0",r),t}var An,Gl=(function(){function r(){var t=this;this._promise=new Promise(function(e,n){t._resolve=e,t._reject=n})}return Object.defineProperty(r.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),r.prototype.resolve=function(t){this._resolve(t)},r.prototype.reject=function(t){this._reject(t)},r})(),Xl=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s},$l=function(r,t,e){if(e||arguments.length===2)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return r.concat(n||Array.prototype.slice.call(t))},Wl=(function(){function r(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Gl}return Object.defineProperty(r.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),r.prototype.call=function(){for(var t,e=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,$l([this._that],Xl(n),!1))).then(function(o){return e._deferred.resolve(o)},function(o){return e._deferred.reject(o)})}catch(o){this._deferred.reject(o)}}return this._deferred.promise},r})();(function(r){r[r.SUCCESS=0]="SUCCESS",r[r.FAILED=1]="FAILED"})(An||(An={}));var Kl=(function(){function r(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new Wl(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=zl(t.timeoutMillis),this.onInit(t)}return r.prototype.export=function(t,e){this._shutdownOnce.isCalled?e({code:An.FAILED,error:new Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?e({code:An.FAILED,error:new Error("Concurrent export limit reached")}):this._export(t).then(function(){e({code:An.SUCCESS})}).catch(function(n){e({code:An.FAILED,error:n})})},r.prototype._export=function(t){var e=this;return new Promise(function(n,i){try{k.s.debug("items to be sent",t),e.send(t,n,i)}catch(o){i(o)}})},r.prototype.shutdown=function(){return this._shutdownOnce.call()},r.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},r.prototype._shutdown=function(){return k.s.debug("shutdown started"),this.onShutdown(),this.forceFlush()},r})(),Yl=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Kn=(function(r){function t(e,n,i){var o=r.call(this,e)||this;
4return o.name="OTLPExporterError",o.data=i,o.code=n,o}return Yl(t,r),t})(Error),Nr=function(){return Nr=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},Nr.apply(this,arguments)},Zl=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s};function Jl(r,t,e,n,i,o){var s,a,u=!1,c=setTimeout(function(){if(clearTimeout(s),u=!0,a.readyState===XMLHttpRequest.DONE){var d=new Kn("Request Timeout");o(d)}else a.abort()},n),l=function(d,h){d===void 0&&(d=5),h===void 0&&(h=1e3),(a=new XMLHttpRequest).open("POST",t),Object.entries(Nr(Nr({},{Accept:"application/json","Content-Type":"application/json"}),e)).forEach(function(p){var f=Zl(p,2),g=f[0],m=f[1];a.setRequestHeader(g,m)}),a.send(r),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE&&u===!1)if(a.status>=200&&a.status<=299)k.s.debug("xhr success",r),i(),clearTimeout(c),clearTimeout(s);else if(a.status&&(g=a.status,[429,502,503,504].includes(g))&&d>0){var p=void 0;h*=1.5,p=a.getResponseHeader("Retry-After")?(function(m){if(m==null)return-1;var y=Number.parseInt(m,10);if(Number.isInteger(y))return y>0?1e3*y:-1;var v=new Date(m).getTime()-Date.now();return v>=0?v:0})(a.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-h)+h),s=setTimeout(function(){l(d-1,h)},p)}else{var f=new Kn("Failed to export with XHR (status: "+a.status+")",a.status);o(f),clearTimeout(c),clearTimeout(s)}var g},a.onabort=function(){if(u){var p=new Kn("Request Timeout");o(p)}clearTimeout(c),clearTimeout(s)},a.onerror=function(){if(u){var p=new Kn("Request Timeout");o(p)}clearTimeout(c),clearTimeout(s)}};l()}var Ql=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Dr=function(){return Dr=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},Dr.apply(this,arguments)},ed=(function(r){function t(e,n,i){e===void 0&&(e={});var o=r.call(this,e)||this;return o._useXHR=!1,o._serializer=n,o._contentType=i,o._useXHR=!!e.headers||typeof navigator.sendBeacon!="function",o._useXHR?o._headers=Object.assign({},(function(s){s===void 0&&(s={});var a={};return Object.entries(s).forEach(function(u){var c=Hl(u,2),l=c[0],d=c[1];d!==void 0?a[l]=String(d):k.s.warn('Header "'+l+'" has invalid value ('+d+") and will be ignored")}),a})(e.headers),Ia(an().OTEL_EXPORTER_OTLP_HEADERS)):o._headers={},o}return Ql(t,r),t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(e,n,i){var o,s=this;if(this._shutdownOnce.isCalled)k.s.debug("Shutdown already started. Cannot send objects");else{var a=(o=this._serializer.serializeRequest(e))!==null&&o!==void 0?o:new Uint8Array,u=new Promise(function(l,d){s._useXHR?Jl(a,s.url,Dr(Dr({},s._headers),{"Content-Type":s._contentType}),s.timeoutMillis,l,d):(function(h,p,f,g,m){navigator.sendBeacon(p,new Blob([h],f))?(k.s.debug("sendBeacon - can send",h),g()):m(new Kn("sendBeacon - cannot send "+h))})(a,s.url,{type:s._contentType},l,d)}).then(n,i);this._sendingPromises.push(u);var c=function(){var l=s._sendingPromises.indexOf(u);s._sendingPromises.splice(l,1)};u.then(c,c)}},t})(Kl),td=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s};
4function nd(r){return{name:r.name,version:r.version}}function Cr(r){return Object.keys(r).map(function(t){return Ma(t,r[t])})}function Ma(r,t){return{key:r,value:Na(t)}}function Na(r){var t=typeof r;return t==="string"?{stringValue:r}:t==="number"?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:t==="boolean"?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(Na)}}:t==="object"&&r!=null?{kvlistValue:{values:Object.entries(r).map(function(e){var n=td(e,2);return Ma(n[0],n[1])})}}:{}}function rd(r,t){var e,n=r.spanContext(),i=r.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(r.parentSpanId),traceState:(e=n.traceState)===null||e===void 0?void 0:e.serialize(),name:r.name,kind:r.kind==null?0:r.kind+1,startTimeUnixNano:t.encodeHrTime(r.startTime),endTimeUnixNano:t.encodeHrTime(r.endTime),attributes:Cr(r.attributes),droppedAttributesCount:r.droppedAttributesCount,events:r.events.map(function(o){return(function(s,a){return{attributes:s.attributes?Cr(s.attributes):[],name:s.name,timeUnixNano:a.encodeHrTime(s.time),droppedAttributesCount:s.droppedAttributesCount||0}})(o,t)}),droppedEventsCount:r.droppedEventsCount,status:{code:i.code,message:i.message},links:r.links.map(function(o){return(function(s,a){var u;return{attributes:s.attributes?Cr(s.attributes):[],spanId:a.encodeSpanContext(s.context.spanId),traceId:a.encodeSpanContext(s.context.traceId),traceState:(u=s.context.traceState)===null||u===void 0?void 0:u.serialize(),droppedAttributesCount:s.droppedAttributesCount||0}})(o,t)}),droppedLinksCount:r.droppedLinksCount}}var Qn=performance,id=Math.pow(10,6),Ii=Math.pow(10,9);function er(r){var t=r/1e3;return[Math.trunc(t),Math.round(r%1e3*id)]}function Da(){var r=Qn.timeOrigin;if(typeof r!="number"){var t=Qn;r=t.timing&&t.timing.fetchStart}return r}function tr(r){return(function(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Ii&&(n[1]-=Ii,n[0]+=1),n})(er(Da()),er(typeof r=="number"?r:Qn.now()))}
4function qn(r){if(od(r))return r;if(typeof r=="number")return r<Da()?tr(r):er(r);if(r instanceof Date)return er(r.getTime());throw TypeError("Invalid input type")}function Kt(r){return r[0]*Ii+r[1]}function od(r){return Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}function ss(r){return r>=48&&r<=57?r-48:r>=97&&r<=102?r-87:r-55}function Uo(r){for(var t=new Uint8Array(r.length/2),e=0,n=0;n<r.length;n+=2){var i=ss(r.charCodeAt(n)),o=ss(r.charCodeAt(n+1));t[e++]=i<<4|o}return t}function Ua(r){var t=BigInt(1e9);return BigInt(r[0])*t+BigInt(r[1])}function ja(r){var t,e=Ua(r);return t=e,{low:Number(BigInt.asUintN(32,t)),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}var sd=typeof BigInt<"u"?function(r){return Ua(r).toString()}:Kt;function as(r){return r}function Ba(r){if(r!==void 0)return Uo(r)}var ad={encodeHrTime:ja,encodeSpanContext:Uo,encodeOptionalSpanContext:Ba};function ud(r){var t,e;if(r===void 0)return ad;var n=(t=r.useLongBits)===null||t===void 0||t,i=(e=r.useHex)!==null&&e!==void 0&&e;return{encodeHrTime:n?ja:sd,encodeSpanContext:i?as:Uo,encodeOptionalSpanContext:i?as:Ba}}function cd(r){return{attributes:Cr(r.attributes),droppedAttributesCount:0}}var ld=function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},dd=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s};function hd(r,t){for(var e=(function(f){var g,m,y=new Map;try{for(var v=ld(f),b=v.next();!b.done;b=v.next()){var T=b.value,E=y.get(T.resource);E||(E=new Map,y.set(T.resource,E));var _=T.instrumentationLibrary.name+"@"+(T.instrumentationLibrary.version||"")+":"+(T.instrumentationLibrary.schemaUrl||""),O=E.get(_);O||(O=[],E.set(_,O)),O.push(T)}}catch(w){g={error:w}}finally{try{b&&!b.done&&(m=v.return)&&m.call(v)}finally{if(g)throw g.error}}return y})(r),n=[],i=e.entries(),o=i.next();!o.done;){for(var s=dd(o.value,2),a=s[0],u=[],c=s[1].values(),l=c.next();!l.done;){var d=l.value;if(d.length>0){var h=d.map(function(f){return rd(f,t)});u.push({scope:nd(d[0].instrumentationLibrary),spans:h,schemaUrl:d[0].instrumentationLibrary.schemaUrl})}l=c.next()}var p={resource:cd(a),scopeSpans:u,schemaUrl:void 0};n.push(p),o=i.next()}return n}var us,cs;z(9831);(function(r){r[r.HISTOGRAM=0]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",r[r.GAUGE=2]="GAUGE",r[r.SUM=3]="SUM"})(us||(us={})),(function(r){r[r.DELTA=0]="DELTA",r[r.CUMULATIVE=1]="CUMULATIVE"})(cs||(cs={}));var pd={serializeRequest:function(r){var t={resourceSpans:hd(r,ud({useHex:!0,useLongBits:!1}))};return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:function(r){var t=new TextDecoder;return JSON.parse(t.decode(r))}},fd=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Fa="v1/traces",gd="http://localhost:4318/"+Fa,md=(function(r){function t(e){e===void 0&&(e={});var n=r.call(this,e,pd,"application/json")||this;return n._headers=Object.assign(n._headers,Ia(an().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),n}return fd(t,r),t.prototype.getDefaultUrl=function(e){return typeof e.url=="string"?e.url:an().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?(function(o){try{var s=new URL(o);return s.pathname===""&&(s.pathname=s.pathname+"/"),s.toString()}catch{return k.s.warn("Could not parse export URL: '"+o+"'"),o}})(an().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):an().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(n=an().OTEL_EXPORTER_OTLP_ENDPOINT,i=Fa,n.endsWith("/")||(n+="/"),n+i):gd;var n,i},t})(ed);function Va(r){return r}function Ha(r,t,e){let n=new XMLHttpRequest;n.open("POST",r),Object.entries(Object.assign(Object.assign({},{Accept:"application/json","Content-Type":"application/json"}
4),e)).forEach(i=>{let[o,s]=i;n.setRequestHeader(o,s)}),n.send(t)}var qa=typeof navigator<"u"&&navigator.sendBeacon?(r,t,e)=>{let n=e?new Blob([t],e):t;navigator.sendBeacon(r,n)}:void 0,Mi=class extends md{send(t,e){var n;if(this._shutdownOnce.isCalled)return void k.s.debug("Shutdown already started. Cannot send objects");let i=t.length;if((t=t.filter(s=>!!s.attributes["splunk.rumSessionId"])).length!==i&&k.s.debug("Some spans were dropped because they are missing the splunk.rumSessionId attribute. This usually means the session has reached its maximum allowed duration."),(t=t.map(s=>(s.attributes=this._onAttributesSerializing?this._onAttributesSerializing(s.attributes,s):s.attributes,s))).length===0)return void e();let o=(n=this._serializer.serializeRequest(t))!==null&&n!==void 0?n:new Uint8Array;document.hidden&&this._beaconSender&&o.length<=64e3?this._beaconSender(this.url,o,{type:"application/json"}):this._xhrSender&&this._xhrSender(this.url,o,ce({Accept:"application/json","Content-Type":"application/json"},this.headers)),e()}constructor(t){var e,n;super(t),S(this,"_beaconSender",void 0),S(this,"_onAttributesSerializing",void 0),S(this,"_xhrSender",void 0),this._beaconSender=(e=t.beaconSender)!==null&&e!==void 0?e:qa,this._onAttributesSerializing=t.onAttributesSerializing||Va,this._xhrSender=(n=t.xhrSender)!==null&&n!==void 0?n:Ha}};z(5178);var ci=z(1210);z(1571);z(7332);var ls=r=>{var t,e;return r!==null&&typeof r=="object"&&(r instanceof Error||((t=r.constructor.name)===null||t===void 0?void 0:t.endsWith("Error"))||((e=r.constructor.name)===null||e===void 0?void 0:e.endsWith("Exception")))},za=r=>r?.nodeName!==void 0,At=r=>r?.nodeType===Node.ELEMENT_NODE,vd=r=>r.nodeName==="INPUT",xr=r=>!!r&&r?.nodeType===Node.DOCUMENT_NODE,Ur=r=>r.nodeName==="#document-fragment"&&r.constructor.name==="ShadowRoot",jo=r=>r.nodeName==="#document-fragment"&&r.constructor.name!=="ShadowRoot",ds=r=>r.nodeName==="LINK",Ni=r=>r.nodeName==="SCRIPT",Ga=r=>r.nodeName==="SCRIPT"||r.nodeName==="NOSCRIPT",Cn=r=>r.tagName==="IMG"||r.tagName==="VIDEO"||r.tagName==="AUDIO",ur=r=>typeof r=="number"&&Number.isFinite(r),yd=r=>!!r&&typeof r.toString=="function",dn=r=>typeof r=="string";z(943),z(4603),z(2764),z(7381);var bd=r=>crypto.getRandomValues(new Uint8Array(r)),je=z(554),Ed=((r,t=21)=>((e,n,i)=>{let o=256-256%e.length;if(o===256){let a=e.length-1;return(u=n)=>{if(!u)return"";let c="";for(;;){let l=i(u),d=u;for(;d--;)if(c+=e[l[d]&a],c.length>=u)return c}}}let s=Math.ceil(409.6*n/o);return(a=n)=>{if(!a)return"";let u="";for(;;){let c=i(s),l=s;for(;l--;)if(c[l]<o&&(u+=e[c[l]%e.length],u.length>=a))return u}}})(r,0|t,bd))("0123456789abcdef");function cr(r){return Ed(r/4)}function nr(r,t){return r.length>t?r.slice(0,Math.max(0,t)):r}function vt(r){return typeof r=="function"}function Qe(r,t,e){let n=r[t];(0,je.wrap)(r,t,e);let i=r[t];n.toString&&(i.toString=n.toString.bind(n))}function hs(r){for(;r.__original&&r.__original!==r;)r=r.__original;return r}var _d=/^regex\/([\s\S]*)\/([dgimsuvy]*)$/,ps="SplunkRum: Invalid regex string in configuration; treating it as a literal string.";function fs(r){let t=_d.exec(r);if(!t)return r.startsWith("regex/")&&k.s.error(ps,{value:r}),null;let[,e,n]=t;try{return new RegExp(e,n)}catch(i){return k.s.error(ps,{error:i,value:r}),null}}function Di(r){if(r!=null&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&Object.keys(r).length!==0)for(let e of Object.keys(r))if(e==="ignoreUrls"&&Array.isArray(r[e]))r[e]=r[e].map(n=>{var i;return typeof n!="string"?n:(i=fs(n))!==null&&i!==void 0?i:n});else if(e==="urlOverrides"&&Array.isArray(r[e]))for(let n of r[e]){var t;n!=null&&typeof n=="object"&&typeof n.match=="string"&&(n.match=(t=fs(n.match))!==null&&t!==void 0?t:n.match),Di(n)}else Di(r[e])}var Ui=class{export(t,e){let n=t.length;if((t=t.filter(s=>!!s.attributes["splunk.rumSessionId"])).length!==n&&k.s.debug("Some spans were dropped because they are missing the splunk.rumSessionId attribute. This usually means the session has reached its maximum allowed duration."),t.length===0)return void e({code:Jn.V.SUCCESS});let i=t.map(s=>this._mapToZipkinSpan(s)),o=JSON.stringify(i);document.hidden&&this._beaconSender&&o.length<=64e3?this._beaconSender(this.beaconUrl,o):this._xhrSender&&this._xhrSender(this.beaconUrl,o,{Accept:"*/*","Content-Type":"text/plain;charset=UTF-8"}),e({code:Jn.V.SUCCESS})}shutdown(){return Promise.resolve()}_mapToZipkinSpan(t){let e=this._preTranslateSpan(t),n=(0,ci.jS)(e,"browser",ci.Ux,ci.py);return this._postTranslateSpan(n)}_postTranslateSpan(t){delete t.localEndpoint,t.name=nr(t.name,4096);for(let[n,i]of Object.entries(t.tags))yd(i)&&(t.tags[n]=nr(i.toString(),4096)
4);let e=1e3*performance.timeOrigin;return t.tags["http.url"]&&!t.tags["http.url"].startsWith(location.origin)&&t.timestamp>e&&t.annotations&&(t.annotations=t.annotations.filter(n=>{let{timestamp:i}=n;return i>e})),t}_preTranslateSpan(t){return{attributes:this._onAttributesSerializing?this._onAttributesSerializing(t.attributes,t):t.attributes,droppedAttributesCount:t.droppedAttributesCount,droppedEventsCount:t.droppedEventsCount,droppedLinksCount:t.droppedLinksCount,duration:t.duration,ended:t.ended,endTime:t.endTime,events:t.events,instrumentationLibrary:t.instrumentationLibrary,kind:t.kind,links:t.links,name:t.name,parentSpanId:t.parentSpanId,resource:t.resource,spanContext:t.spanContext.bind(t),startTime:t.startTime,status:t.status}}constructor({beaconSender:t=qa,onAttributesSerializing:e=Va,url:n,xhrSender:i=Ha}){S(this,"beaconUrl",void 0),S(this,"_beaconSender",void 0),S(this,"_onAttributesSerializing",void 0),S(this,"_xhrSender",void 0),this.beaconUrl=n,this._onAttributesSerializing=e,this._xhrSender=i,this._beaconSender=t}},ot="3.1.0",Ar=Symbol.for("opentelemetry.js.api.1"),_n="splunk.rum",tn="".concat(_n,".version"),Pr=globalThis;z(1486),z(792),z(833),z(2376),z(9559),z(1868),z(1670);var jr=function(){return jr=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},jr.apply(this,arguments)},Td=(function(){function r(t,e,n){this.instrumentationName=t,this.instrumentationVersion=e,this._wrap=je.wrap,this._unwrap=je.unwrap,this._massWrap=je.massWrap,this._massUnwrap=je.massUnwrap,this._config=jr({enabled:!0},n),this._diag=k.s.createComponentLogger({namespace:t}),this._tracer=qe.u.getTracer(t,e),this._meter=La.q.getMeter(t,e),this._logger=Ca.getLogger(t,e),this._updateMetricInstruments()}return Object.defineProperty(r.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),r.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(r.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),r.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},r.prototype.getModuleDefinitions=function(){var t,e=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(e)?e:[e]},r.prototype._updateMetricInstruments=function(){},r.prototype.getConfig=function(){return this._config},r.prototype.setConfig=function(t){this._config=jr({},t)},r.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(r.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),r.prototype._runSpanCustomizationHook=function(t,e,n,i){if(t)try{t(n,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:e},o)}},r})(),Sd=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),mt=(function(r){function t(e,n,i){var o=r.call(this,e,n,i)||this;return o._config.enabled&&o.enable(),o}return Sd(t,r),t})(Td),Xa="splunk-blocking-element";function Vn(r,t){if(r.nodeType===Node.DOCUMENT_NODE)return"/";let e=(function(i,o){let s=i.nodeType,a=(function(c){if(!c.parentNode)return 0;let l=[c.nodeType];c.nodeType===Node.CDATA_SECTION_NODE&&l.push(Node.TEXT_NODE);let d=Array.from(c.parentNode.childNodes);return d=d.filter(h=>{let p=h.localName;return l.includes(h.nodeType)&&p===c.localName}),d.length>0?d.indexOf(c)+1:0})(i),u;switch(s){case Node.ELEMENT_NODE:{let c=i.getAttribute("id");if(o&&c)return'//*[@id="'.concat(c,'"]');u=i.localName;break}case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:u="text()";break;case Node.COMMENT_NODE:u="comment()";break;default:return""}return u&&a>1?"/".concat(u,"[").concat(a,"]"):"/".concat(u)})(r,t);if(t&&e.indexOf("@id")>0)return e;let n="";return r.parentNode&&(n+=Vn(r.parentNode,t)),n+=e,n}var ji=class{completeSpan(t,e){this.endSpan(t,"completed",e)}has(t){return this.tracked.has(t)}interruptAll(){for(let t of this.trackedElements())this.interruptSpan(t)}interruptSpan(t){this.endSpan(t,"interrupted")}get openCount(){return this.tracked.size}startSpan(t,e,n){let i=this.tracked.get(t);if(i){for(let a of e)i.accumulatedSelectors.add(a);return}if(this.tracked.size>=1e3)return void(this.hasWarnedAtCapacity||(this.hasWarnedAtCapacity=!0,k.s.warn("ElementSpanTracker: Reached max open element spans; dropping further elements.",{max:1e3})));let o=this.tracer.startSpan("blockingElement",{root:!0,startTime:n});o.setAttribute("component",Xa),o.setAttribute("browser.element.i
4d",t.id),o.setAttribute("browser.element.class",(function(a){var u;let c=a.className;return typeof c=="string"?c:(u=c.animVal)!==null&&u!==void 0?u:""})(t)),o.setAttribute("browser.element.tag",t.tagName),o.setAttribute("browser.element.xpath",Vn(t,!0));let s=setTimeout(()=>{var a;this.endSpan(t,"timeout",performance.now()),(a=this.onSpanTimeout)===null||a===void 0||a.call(this,t)},this.maxElementSpanDuration);this.tracked.set(t,{accumulatedSelectors:new Set(e),span:o,timeoutId:s})}trackedElements(){return Array.from(this.tracked.keys())}endSpan(t,e,n){let i=this.tracked.get(t);if(!i)return;clearTimeout(i.timeoutId),this.tracked.delete(t);let o=this.configuredSelectors.filter(s=>i.accumulatedSelectors.has(s)).join(",");i.span.setAttribute("browser.element.selector",o),i.span.setAttribute("browser.element.completion",e),i.span.end(n)}constructor(t,e,n,i){S(this,"tracer",void 0),S(this,"configuredSelectors",void 0),S(this,"maxElementSpanDuration",void 0),S(this,"onSpanTimeout",void 0),S(this,"hasWarnedAtCapacity",void 0),S(this,"tracked",void 0),this.tracer=t,this.configuredSelectors=e,this.maxElementSpanDuration=n,this.onSpanTimeout=i,this.hasWarnedAtCapacity=!1,this.tracked=new Map}};z(2616);function $a(r,t){var e,n,i;let o=(i=r.urlOverrides)===null||i===void 0?void 0:i.find(s=>(function(a,u){return typeof a=="string"?u.includes(a):(a.lastIndex=0,a.test(u))})(s.match,t));return o?He(ce({},o),{blockingSelectors:(e=o.blockingSelectors)!==null&&e!==void 0?e:r.blockingSelectors,monitors:(n=o.monitors)!==null&&n!==void 0?n:r.monitors}):r}function wd(r){var t;if(!r.experimental)return!1;let e=(t=r.instrumentations)===null||t===void 0?void 0:t.blockingElement;return typeof e=="object"&&e.enabled!==void 0?e.enabled:typeof e=="object"||e===void 0?(function(n){var i,o;let s=n.spaMetrics;if(typeof s!="object")return!1;let a=$a(s,location.href);return((i=a.monitors)!==null&&i!==void 0?i:[]).includes("elements")&&((o=a.blockingSelectors)!==null&&o!==void 0?o:[]).length>0})(r):e}var gs={capture:!0},ms={capture:!0},Te,gn=z(3074),Ot=z(431),dt=z(5350),Sn=z(6452);(function(r){r.CONNECT_END="connectEnd",r.CONNECT_START="connectStart",r.DECODED_BODY_SIZE="decodedBodySize",r.DOM_COMPLETE="domComplete",r.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",r.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",r.DOM_INTERACTIVE="domInteractive",r.DOMAIN_LOOKUP_END="domainLookupEnd",r.DOMAIN_LOOKUP_START="domainLookupStart",r.ENCODED_BODY_SIZE="encodedBodySize",r.FETCH_START="fetchStart",r.LOAD_EVENT_END="loadEventEnd",r.LOAD_EVENT_START="loadEventStart",r.NAVIGATION_START="navigationStart",r.REDIRECT_END="redirectEnd",r.REDIRECT_START="redirectStart",r.REQUEST_START="requestStart",r.RESPONSE_END="responseEnd",r.RESPONSE_START="responseStart",r.SECURE_CONNECTION_START="secureConnectionStart",r.UNLOAD_EVENT_END="unloadEventEnd",r.UNLOAD_EVENT_START="unloadEventStart"})(Te||(Te={}));z(685);var Od="exception.type",Rd="exception.message",Ld="exception.stacktrace",Cd="http.response_content_length",xd="http.response_content_length_uncompressed",li=Od,di=Rd,Ad=Ld,Pd=Cd,kd=xd;function un(r,t){return t in r}function st(r,t,e,n){var i=void 0,o=void 0;un(e,t)&&typeof e[t]=="number"&&(i=e[t]);var s=n||Te.FETCH_START;if(un(e,s)&&typeof e[s]=="number"&&(o=e[s]),i!==void 0&&o!==void 0&&i>=o)return r.addEvent(t,i),r}function Br(r,t,e){e===void 0&&(e=!1),e||(st(r,Te.FETCH_START,t),st(r,Te.DOMAIN_LOOKUP_START,t),st(r,Te.DOMAIN_LOOKUP_END,t),st(r,Te.CONNECT_START,t),un(t,"name")&&t.name.startsWith("https:")&&st(r,Te.SECURE_CONNECTION_START,t),st(r,Te.CONNECT_END,t),st(r,Te.REQUEST_START,t),st(r,Te.RESPONSE_START,t),st(r,Te.RESPONSE_END,t));var n=t[Te.ENCODED_BODY_SIZE];n!==void 0&&r.setAttribute(Pd,n);var i=t[Te.DECODED_BODY_SIZE];i!==void 0&&n!==i&&r.setAttribute(kd,i)}var bt;function Fr(r,t,e){var n,i;try{i=r()}catch(o){n=o}finally{if(t(n,i),n&&!e)throw n;return i}}function Ct(r){return typeof r=="function"&&typeof r.__original=="function"&&typeof r.__unwrap=="function"&&r.__wrapped===!0}(function(r){r.DOCUMENT_LOAD="documentLoad",r.DOCUMENT_FETCH="documentFetch",r.RESOURCE_FETCH="resourceFetch"})(bt||(bt={}));var Id="http.url",Md="http.user_agent",hi=Id,Nd=Md,Vr;(function(r){r.FIRST_PAINT="firstPaint",r.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"})(Vr||(Vr={}));var vs={"first-paint":Vr.FIRST_PAINT,"first-contentful-paint":Vr.FIRST_CONTENTFUL_PAINT},Dd=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}
4r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Ud=(function(r){function t(e){e===void 0&&(e={});var n=r.call(this,"@opentelemetry/instrumentation-document-load","0.39.0",e)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return Dd(t,r),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout(function(){e._collectPerformance()})},t.prototype._addResourcesSpans=function(e){var n,i,o=this,s=(i=(n=Sn.u).getEntriesByType)===null||i===void 0?void 0:i.call(n,"resource");s&&s.forEach(function(a){o._initResourceSpan(a,e)})},t.prototype._collectPerformance=function(){var e=this,n=Array.from(document.getElementsByTagName("meta")).find(function(s){return s.getAttribute("name")===Do.ZS}),i=(function(){var s,a,u={},c=(a=(s=Sn.u).getEntriesByType)===null||a===void 0?void 0:a.call(s,"navigation")[0];if(c)Object.values(Te).forEach(function(d){if(un(c,d)){var h=c[d];typeof h=="number"&&(u[d]=h)}});else{var l=Sn.u.timing;l&&Object.values(Te).forEach(function(d){if(un(l,d)){var h=l[d];typeof h=="number"&&(u[d]=h)}})}return u})(),o=n&&n.content||"";me._.with(Ot.$.extract(dt.l,{traceparent:o}),function(){var s,a=e._startSpan(bt.DOCUMENT_LOAD,Te.FETCH_START,i);a&&(me._.with(qe.u.setSpan(me._.active(),a),function(){var u=e._startSpan(bt.DOCUMENT_FETCH,Te.FETCH_START,i);u&&(u.setAttribute(hi,location.href),me._.with(qe.u.setSpan(me._.active(),u),function(){var c;e._getConfig().ignoreNetworkEvents||Br(u,i),e._addCustomAttributesOnSpan(u,(c=e._getConfig().applyCustomAttributesOnSpan)===null||c===void 0?void 0:c.documentFetch),e._endSpan(u,Te.RESPONSE_END,i)}))}),a.setAttribute(hi,location.href),a.setAttribute(Nd,navigator.userAgent),e._addResourcesSpans(a),e._getConfig().ignoreNetworkEvents||(st(a,Te.FETCH_START,i),st(a,Te.UNLOAD_EVENT_START,i),st(a,Te.UNLOAD_EVENT_END,i),st(a,Te.DOM_INTERACTIVE,i),st(a,Te.DOM_CONTENT_LOADED_EVENT_START,i),st(a,Te.DOM_CONTENT_LOADED_EVENT_END,i),st(a,Te.DOM_COMPLETE,i),st(a,Te.LOAD_EVENT_START,i),st(a,Te.LOAD_EVENT_END,i)),e._getConfig().ignorePerformancePaintEvents||(function(u){var c,l,d=(l=(c=Sn.u).getEntriesByType)===null||l===void 0?void 0:l.call(c,"paint");d&&d.forEach(function(h){var p=h.name,f=h.startTime;un(vs,p)&&u.addEvent(vs[p],f)})})(a),e._addCustomAttributesOnSpan(a,(s=e._getConfig().applyCustomAttributesOnSpan)===null||s===void 0?void 0:s.documentLoad),e._endSpan(a,Te.LOAD_EVENT_END,i))})},t.prototype._endSpan=function(e,n,i){e&&(un(i,n)?e.end(i[n]):e.end())},t.prototype._initResourceSpan=function(e,n){var i,o=this._startSpan(bt.RESOURCE_FETCH,Te.FETCH_START,e,n);o&&(o.setAttribute(hi,e.name),this._getConfig().ignoreNetworkEvents||Br(o,e),this._addCustomAttributesOnResourceSpan(o,e,(i=this._getConfig().applyCustomAttributesOnSpan)===null||i===void 0?void 0:i.resourceFetch),this._endSpan(o,Te.RESPONSE_END,e))},t.prototype._startSpan=function(e,n,i,o){if(un(i,n)&&typeof i[n]=="number")return this.tracer.startSpan(e,{startTime:i[n]},o?qe.u.setSpan(me._.active(),o):void 0)},t.prototype._waitForPageLoad=function(){window.document.readyState==="complete"?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._getConfig=function(){return this._config},t.prototype._addCustomAttributesOnSpan=function(e,n){var i=this;n&&Fr(function(){return n(e)},function(o){o&&i._diag.error("addCustomAttributesOnSpan",o)},!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,n,i){var o=this;i&&Fr(function(){return i(e,n)},function(s){s&&o._diag.error("addCustomAttributesOnResourceSpan",s)},!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t})(mt),jd="aws.lambda.invoked_arn",Bd="db.system",Fd="db.connection_string",Vd="db.user",Hd="db.jdbc.driver_classname",qd="db.name",zd="db.statement",Gd="db.operation",Xd="db.mssql.instance_name",$d="db.cassandra.keyspace",Wd="db.cassandra.page_size",Kd="db.cassandra.consistency_level",Yd="db.cassandra.table",Zd="db.cassandra.idempotence",Jd="db.cassandra.speculative_execution_count",Qd="db.cassandra.coordinator.id",eh="db.cassandra.coordinator.dc",th="db.hbase.namespace",nh="db.redis.database_index",rh="db.mongodb.collection",ih="db.sql.table",oh="exception.type",sh="exception.message",ah="exception.stacktrace",uh="exception.escaped",ch="faas.trigger",lh="faas.execution",dh="faas.document.collection",hh="faas.document.operation",ph="faas.document.time",fh="faas.document.name",gh="faas.time",mh="faas.cron",vh="faas.coldstart",yh="faas.invoked_name",bh="faas.invoked_provider",Eh="faas.invoked_region",_h="net.transport",Th="net.peer.ip",Sh="net.peer.port",wh="net.peer.name",Oh="net.host.ip",Rh="net.host.port",Lh="net.host.name",Ch="net.host.connection.type",xh="net.host.connection.subtype",Ah="net.host.carrier.name",Ph="net.host.carrier.mcc",kh="net.host.carrier.mnc",Ih="net.host.carrier.icc",Mh="peer.service",Nh="enduser.id",Dh="enduser.role",Uh="enduser.scope",jh="thread.id",Bh="thread.name",Fh="code.function",Vh="code.namespace",Hh="code.filepath",qh="code.lineno",zh="http.method",Wa="http.url",Gh="http.target",Xh="http.host",$h="http.scheme",Wh="http.status_code",Kh="http.flavor",Yh="http.user_agent",Zh="http.request_content_length",Jh="http.request_content_length_uncompressed",Qh="http.response_content_length",ep="http.response_content_length_uncompressed",tp="http.server_name",np="http.route",rp="http.client_ip",ip="aws.dynamodb.table_names",op="aws.dynamodb.consumed_capacity",sp="aws.dynamodb.item_collection_metrics",ap="aws.dynamodb.provisioned_read_capacity",up="aws.dynamodb.provisioned_write_capacity",cp="aws.dynamodb.consistent_read",lp="aws.dynamodb.projection",dp="aws.dynamodb.limit",hp="aws.dynamodb.attributes_to_get",pp="aws.dynamodb.index_name",fp="aws.dynamodb.select",gp="aws.dynamodb.global_secondary_indexes",mp="aws.dynamodb.local_secondary_indexes",vp="aws.dynamodb.exclusive_start_table",yp="aws.dynamodb.table_count",bp="aws.dynamodb.scan_forward",Ep="aws.dynamodb.segment",_p="aws.dynamodb.total_segments",Tp="aws.dynamodb.count",Sp="aws.dynamodb.scanned_count",wp="aws.dynamodb.attribute_definitions",Op="aws.dynamodb.global_secondary_index_updates",Rp="messaging.system",Lp="messaging.destination",Cp="messaging.destination_kind",xp="messaging.temp_destination",Ap="messaging.protocol",Pp="messaging.protocol_version",kp="messaging.url",Ip="messaging.message_id",Mp="messaging.conversation_id",Np="messaging.message_payload_size_bytes",Dp="messaging.message_payload_compressed_size_bytes",Up="messaging.operation",jp="messaging.consumer_id",Bp="messaging.rabbitmq.routing_key",Fp="messaging.kafka.message_key",Vp="messaging.kafka.consumer_group",Hp="messaging.kafka.client_id",qp="messaging.kafka.partition",zp="messaging.kafka.tombstone",Gp="rpc.system",Xp="rpc.service",$p="rpc.method",Wp="rpc.grpc.status_code",Kp="rpc.jsonrpc.version",Yp="rpc.jsonrpc.request_id",Zp="rpc.jsonrpc.error_code",Jp="rpc.jsonrpc.error_message",Qp="message.type",ef="message.id",tf="message.compressed_size",nf="message.uncompressed_size",ys=Wa,wt=ri([jd,Bd,Fd,Vd,Hd,qd,zd,Gd,Xd,$d,Wd,Kd,Yd,Zd,Jd,Qd,eh,th,nh,rh,ih,oh,sh,ah,uh,ch,lh,dh,hh,ph,fh,gh,mh,vh,yh,bh,Eh,_h,Th,Sh,wh,Oh,Rh,Lh,Ch,xh,Ah,Ph,kh,Ih,Mh,Nh,Dh,Uh,jh,Bh,Fh,Vh,Hh,qh,zh,Wa,Gh,Xh,$h,Wh,Kh,Yh,Zh,Jh,Qh,ep,tp,np,rp,ip,op,sp,ap,up,cp,lp,dp,hp,pp,fp,gp,mp,vp,yp,bp,Ep,_p,Tp,Sp,wp,Op,Rp,Lp,Cp,xp,Ap,Pp,kp,Ip,Mp,Np,Dp,Up,jp,Bp,Fp,Vp,Hp,qp,zp,Gp,Xp,$p,Wp,Kp,Yp,Zp,Jp,Qp,ef,tf,nf]),rf="queue",of="topic",bs=ri([rf,of]),sf="receive",af="process",Es=ri([sf,af]),Hr="browser.navigation.operation",Bi="documentLoad",kr="routeChange",pi="completed";function on(r,t,e,n){let i=t?.getNavigationPageAttributes(e,n);i&&(r.setAttribute("browser.navigation.page_span_id",i.pageSpanId),r.setAttribute("browser.navigation.pct_relevant",i.pctRelevant))}function Bo(r){return r==="img"?["media","performance"]:r==="audio"||r==="video"?["media"]:["css","font","link","other"].includes(r)?["performance"]:[]}function Ka(r,t){if(r&&r[1]&&r[2]){let e=r[1],n=r[2];t.setAttribute("link.traceId",e),t.setAttribute("link.spanId",n)}}var uf=new RegExp(`traceparent;desc=['"]00-([0-9a-f]{32})-([0-9a-f]{16})-01['"]`);function _s(r,t){for(let e of r.split(",")){e=e.trim();let n=e.match(uf);n&&Ka(n,t)}}var cf=new RegExp("00-([0-9a-f]{32})-([0-9a-f]{16})-01");function Ya(r){if(typeof r.responseStatus=="number"&&r.responseStatus===304)return!0;
4if(typeof r.transferSize=="number"&&typeof r.decodedBodySize=="number"){if(r.transferSize===0&&r.decodedBodySize>0)return!0;if(r.transferSize>0)return!1}}var lf=new Set(["beacon","fetch","xmlhttprequest"]);function Ts(r){document.referrer&&document.referrer!==""&&r.setAttribute("document.referrer",document.referrer),window.screen&&r.setAttribute("screen.xy",window.screen.width+"x"+window.screen.height)}z(3994);var Za=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let t=Object.getPrototypeOf(r);return t===null||t===Object.prototype},Ja=r=>Za(r)?Qa(df(r)):{},Qa=r=>{let t={};for(let[e,n]of Object.entries(r))eu(n)&&(t[e]=n);return t},df=r=>{let t=ce({},r);return Object.entries(t).forEach(e=>{let[n,i]=e;i!==""&&i!=null||delete t[n]}),t},eu=r=>typeof r=="string"||typeof r=="number"||typeof r=="boolean",hf=/\/o11y-gdi-rum\/v\d+\.\d+\.\d+-[0-9a-f]{40}\//i;z(4724),z(758);function pf(r){let t=r.slice(5).toLowerCase().replaceAll(/-([a-z])/g,(e,n)=>n.toUpperCase());return"element.dataset.".concat(t)}function ff(r){return r.startsWith("data-")?r:(function(t){let e=t.replaceAll(/([A-Z])/g,"-$1").toLowerCase();return"data-".concat(e)})(r)}function Fo(r){var t;return(t=r.dataAttributesToCapture)!==null&&t!==void 0?t:r._experimental_dataAttributesToCapture}function tu(r,t){if(!t||t.length===0||!At(r))return{};let e={};for(let n of t){let i=ff(n),o=r.getAttribute(i);o!==null&&(e[i]=o)}return e}function nu(r,t,e){for(let[n,i]of Object.entries(tu(t,e))){let o=pf(n);r.setAttribute(o,i)}}var Ss=r=>{var t,e,n;if(r.nodeName==="#comment"||Ga(r)||(n=r,!(n.nodeType!==Node.TEXT_NODE||r.previousSibling!==null&&r.nextSibling!==null||(e=r,e.textContent===null||/[^\t\n\r ]/.test(e.textContent))))||ds(r)&&["manifest","preload","prefetch","modulepreload"].includes((t=r.getAttribute("rel"))!==null&&t!==void 0?t:""))return!0;if(r.nodeName==="META"){var i,o;if(["content-security-policy","refresh"].includes(((i=r.getAttribute("http-equiv"))!==null&&i!==void 0?i:"").toLowerCase())||["facebook-domain-verification","apple-itunes-app","google-site-verification"].includes(((o=r.getAttribute("name"))!==null&&o!==void 0?o:"").toLowerCase()))return!0}return!(!ds(r)||!(mf(r.href)||vf(r.href)&&r.rel!=="stylesheet"))},gf=r=>{return(t=r)!==null&&(t.nodeName==="STYLE"||t.nodeName==="style")||!!Ga(r);var t},ru=r=>{let t=null;try{var e,n;t=(e=(n=r.defaultView)===null||n===void 0?void 0:n.frameElement)!==null&&e!==void 0?e:null}catch{}return t},ws=r=>{let t=[],e=Ur(r)||jo(r)?r.host:r.parentNode;for(;e;){t.push(e);let n=e.parentNode;e=n===null&&Ur(e)?e.host:n}return t};function*iu(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{recoverOnNotConnectedNodes:e,shouldProcessNode:n}=t;if(Ss(r)||n&&!n(r))return;let i=new Set,o=document.createTreeWalker(r,NodeFilter.SHOW_ALL,{acceptNode:a=>i.has(a)||Ss(a)?NodeFilter.FILTER_REJECT:n?n(a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),s=o.currentNode;for(;s;){let a=ws(s);if(yield s,At(s)&&s.shadowRoot&&(yield*Jo(iu(s.shadowRoot,t))),i.add(s),e)if(s.isConnected){let u=ws(s);for(let[c,l]of a.entries())if(u[c]!==l){o.currentNode=l;break}}else{let u=a.find(c=>c.isConnected);if(!u)return;o.currentNode=u}s=gf(o.currentNode)?o.nextSibling():o.nextNode()}}var Fi=r=>{let t=r.parentElement;return t===null&&(Ur(r)||jo(r)?t=r.host:r.parentNode&&xr(r.parentNode)&&(t=ru(r.parentNode))),t};function Vi(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"...";return r.length<=t?r:t<=0?"":e.length>=t?e.slice(0,t):"".concat(r.slice(0,t-e.length)).concat(e)}var Vo=(r,t)=>{let e="";for(let n of iu(r,{shouldProcessNode:t}))if(n.nodeValue&&(e+=n.nodeValue),e.length>50)break;return e.length>50&&(e=(n=>Vi(n,50))(e)),e.replaceAll(/\s\s+/g," ").trim()};z(879);var mf=r=>["chrome-extension://","moz-extension://"].some(t=>r.startsWith(t)),vf=r=>r.startsWith("blob:"),yf=/[\w]+:\/\/[^\s]+?(?::\d+)?(?=:[\d]+:[\d]+)/g;function Yn(r){return r&&r.trim()!==""&&!r.startsWith("[object")&&r!=="error"}function Os(r){if(r===void 0)return"(undefined)";if(r===null)return"(null)";if(r.toString)return r.toString();try{return Object.prototype.toString.call(r)}catch{return"(unknown)"}}function Rs(r,t){if(t&&t.stack&&Yn(t.stack)){r.setAttribute("error.stack",nr(t.stack.toString(),4096)
4);let e=(function(n){let i={},o=n.match(yf);return o&&o.forEach(s=>{let a=s.split(/:(?=\d+$)/)[0],u=window.sourceMapIds;u&&u[a]&&!i[a]&&(i[a]=u[a])}),JSON.stringify(i)})(t.stack);e&&r.setAttribute("error.source_map_ids",e)}}var Ho="errors",bf=(r,t)=>({context:t,error:r}),qr=class extends mt{disable(){je.unwrap(console,"error"),window.removeEventListener("unhandledrejection",this.unhandledRejectionListener),window.removeEventListener("error",this.errorListener),document.documentElement.removeEventListener("error",this.documentErrorListener,{capture:!0}),clearInterval(this.clearingIntervalId),this.throttleMap.clear()}enable(){je.wrap(console,"error",this.consoleErrorHandler),window.addEventListener("unhandledrejection",this.unhandledRejectionListener),window.addEventListener("error",this.errorListener),document.documentElement.addEventListener("error",this.documentErrorListener,{capture:!0}),this.attachClearingInterval()}init(){}report(t,e,n){return ut(this,null,function*(){if(Array.isArray(e)&&e.length===0)return;Array.isArray(e)&&e.length===1&&(e=e[0]);let i=this.transform(e,n);if(i===null)return;let{context:o,error:s}=i;if(s instanceof Error)yield this.reportError(t,s,o);else if(s instanceof ErrorEvent)yield this.reportErrorEvent(t,s,o);else if(s instanceof Event)yield this.reportEvent(t,s,o);else if(typeof s=="string")yield this.reportString(t,s,void 0,o);else if(Array.isArray(s)){let a=s.find(u=>u instanceof Error);yield this.reportString(t,s.map(u=>Os(u)).join(" "),a,o)}else yield this.reportString(t,Os(s),void 0,o)})}reportError(t,e,n){return ut(this,null,function*(){let i=e.message||e.toString();if(!Yn(i)&&!e.stack)return;let o=Date.now(),s=this.tracer.startSpan(t,{startTime:o});this.attachSpanContext(s,e,n),s.setAttribute("component","error"),s.setAttribute("error",!0),s.setAttribute("error.object",Yn(e.name)?e.name:e.constructor&&e.constructor.name?e.constructor.name:"Error"),s.setAttribute("error.message",nr(i,1024)),Rs(s,e),yield this.endSpanWithThrottle(s,o)})}reportErrorEvent(t,e,n){return ut(this,null,function*(){e.error?yield this.report(t,e.error,n):e.message&&(yield this.report(t,e.message,n))})}reportEvent(t,e,n){return ut(this,null,function*(){if(!e.target&&!Yn(e.type))return;let i=Date.now(),o=this.tracer.startSpan(t,{startTime:i});if(this.attachSpanContext(o,e,n),o.setAttribute("component","error"),o.setAttribute("error.type",e.type),e.target&&(o.setAttribute("target_xpath",Vn(e.target,!0)),At(e.target))){var s;o.setAttribute("target_element",e.target.tagName);let a=(s=e.target.getAttribute("src"))!==null&&s!==void 0?s:"";a=a.startsWith("blob://")?"blob://":a.startsWith("data:")?"".concat(a.slice(0,47),"..."):a.slice(0,800),a&&(o.setAttribute("target_src",a),a=' src="'.concat(a,'"')),o.setAttribute("error.message","Failed to load <".concat(e.target.tagName.toLowerCase()).concat(a," />"))}yield this.endSpanWithThrottle(o,i)})}reportString(t,e,n,i){return ut(this,null,function*(){if(!Yn(e))return;let o=Date.now(),s=this.tracer.startSpan(t,{startTime:o});this.attachSpanContext(s,n??e,i),s.setAttribute("component","error"),s.setAttribute("error",!0),s.setAttribute("error.object","String"),s.setAttribute("error.message",nr(e,1024)),n&&Rs(s,n),yield this.endSpanWithThrottle(s,o)})}transform(t,e){let n,i;try{let o=null;if(me._.with((0,ln.M1)(me._.active()),()=>{var s;o=((s=this._splunkConfig.onError)!==null&&s!==void 0?s:bf)(t,e)}),o===null)return null;if(o===void 0)return k.s.warn("onError can use null explicitly to cancel reporting, but cannot use undefined implicitly"),{context:e,error:t};({context:i,error:n}=o)}catch(o){return k.s.warn("onError handler failed:",o),{context:e,error:t}}return n===t||this.isValidErrorArg(n)||Array.isArray(n)?this.isValidContext(i)?(i=Qa(i),{context:i,error:n}):(k.s.warn("onError handler was expected to produce a valid context (POJO), but instead returned: ".concat(typeof i)),{context:e,error:t}):(k.s.warn("ignoring an error because onError handler was expected to produce a valid error, but instead returned: ".concat(typeof n)),{context:e,error:t})}attachClearingInterval(){this.clearingIntervalId=setInterval(()=>{typeof requestIdleCallback=="function"?requestIdleCallback(this.clearExpiredItemsInThrottleMap,{timeout:1e3}):this.clearExpiredItemsInThrottleMap()},5e3)}attachSpanContext(t,e,n){let i=Ja(e.splunkContext||{}),o=Object.entries(ce(ce({}
4,n),i));for(let[s,a]of o)t.setAttribute(s,a)}endSpanWithThrottle(t,e){return ut(this,null,function*(){try{var n;let i=JSON.stringify([t.attributes,t.name]),o=(n=yield(function(s){return ut(this,null,function*(){if(typeof crypto>"u"||!crypto.subtle||!crypto.subtle.digest)return null;try{let a=new TextEncoder().encode(s),u=yield crypto.subtle.digest("SHA-256",a);return Array.from(new Uint8Array(u)).map(c=>c.toString(16).padStart(2,"0")).join("")}catch{return null}})})(i))!==null&&n!==void 0?n:i;(!this.throttleMap.has(o)||performance.now()-(this.throttleMap.get(o)||0)>1e3)&&(this.throttleMap.size<1e4&&this.throttleMap.set(o,performance.now()),t.end(e))}catch(i){return void k.s.debug("Error while ending span",i)}})}constructor(t,e,n){super(Ho,"1",t),S(this,"_splunkConfig",void 0),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"clearingIntervalId",void 0),S(this,"throttleMap",void 0),S(this,"isValidContext",void 0),S(this,"isValidErrorArg",void 0),S(this,"clearExpiredItemsInThrottleMap",void 0),S(this,"consoleErrorHandler",void 0),S(this,"documentErrorListener",void 0),S(this,"errorListener",void 0),S(this,"unhandledRejectionListener",void 0),this._splunkConfig=t,this.otelConfig=e,this.sessionManager=n,this.throttleMap=new Map,this.isValidContext=i=>Za(i),this.isValidErrorArg=i=>i instanceof Error||i instanceof ErrorEvent||i instanceof Event||typeof i=="string",this.clearExpiredItemsInThrottleMap=()=>{this.throttleMap.forEach((i,o)=>{performance.now()-i>1e3&&this.throttleMap.delete(o)})},this.consoleErrorHandler=i=>{var o=this;return function(){return ut(this,arguments,function*(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];return yield o.report("console.error",a,{}),i.apply(o,a)})}},this.documentErrorListener=i=>ut(this,null,function*(){yield this.report("eventListener.error",i,{})}),this.errorListener=i=>ut(this,null,function*(){yield this.report("onerror",i,{})}),this.unhandledRejectionListener=i=>ut(this,null,function*(){yield this.report("unhandledrejection",i.reason,{})})}},Ve,Zt=z(4956),Ef=function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function ou(r,t){return typeof t=="string"?r===t:!!r.match(t)}function su(r,t){var e,n;if(!t)return!1;try{for(var i=Ef(t),o=i.next();!o.done;o=i.next())if(ou(r,o.value))return!0}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return!1}(function(r){r.CONNECT_END="connectEnd",r.CONNECT_START="connectStart",r.DECODED_BODY_SIZE="decodedBodySize",r.DOM_COMPLETE="domComplete",r.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",r.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",r.DOM_INTERACTIVE="domInteractive",r.DOMAIN_LOOKUP_END="domainLookupEnd",r.DOMAIN_LOOKUP_START="domainLookupStart",r.ENCODED_BODY_SIZE="encodedBodySize",r.FETCH_START="fetchStart",r.LOAD_EVENT_END="loadEventEnd",r.LOAD_EVENT_START="loadEventStart",r.NAVIGATION_START="navigationStart",r.REDIRECT_END="redirectEnd",r.REDIRECT_START="redirectStart",r.REQUEST_START="requestStart",r.RESPONSE_END="responseEnd",r.RESPONSE_START="responseStart",r.SECURE_CONNECTION_START="secureConnectionStart",r.UNLOAD_EVENT_END="unloadEventEnd",r.UNLOAD_EVENT_START="unloadEventStart"})(Ve||(Ve={}));var fi,zr,_f="http.method",Tf="http.url",Sf="http.host",wf="http.scheme",Of="http.status_code",Rf="http.user_agent",Lf="http.response_content_length",Cf="http.response_content_length_uncompressed",au=_f,uu=Tf,cu=Sf,lu=wf,du=Of,hu=Rf,xf=Lf,Af=Cf;function Hi(r,t){return t in r}function $t(r,t,e,n){var i=void 0,o=void 0;Hi(e,t)&&typeof e[t]=="number"&&(i=e[t]);var s=n||Ve.FETCH_START;if(Hi(e,s)&&typeof e[s]=="number"&&(o=e[s]),i!==void 0&&o!==void 0&&i>=o)return r.addEvent(t,i),r}function Gr(r,t){$t(r,Ve.FETCH_START,t),$t(r,Ve.DOMAIN_LOOKUP_START,t),$t(r,Ve.DOMAIN_LOOKUP_END,t),$t(r,Ve.CONNECT_START,t),Hi(t,"
4name")&&t.name.startsWith("https:")&&$t(r,Ve.SECURE_CONNECTION_START,t),$t(r,Ve.CONNECT_END,t),$t(r,Ve.REQUEST_START,t),$t(r,Ve.RESPONSE_START,t),$t(r,Ve.RESPONSE_END,t);var e=t[Ve.ENCODED_BODY_SIZE];e!==void 0&&r.setAttribute(xf,e);var n=t[Ve.DECODED_BODY_SIZE];n!==void 0&&e!==n&&r.setAttribute(Af,n)}function pu(){return typeof location<"u"?location.origin:void 0}function fu(r,t,e,n,i,o){i===void 0&&(i=new WeakSet);var s=Jt(r),a=(function(h,p,f,g,m,y){var v=Kt(p),b=Kt(f),T=g.filter(function(E){var _=Kt(qn(E[Ve.FETCH_START])),O=Kt(qn(E[Ve.RESPONSE_END]));return E.initiatorType.toLowerCase()===(y||"xmlhttprequest")&&E.name===h&&_>=v&&O<=b});return T.length>0&&(T=T.filter(function(E){return!m.has(E)})),T})(r=s.toString(),t,e,n,i,o);if(a.length===0)return{mainRequest:void 0};if(a.length===1)return{mainRequest:a[0]};var u=(function(h){return h.slice().sort(function(p,f){var g=p[Ve.FETCH_START],m=f[Ve.FETCH_START];return g>m?1:g<m?-1:0})})(a);if(s.origin!==pu()&&u.length>1){var c=u[0],l=(function(h,p,f){for(var g,m=Kt(f),y=Kt(qn(p)),v=h[1],b=h.length,T=1;T<b;T++){var E=h[T],_=Kt(qn(E[Ve.FETCH_START])),O=m-Kt(qn(E[Ve.RESPONSE_END]));_>=y&&(!g||O<g)&&(g=O,v=E)}return v})(u,c[Ve.RESPONSE_END],e),d=c[Ve.RESPONSE_END];return l[Ve.FETCH_START]<d&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}return{mainRequest:a[0]}}function Jt(r){if(typeof URL=="function")return new URL(r,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=(fi||(fi=document.createElement("a")),fi);return t.href=r,t}function gu(r,t){var e=t||[];return(typeof e=="string"||e instanceof RegExp)&&(e=[e]),Jt(r).origin===pu()||e.some(function(n){return ou(r,n)})}(function(r){r.COMPONENT="component",r.HTTP_ERROR_NAME="http.error_name",r.HTTP_STATUS_TEXT="http.status_text"})(zr||(zr={}));var gi,Ls="0.52.1",Pf=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Cs=typeof process=="object"&&((gi=process.release)===null||gi===void 0?void 0:gi.name)==="node",kf=(function(r){function t(e){e===void 0&&(e={});var n=r.call(this,"@opentelemetry/instrumentation-fetch",Ls,e)||this;return n.component="fetch",n.version=Ls,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return Pf(t,r),t.prototype.init=function(){},t.prototype._addChildSpan=function(e,n){var i=this.tracer.startSpan("CORS Preflight",{startTime:n[Ve.FETCH_START]},qe.u.setSpan(me._.active(),e));this.getConfig().ignoreNetworkEvents||Gr(i,n),i.end(n[Ve.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,n){var i=Jt(n.url);e.setAttribute(du,n.status),n.statusText!=null&&e.setAttribute(zr.HTTP_STATUS_TEXT,n.statusText),e.setAttribute(cu,i.host),e.setAttribute(lu,i.protocol.replace(":","")),typeof navigator<"u"&&e.setAttribute(hu,navigator.userAgent)},t.prototype._addHeaders=function(e,n){if(!gu(n,this.getConfig().propagateTraceHeaderCorsUrls)){var i={};return Ot.$.inject(me._.active(),i),void(Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}e instanceof Request?Ot.$.inject(me._.active(),e.headers,{set:function(o,s,a){return o.set(s,typeof a=="string"?a:String(a))}}):e.headers instanceof Headers?Ot.$.inject(me._.active(),e.headers,{set:function(o,s,a){return o.set(s,typeof a=="string"?a:String(a))}}):e.headers instanceof Map?Ot.$.inject(me._.active(),e.headers,{set:function(o,s,a){return o.set(s,typeof a=="string"?a:String(a))}}):(i={},Ot.$.inject(me._.active(),i),e.headers=Object.assign({},i,e.headers||{}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,n){var i;if(n===void 0&&(n={}),!su(e,this.getConfig().ignoreUrls)){var o=(n.method||"GET").toUpperCase(),s="HTTP "+o;return this.tracer.startSpan(s,{kind:Zt.v.CLIENT,attributes:(i={},i[zr.COMPONENT]=this.moduleName,i[au]=o,i[uu]=e,i)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,n,i){var o=n.entries;if(!o.length){if(!performance.getEntriesByType)return;o=performance.getEntriesByType("resource")}var s=fu(n.spanUrl,n.startTime,i,o,this._usedResources,"fetch");if(s.mainRequest){var a=s.mainRequest;this._markResourceAsUsed(a);var u=s.corsPreFlightRequest;u&&(this._addChildSpan(e,u),this._markResourceAsUsed(u)),this.getConfig().ignoreNetworkEvents||Gr(e,a)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,n,i){var o=this,s=er(Date.now()),a=tr();this._addFinalSpanAttributes(e,i),setTimeout(function(){var u;(u=n.observer)===null||u===void 0||u.disconnect(),o._findResourceAndAddNetworkEvents(e,n,a),o._tasksCount--,o._clearResources(),e.end(s)},300)},t.prototype._patchConstructor=function(){var e=this;return function(n){var i=e;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=this,u=Jt(o[0]instanceof Request?o[0].url:String(o[0])).href,c=o[0]instanceof Request?o[0]:o[1]||{},l=i._createSpan(u,c);if(!l)return n.apply(this,o);var d=i._prepareSpanData(u);function h(m,y){i._applyAttributesAfterFetch(m,c,y),i._endSpan(m,d,{status:y.status||0,statusText:y.message,url:u})}function p(m,y){i._applyAttributesAfterFetch(m,c,y),y.status>=200&&y.status<400?i._endSpan(m,d,y):i._endSpan(m,d,{status:y.status,statusText:y.statusText,url:u})}function f(m,y,v){try{var b=v.clone(),T=v.clone(),E=b.body;if(E){var _=E.getReader(),O=function(){_.read().then(function(w){
4w.done?p(m,T):O()},function(w){h(m,w)})};O()}else p(m,v)}finally{y(v)}}function g(m,y,v){try{h(m,v)}finally{y(v)}}return new Promise(function(m,y){return me._.with(qe.u.setSpan(me._.active(),l),function(){return i._addHeaders(c,u),i._tasksCount++,n.apply(a,c instanceof Request?[c]:[u,c]).then(f.bind(a,l,m),g.bind(a,l,y))})})}}},t.prototype._applyAttributesAfterFetch=function(e,n,i){var o=this,s=this.getConfig().applyCustomAttributesOnSpan;s&&Fr(function(){return s(e,n,i)},function(a){a&&o._diag.error("applyCustomAttributesOnSpan",a)},!0)},t.prototype._prepareSpanData=function(e){var n=tr(),i=[];if(typeof PerformanceObserver!="function")return{entries:i,startTime:n,spanUrl:e};var o=new PerformanceObserver(function(s){s.getEntries().forEach(function(a){a.initiatorType==="fetch"&&a.name===e&&i.push(a)})});return o.observe({entryTypes:["resource"]}),{entries:i,observer:o,startTime:n,spanUrl:e}},t.prototype.enable=function(){Cs?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(Ct(fetch)&&(this._unwrap(Lr,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(Lr,"fetch",this._patchConstructor()))},t.prototype.disable=function(){Cs||(this._unwrap(Lr,"fetch"),this._usedResources=new WeakSet)},t})(mt),mi={ignoreUrls:[],timeWindowMs:1e3},qi=class r{static create(t,e){let n=r.resolveConfig(e);if(n)return new r(t,e,n)}disable(){var t,e,n,i;this.domContentLoadedListener&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedListener),this.domContentLoadedListener=void 0),this.clickSpanEmitterListener&&((e=this.otelConfig.spanEmitter)===null||e===void 0||e.removeEventListener("user-interaction",this.clickSpanEmitterListener),this.clickSpanEmitterListener=void 0),this.fetchSpanEmitterListener&&((n=this.otelConfig.spanEmitter)===null||n===void 0||n.removeEventListener("fetch:start",this.fetchSpanEmitterListener),this.fetchSpanEmitterListener=void 0),this.xhrSpanEmitterListener&&((i=this.otelConfig.spanEmitter)===null||i===void 0||i.removeEventListener("xml-http-request:start",this.xhrSpanEmitterListener),this.xhrSpanEmitterListener=void 0),(t=this.mutationObserver)===null||t===void 0||t.disconnect(),this.mutationObserver=void 0;for(let o of this.pendingClicks)clearTimeout(o.timer);this.pendingClicks=[],this.processedClickTraceIds.clear(),this.recentNetworkStartTimes=[],this.lastMutationTime=-1/0}enable(){var t,e,n;if(this.clickSpanEmitterListener)return;this.mutationObserver=new MutationObserver(()=>{this.lastMutationTime=performance.now()});let i=()=>{var o;this.domContentLoadedListener=void 0;let s=(o=document.body)!==null&&o!==void 0?o:document.documentElement;var a;
4s&&((a=this.mutationObserver)===null||a===void 0||a.observe(s,{attributes:!0,characterData:!0,childList:!0,subtree:!0}))};document.body?i():(this.domContentLoadedListener=i,document.addEventListener("DOMContentLoaded",i,{once:!0})),this.clickSpanEmitterListener=o=>{this.onClickSpan(o)},(t=this.otelConfig.spanEmitter)===null||t===void 0||t.addEventListener("user-interaction",this.clickSpanEmitterListener),this.fetchSpanEmitterListener=o=>{this.onNetworkSpan(o)},(e=this.otelConfig.spanEmitter)===null||e===void 0||e.addEventListener("fetch:start",this.fetchSpanEmitterListener),this.xhrSpanEmitterListener=o=>{this.onNetworkSpan(o)},(n=this.otelConfig.spanEmitter)===null||n===void 0||n.addEventListener("xml-http-request:start",this.xhrSpanEmitterListener)}static normalizeConfig(t){if(t===!0)return mi;let e=typeof t.timeWindowMs=="number"&&t.timeWindowMs>0?t.timeWindowMs:mi.timeWindowMs;return{ignoreUrls:Array.isArray(t.ignoreUrls)?t.ignoreUrls:mi.ignoreUrls,timeWindowMs:e}}static resolveConfig(t){var e;let n=(e=t.instrumentations)===null||e===void 0?void 0:e.frustrationSignals;if(n&&typeof n=="object"){var i;return n.deadClick===!1?void 0:r.normalizeConfig((i=n.deadClick)===null||i===void 0||i)}return r.normalizeConfig(!0)}emitFrustrationSpan(t){let e=t.span,n=[{context:e.spanContext()}],i=this.tracer.startSpan("frustration",{links:n,startTime:t.startTimeMs});i.setAttribute("frustration_type","dead"),i.setAttribute("interaction_type","click"),i.setAttribute("component","user-interaction");let o=e.attributes.target_xpath;dn(o)&&i.setAttribute("target_xpath",o);let s=e.attributes.target_text;dn(s)&&i.setAttribute("target_text",s);for(let[a,u]of Object.entries(e.attributes))a.startsWith("data.")&&i.setAttribute(a,u);i.setAttribute("click.span_id",e.spanContext().spanId),i.end(t.endTimeMs)}evaluateClick(t){let e=this.pendingClicks.indexOf(t);e!==-1&&this.pendingClicks.splice(e,1);let n=this.lastMutationTime>t.registeredAt;t.networkDetected||n||this.emitFrustrationSpan(t)}hasRecentNetworkForClick(t){for(let e of this.recentNetworkStartTimes)if(this.isNetworkInClickWindow(e,t))return!0;return!1}isInteractiveElement(t){return t.attributes.target_interactive===!0}isNetworkInClickWindow(t,e){return t>=e-100&&t<=e+this.config.timeWindowMs}onClickSpan(t){if(t.attributes.event_type!=="click"||(0,gn.K)(window.location.href,this.config.ignoreUrls)||!this.isInteractiveElement(t))return;let e=(0,Ne.JU)(t.startTime),n=(0,Ne.JU)(t.endTime),i=t.spanContext().traceId;if(this.pruneProcessedClickTraceIds(e),this.processedClickTraceIds.has(i))return;this.processedClickTraceIds.set(i,e),this.pruneRecentNetworkStarts(e);let o={endTimeMs:n,networkDetected:this.hasRecentNetworkForClick(e),registeredAt:performance.now(),span:t,startTimeMs:e,timer:setTimeout(()=>{this.evaluateClick(o)},this.config.timeWindowMs)};this.pendingClicks.push(o)}onNetworkSpan(t){let e=(0,Ne.JU)(t.startTime);this.pruneRecentNetworkStarts(e),this.recentNetworkStartTimes.push(e);for(let n of this.pendingClicks)this.isNetworkInClickWindow(e,n.startTimeMs)&&(n.networkDetected=!0)}pruneProcessedClickTraceIds(t){let e=t-this.config.timeWindowMs;for(let[n,i]of this.processedClickTraceIds.entries())i<e&&this.processedClickTraceIds.delete(n)}pruneRecentNetworkStarts(t){let e=t-this.config.timeWindowMs-100;this.recentNetworkStartTimes=this.recentNetworkStartTimes.filter(n=>n>=e)}constructor(t,e,n){S(this,"tracer",void 0),S(this,"otelConfig",void 0),S(this,"config",void 0),S(this,"clickSpanEmitterListener",void 0),S(this,"domContentLoadedListener",void 0),S(this,"fetchSpanEmitterListener",void 0),S(this,"lastMutationTime",void 0),S(this,"mutationObserver",void 0),S(this,"pendingClicks",void 0),S(this,"processedClickTraceIds",void 0),S(this,"recentNetworkStartTimes",void 0),S(this,"xhrSpanEmitterListener",void 0),this.tracer=t,this.otelConfig=e,this.config=n,this.lastMutationTime=-1/0,this.pendingClicks=[],this.processedClickTraceIds=new Map,this.recentNetworkStartTimes=[]}},vi={ignoreUrls:[],timeWindowMs:1e3},zi=class r{static create(t,e){let n=r.resolveConfig(e);if(n)return new r(t,e,n)}disable(){var t,e;this.clickSpanEmitterListener&&((t=this.otelConfig.spanEmitter)===null||t===void 0||t.removeEventListener("user-interaction",this.clickSpanEmitterListener),this.clickSpanEmitterListener=void 0),this.errorSpanEmitterListener&&((e=this.otelConfig.spanEmitter)===null||e===void 0||e.removeEventListener("error",this.errorSpanEmitterListener),this.errorSpanEmitterListener=void 0),this.recentClicks=[]}enable(){var t,e;this.clickSpanEmitterListener||(this.clickSpanEmitterListener=n=>{this.onClickSpan(n)},(t=this.otelConfig.spanEmitter)===null||t===void 0||t.addEventListener("user-interaction",this.clickSpanEmitterListener),this.errorSpanEmitterListener=n=>{this.onErrorSpan(n)},(e=this.otelConfig.spanEmitter)===null||e===void 0||e.addEventListener("error",this.errorSpanEmitterListener))}static normalizeConfig(t){if(t===!0)return vi;let e=typeof t.timeWindowMs=="number"&&t.timeWindowMs>0?t.timeWindowMs:vi.timeWindowMs;return{ignoreUrls:Array.isArray(t.ignoreUrls)?t.ignoreUrls:vi.ignoreUrls,timeWindowMs:e}}
4static resolveConfig(t){var e;let n=(e=t.instrumentations)===null||e===void 0?void 0:e.frustrationSignals;if(n&&typeof n=="object"){var i;return n.errorClick===!1?void 0:r.normalizeConfig((i=n.errorClick)===null||i===void 0||i)}return r.normalizeConfig(!0)}emitFrustrationSpan(t,e){let n=t.span,i=[{context:e.spanContext()},{context:n.spanContext()}],o=this.tracer.startSpan("frustration",{links:i,startTime:t.startTimeMs});o.setAttribute("frustration_type","error"),o.setAttribute("interaction_type","click"),o.setAttribute("component","user-interaction");let s=n.attributes.target_xpath;dn(s)&&o.setAttribute("target_xpath",s);let a=n.attributes.target_text;dn(a)&&o.setAttribute("target_text",a);for(let[l,d]of Object.entries(n.attributes))l.startsWith("data.")&&o.setAttribute(l,d);let u=e.attributes["error.message"];dn(u)&&o.setAttribute("error.message",u);let c=e.attributes["error.object"];dn(c)&&o.setAttribute("error.object",c),o.setAttribute("error.source",e.name),o.setAttribute("error.span_id",e.spanContext().spanId),o.setAttribute("click.span_id",n.spanContext().spanId),o.end(t.endTimeMs)}onClickSpan(t){if(t.attributes.event_type!=="click")return;let e=(0,Ne.JU)(t.startTime),n=(0,Ne.JU)(t.endTime);this.pruneOldClicks(e),this.recentClicks.push({consumed:!1,endTimeMs:n,span:t,startTimeMs:e})}onErrorSpan(t){if((0,gn.K)(window.location.href,this.config.ignoreUrls))return;let e=(0,Ne.JU)(t.endTime);this.pruneOldClicks(e);for(let n=this.recentClicks.length-1;n>=0;n--){let i=this.recentClicks[n];if(!i.consumed&&!(e-i.startTimeMs>this.config.timeWindowMs))return this.emitFrustrationSpan(i,t),void(i.consumed=!0)}}pruneOldClicks(t){this.recentClicks=this.recentClicks.filter(e=>t-e.startTimeMs<=this.config.timeWindowMs)}constructor(t,e,n){S(this,"tracer",void 0),S(this,"otelConfig",void 0),S(this,"config",void 0),S(this,"clickSpanEmitterListener",void 0),S(this,"errorSpanEmitterListener",void 0),S(this,"recentClicks",void 0),this.tracer=t,this.otelConfig=e,this.config=n,this.recentClicks=[]}};z(5498),z(9225),z(8087);var yi=(r,t)=>({isPasswordInput:vd(r)&&r.type==="password",sensitivityRuleType:If(r,t)}),If=function(r){let t=null,e=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:[]).toReversed();for(let n of e)if(Mf(n.selector).some(Nf(r))){t=n.rule;break}return t},Mf=r=>r.split(",").flatMap(t=>[t,"".concat(t," *")]),Nf=r=>t=>{let e=At(r)?r:Fi(r);return e!==null&&e.matches(t)},xs=(r,t)=>{let e=ce({},r);return t.isPasswordInput&&(e.isPasswordInput=!0),e.sensitivityRuleType!=="exclude"&&(e.sensitivityRuleType=t.sensitivityRuleType),e},mn=class{};S(mn,"shouldMaskTextNode",(r,t)=>{let e=ce({maskAllText:!0,sensitivityRules:[]},t),n=mn.retrieveNodePrivacyInfo(e,r);return!!["mask","exclude"].includes(n.sensitivityRuleType)||!(!e.maskAllText||n.sensitivityRuleType==="unmask")}),S(mn,"retrieveNodePrivacyInfo",(r,t)=>{let e=(a=>{let u=a.parentNode;return u===null&&(Ur(a)||jo(a)?u=a.host:xr(a)&&(u=ru(a))),u})(t),n=r.sensitivityRules,i=e?yi(e,n):null,o=yi(t,n),s;if(i)s=xs(i,o);else{s=ce({},o);for(let a of(function*(u){let c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(c&&xr(u))return;let l=At(u)?u:Fi(u);for(;l;){if(yield l,c&&l.parentNode&&xr(l.parentNode))return;l=Fi(l)}})(t)){let u=yi(a,n);s=xs(u,s)}}return He(ce({},s),{parent:e})});var mu=144e5,bn=9e5;function vu(r){if(typeof r!="object"||r===null)return!1;let t=r;return typeof t.sessionId=="string"&&t.sessionId.length>0&&typeof t.sessionStart=="number"&&Number.isFinite(t.sessionStart)&&t.sessionStart>0&&typeof t.sessionLastActivity=="number"&&Number.isFinite(t.sessionLastActivity)&&t.sessionLastActivity>0&&typeof t.anonymousUserId=="string"&&t.anonymousUserId.length>0}var Gi=class{notify(t){this.observers.forEach(e=>{try{e(t)}catch(n){k.s.error("Observable: Error happened in subscriber",n)}})}subscribe(t){return this.observers.push(t),()=>{let e=this.observers.indexOf(t);e!==-1&&this.observers.splice(e,1)}}constructor(){S(this,"observers",[])}},Df=["click","touchstart","keydown","scroll"],Xi=class r{get session(){return this._session}set session(t){let e=this._session;this._session=t,this.previousSessionState=e??null,this.sessionHistory.set(t.id,t),k.s.debug("SessionManager: Updating session",{currentState:t,previousState:e}),t.state==="active"&&this.storageManager.persistSessionState(this._session),this.isStarted&&this.notifySessionStateChange()}static getExternalSession(){if(typeof window>"u")return null;try{if(window.SplunkRumExternal&&window.SplunkRumExternal.getSessionMetadata){let t=window.SplunkRumExternal.getSessionMetadata();if(!vu(t))return null;let e={expiresAt:t.sessionLastActivity+bn,id:t.sessionId,source:"external",startTime:t.sessionStart,state:"active"};if(r.canContinueUsingSession(e))return e;k.s.warn("Retrieved session from SplunkRumExternal, but it cannot be continued (it may be expired or have reached its maximum duration). Ignoring the external session.")}else if(window.SplunkRumNative&&window.SplunkRumNative.getNativeSessionId){let t=window.SplunkRumNative.getNativeSessionId();return{expiresAt:Date.now()+bn,id:t,source:"external",startTime:Date.now(),state:"active"}}
4}catch(t){k.s.warn("Error while retrieving external session",t)}return null}static hasExternalSession(){if(typeof window>"u")return!1;let t=!!(window.SplunkRumNative&&window.SplunkRumNative.getNativeSessionId),e=!!(window.SplunkRumExternal&&window.SplunkRumExternal.getSessionMetadata);return t||e}getSessionId(){var t,e;return this.ensureSessionStateIsUpToDate(),(t=(e=r.getExternalSession())===null||e===void 0?void 0:e.id)!==null&&t!==void 0?t:this.session.id}getSessionMetadata(){this.ensureSessionStateIsUpToDate();let t=this.session;return{sessionId:t.id,sessionLastActivity:t.expiresAt-bn,sessionStart:t.startTime}}getSessionState(){return this.ensureSessionStateIsUpToDate(),this.session}start(){this.isStarted?k.s.warn("SessionManager is already started."):(this.isStarted=!0,this.notifySessionStateChange(),r.hasExternalSession()?this.attachExternalSessionWatcher():(this.attachUserActivityListeners(),this.attachStorageWatch(),this.attachVisibilityListener(),this.attachWatchSessionState()))}stop(){this.isStarted?(this.isStarted=!1,this.stopCallbacks.forEach(t=>t()),this.stopCallbacks=[]):k.s.warn("SessionManager is already stopped.")}subscribe(t){return this.sessionStateChange.subscribe(t)}static canContinueUsingSession(t){return!r.isSessionExpired(t)&&!r.isSessionMaxDurationReached(t)}static generateNewSession(t){let e=cr(128);return window.__splunkRumIntegrationTestSessionId&&(e=window.__splunkRumIntegrationTestSessionId),{expiresAt:Date.now()+bn,id:e,source:"web",startTime:Date.now(),state:t}}static isSessionExpired(t){return Date.now()>t.expiresAt}static isSessionMaxDurationReached(t){return Date.now()>t.startTime+mu}addEventListeners(t,e,n,i){return e.forEach(o=>t.addEventListener(o,n,i)),{removeListenersCallback:()=>e.forEach(o=>t.removeEventListener(o,n,i))}}attachExternalSessionWatcher(){let t=setInterval(()=>{let e=r.getExternalSession(),n=this.session;e&&(this.session=ce(ce({},n),e))},1e3);this.stopCallbacks.push(()=>clearInterval(t))}attachStorageWatch(){let t=setInterval(this.synchronizeStorageWithCurrentSessionState,1e3);this.stopCallbacks.push(()=>clearInterval(t))}attachUserActivityListeners(){let{removeListenersCallback:t}=this.addEventListeners(window,Df,this.extendOrCreateNewSession,{capture:!0,passive:!0});this.stopCallbacks.push(t)}attachVisibilityListener(){let t=()=>{document.visibilityState==="visible"&&(k.s.debug("SessionManager: Document is in visible state. Synchronizing storage."),this.synchronizeStorageWithCurrentSessionState())};document.addEventListener("visibilitychange",t,{capture:!0,passive:!0}),this.stopCallbacks.push(()=>{document.removeEventListener("visibilitychange",t)})}attachWatchSessionState(){let t=setInterval(this.watchSessionState,1e3);this.stopCallbacks.push(()=>clearInterval(t))}ensureSessionStateIsUpToDate(){this.getUpdatedSessionStateIfExpired()&&this.watchSessionState()}getSessionStateFromStorageAndValidate(){let t=this.storageManager.getSessionState();if(!t)return null;let e=He(ce({source:"web"},t),{state:"active"});return r.canContinueUsingSession(e)?e:null}constructor(t,e,n=!1){if(S(this,"storageManager",void 0),S(this,"externalSessionMetadata",void 0),S(this,"adjustSessionStartToTimeOrigin",void 0),S(this,"sessionHistory",void 0),S(this,"_session",void 0),S(this,"isStarted",void 0),S(this,"lastActivityProcessed",void 0),S(this,"newSessionsPendingToReport",void 0),S(this,"previousSessionState",void 0),S(this,"sessionStateChange",void 0),S(this,"stopCallbacks",void 0),S(this,"extendOrCreateNewSession",void 0),S(this,"getUpdatedSessionStateIfExpired",void 0),S(this,"notifySessionStateChange",void 0),S(this,"synchronizeStorageWithCurrentSessionState",void 0),S(this,"watchSessionState",void 0),this.storageManager=t,this.externalSessionMetadata=e,this.adjustSessionStartToTimeOrigin=n,this.sessionHistory=new Map,this.isStarted=!1,this.lastActivityProcessed=0,this.newSessionsPendingToReport=new Set,this.previousSessionState=null,this.sessionStateChange=new Gi,this.stopCallbacks=[],this.extendOrCreateNewSession=o=>{let s=performance.now();if(this.lastActivityProcessed!==0&&s-this.lastActivityProcessed<1e3)return void k.s.debug("SessionManager: User activity is throttled.");
4if(this.lastActivityProcessed=s,k.s.debug("SessionManager: User activity detected - checking if session should be extended or a new one created."),(a=o).isTrusted!==void 0&&!a.isTrusted)return void k.s.debug("SessionManager: extendOrCreateNewSession received untrusted event.");var a;if(r.hasExternalSession())return void k.s.debug("SessionManager: External session ID detected. Session extension or creation is managed externally.");let u=this.session;if(r.canContinueUsingSession(u))k.s.debug("SessionManager: Extending expiration of the current session.",{previousState:u}),this.session=He(ce({},u),{expiresAt:Date.now()+bn});else{k.s.debug("SessionManager: Cannot continue current session: session has expired or reached its maximum duration.");let c=this.getSessionStateFromStorageAndValidate();if(c)this.session=He(ce({},c),{expiresAt:Date.now()+bn,state:"active"});else{let l=r.generateNewSession("active");this.newSessionsPendingToReport.add(l.id),this.session=l}}},this.getUpdatedSessionStateIfExpired=()=>{if(!r.canContinueUsingSession(this.session)){let o=r.isSessionMaxDurationReached(this.session)?"expired-duration":"expired-inactivity";if(this.session.state!==o)return He(ce({},this.session),{state:o})}},this.notifySessionStateChange=()=>{let o=this.newSessionsPendingToReport.has(this._session.id);this.sessionStateChange.notify({currentState:o?He(ce({},this._session),{isNew:!0}):this._session,previousState:this.previousSessionState}),o&&this.newSessionsPendingToReport.delete(this._session.id)},this.synchronizeStorageWithCurrentSessionState=()=>{let o=this.getSessionStateFromStorageAndValidate();if(o)return o.id!==this.session.id?(k.s.debug("SessionManager: Session in storage changed.",{persistedSessionState:o}),void(this.session=He(ce({},o),{state:"active"}))):o.expiresAt>this.session.expiresAt?(k.s.debug("SessionManager: Expiration of session changed."),void(this.session=ce({},o))):void 0},this.watchSessionState=()=>{let o=this.getUpdatedSessionStateIfExpired();o&&(this.session=o)},e){let o={expiresAt:e.sessionLastActivity+bn,id:e.sessionId,source:"external",startTime:e.sessionStart,state:"active"};if(r.canContinueUsingSession(o))return this.session=o,void k.s.debug("SessionManager: Initialized with provided external session metadata.",{state:this._session})}let i=r.getExternalSession();if(i)this.session=ce({},i);else{let o=this.getSessionStateFromStorageAndValidate();if(o)this.session=o;else{let s=r.generateNewSession("active");n&&(s.startTime=Math.trunc(s.startTime-performance.now())),this.newSessionsPendingToReport.add(s.id),this.session=s}}k.s.debug("SessionManager: Initialized. Current session state",{state:this._session})}};z(711),z(4265),z(5732),z(2940),z(972),z(9679),z(9130),z(9597);var Xr=class{resync(t,e){var n;!((n=this.consumersBySelector.get(e))===null||n===void 0)&&n.has(t)&&this.scanSelector(e,t)}unwatch(t){let e=this.callbacks.get(t);e&&(this.dropConsumerFromAllSelectors(t,e),this.callbacks.delete(t),this.syncMutationObserver())}watch(t,e,n){this.callbacks.set(t,n);let i=new Set(e);for(let[o,s]of this.consumersBySelector)s.has(t)&&!i.has(o)&&this.dropConsumerFromSelector(t,o,n);for(let o of i)this.addConsumerToSelector(t,o);this.syncMutationObserver()}addConsumerToSelector(t,e){var n,i;!((n=this.consumersBySelector.get(e))===null||n===void 0)&&n.has(t)||(this.consumersBySelector.has(e)||this.consumersBySelector.set(e,new Set),(i=this.consumersBySelector.get(e))===null||i===void 0||i.add(t),this.scanSelector(e,t))}clearScheduledScan(){this.scanTimeoutId!==void 0&&(clearTimeout(this.scanTimeoutId),this.scanTimeoutId=void 0)}computeVisibilityDelta(t){var e;let n=(e=this.visibleElementsBySelector.get(t))!==null&&e!==void 0?e:new Set,i=this.getVisibleMatches(t);this.visibleElementsBySelector.set(t,i);let o=[];for(let a of i)n.has(a)||o.push(a);let s=[];for(let a of n)i.has(a)||s.push(a);return{appeared:o,currentlyVisible:i,disappeared:s}}dropConsumerFromAllSelectors(t,e){for(let i of this.consumersBySelector.keys()){var n;!((n=this.consumersBySelector.get(i))===null||n===void 0)&&n.has(t)&&this.dropConsumerFromSelector(t,i,e)}}dropConsumerFromSelector(t,e,n){var i,o;(i=this.consumersBySelector.get(e))===null||i===void 0||i.delete(t);let s=this.visibleElementsBySelector.get(e);if(s)for(let a of s)try{n({element:a,selector:e,visible:!1})}catch(u){k.s.warn("ElementVisibilityObserver: Consumer callback threw.",{error:u})}((o=this.consumersBySelector.get(e))===null||o===void 0?void 0:o.size)===0&&(this.consumersBySelector.delete(e),this.visibleElementsBySelector.delete(e))}getVisibleMatches(t){let e;try{e=document.querySelectorAll(t)}catch(n){return this.warnedInvalidSelectors.has(t)||(this.warnedInvalidSelectors.add(t),k.s.warn("ElementVisibilityObserver: Invalid selector.",{error:n,selector:t})),new Set}return new Set(Array.from(e).filter(n=>this.isElementVisible(n)))}invokeCallback(t,e){try{var n;(n=this.callbacks.get(t))===null||n===void 0||n(e)}catch(i){k.s.warn("ElementVisibilityObserver: Consumer callback threw.",{error:i})}}isElementVisible(t){if(!t.isConnected||t.hasAttribute("hidden")||t.getClientRects().length===0)return!1;let e=getComputedStyle(t);return e.display!=="none"&&e.visibility!=="hidden"&&e.visibility!=="collapse"}notify(t,e){for(let n of t)this.invokeCallback(n,e)}scanSelector(t,e){var n;let{appeared:i,currentlyVisible:o,disappeared:s}=this.computeVisibilityDelta(t),a=(n=this.consumersBySelector.get(t))!==null&&n!==void 0?n:new Set,u=e===void 0?a:new Set([...a].filter(c=>c!==e));if(e!==void 0)for(let c of o)this.invokeCallback(e,{element:c,selector:t,visible:!0});for(let c of i)this.notify(u,{element:c,selector:t,visible:!0});for(let c of s)this.notify(u,{element:c,selector:t,visible:!1})}scanSelectors(){this.clearScheduledScan();let t=[],e=[];for(let o of this.consumersBySelector.keys()){let{appeared:s,disappeared:a}=this.computeVisibilityDelta(o);for(let u of s)t.push({element:u,selector:o});
4for(let u of a)e.push({element:u,selector:o})}for(let{element:o,selector:s}of t){var n;this.notify((n=this.consumersBySelector.get(s))!==null&&n!==void 0?n:new Set,{element:o,selector:s,visible:!0})}for(let{element:o,selector:s}of e){var i;this.notify((i=this.consumersBySelector.get(s))!==null&&i!==void 0?i:new Set,{element:o,selector:s,visible:!1})}}scheduleScan(){this.scanTimeoutId===void 0&&(this.scanTimeoutId=setTimeout(()=>{this.scanSelectors()},0))}syncMutationObserver(){var t;this.consumersBySelector.size>0?this.observer||(this.observer=new MutationObserver(e=>{e.some(n=>n.type==="childList"||n.type==="attributes"&&At(n.target))&&this.scheduleScan()}),this.observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})):((t=this.observer)===null||t===void 0||t.disconnect(),this.observer=null)}constructor(){S(this,"callbacks",new Map),S(this,"consumersBySelector",new Map),S(this,"observer",null),S(this,"scanTimeoutId",void 0),S(this,"visibleElementsBySelector",new Map),S(this,"warnedInvalidSelectors",new Set)}},As=(function(r){return r.DISCOVERED="discovered",r.ERROR="error",r.LOADED="loaded",r})({}),Ze=class{static createDiscoveredEvent(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:performance.now();return{id:cr(64),state:"discovered",timestamp:e,url:t}}static createErrorEvent(t,e){return{id:t,state:"error",timestamp:performance.now(),url:e}}static createLoadedEvent(t,e,n){return{id:t,loadTime:n,state:"loaded",timestamp:arguments.length>3&&arguments[3]!==void 0?arguments[3]:performance.now(),url:e}}emitResourceStateChange(t){this.config.onResourceStateChange(He(ce({},t),{monitorType:this.monitorType}))}constructor(t){S(this,"config",void 0),this.config=t}},$i=class extends Ze{start(){this.isMonitoring?k.s.warn("PageLoadingManager.FetchXhrMonitor: Already monitoring fetch/XHR requests."):(this.isMonitoring=!0,this.patchFetch(),this.patchXhr(),k.s.debug("PageLoadingManager.FetchXhrMonitor: Started monitoring fetch/XHR requests."))}stop(){this.isMonitoring&&(this.restoreFetch(),this.restoreXhr(),this.isMonitoring=!1,k.s.debug("PageLoadingManager.FetchXhrMonitor: Stopped monitoring."))}patchFetch(){if(typeof window>"u"||!window.fetch)return;let t=this;je.wrap(window,"fetch",e=>function(n,i){let o=typeof n=="string"?n:n instanceof URL?n.toString():n.url,s=Ze.createDiscoveredEvent(o),a=performance.now();return t.emitResourceStateChange(s),e(n,i).then(u=>(t.emitResourceStateChange(Ze.createLoadedEvent(s.id,o,performance.now()-a)),u)).catch(u=>{throw t.emitResourceStateChange(Ze.createErrorEvent(s.id,o)),u})})}patchXhr(){let t=this;je.wrap(XMLHttpRequest.prototype,"open",e=>function(n,i,o,s,a){return this._splunkMonitorUrl=typeof i=="string"?i:i.toString(),e.call(this,n,i,o==null||o,s,a)}),je.wrap(XMLHttpRequest.prototype,"send",e=>function(n){let i=this._splunkMonitorUrl;if(i){let o=Ze.createDiscoveredEvent(i),s=performance.now();this._splunkMonitorResourceId=o.id,t.emitResourceStateChange(o);let a=()=>{t.emitResourceStateChange(Ze.createLoadedEvent(o.id,i,performance.now()-s)),c()},u=()=>{t.emitResourceStateChange(Ze.createErrorEvent(o.id,i)),c()},c=()=>{this.removeEventListener("load",a),this.removeEventListener("error",u),this.removeEventListener("abort",u)};this.addEventListener("load",a),this.addEventListener("error",u),this.addEventListener("abort",u)}return e.call(this,n)})}restoreFetch(){je.unwrap(window,"fetch")}restoreXhr(){je.unwrap(XMLHttpRequest.prototype,"open"),je.unwrap(XMLHttpRequest.prototype,"send")}constructor(...t){super(...t),S(this,"monitorType","network"),S(this,"isMonitoring",!1)}},Wi=class extends Ze{refresh(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.forgetDroppedResources(e.droppedResourceUrls);this.setSelectors(t),this.elementVisibilityObserver.watch(this.consumerId,this.selectors,this.handleVisibilityChange);for(let i of n)this.selectors.includes(i)&&this.elementVisibilityObserver.resync(this.consumerId,i)}start(){this.isMonitoring?k.s.warn("PageLoadingManager.LoadingElementMonitor: Already monitoring loading elements."):(this.isMonitoring=!0,this.elementVisibilityObserver.watch(this.consumerId,this.selectors,this.handleVisibilityChange),k.s.debug("PageLoadingManager.LoadingElementMonitor: Started monitoring loading elements."))}stop(){this.monitoredSelectors.clear(),this.visibleElementsBySelector.clear(),this.elementVisibilityObserver.unwatch(this.consumerId),this.isMonitoring&&(this.isMonitoring=!1,k.s.debug("PageLoadingManager.LoadingElementMonitor: Stopped monitoring."))}completeSelector(t){let e=this.monitoredSelectors.get(t);e&&(this.monitoredSelectors.delete(t),this.emitResourceStateChange(Ze.createLoadedEvent(e.id,e.url,performance.now()-e.startTime)))}
4forgetDroppedResources(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.length===0)return[];let e=new Set(t),n=[];for(let[i,o]of this.monitoredSelectors)e.has(o.url)&&(this.monitoredSelectors.delete(i),this.visibleElementsBySelector.delete(i),n.push(i));return n}getLoadingElementUrl(t){return"".concat("element:").concat(t)}setSelectors(t){let e=[...new Set(t)],n=new Set(e);for(let i of this.monitoredSelectors.keys())n.has(i)||(this.completeSelector(i),this.visibleElementsBySelector.delete(i));this.selectors=e}constructor(t){if(super(t),S(this,"monitorType","elements"),S(this,"consumerId",void 0),S(this,"elementVisibilityObserver",void 0),S(this,"isMonitoring",!1),S(this,"monitoredSelectors",new Map),S(this,"selectors",[]),S(this,"visibleElementsBySelector",new Map),S(this,"handleVisibilityChange",e=>{var n;let{element:i,selector:o,visible:s}=e,a=(n=this.visibleElementsBySelector.get(o))!==null&&n!==void 0?n:new Set,u=a.size>0;s?a.add(i):a.delete(i),a.size===0?this.visibleElementsBySelector.delete(o):this.visibleElementsBySelector.set(o,a);let c=a.size>0;if(c&&!u){let l=this.getLoadingElementUrl(o),d=Ze.createDiscoveredEvent(l);this.monitoredSelectors.set(o,{id:d.id,startTime:performance.now(),url:l}),this.emitResourceStateChange(d)}else!c&&u&&this.completeSelector(o)}),!t.elementVisibilityObserver||!t.consumerId)throw new Error("LoadingElementMonitor requires elementVisibilityObserver and consumerId.");this.elementVisibilityObserver=t.elementVisibilityObserver,this.consumerId=t.consumerId}},Ki=class extends Ze{start(){this.isMonitoring?k.s.warn("PageLoadingManager.MediaMonitor: Already monitoring media elements."):(this.isMonitoring=!0,this.monitorExistingMediaElements(),this.setupMutationObserver(),k.s.debug("PageLoadingManager.MediaMonitor: Started monitoring media elements."))}stop(){var t;this.isMonitoring&&((t=this.observer)===null||t===void 0||t.disconnect(),this.observer=null,this.monitoredMediaElementControllers.forEach(e=>e.abort()),this.monitoredMediaElementControllers.clear(),this.monitoredMediaElements=new WeakMap,this.isMonitoring=!1,k.s.debug("PageLoadingManager.MediaMonitor: Stopped monitoring."))}attachMediaListener(t){let e=this.monitoredMediaElements.get(t),n=this.getMediaUrl(t);if(!n)return void this.untrackMediaElement(t);if(e?.url===n||(this.untrackMediaElement(t),t instanceof HTMLImageElement&&t.loading==="lazy"))return;let i=Ze.createDiscoveredEvent(n);if(this.isElementAlreadyLoaded(t))return void this.emitResourceStateChange(Ze.createLoadedEvent(i.id,n,0));if(this.isElementAlreadyFailed(t))return void this.emitResourceStateChange(Ze.createErrorEvent(i.id,n));this.emitResourceStateChange(i);let o=performance.now(),s=t instanceof HTMLImageElement?"load":"loadeddata",a=new AbortController,u=c=>{this.emitResourceStateChange(Ze.createErrorEvent(i.id,n)),this.cleanupMediaElement(c.currentTarget,a)};this.monitoredMediaElementControllers.add(a),this.monitoredMediaElements.set(t,{controller:a,id:i.id,url:n}),t.addEventListener(s,c=>{this.emitResourceStateChange(Ze.createLoadedEvent(i.id,n,performance.now()-o)),this.cleanupMediaElement(c.currentTarget,a)},{once:!0,passive:!0,signal:a.signal}),t.addEventListener("error",u,{once:!0,passive:!0,signal:a.signal}),t.addEventListener("abort",u,{once:!0,passive:!0,signal:a.signal})}attachMediaListeners(t){At(t)&&(Cn(t)?this.attachMediaListener(t):t.querySelectorAll("img, video, audio").forEach(e=>{Cn(e)&&this.attachMediaListener(e)}))}cleanupMediaElement(t,e){if(!t||!At(t)||!Cn(t))return;let n=this.monitoredMediaElements.get(t);n?.controller===e&&(e.abort(),this.monitoredMediaElementControllers.delete(e),this.monitoredMediaElements.delete(t))}getMediaUrl(t){return t.getAttribute("src")?t.src:t.currentSrc||void 0}isElementAlreadyFailed(t){return t instanceof HTMLImageElement&&t.complete&&t.naturalHeight===0}isElementAlreadyLoaded(t){return t instanceof HTMLImageElement?t.complete&&t.naturalHeight!==0:(t instanceof HTMLVideoElement||t instanceof HTMLAudioElement)&&t.readyState>=2}monitorExistingMediaElements(){let t=document.querySelectorAll("img"),e=document.querySelectorAll("video"),n=document.querySelectorAll("audio");
4[...Array.from(t),...Array.from(e),...Array.from(n)].forEach(i=>this.attachMediaListener(i))}setupMutationObserver(){this.observer=new MutationObserver(t=>{t.forEach(e=>{e.type==="attributes"&&At(e.target)&&Cn(e.target)?this.attachMediaListener(e.target):(e.addedNodes.forEach(n=>this.attachMediaListeners(n)),e.removedNodes.forEach(n=>this.untrackMediaElements(n)))})}),document.body?this.observer.observe(document.body,{attributeFilter:["src","srcset"],attributes:!0,childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",()=>{var t;(t=this.observer)===null||t===void 0||t.observe(document.body,{attributeFilter:["src","srcset"],attributes:!0,childList:!0,subtree:!0})},{once:!0})}untrackMediaElement(t){let e=this.monitoredMediaElements.get(t);e&&(this.emitResourceStateChange(Ze.createErrorEvent(e.id,e.url)),this.cleanupMediaElement(t,e.controller))}untrackMediaElements(t){At(t)&&(Cn(t)?this.untrackMediaElement(t):t.querySelectorAll("img, video, audio").forEach(e=>{Cn(e)&&this.untrackMediaElement(e)}))}constructor(...t){super(...t),S(this,"monitorType","media"),S(this,"isMonitoring",!1),S(this,"monitoredMediaElementControllers",new Set),S(this,"monitoredMediaElements",new WeakMap),S(this,"observer",null)}},Yi=class extends Ze{start(){if(this.isMonitoring)k.s.warn("PageLoadingManager.PerformanceMonitor: Already monitoring.");else if(typeof PerformanceObserver<"u"){this.isMonitoring=!0,this.observer=new PerformanceObserver(t=>{for(let e of t.getEntries())this.handleResourceEntry(e)});try{this.observer.observe({buffered:!0,type:"resource"})}catch{this.observer.observe({entryTypes:["resource"]})}k.s.debug("PageLoadingManager.PerformanceMonitor: Started monitoring resource timing.")}else k.s.warn("PageLoadingManager.PerformanceMonitor: PerformanceObserver not available.")}stop(){var t;this.isMonitoring&&((t=this.observer)===null||t===void 0||t.disconnect(),this.observer=null,this.isMonitoring=!1,k.s.debug("PageLoadingManager.PerformanceMonitor: Stopped monitoring."))}handleResourceEntry(t){let e=t.name;if(!Bo(t.initiatorType).includes(this.monitorType))return;let n=t.responseEnd-t.startTime,i=Ze.createDiscoveredEvent(e,t.fetchStart);this.emitResourceStateChange(i),this.emitResourceStateChange(Ze.createLoadedEvent(i.id,e,n,t.responseEnd)),k.s.debug("PageLoadingManager.PerformanceMonitor: Resource loaded",{initiatorType:t.initiatorType,loadTime:n,url:e})}constructor(...t){super(...t),S(this,"monitorType","performance"),S(this,"isMonitoring",!1),S(this,"observer",null)}},Uf={capture:!0,once:!0},jf={capture:!0};function Bf(r){let{maxPageLoadWaitTime:t,quietTime:e}=r;return t>=e?t:(k.s.warn("spa.maxPageLoadWaitTime cannot be lower than quietTime. Using quietTime as maxPageLoadWaitTime.",{maxPageLoadWaitTime:t,quietTime:e}),e)}var Zi=class{complete(t){let{areResourcesStillLoading:e}=t;if(this.isResolved)return;let n=performance.now();!e&&this.lastResourceTimestamp&&(k.s.debug("No resources loading. Using last resource timestamp."),n=this.lastResourceTimestamp);let i=n-this.startTime;k.s.debug("QuietPeriodAwaiter: Complete",{pct:i}),this.resolveOnce({pct:i,status:pi})}interrupt(){if(this.isResolved)return;let t=performance.now(),e=Math.max(t-this.startTime,0);k.s.debug("QuietPeriodAwaiter: Interrupted",{pct:e}),this.resolveOnce({pct:e,status:"interrupted"})}removeQuietTimer(){this.timeoutId!==void 0&&(clearTimeout(this.timeoutId),this.timeoutId=void 0,this.quietTimerResetCount+=1)}startQuietTimer(t){let{resourceLoadedTimestamp:e}=t;var n;if(this.isResolved)return;let i=Math.max((n=this.lastResourceTimestamp)!==null&&n!==void 0?n:e,e);this.lastResourceTimestamp=i,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{k.s.debug("QuietPeriodAwaiter: Quiet period expired",this.quietTime),this.resolveOnce({pct:Math.max(i-this.startTime,0),status:pi})},this.quietTime)}resolveOnce(t){this.isResolved||(this.isResolved=!0,clearTimeout(this.timeoutId),this.timeoutId=void 0,window.removeEventListener("pagehide",this.interruptListener,jf),this.resolve(this.withLoadingResourcesDetails(t)))}withLoadingResourcesDetails(t){if(t.status===pi)return He(ce({},t),{detectedResourcesCount:this.getDetectedResourcesCount(),lastLoadedResources:this.getLastLoadedResources(),loadingResourcesCount:0,loadingResourceUrls:[],longestLoadedResource:this.getLongestLoadedResource(),quietTimerResetCount:this.quietTimerResetCount});let e=this.getLoadingResourcesCount();return He(ce({},t),{detectedResourcesCount:this.getDetectedResourcesCount(),lastLoadedResources:this.getLastLoadedResources(),loadingResourcesCount:e,loadingResourceUrls:this.getLoadingResourceUrls(),longestLoadedResource:this.getLongestLoadedResource(),quietTimerResetCount:this.quietTimerResetCount})}constructor({getDetectedResourcesCount:t,getLastLoadedResources:e,getLoadingResourcesCount:n,getLoadingResourceUrls:i,getL
4ongestLoadedResource:o,quietTime:s=1e3,startTime:a=performance.now()}){S(this,"promise",void 0),S(this,"getDetectedResourcesCount",void 0),S(this,"getLastLoadedResources",void 0),S(this,"getLoadingResourceUrls",void 0),S(this,"getLoadingResourcesCount",void 0),S(this,"getLongestLoadedResource",void 0),S(this,"isResolved",!1),S(this,"lastResourceTimestamp",void 0),S(this,"quietTime",void 0),S(this,"quietTimerResetCount",0),S(this,"startTime",void 0),S(this,"timeoutId",void 0),S(this,"interruptListener",()=>{this.interrupt()}),S(this,"resolve",()=>{}),this.getDetectedResourcesCount=t,this.getLastLoadedResources=e,this.getLoadingResourceUrls=i,this.getLoadingResourcesCount=n,this.getLongestLoadedResource=o,this.startTime=a,this.quietTime=s,this.promise=new Promise(u=>{this.resolve=u}),window.addEventListener("pagehide",this.interruptListener,Uf)}},Ff={blockingSelectors:[],clearLoadingResourcesOnNewPage:!0,ignoreUrls:[],maxPageLoadWaitTime:18e4,maxResourcesToWatch:100,monitors:["media","network","performance"],quietTime:1e3},Ji=class r{get detectedResourcesCount(){var t,e;return(t=(e=this.pageLoadResourceTracker)===null||e===void 0?void 0:e.detectedResourcesCount)!==null&&t!==void 0?t:0}get loadingResourceUrls(){return Array.from(this.loadingResources.values()).slice(-3).map(t=>Vi(t.url,100))}get lastLoadedResources(){var t,e;return(t=(e=this.pageLoadResourceTracker)===null||e===void 0?void 0:e.lastLoadedResources)!==null&&t!==void 0?t:[]}get loadingResourcesCount(){return this.loadingResources.size}get longestLoadedResource(){var t;return(t=this.pageLoadResourceTracker)===null||t===void 0?void 0:t.longestLoadedResource}completeCurrentNavigationPct(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:performance.now(),n=t.spanContext().spanId;for(let i=this.navigationHistory.length-1;i>=0;i--){let o=this.navigationHistory[i];if(o.spanId===n)return void(o.pctEndTime=e)}}getConfigForUrl(t){var e,n;return(e=(n=this.urlOverrides.find(i=>this.isUrlOverrideMatch(i.match,t)))===null||n===void 0?void 0:n.config)!==null&&e!==void 0?e:this.config}getCurrentNavigationSpanId(){var t;return(t=this.navigationHistory.at(-1))===null||t===void 0?void 0:t.spanId}getNavigationOperation(t){var e,n;return(e=(n=this.getNavigationAt(t))===null||n===void 0?void 0:n.operation)!==null&&e!==void 0?e:Bi}getNavigationPageAttributes(t,e){if(!this.emitNavigationAttributes)return;let n=this.getNavigationAt(t);if(!n)return;let i=n.pctEndTime===void 0||t<=n.pctEndTime,o=n.spanId===this.getCurrentNavigationSpanId()&&i&&(e?.type==="document"||e?.type==="resource"&&this.evaluateResourceAdmission(e,t));return{pageSpanId:n.spanId,pctRelevant:o}}setCurrentNavigationSpan(t,e,n){this.navigationHistory.push({operation:n,spanId:t.spanContext().spanId,startTime:e}),this.navigationHistory.length>10&&this.navigationHistory.shift()}setPageLoadMetricAttributes(t,e,n){let{detectedResourcesCount:i,lastLoadedResources:o,loadingResourcesCount:s,loadingResourceUrls:a,longestLoadedResource:u,pct:c,quietTimerResetCount:l,status:d}=e;(this.emitNavigationAttributes||n===kr)&&(t.setAttribute("browser.navigation.page_completion_time",c),t.setAttribute("browser.navigation.status",d)),this.emitNavigationAttributes&&(s>0&&(t.setAttribute("browser.navigation.loading_resource_count",s),a.length>0&&t.setAttribute("browser.navigation.loading_resource_urls",JSON.stringify(a))),t.setAttribute("browser.navigation.detected_resource_count",i),t.setAttribute("browser.navigation.quiet_timer_reset_count",l),o.length>0&&t.setAttribute("browser.navigation.last_loaded_resources",JSON.stringify(o)),u&&t.setAttribute("browser.navigation.longest_loaded_resource",JSON.stringify(u)))}get activeConfig(){return this.getConfigForUrl(location.href)}start(){if(this.isMonitoring)k.s.warn("SpaMetricsManager: Already monitoring.");else{this.isMonitoring=!0;for(let t of Object.values(this.monitors))t.start();k.s.debug("SpaMetricsManager: Started monitoring.")}}stop(){var t;if((t=this.quietPeriodAwaiter)===null||t===void 0||t.interrupt(),this.quietPeriodAwaiter=void 0,this.navigationHistory=[],this.resourceAdmissionDecisions.clear(),this.isMonitoring){this.isMonitoring=!1;for(let e of Object.values(this.monitors))e.stop();this.loadingResources.clear(),k.s.debug("SpaMetricsManager: Stopped monitoring.")}}waitForPageLoad(t){let{operation:e,span:n,startTime:i}=t;var o;(o=this.quietPeriodAwaiter)===null||o===void 0||o.interrupt(),n&&this.setCurrentNavigationSpan(n,i,e);let s=this.activeConfig,a=this.dropLoadingResourcesIgnoredByActiveConfig(s);this.pageLoadResourceTracker={detectedResourcesCount:this.loadingResourcesCount,lastLoadedResources:[],longestLoadedResource:void 0},this.monitors.elements.refresh(s.monitors.includes("elements")?s.blockingSelectors:[],{droppedRes
4ourceUrls:a.elementResourceUrls});let u=new Zi({getDetectedResourcesCount:()=>this.detectedResourcesCount,getLastLoadedResources:()=>this.lastLoadedResources,getLoadingResourcesCount:()=>this.loadingResourcesCount,getLoadingResourceUrls:()=>this.loadingResourceUrls,getLongestLoadedResource:()=>this.longestLoadedResource,maxPageLoadWaitTime:s.maxPageLoadWaitTime,quietTime:s.quietTime,startTime:i});this.quietPeriodAwaiter=u,this.loadingResourcesCount===0&&(u.startQuietTimer({resourceLoadedTimestamp:i}),k.s.debug("No loading resources. Starting quiet timer."));let c=u.promise;return i===0&&(c=c.then(l=>{if(l.status==="timeout")return l;let d=performance.getEntriesByType("navigation")[0],h=d?(function(p){return p.loadEventEnd-p.fetchStart})(d):0;return He(ce({},l),{pct:Math.max(l.pct,h)})})),c.then(l=>{try{return n&&this.setPageLoadMetricAttributes(n,l,e),l}finally{n&&this.completeCurrentNavigationPct(n,i+l.pct)}},l=>{throw n&&this.completeCurrentNavigationPct(n),l})}static createMonitors(t){return{elements:new Wi(t),media:new Ki(t),network:new $i(t),performance:new Yi(t)}}dropLoadingResourcesIgnoredByActiveConfig(t){let e={elementResourceUrls:[]},n=location.href;for(let[i,o]of this.loadingResources)(t.clearLoadingResourcesOnNewPage&&o.pageUrl!==n||!t.monitors.includes(o.monitorType)||this.isIgnoredUrl(o.url,t.ignoreUrls))&&(this.loadingResources.delete(i),o.monitorType==="elements"&&e.elementResourceUrls.push(o.url));return e}evaluateResourceAdmission(t,e){if(t.resourceId){let s=this.resourceAdmissionDecisions.get(t.resourceId);return!!s&&(s.consumed=!0,s.admitted)}let n=this.normalizeResourceUrl(t.url),i=new Map;for(let s of this.resourceAdmissionDecisions.values()){let a=Math.abs(s.startTime-e);if(s.consumed||!t.monitorTypes.includes(s.monitorType)||s.url!==n||a>100)continue;let u=i.get(s.monitorType);(!u||a<Math.abs(u.startTime-e))&&i.set(s.monitorType,s)}let o=Array.from(i.values());for(let s of o)s.consumed=!0;return o.some(s=>s.admitted)}getBeaconEndpointIgnoreUrls(t){if(!t)return[];try{let e=new URL(t).origin;return[new RegExp("^".concat(e))]}catch{return[t]}}getNavigationAt(t){for(let e=this.navigationHistory.length-1;e>=0;e--){let n=this.navigationHistory[e];if(t>=n.startTime)return n}}getResolvedIgnoreUrls(t,e){return[...new Set([...t,...e])]}isIgnoredUrl(t,e){return t.toLowerCase().startsWith("data:")||(0,gn.K)(t,e)}isUrlOverrideMatch(t,e){return typeof t=="string"?e.includes(t):(t.lastIndex=0,t.test(e))}normalizeResourceUrl(t){try{return new URL(t,location.href).toString()}catch{return t}}persistResourceAdmission(t,e){var n;let i=(n=t.timestamp)!==null&&n!==void 0?n:performance.now();if(this.resourceAdmissionDecisions.set(t.id,{admitted:e,consumed:!1,monitorType:t.monitorType,startTime:i,url:this.normalizeResourceUrl(t.url)}),this.resourceAdmissionDecisions.size>1e3){let o=this.resourceAdmissionDecisions.keys().next().value;typeof o=="string"&&this.resourceAdmissionDecisions.delete(o)}}recordLoadedResource(t,e){if(!this.pageLoadResourceTracker)return;let n={duration:e,monitorType:t.monitorType,url:Vi(t.url,100)};this.pageLoadResourceTracker.lastLoadedResources=[...this.pageLoadResourceTracker.lastLoadedResources,n].slice(-3),(this.pageLoadResourceTracker.longestLoadedResource===void 0||e>this.pageLoadResourceTracker.longestLoadedResource.duration)&&(this.pageLoadResourceTracker.longestLoadedResource=n)}resolveConfig(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ff;var i,o,s,a,u,c,l;let d=(i=t.quietTime)!==null&&i!==void 0?i:n.quietTime,h=(o=t.maxPageLoadWaitTime)!==null&&o!==void 0?o:n.maxPageLoadWaitTime;return{blockingSelectors:[...(s=t.blockingSelectors)!==null&&s!==void 0?s:n.blockingSelectors],clearLoadingResourcesOnNewPage:(a=t.clearLoadingResourcesOnNewPage)!==null&&a!==void 0?a:n.clearLoadingResourcesOnNewPage,ignoreUrls:this.getResolvedIgnoreUrls((u=t.ignoreUrls)!==null&&u!==void 0?u:n.ignoreUrls,e),maxPageLoadWaitTime:Bf({maxPageLoadWaitTime:h,quietTime:d}),maxResourcesToWatch:(c=t.maxResourcesToWatch)!==null&&c!==void 0?c:n.maxResourcesToWatch,monitors:[...(l=t.monitors)!==null&&l!==void 0?l:n.monitors],quietTime:d}}constructor(t={}){var e,n,i;S(this,"config",void 0),S(this,"emitNavigationAttributes",void 0),S(this,"isMonitoring",!1),S(this,"loadingResources",new Map),S(this,"monitors",void 0),S(this,"navigationHistory",[]),S(this,"pageLoadResourceTracker",void 0),S(this,"quietPeriodAwaiter",void 0),S(this,"resourceAdmissionDecisions",new Map),S(this,"urlOverrides",void 0),S(this,"onResourceStateChange",a=>{if(a.state===As.DISCOVERED){var u;let l=this.activeConfig,d=l.monitors.includes(a.monitorType)&&!this.isIgnoredUrl(a.url,l.ignoreUrls)&&this.loadingResourcesCount<l.maxResourcesToWatch;if(this.persistResourceAdmission(a,d),!d)return void(this.loadingResourcesCount>=l.maxResourcesToWatch&&k.s.debug("SpaMetricsManager: Max resources limit reached, ignoring new resource",a.url));this.loadingResources.set(a.id,{monitorType:a.monitorType,pageUrl:location.href,url:a.url}),this.pageLoadResourceTracker&&(this.pageLoadResourceTracker.detectedResourcesCount+=1),k.s.debug("Detected resource. Resetting quiet timer",a.url),(u=this.quietPeriodAwaiter)===null||u===void 0||u.removeQuietTimer()}else{let l=this.loadingResources.get(a.id);var c;l&&this.loadingResources.delete(a.id)&&(a.state===As.LOADED&&this.recordLoadedResource(l,a.loadTime),this.loadingResourcesCount===0&&(k.s.debug("No loading resources. Starting quiet timer."),(c=this.quietPeriodAwaiter)===null||c===void 0||c.startQuietTimer({resourceLoadedTimestamp:a.timestamp})))}});let o=this.getBeaconEndpointIgnoreUrls(t.beaconEndpoint);this.config=this.resolveConfig(t,o),this.emitNavigationAttributes=(e=t.emitNavigationAttributes)===null||e===void 0||e,this.urlOverrides=((n=t.urlOverrides)!==null&&n!==void 0?n:[]).map(a=>{let l=a,{match:u}=l,c=Zo(l,["match"]);return{config:this.resolveConfig(c,o,this.config),match:u}});let s={consumerId:Symbol("spa-metrics-manager-elements"),elementVisibilityObserver:(i=t.elementVisibilityObserver)!==null&&i!==void 0?i:new Xr,onResourceStateChange:this.onResourceStateChange};this.monitors=r.createMonitors(s)}},Ps="_splunk_rum_sid",ks="_splunk_rum_user_anonymousId",rr=class{safelyParseJson(t){let e=this.getValue(t);if(e)try{return JSON.parse(e)}catch(n){return void k.s.warn("Failed to parse JSON from ".concat(this.providerName),{error:n instanceof Error?n.message:"Unknown error",key:t,value:e})}}safelyStoreJson(t,e,n){try{let i=JSON.stringify(e);return this.setValue(t,i,n)}catch(i){return k.s.warn("Failed to serialize and store JSON in ".concat(this.providerName),{data:e,error:i instanceof Error?i.message:"Unknown error",key:t}),!1}}},Qi=class r extends rr{static safelyGetValue(t){try{let e=document.cookie.split(";");for(let n of e){let[i,o]=n.trim().split("=");if(i===t)return decodeURIComponent(o||"")}}catch(e){k.s.warn("Failed to retrieve cookie",{error:e instanceof Error?e.message:"Unknown error",key:t})}return null}static safelyRemoveValue(t,e){try{let n="Thu, 01 Jan 1970 00:00:01 GMT";return document.cookie="".concat(t,"=;expires=").concat(n,";domain=").concat(e.domain,";path=/"),!0}catch(n){return k.s.warn("Failed to remove cookie",{domain:e.domain,error:n,key:t}),!1}}static safelySetValue(t,e,n){try{let i=n.domain?";domain=".concat(n.domain):"",o=encodeURIComponent(e),s="".concat(t,"=").concat(o,";max-age=").concat(n.expires).concat(i,";path=/");return(function(){try{return window.self!==window.top}catch{return!0}})()?s+=["localhost","127.0.0.1"].includes(window.location.hostname)&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?";SameSite=None":";SameSite=None;Secure":s+=";SameSite=Strict",document.cookie=s,!0}catch(i){return k.s.warn("Failed to set cookie",{domain:n.domain,error:i,key:t}),!1}}getValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];
4return r.safelyGetValue(...e)}removeValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelyRemoveValue(...e)}setValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelySetValue(...e)}constructor(...t){super(...t),S(this,"providerName","cookie")}},$r=class r extends rr{static safelyGetValue(t){try{return window.localStorage.getItem(t)}catch(e){return k.s.warn("Failed to retrieve item from localStorage",{error:e,key:t}),null}}static safelyRemoveValue(t){try{return window.localStorage.removeItem(t),!0}catch(e){return k.s.warn("Failed to remove item from localStorage",{error:e instanceof Error?e.message:"Unknown error",key:t}),!1}}static safelySetValue(t,e){try{return window.localStorage.setItem(t,e),!0}catch(n){return k.s.warn("Failed to store item in localStorage",{error:n,key:t}),!1}}getValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelyGetValue(...e)}removeValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelyRemoveValue(...e)}setValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelySetValue(...e)}constructor(...t){super(...t),S(this,"providerName","localStorage")}},Wr=class r extends rr{static safelyGetValue(t){try{return window.sessionStorage.getItem(t)}catch(e){return k.s.warn("Failed to retrieve item from sessionStorage",{error:e,key:t}),null}}static safelyRemoveValue(t){try{return window.sessionStorage.removeItem(t),!0}catch(e){return k.s.warn("Failed to remove item from sessionStorage",{error:e instanceof Error?e.message:"Unknown error",key:t}),!1}}static safelySetValue(t,e){try{return window.sessionStorage.setItem(t,e),!0}catch(n){return k.s.warn("Failed to store item in sessionStorage",{error:n,key:t}),!1}}getValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelyGetValue(...e)}removeValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelyRemoveValue(...e)}setValue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.safelySetValue(...e)}constructor(...t){super(...t),S(this,"providerName","sessionStorage")}},eo=class{get storageProvider(){switch(this.options.persistence){case"cookie":return this.cookieStorageProvider;case"localStorage":return this.localStorageProvider;default:throw new Error("Unknown persistence type: ".concat(this.options.persistence))}}getAnonymousUserId(){try{return this.storageProvider.getValue(ks)||void 0}catch(t){return void k.s.warn("Failed to retrieve anonymous user ID",{error:t instanceof Error?t.message:"Unknown error",options:this.options})}}getSessionState(){try{return this.storageProvider.safelyParseJson(Ps)}catch(t){return void k.s.warn("Failed to retrieve session state",{error:t instanceof Error?t.message:"Unknown error",options:this.options})}}persistAnonymousUserId(t){k.s.debug("StorageManager: Persisting anonymous user ID",{anonymousUserId:t});try{return this.storageProvider.setValue(ks,t,He(ce({},this.options),{expires:3456e4}))}catch(e){return k.s.warn("Failed to persist anonymous user ID",{anonymousUserId:t,error:e instanceof Error?e.message:"Unknown error",options:this.options}),!1}}persistSessionState(t){let{expiresAt:e,id:n,startTime:i}=t;k.s.debug("SessionManager: Persisting session state",{expiresAt:e,id:n,startTime:i});try{return this.storageProvider.safelyStoreJson(Ps,{expiresAt:e,id:n,startTime:i},He(ce({},this.options),{expires:900}))}catch(o){return k.s.warn("Failed to persist session state",{error:o instanceof Error?o.message:"Unknown error",options:this.options,sessionState:t}),!1}}constructor(t){S(this,"options",void 0),S(this,"cookieStorageProvider",void 0),S(this,"localStorageProvider",void 0),this.options=t,this.cookieStorageProvider=new Qi,this.localStorageProvider=new $r}},ir=class r{forgetAnonymousId(){this.anonymousId=void 0}getAnonymousIdIfEnabled(){if(this.userTrackingMode!=="anonymousTracking")return;if(this.anonymousId)return this.anonymousId;let t=this.getAnonymousIdFromStorage();if(t)return this.anonymousId=t,this.persistAnonymousId(t),t;let e=r.generateAnonymousId();this.persistAnonymousId(e);let n=this.getAnonymousIdFromStorage();return this.anonymousId=n!==e&&n!==void 0?n:e,this.anonymousId}static generateAnonymousId(){return cr(128)}getAnonymousIdFromStorage(){try{return this.storageManager.getAnonymousUserId()}catch(t){return void k.s.warn("Failed to retrieve anonymous user ID from storage",{error:t instanceof Error?t.message:"Unknown error"})}}persistAnonymousId(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;for(let n=1;n<=e;n++)try{if(this.storageManager.persistAnonymousUserId(t),this.storageManager.getAnonymousUserId())return!0;k.s.debug("Anonymous user ID persistence verification failed (attempt ".concat(n,"/").concat(e,")"),{id:t})}catch(i){k.s.warn("Failed to persist anonymous user ID (attempt ".concat(n,"/").concat(e,")"),{error:i instanceof Error?i.message:"Unknown error",id:t})}return k.s.warn("Failed to persist anonymous user ID after all retries",{id:t,maxRetries:e}),!1}constructor(t,e,n){S(this,"userTrackingMode",void 0),S(this,"storageManager",void 0),S(this,"anonymousId",void 0),this.userTrackingMode=t,this.storageManager=e,t
4==="anonymousTracking"&&(n?(this.anonymousId=n,this.persistAnonymousId(n)):this.getAnonymousIdIfEnabled())}};S(ir,"isUserTrackingMode",r=>r==="noTracking"||r==="anonymousTracking");var to=class r{static create(t,e){let n=r.resolveConfig(e);if(n)return new r(t,e,n)}disable(){this.clickTimesByNode=new WeakMap,this.listener&&(document.removeEventListener("click",this.listener,!0),this.listener=void 0)}enable(){this.listener||(this.listener=t=>{let e=t.target;e&&za(e)&&this.processRageClick(e)},document.addEventListener("click",this.listener,!0))}static normalizeConfig(t){if(t===!0)return{count:4,ignoreSelectors:[],timeframeMs:1e3};let e=typeof t.count=="number"&&t.count>0?Math.floor(t.count):4,n=typeof t.timeframeSeconds=="number"&&t.timeframeSeconds>0?t.timeframeSeconds:1;return{count:e,ignoreSelectors:Array.isArray(t.ignoreSelectors)?t.ignoreSelectors:[],timeframeMs:1e3*n}}static resolveConfig(t){var e;let n=(e=t.instrumentations)===null||e===void 0?void 0:e.frustrationSignals;if(n&&typeof n=="object"){var i;return n.rageClick===!1?void 0:r.normalizeConfig((i=n.rageClick)===null||i===void 0||i)}return r.normalizeConfig(!0)}processRageClick(t){let e=performance.now(),n=this.clickTimesByNode.get(t)||[];if(n=n.filter(i=>e-i<this.config.timeframeMs),n.push(e),n.length>=this.config.count&&(n=[],!(At(t)&&this.config.ignoreSelectors.some(i=>t.matches(i))))){let i=Date.now(),o=this.tracer.startSpan("frustration",{startTime:i});o.setAttribute("frustration_type","rage"),o.setAttribute("interaction_type","click"),o.setAttribute("component","user-interaction"),o.setAttribute("target_xpath",Vn(t,!0));let s=Vo(t,a=>!mn.shouldMaskTextNode(a,this.otelConfig.privacy));o.setAttribute("target_text",s||"<".concat(t.nodeName.toLowerCase(),">")),nu(o,t,Fo(this.otelConfig)),o.end(i)}this.clickTimesByNode.set(t,n)}constructor(t,e,n){S(this,"tracer",void 0),S(this,"otelConfig",void 0),S(this,"config",void 0),S(this,"clickTimesByNode",void 0),S(this,"listener",void 0),this.tracer=t,this.otelConfig=e,this.config=n,this.clickTimesByNode=new WeakMap}};z(5025);var Vf=180/Math.PI;function Is(r,t,e,n){return Math.hypot(e-r,n-t)}function Hf(r,t,e,n){let i=Math.atan2(n-t,e-r)*Vf;return i>=0?i:i+360}function qf(r,t){let e=Math.abs(r-t);return e>180?360-e:e}var gt={ignoreUrls:[],maxConfinedAreaSize:200,maxVelocity:5e3,minAverageVelocity:300,minDirectionChangeDegrees:45,minDirectionChanges:4,minMovementDistance:5,minTotalDistance:300,scoreWeightConfinedArea:.3,scoreWeightDirectionChanges:.4,scoreWeightVelocity:.3,thrashingScoreThreshold:.65,throttleMs:16,timeWindowMs:2e3},no=class r{static create(t,e){let n=r.resolveConfig(e);if(n)return new r(t,e,n)}disable(){this.listener&&(document.removeEventListener("mousemove",this.listener,!0),this.listener=void 0),this.resetState()}enable(){this.listener||(this.cachedDeadZone=this.config.minMovementDistance*(window.devicePixelRatio||1),this.initRingBuffer(),this.listener=t=>{this.handleMouseMove(t)},document.addEventListener("mousemove",this.listener,!0))}static normalizeConfig(t){return t===!0?ce({},gt):{ignoreUrls:Array.isArray(t.ignoreUrls)?t.ignoreUrls:gt.ignoreUrls,maxConfinedAreaSize:St(t.maxConfinedAreaSize,gt.maxConfinedAreaSize),maxVelocity:St(t.maxVelocity,gt.maxVelocity),minAverageVelocity:St(t.minAverageVelocity,gt.minAverageVelocity),minDirectionChangeDegrees:St(t.minDirectionChangeDegrees,gt.minDirectionChangeDegrees),minDirectionChanges:St(t.minDirectionChanges,gt.minDirectionChanges),minMovementDistance:St(t.minMovementDistance,gt.minMovementDistance),minTotalDistance:St(t.minTotalDistance,gt.minTotalDistance),scoreWeightConfinedArea:St(t.scoreWeightConfinedArea,gt.scoreWeightConfinedArea),scoreWeightDirectionChanges:St(t.scoreWeightDirectionChanges,gt.scoreWeightDirectionChanges),scoreWeightVelocity:St(t.scoreWeightVelocity,gt.scoreWeightVelocity),thrashingScoreThreshold:St(t.thrashingScoreThreshold,gt.thrashingScoreThreshold),throttleMs:St(t.throttleMs,gt.throttleMs,16),timeWindowMs:St(t.timeWindowMs,gt.timeWindowMs)}}static resolveConfig(t){var e;let n=(e=t.instrumentations)===null||e===void 0?void 0:e.frustrationSignals;if(n&&typeof n=="object"){var i;return n.thrashedCursor===!1?void 0:r.normalizeConfig((i=n.thrashedCursor)===null||i===void 0||i)}return r.normalizeConfig(!0)}
4addSample(t,e,n){let i=this.ringBuffer[this.writeIndex];i.x=t,i.y=e,i.timestamp=n,this.writeIndex=(this.writeIndex+1)%this.bufferCapacity,this.sampleCount<this.bufferCapacity&&(this.sampleCount+=1)}analyzeThrashing(t){if(this.sampleCount<3)return this.setAnalysisResult(!1,void 0);if(t-this.lastThrashingTime<this.config.timeWindowMs)return this.setAnalysisResult(!1,void 0);if(this.calculateMetrics(t),this.metricsResult.sampleCount<3)return this.setAnalysisResult(!1,void 0);if(this.metricsResult.totalDistance<this.config.minTotalDistance)return this.setAnalysisResult(!1,void 0);if(this.metricsResult.averageVelocity<this.config.minAverageVelocity)return this.setAnalysisResult(!1,void 0);if(this.metricsResult.directionChanges<this.config.minDirectionChanges)return this.setAnalysisResult(!1,void 0);let e=this.calculateThrashingScore();return e>=this.config.thrashingScoreThreshold?this.setAnalysisResult(!0,e):this.setAnalysisResult(!1,e)}calculateMetrics(t){let e=t-this.config.timeWindowMs,n=0,i=0,o=-1,s=0,a=0,u=0,c=0,l=0,d=1/0,h=-1/0,p=1/0,f=-1/0,g=0,m=0,y=0;for(let b=0;b<this.sampleCount;b+=1){let T=this.ringBuffer[this.getSampleIndex(b)];if(T.timestamp<e)continue;if(u+=1,T.x<d&&(d=T.x),T.x>h&&(h=T.x),T.y<p&&(p=T.y),T.y>f&&(f=T.y),u===1){c=T.timestamp,l=T.timestamp,g=T.x,m=T.y,y=T.timestamp;continue}l=T.timestamp;let E=Is(g,m,T.x,T.y);n+=E;let _=(T.timestamp-y)/1e3;if(_>0&&(s+=E/_,a+=1),E>this.cachedDeadZone){let O=Hf(g,m,T.x,T.y);o>=0&&qf(o,O)>=this.config.minDirectionChangeDegrees&&(i+=1),o=O}g=T.x,m=T.y,y=T.timestamp}let v=l-c;this.metricsResult.sampleCount=u,this.metricsResult.totalDistance=n,this.metricsResult.directionChanges=i,this.metricsResult.averageVelocity=a>0?s/a:0,this.metricsResult.duration=v,this.metricsResult.directionChangesPerSecond=v>0?i/v*1e3:0,u>0?(this.boundingBoxResult.minX=d,this.boundingBoxResult.maxX=h,this.boundingBoxResult.minY=p,this.boundingBoxResult.maxY=f,this.boundingBoxResult.width=h-d,this.boundingBoxResult.height=f-p,this.boundingBoxResult.size=Math.max(h-d,f-p)):(this.boundingBoxResult.minX=0,this.boundingBoxResult.maxX=0,this.boundingBoxResult.minY=0,this.boundingBoxResult.maxY=0,this.boundingBoxResult.width=0,this.boundingBoxResult.height=0,this.boundingBoxResult.size=0)}calculateThrashingScore(){let t=0;return t+=Math.min(this.metricsResult.directionChanges/(2*this.config.minDirectionChanges),1)*this.config.scoreWeightDirectionChanges,t+=Math.max(0,Math.min((this.metricsResult.averageVelocity-this.config.minAverageVelocity)/this.config.minAverageVelocity,1))*this.config.scoreWeightVelocity,t+=1/(1+((this.metricsResult.boundingBox.size||0)/this.config.maxConfinedAreaSize)**2)*this.config.scoreWeightConfinedArea,Math.min(t,1)}getSampleIndex(t){return this.sampleCount<this.bufferCapacity?t:(this.writeIndex+t)%this.bufferCapacity}handleMouseMove(t){let e=performance.now();if(this.config.throttleMs>0&&e-this.lastSampleTime<this.config.throttleMs)return;this.lastSampleTime=e;let n=t.clientX,i=t.clientY;if(this.hasLastMouse&&this.sampleCount>0){let s=(this.writeIndex-1+this.bufferCapacity)%this.bufferCapacity,a=Is(this.lastMouseX,this.lastMouseY,n,i),u=(e-this.ringBuffer[s].timestamp)/1e3;if(u>0&&a/u>this.config.maxVelocity)return this.lastMouseX=n,void(this.lastMouseY=i)}this.addSample(n,i,e),this.lastMouseX=n,this.lastMouseY=i,this.hasLastMouse=!0;let o=this.analyzeThrashing(e);o.isThrashing&&this.onThrashingDetected(o,e)}initRingBuffer(){this.ringBuffer=Array.from({length:this.bufferCapacity},()=>({timestamp:0,x:0,y:0})),this.sampleCount=0,this.writeIndex=0}onThrashingDetected(t,e){if(this.lastThrashingTime=e,(0,gn.K)(window.location.href,this.config.ignoreUrls))return;let n=Date.now(),i=n-this.metricsResult.duration,o=this.tracer.startSpan("frustration",{startTime:i});o.setAttribute("frustration_type","thrash"),o.setAttribute("interaction_type","cursor"),o.setAttribute("component","user-interaction"),o.setAttribute("thrashing_score",t.thrashingScore),o.end(n)}resetState(){this.sampleCount=0,this.writeIndex=0,this.lastMouseX=0,this.lastMouseY=0,this.hasLastMouse=!1,this.lastSampleTime=0,this.lastThrashingTime=-1/0,this.cachedDeadZone=0}setAnalysisResult(t,e){return this.analysisResult.isThrashing=t,this.analysisResult.thrashingScore=e,this.analysisResult}constructor(t,e,n){S(this,"tracer",void 0),S(this,"otelConfig",void 0),S(this,"config",void 0),S(this,"analysisResult",void 0),S(this,"boundingBoxResult",void 0),S(this,"bufferCapacity",void 0),S(this,"cac
4hedDeadZone",void 0),S(this,"hasLastMouse",void 0),S(this,"lastMouseX",void 0),S(this,"lastMouseY",void 0),S(this,"lastSampleTime",void 0),S(this,"lastThrashingTime",void 0),S(this,"listener",void 0),S(this,"metricsResult",void 0),S(this,"ringBuffer",void 0),S(this,"sampleCount",void 0),S(this,"writeIndex",void 0),this.tracer=t,this.otelConfig=e,this.config=n,this.analysisResult={isThrashing:!1,thrashingScore:void 0},this.boundingBoxResult={height:0,maxX:0,maxY:0,minX:0,minY:0,size:0,width:0},this.cachedDeadZone=0,this.hasLastMouse=!1,this.lastMouseX=0,this.lastMouseY=0,this.lastSampleTime=0,this.lastThrashingTime=-1/0,this.metricsResult={averageVelocity:0,boundingBox:this.boundingBoxResult,directionChanges:0,directionChangesPerSecond:0,duration:0,sampleCount:0,totalDistance:0},this.ringBuffer=[],this.sampleCount=0,this.writeIndex=0,this.bufferCapacity=2*Math.ceil(n.timeWindowMs/n.throttleMs)}};function St(r,t){return typeof r=="number"&&r>(arguments.length>2&&arguments[2]!==void 0?arguments[2]:0)?r:t}var Ms="splunk-loaf",ro="long-animation-frame";z(9757);function Oe(r,t,e){ur(e)&&r.setAttribute(t,e)}function yt(r,t,e){ur(e)&&r.setAttribute(t,Math.round(100*e)/100)}function Ge(r,t,e){dn(e)&&r.setAttribute(t,e)}function Ns(){var r,t;return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:(r=(t=window.PerformanceObserver)===null||t===void 0?void 0:t.supportedEntryTypes)!==null&&r!==void 0?r:[]).includes(ro)}var io=class{shouldEmit(t){var e;let n=(function(s){let a=(function(u){if(!(!u||u.length===0))return u.reduce((c,l)=>l.duration>c.duration?l:c)})(s.scripts);return JSON.stringify(a?["script",a.sourceURL,a.invoker,a.invokerType,a.sourceFunctionName,a.sourceCharPosition]:["frame",s.entryType,s.name])})(t),i=(e=this.emittedTimestampsBySourceKey.get(n))!==null&&e!==void 0?e:[],o=t.startTime-6e4;for(;i.length>0&&i[0]<=o;)i.shift();return!(i.length>=50)&&(i.push(t.startTime),this.emittedTimestampsBySourceKey.set(n,i),!0)}constructor(){S(this,"emittedTimestampsBySourceKey",new Map)}},bi="longtask",Ds="splunk-longtask",Us="splunk-post-doc-load-resource",zf=["img","script"],Gf=["audio","css","font","iframe","img","link","other","script","video"],Xf=/\.(?:eot|otf|ttf|woff2?)(?:[?#]|$)/i,Kr=class extends mt{disable(){this.performanceObserver&&this.performanceObserver.disconnect(),this.headMutationObserver&&this.headMutationObserver.disconnect()}enable(){window.PerformanceObserver&&(window.document.readyState==="complete"?this._startPerformanceObserver():window.addEventListener("load",t=>{this._startPerformanceObserver(t)})),window.MutationObserver&&this._startHeadMutationObserver()}init(){}onBeforeContextChange(){this.headMutationObserver&&this._processHeadMutationObserverRecords(this.headMutationObserver.takeRecords())}_createSpan(t){if((0,gn.K)(t.name,this.config.ignoreUrls))return;let e=new URL(t.name,location.origin),n=this.tracer.startSpan("resourceFetch",{startTime:t.fetchStart},this.urlToContextMap[e.toString()]);n.setAttribute("component",Us),n.setAttribute(wt.HTTP_URL,t.name),n.setAttribute(wt.HTTP_METHOD,"GET"),on(n,this.spaMetricsManager,t.fetchStart,{monitorTypes:Bo(t.initiatorType),type:"resource",url:t.name});let i=Ya(t);i!==void 0&&n.setAttribute("http.cache.hit",i),Br(n,t);let o=t.responseEnd;o&&o>0?n.end(o):n.end()}_processHeadMutationObserverRecords(t){me._.active()!==dt.l&&t.flatMap(e=>Array.from(e.addedNodes||[])).forEach(e=>{let n=(o=>{var s,a;return o instanceof HTMLLinkElement?(s=o.getAttribute("href"))!==null&&s!==void 0?s:void 0:(o instanceof HTMLIFrameElement||o instanceof HTMLImageElement||o instanceof HTMLScriptElement)&&(a=o.getAttribute("src"))!==null&&a!==void 0?a:void 0})(e);if(!n)return;let i=new URL(n,document.baseURI);this.urlToContextMap[i.toString()]=me._.active()})}_startHeadMutationObserver(){this.headMutationObserver=new MutationObserver(this._processHeadMutationObserverRecords.bind(this)),this.headMutationObserver.observe(document.head,{childList:!0})}_startPerformanceObserver(t){t&&!t.isTrusted||this.performanceObserver||(this.performanceObserver=new PerformanceObserver(e=>
4{window.document.readyState==="complete"&&e.getEntries().forEach(n=>{let i=n;((o,s)=>s?.includes(o.initiatorType)||s?.includes("font")&&o.initiatorType==="other"&&Xf.test(o.name))(i,this.config.allowedInitiatorTypes)&&window.setTimeout(()=>this._createSpan(i))})}),this.performanceObserver.observe({entryTypes:["resource"]}))}constructor(t={},e,n,i){let o=Object.assign({},{allowedInitiatorTypes:e.experimental?Gf:zf},t);super(Us,ot,o),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"spaMetricsManager",void 0),S(this,"config",void 0),S(this,"headMutationObserver",void 0),S(this,"performanceObserver",void 0),S(this,"urlToContextMap",void 0),this.otelConfig=e,this.sessionManager=n,this.spaMetricsManager=i,this.config=o,this.urlToContextMap={}}};z(8988);var yu=z(4913),js="messaging.socket.io.event_name",Bs="messaging.socket.io.namespace",Fs=new Set(["connect","connect_error","disconnect","disconnecting","newListener","removeListener"]),zn=(function(r){return r.EVENT_TYPE="event_type",r.TARGET_ELEMENT="target_element",r.TARGET_INTERACTIVE="target_interactive",r.TARGET_XPATH="target_xpath",r.HTTP_URL="http.url",r})({}),Vs="0.34.0",$f=["click"];function Wf(){return!1}var oo=class extends mt{_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod())}_patchHistoryMethod(){let t=this;return e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];let s="".concat(location.pathname).concat(location.hash).concat(location.search),a=e.apply(this,i),u="".concat(location.pathname).concat(location.hash).concat(location.search);return s!==u&&t._updateInteractionName(u),a}}_unpatchHistoryApi(){Ct(history.replaceState)&&this._unwrap(history,"replaceState"),Ct(history.pushState)&&this._unwrap(history,"pushState"),Ct(history.back)&&this._unwrap(history,"back"),Ct(history.forward)&&this._unwrap(history,"forward"),Ct(history.go)&&this._unwrap(history,"go")}_updateInteractionName(t){let e=qe.u.getSpan(me._.active());e&&typeof e.updateName=="function"&&e.updateName("".concat("Navigation:"," ").concat(t))}disable(){this._getPatchableEventTargets().forEach(t=>{Ct(t.addEventListener)&&this._unwrap(t,"addEventListener"),Ct(t.removeEventListener)&&this._unwrap(t,"removeEventListener")}),this._unpatchHistoryApi()}enable(){this._zonePatched=!1,this._getPatchableEventTargets().forEach(t=>{Ct(t.addEventListener)&&(this._unwrap(t,"addEventListener"),this._diag.debug("removing previous patch from method addEventListener")),Ct(t.removeEventListener)&&(this._unwrap(t,"removeEventListener"),this._diag.debug("removing previous patch from method removeEventListener")),this._wrap(t,"addEventListener",this._patchAddEventListener()),this._wrap(t,"removeEventListener",this._patchRemoveEventListener())}),this._patchHistoryApi()}getZoneWithPrototype(){}init(){}_allowEventName(t){return this._eventNames.has(t)}_createSpan(t,e,n){if(!(t instanceof Element)||!t.getAttribute||t.hasAttribute("disabled")||!this._allowEventName(e))return;let i=Vn(t,!0),o=this._isInteractiveElement(t);try{let s=this.tracer.startSpan(e,{attributes:{[zn.EVENT_TYPE]:e,[zn.HTTP_URL]:window.location.href,[zn.TARGET_ELEMENT]:t.tagName,[zn.TARGET_INTERACTIVE]:o,[zn.TARGET_XPATH]:i,component:this.moduleName}},n?qe.u.setSpan(me._.active(),n):void 0);return this._shouldPreventSpanCreation(e,t,s)===!0?void 0:(this._spansData.set(s,{taskCount:0}),s)}catch(s){this._diag.error("failed to start create new user interaction span",s)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_invokeListener(t,e,n){return typeof t=="function"?t.apply(e,n):t.handleEvent(n[0])}_isInteractiveElement(t){var e;let n=(e=this.getConfig().experimental_interactiveElementSelectors)!==null&&e!==void 0?e:[],i=!1;for(let a of n)if(!this._warnedInvalidInteractiveElementSelectors.has(a))try{let u=t.matches(a);i=i||u}catch(u){this._warnedInvalidInteractiveElementSelectors.add(a),k.s.warn("UserInteractionInstrumentation: Invalid interactive element selector.",{error:u,selector:a})}if(i)return!0;let o=t.tagName.toUpperCase();if(o==="BUTTON")return!0;
4if(o==="A"){let a=t.getAttribute("href");return!(a&&!a.startsWith("javascript:"))}if(o==="INPUT"){var s;return((s=t.getAttribute("type"))!==null&&s!==void 0?s:"").toLowerCase()==="submit"}return t.getAttribute("role")==="button"}_patchAddEventListener(){let t=this;return e=>function(n,i,o){if(!i)return e.call(this,n,i,o);let s=o&&typeof o=="object"&&o.once,a=function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];let d=c[0],h=t._eventsSpanMap.get(d),p=d?.target;s&&t.removePatchedListener(this,n,i);let f=t._createSpan(p,n,h);if(!f)return t._invokeListener(i,this,c);if(d.type==="click"&&d.target&&za(d.target)){let g=Vo(d.target,m=>!mn.shouldMaskTextNode(m,t.otelConfig.privacy));f.setAttribute("target_text",g||"<".concat(d.target.nodeName.toLowerCase(),">")),nu(f,d.target,Fo(t.otelConfig))}return t._eventsSpanMap.set(d,f),me._.with(qe.u.setSpan(me._.active(),f),()=>{let g=t._invokeListener(i,this,c);return f.end(),g})};return t.addPatchedListener(this,n,i,a)?e.call(this,n,a,o):void 0}}_patchRemoveEventListener(){let t=this;return e=>function(n,i,o){let s=i&&t.removePatchedListener(this,n,i);return s?e.call(this,n,s,o):e.call(this,n,i,o)}}addPatchedListener(t,e,n,i){let o=this._wrappedListeners.get(n);o||(o=new Map,this._wrappedListeners.set(n,o));let s=o.get(e);return s||(s=new Map,o.set(e,s)),!s.has(t)&&(s.set(t,i),!0)}removePatchedListener(t,e,n){let i=this._wrappedListeners.get(n);if(!i)return;let o=i.get(e);if(!o)return;let s=o.get(t);return s&&(o.delete(t),o.size===0&&(i.delete(e),i.size===0&&this._wrappedListeners.delete(n))),s}constructor(t,e){var n;super("@opentelemetry/instrumentation-user-interaction",Vs,t),S(this,"otelConfig",void 0),S(this,"moduleName",void 0),S(this,"version",void 0),S(this,"_eventNames",void 0),S(this,"_eventsSpanMap",void 0),S(this,"_shouldPreventSpanCreation",void 0),S(this,"_spansData",void 0),S(this,"_warnedInvalidInteractiveElementSelectors",void 0),S(this,"_wrappedListeners",void 0),S(this,"_zonePatched",void 0),this.otelConfig=e,this.moduleName="user-interaction",this.version=Vs,this._eventsSpanMap=new WeakMap,this._spansData=new WeakMap,this._warnedInvalidInteractiveElementSelectors=new Set,this._wrappedListeners=new WeakMap,this._eventNames=new Set((n=t?.eventNames)!==null&&n!==void 0?n:$f),this._shouldPreventSpanCreation=typeof t?.shouldPreventSpanCreation=="function"?t.shouldPreventSpanCreation:Wf}},qo={change:!0,click:!0,dblclick:!0,dragend:!0,drop:!0,ended:!0,mousedown:!0,mouseup:!0,pause:!0,play:!0,reset:!0,submit:!0},Kf=Object.keys(qo),Hs="route",qs=r=>typeof r=="string"||typeof r=="object"&&r!==null&&("byteLength"in r||"length"in r||"size"in r),zs=r=>r.byteLength||r.size||r.length,Yr=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let e=this.i[0],n=this.i.at(-1);this.o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},Mn=()=>{let r=performance.getEntriesByType("navigation")[0];if(r&&r.responseStart>0&&r.responseStart<performance.now())return r},Ir=r=>{if(document.readyState==="loading")return"loading";let t=Mn();if(t){if(r<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||r<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||r<t.domComplete)return"dom-content-loaded"}return"complete"},Yf=r=>{let t=r.nodeName;return r.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},so=r=>{let t="";try{for(;r?.nodeType!==9;){let e=r,n=e.id?"#"+e.id:[Yf(e),...Array.from(e.classList).sort()].join(".");if(t.length+n.length>99)return t||n;if(t=t?n+">"+t:n,e.id)break;r=e.parentNode}}catch{}return t},Ei=new WeakMap;function Pn(r,t){return Ei.get(r)||Ei.set(r,new t),Ei.get(r)}var bu=-1,Eu=()=>bu,Nn=r=>{addEventListener("pageshow",t=>{t.persisted&&(bu=t.timeStamp,r(t))},!0)},qt=(r,t,e,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=((a,u)=>a>u[1]?"poor":a>u[0]?"needs-improvement":"good")(t.value,e),r(t)))}},ao=r=>{requestAnimationFrame(()=>requestAnimationFrame(r))},or=()=>Mn()?.activationStart??0,zt=(r,t=-1)=>{let e=Mn(),n="navigate";return Eu()>=0?n="back-forward-cache":e&&(document.prerendering||or()>0?n="prerender":document.wasDiscarded?n="restore":e.type&&(n=e.type.replace(/_/g,"-"))),{name:r,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},Dn=(r,t,e={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(r)){let n=new PerformanceObserver(i=>{queueMicrotask(()=>{t(i.getEntries())})});return n.observe(ce({type:r,buffered:!0},e)),n}}catch{}},uo=r=>{let t=!1;return()=>{t||(r(),t=!0)}},kn=-1,_u=new Set,Gs=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,co=r=>{if(document.visibilityState==="hidden"){if(r.type==="visibilitychange")for(let t of _u)t();isFinite(kn)||(kn=r.type==="visibilitychange"?r.timeStamp:0,removeEventListener("prerenderingchange",co,!0))}},Zr=()=>{if(kn<0){let r=or();kn=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(e=>e.name==="hidden"&&e.startTime>=r)?.startTime)??Gs(),addEventListener("visibilitychange",co,!0),addEventListener("prerenderingchange",co,!0),Nn(()=>{setTimeout(()=>{kn=Gs()})})}return{get firstHiddenTime(){return kn},onHidden(r){_u.add(r)}}},ii=r=>{document.prerendering?addEventListener("prerenderingchange",r,!0):r()},Xs=[1800,3e3],$s=(r,t={})=>{ii(()=>{let e=Zr(),n,i=zt("FCP"),o=Dn("paint",s=>{for(let a of s)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<e.firstHiddenTime&&(i.value=Math.max(a.startTime-or(),0),i.entries.push(a),n(!0)))});o&&(n=qt(r,i,Xs,t.reportAllChanges),Nn(s=>{i=zt("FCP"),n=qt(r,i,Xs,t.reportAllChanges),ao(()=>{i.value=performance.now()-s.timeStamp,n(!0)})}))})},Ws=[.1,.25],Ks=r=>r.find(t=>
4t.node?.nodeType===1)||r[0],Tu=0,_i=1/0,hr=0,Zf=r=>{for(let t of r)t.interactionId&&(_i=Math.min(_i,t.interactionId),hr=Math.max(hr,t.interactionId),Tu=hr?(hr-_i)/7+1:0)},lo,Ys=()=>lo?Tu:performance.interactionCount??0,Zs=0,Jr=class{l=[];h=new Map;m;p;v(){Zs=Ys(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((Ys()-Zs)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let e=this.l.at(-1),n=this.h.get(t.interactionId);if(n||this.l.length<10||t.duration>e.T){if(n?t.duration>n.T?(n.entries=[t],n.T=t.duration):t.duration===n.T&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],T:t.duration},this.h.set(n.id,n),this.l.push(n)),this.l.sort((i,o)=>o.T-i.T),this.l.length>10){let i=this.l.splice(10);for(let o of i)this.h.delete(o.id)}this.p?.(n)}}},ho=r=>{let t=globalThis.requestIdleCallback||setTimeout,e=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")r();else{let n=uo(r),i=-1,o=()=>{e(i),n()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),i=t(()=>{removeEventListener("visibilitychange",o,{capture:!0}),n()})}},Js=[200,500],Jf=(r,t={})=>{let e=Pn(t=Object.assign({},t),Jr),n=[],i=[],o=0,s=new WeakMap,a=new WeakMap,u=!1,c=()=>{u||(ho(l),u=!0)},l=()=>{let h=new Set(e.l.map(g=>s.get(g.entries[0]))),p=i.length-10;i=i.filter((g,m)=>m>=p||h.has(g));let f=new Set;for(let g of i){let m=d(g.startTime,g.processingEnd);for(let y of m)f.add(y)}n=n.filter(g=>g.startTime>o||f.has(g)),u=!1};e.m=h=>{let p=h.startTime+h.duration,f;o=Math.max(o,h.processingEnd);for(let g=i.length-1;g>=0;g--){let m=i[g];if(Math.abs(p-m.renderTime)<=8){f=m,f.startTime=Math.min(h.startTime,f.startTime),f.processingStart=Math.min(h.processingStart,f.processingStart),f.processingEnd=Math.max(h.processingEnd,f.processingEnd),t.includeProcessedEventEntries!==!1&&f.entries.push(h);break}}f||(f={startTime:h.startTime,processingStart:h.processingStart,processingEnd:h.processingEnd,renderTime:p,entries:t.includeProcessedEventEntries!==!1?[h]:[]},i.push(f)),(h.interactionId||h.entryType==="first-input")&&s.set(h,f),c()},e.p=h=>{if(!a.get(h)){let p=h.entries[0].target;if(p){let f=t.generateTarget?.(p)??so(p);a.set(h,f)}}};let d=(h,p)=>{let f=[];for(let g of n)if(!(g.startTime+g.duration<h)){if(g.startTime>p)break;f.push(g)}return f};Dn("long-animation-frame",h=>{n=n.concat(h),c()}),((h,p={})=>
4{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let f=Zr();ii(()=>{"interactionCount"in performance||lo||(lo=Dn("event",Zf,{durationThreshold:0}));let g,m=zt("INP"),y=Pn(p,Jr),v=T=>{ho(()=>{for(let _ of T)y.u(_);let E=y.M();E&&E.T!==m.value&&(m.value=E.T,m.entries=E.entries,g())})},b=Dn("event",v,{durationThreshold:p.durationThreshold??40});g=qt(h,m,Js,p.reportAllChanges),b&&(b.observe({type:"first-input",buffered:!0}),f.onHidden(()=>{v(b.takeRecords()),g(!0)}),Nn(()=>{y.v(),m=zt("INP"),g=qt(h,m,Js,p.reportAllChanges)}))})})(h=>{r((p=>{let f=p.entries[0],g=s.get(f),m=f.processingStart,y=Math.max(f.startTime+f.duration,m),v=Math.min(g.processingEnd,y),b=g.entries.sort((O,w)=>O.processingStart-w.processingStart),T=d(f.startTime,v),E=e.h.get(f.interactionId),_={interactionTarget:a.get(E),interactionType:f.name.startsWith("key")?"keyboard":"pointer",interactionTime:f.startTime,nextPaintTime:y,processedEventEntries:b,longAnimationFrameEntries:T,inputDelay:m-f.startTime,processingDuration:v-m,presentationDelay:y-v,loadState:Ir(f.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(O=>{if(!O.longAnimationFrameEntries?.length)return;let w=O.interactionTime,R=O.inputDelay,C=O.processingDuration,A,D,j=0,M=0,G=0,V=0;for(let B of O.longAnimationFrameEntries){M=M+B.startTime+B.duration-B.styleAndLayoutStart;for(let W of B.scripts){let J=W.startTime+W.duration;if(J<w)continue;let se=J-Math.max(w,W.startTime),Q=W.duration?se/W.duration*W.forcedStyleAndLayoutDuration:0;j+=se-Q,M+=Q,se>V&&(D=W.startTime<w+R?"input-delay":W.startTime>=w+R+C?"presentation-delay":"processing-duration",A=W,V=se)}}let U=O.longAnimationFrameEntries.at(-1),F=U?U.startTime+U.duration:0;F>=w+R+C&&(G=O.nextPaintTime-F),A&&D&&(O.longestScript={entry:A,subpart:D,intersectingDuration:V}),O.totalScriptDuration=j,O.totalStyleAndLayoutDuration=M,O.totalPaintDuration=G,O.totalUnattributedDuration=O.nextPaintTime-w-j-M-G})(_),Object.assign(p,{attribution:_})})(h))},t)},Qr=class{m;u(t){this.m?.(t)}},Qs=[2500,4e3],ea=[800,1800],po=r=>{document.prerendering?ii(()=>po(r)):document.readyState!=="complete"?addEventListener("load",()=>po(r),!0):setTimeout(r)},Qf={lcpUrl:"sanitized",target:"safe"};function ei(r){return ce(ce({},Qf),Su(r)?r:{})}function ta(r){return r===!0||Su(r)}function Su(r){return typeof r=="object"&&r!==null}function na(r,t,e){e&&(Oe(r,"".concat(t,".x"),e.x),Oe(r,"".concat(t,".y"),e.y),Oe(r,"".concat(t,".width"),e.width),Oe
4(r,"".concat(t,".height"),e.height))}var Ft="inp.longest_script";function eg(r,t,e){var n,i,o;let{attribution:s}=t;Ge(r,"inp.interaction_target",e.getTarget(s.interactionTarget)),Oe(r,"inp.interaction_time",s.interactionTime),Ge(r,"inp.interaction_type",s.interactionType),Oe(r,"inp.next_paint_time",s.nextPaintTime),Oe(r,"inp.input_delay",s.inputDelay),Oe(r,"inp.processing_duration",s.processingDuration),Oe(r,"inp.presentation_delay",s.presentationDelay),Ge(r,"inp.load_state",s.loadState),Oe(r,"inp.total_script_duration",s.totalScriptDuration),Oe(r,"inp.total_style_and_layout_duration",s.totalStyleAndLayoutDuration),Oe(r,"inp.total_paint_duration",s.totalPaintDuration),Oe(r,"inp.total_unattributed_duration",s.totalUnattributedDuration),Ge(r,"inp.longest_script_subpart",(n=s.longestScript)===null||n===void 0?void 0:n.subpart),Oe(r,"inp.longest_script_intersecting_duration",(i=s.longestScript)===null||i===void 0?void 0:i.intersectingDuration);let a=(o=s.longestScript)===null||o===void 0?void 0:o.entry;a&&(function(u,c){Oe(u,"".concat(Ft,".duration"),c.duration),Oe(u,"".concat(Ft,".execution_start"),c.executionStart),Ge(u,"".concat(Ft,".invoker"),c.invoker),Ge(u,"".concat(Ft,".invoker_type"),c.invokerType),Oe(u,"".concat(Ft,".pause_duration"),c.pauseDuration),Oe(u,"".concat(Ft,".source_char_position"),c.sourceCharPosition),Ge(u,"".concat(Ft,".source_function_name"),c.sourceFunctionName),Ge(u,"".concat(Ft,".source_url"),c.sourceURL),Oe(u,"".concat(Ft,".start_time"),c.startTime),Ge(u,"".concat(Ft,".window_attribution"),c.windowAttribution)})(r,a)}function tg(r,t){let e=ei(t).lcpUrl;if(e!=="off")return e==="raw"?r:(function(n){if(n)try{let i=new URL(n,window.location.href);return i.protocol!=="http:"&&i.protocol!=="https:"?void 0:"".concat(i.origin).concat(i.pathname)}catch{return}})(r)}function ng(r,t,e){let{attribution:n}=t;Ge(r,"lcp.target",e.getTarget(n.target)),Ge(r,"lcp.url",e.getLCPUrl(n.url)),Oe(r,"lcp.time_to_first_byte",n.timeToFirstByte),Oe(r,"lcp.resource_load_delay",n.resourceLoadDelay),Oe(r,"lcp.resource_load_duration",n.resourceLoadDuration),Oe(r,"lcp.element_render_delay",n.elementRenderDelay),n.lcpResourceEntry&&(function(i,o){for(let[s,a]of Object.entries(o))ur(a)?Oe(i,s,a):Ge(i,s,a)})(r,(function(i){let o={},s=i;return pr(o,"lcp.resource.transfer_size",s.transferSize),pr(o,"http.response.body.size",s.encodedBodySize),pr(o,"http.response.body.uncompressed_size",s.decodedBodySize),pr(o,"http.response.status_code",s.responseStatus),ra(o,"network.protocol.name",s.nextHopProtocol),ra(o,"lcp.resource.initiator_type",s.initiatorType),o})(n.lcpResourceEntry))}function pr(r,t,e){ur(e)&&(r[t]=e)}function ra(r,t,e){typeof e=="string"&&e.length>0&&(r[t]=e)}z(8850),z(7672);
4var rg=/^[a-zA-Z][\w-]*$/,ig=/^[a-z][a-z0-9-]*(\[role=[a-zA-Z][\w-]*\])?(:nth-of-type\([1-9]\d*\))?$/;function og(r){if(!r||!At(r))return;let t=[],e=r,n=0;for(;e&&t.length<6;){let{hasRole:i,part:o}=sg(e),s=t.length===0?o.length:n+1+o.length;if(t.length>0&&s>120||(t.unshift(o),n=s,i))break;e=e.parentElement}return t.join(">")}function sg(r){let t=r.tagName.toLowerCase(),e=r.getAttribute("role"),n=e!==null&&(function(s){return rg.test(s)})(e),i=n?"[role=".concat(e,"]"):"",o=(function(s){if(!s.parentElement)return"";let a=s.tagName,u=0;for(let l=s.previousElementSibling;l;l=l.previousElementSibling)l.tagName===a&&(u+=1);let c=!1;for(let l=s.nextElementSibling;l;l=l.nextElementSibling)if(l.tagName===a){c=!0;break}return u===0&&!c?"":":nth-of-type(".concat(u+1,")")})(r);return{hasRole:n,part:"".concat(t).concat(i).concat(o)}}function ag(r,t){let e=ei(t).target;if(e!=="off")return e==="raw"||(function(n){if(!n||n.length>120)return!1;let i=n.split(">");return i.length>0&&i.length<=6&&i.every(o=>ig.test(o))})(r)?r:void 0}var Yt;(function(r){r.METHOD_OPEN="open",r.METHOD_SEND="send",r.EVENT_ABORT="abort",r.EVENT_ERROR="error",r.EVENT_LOAD="loaded",r.EVENT_TIMEOUT="timeout"})(Yt||(Yt={}));var fo,ia="0.52.1";(fo||(fo={})).HTTP_STATUS_TEXT="http.status_text";var ug=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),cg=(function(r){function t(e){e===void 0&&(e={});var n=r.call(this,"@opentelemetry/instrumentation-xml-http-request",ia,e)||this;return n.component="xml-http-request",n.version=ia,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return ug(t,r),t.prototype.init=function(){},t.prototype._addHeaders=function(e,n){if(!gu(Jt(n).href,this.getConfig().propagateTraceHeaderCorsUrls)){var i={};return Ot.$.inject(me._.active(),i),void(Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var o={};Ot.$.inject(me._.active(),o),Object.keys(o).forEach(function(s){e.setRequestHeader(s,String(o[s]))})},t.prototype._addChildSpan=function(e,n){var i=this;me._.with(qe.u.setSpan(me._.active(),e),function(){var o=i.tracer.startSpan("CORS Preflight",{startTime:n[Ve.FETCH_START]});i.getConfig().ignoreNetworkEvents||Gr(o,n),o.end(n[Ve.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(e,n,i){if(typeof i=="string"){var o=Jt(i);n.status!==void 0&&e.setAttribute(du,n.status),n.statusText!==void 0&&e.setAttribute(fo.HTTP_STATUS_TEXT,n.statusText),e.setAttribute(cu,o.host),e.setAttribute(lu,o.protocol.replace(":","")),e.setAttribute(hu,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,n){var i=this,o=this.getConfig().applyCustomAttributesOnSpan;typeof o=="function"&&Fr(function(){return o(e,n)},function(s){s&&i._diag.error("applyCustomAttributesOnSpan",s)},!0)},t.prototype._addResourceObserver=function(e,n){var i=this._xhrMem.get(e);i&&typeof PerformanceObserver=="function"&&typeof PerformanceResourceTiming=="function"&&(i.createdResources={observer:new PerformanceObserver(function(o){var s=o.getEntries(),a=Jt(n);s.forEach(function(u){u.initiatorType==="xmlhttprequest"&&u.name===a.href&&i.createdResources&&i.createdResources.entries.push(u)})}),entries:[]},i.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(Qn.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,n,i,o,s){if(i&&o&&s&&e.createdResources){var a=e.createdResources.entries;a&&a.length||(a=Qn.getEntriesByType("resource"));var u=fu(Jt(i).href,o,s,a,this._usedResources);if(u.mainRequest){var c=u.mainRequest;this._markResourceAsUsed(c);var l=u.corsPreFlightRequest;l&&(this._addChildSpan(n,l),this._markResourceAsUsed(l)),this.getConfig().ignoreNetworkEvents||Gr(n,c)}}},t.prototype._cleanPreviousSpanInformation=function(e){var n=this._xhrMem.get(e);if(n){var i=n.callbackToRemoveEvents;i&&i(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,n,i){var o;if(!su(n,this.getConfig().ignoreUrls)){var s=i.toUpperCase(),a=this.tracer.startSpan(s,{kind:Zt.v.CLIENT,attributes:(o={},o[au]=i,o[uu]=Jt(n).toString(),o)});return a.addEvent(Yt.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:a,spanUrl:n}),a}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(n){var i=e;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=o[0],u=o[1];return i._createSpan(this,u,a),n.apply(this,o)}}},t.prototype._patchSend=function(){var e=this;function n(u,c){var l=e._xhrMem.get(c);if(l){l.status=c.status,l.statusText=c.statusText,e._xhrMem.delete(c),l.span&&e._applyAttributesAfterXHR(l.span,c);var d=tr(),h=Date.now();setTimeout(function(){(function(p,f,g,m){var y=f.callbackToRemoveEvents;typeof y=="function"&&y();var v=f.span,b=f.spanUrl,T=f.sendStartTime;v&&(e._findResourceAndAddNetworkEvents(f,v,b,T,g),v.addEvent(p,m),e._addFinalSpanAttributes(v,f,b),v.end(m),e._tasksCount--),e._clearResources()})(u,l,d,h)},300)}}function i(){n(Yt.EVENT_ERROR,this)}function o(){n(Yt.EVENT_ABORT,this)}function s(){n(Yt.EVENT_TIMEOUT,this)}function a(){this.status<299?n(Yt.EVENT_LOAD,this):n(Yt.EVENT_ERROR,this)}return function(u){return function(){for(var c=this,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h=e._xhrMem.get(this);if(!h)return u.apply(this,l);var p=h.span,f=h.spanUrl;return p&&f&&me._.with(qe.u.setSpan(me._.active(),p),function(){e._tasksCount++,h.sendStartTime=tr(),p.addEvent(Yt.METHOD_SEND),c.addEventListener("abort",o),c.addEventListener("error",i),c.addEventListener("load",a),c.addEventListener("timeout",s),h.callbackToRemoveEvents=function(){(function(g){g.removeEventListener("abort",o),g.removeEventListener("error",i),g.removeEventListener("load",a),g.removeEventListener("timeout",s);var m=e._xhrMem.get(g);m&&(m.callbackToRemoveEvents=void 0)}
4)(c),h.createdResources&&h.createdResources.observer.disconnect()},e._addHeaders(c,f),e._addResourceObserver(c,f)}),u.apply(this,l)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),Ct(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),Ct(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t})(mt),Ti="baggage",wu=8192,go=class{extract(t,e,n){let i=n.get(e,Ti);if(!i)return t;let o={},s=0,a=0;if(Array.isArray(i))for(let u of i)[s,a]=oa(u,o,s,a);else[s]=oa(i,o,s,a);return s===0?t:Ot.$.setBaggage(t,Ot.$.createBaggage(o))}fields(){return[Ti]}inject(t,e,n){let i=Ot.$.getBaggage(t);if(!i||(0,ln.Zf)(t))return;let o=(function(a){return a.getAllEntries().map(u=>{let[c,l]=u,d="".concat(encodeURIComponent(c),"=").concat(encodeURIComponent(l.value));return l.metadata!==void 0&&(d+=";"+l.metadata.toString()),d})})(i).filter(a=>a.length<=4096).slice(0,180),s=(function(a){return a.reduce((u,c)=>{let l="".concat(u).concat(u===""?"":",").concat(c);return l.length<=wu?l:u},"")})(o);s.length>0&&n.set(e,Ti,s)}};function lg(r){if(!r)return;let t=r.indexOf(";"),e=t===-1?r:r.slice(0,Math.max(0,t)),n=e.indexOf("=");if(n<=0)return;let i=e.slice(0,Math.max(0,n)).trim(),o=e.slice(Math.max(0,n+1)).trim();if(!i||!o)return;let s,a,u;try{s=decodeURIComponent(i),a=decodeURIComponent(o)}catch{return}if(t!==-1&&t<r.length-1){let c=r.slice(Math.max(0,t+1));u=(0,ka.B)(c)}return{key:s,metadata:u,value:a}}function oa(r,t,e,n){let i=0;for(;i<r.length&&e<180;){let o=r.indexOf(",",i),s=o===-1?r.length:o,a=s-i;if(a<=4096){let u=lg(r.substring(i,s));if(u){let c=(e===0?0:1)+a;if(n+c>wu)break;t[u.key]=u.metadata?{metadata:u.metadata,value:u.value}:{value:u.value},e+=1,n+=c}}if(o===-1)break;i=o+1}return[e,n]}var sa="browser_instance_id",sr=class{static get id(){if(this._id!==null)return this._id;let t=Wr.safelyGetValue(sa);return t?this._id=t:t===null?(t=cr(64),this._id=t,Wr.safelySetValue(sa,t)):this._id=void 0,this._id}};S(sr,"_id",null);var mo=class{isSessionSampled(t){return this._accumulate(t)<this.upperBound}shouldSample(t,e,n,i,o,s){let a=(u=Pr[Ar])===null||u===void 0?void 0:u[_n];var u;if(!a.sessionManager)throw new Error("SplunkRum is not initialized");let c=a.sessionManager.getSessionId();return this.currentSessionId!==c&&(this.currentSessionSampled=this._accumulate(c)<this.upperBound,this.currentSessionId=c),(this.currentSessionSampled?this.sampled:this.notSampled).shouldSample(t,e,n,i,o,s)}toString(){return"SessionBased{ratio=".concat(this.ratio,", sampled=").concat(this.sampled.toString(),", notSampled=").concat(this.notSampled.toString(),"}")}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){let i=8*n;e=(e^Number.parseInt(t.slice(i,i+8),16))>>>0}return e}_normalize(t){return typeof t!="number"||Number.isNaN(t)?0:t>=1?1:Math.max(t,0)}constructor({notSampled:t=new Bn,ratio:e=1,sampled:n=new en}={}){S(this,"currentSessionId",void 0),S(this,"currentSessionSampled",void 0),S(this,"notSampled",void 0),S(this,"ratio",void 0),S(this,"sampled",void 0),S(this,"upperBound",void 0),this.ratio=this._normalize(e),this.upperBound=Math.floor(4294967295*this.ratio),this.sampled=n,this.notSampled=t}},vo=class{forceFlush(){return Promise.resolve()}getGlobalAttributes(){return this._globalAttributes}onEnd(t){var e;let n=t.endTime[0],i=(e=t.attributes["splunk.rumSessionId"])!==null&&e!==void 0?e:"",o=this.sessionManager.sessionHistory.get(i);if(o){let s=(o.startTime+mu)/1e3;n>s&&(t.endTime[0]=s,t.endTime[1]=0,t.duration[0]=s-t.startTime[0],t.duration[1]=0)}}onStart(t){if(this.spaMetricsManager&&t.attributes[Hr]===void 0){let i=(0,Ne.JU)(t.startTime)-performance.timeOrigin;t.setAttribute(Hr,this.spaMetricsManager.getNavigationOperation(i))}t.attributes["location.href"]===void 0&&t.setAttribute("location.href",location.href),t.setAttributes(this._globalAttributes);let e=this.sessionManager.getSessionState();e.state==="expired-duration"||e.state==="expired-inactivity"&&this.discardDataAfterInactivity||(this.adjustSessionStartToTimeOrigin&&(0,Ne.JU)(t.startTime)<e.startTime-1e3?k.s.warn("Dropping span that started before the session",{diffMs:e.startTime-(0,Ne.JU)(t.startTime),sessionStartTime:e.startTime,spanName:t.name,spanStartTime:(0,Ne.JU)(t.startTime)}):t.setAttribute("splunk.rumSessionId",e.id));let n=this.userManager.getAnonymousIdIfEnabled();n&&t.setAttribute("user.anonymous_id",n),t.setAttribute("browser.instance.visibility_state",document.visibilityState),t.resource.attributes["service.name"]==="unknown_service"&&delete t.resource.attributes["service.name"]}setGlobalAttributes(t){if(t)Object.assign(this._globalAttributes,t);else for(let e of Object.keys(this._globalAttributes))delete this._globalAttributes[e]}shutdown(){return Promise.resolve()}constructor(t,e,n,i=!0,o=!0,s){S(this,"sessionManager",void 0),S(this,"userManager",void 0),S(this,"discardDataAfterInactivity",void 0),S(this,"adjustSessionStartToTimeOrigin",void 0),S(this,"spaMetricsManager",void 0),S(this,"_globalAttributes",void 0),this.sessionManager=t,this.userManager=e,this.discardDataAfterInactivity=i,this.adjustSessionStartToTimeOrigin=o,this.spaMetricsManager=s,this._globalAttributes=n??{}}},yo=class{addEventListener(t,e){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e)}emitSpan(t,e){var n,i;let o=(i=t.attributes)===null||i===void 0?void 0:i.component;if(!o)return;let s=e==="start"?"".concat(o,":start"):o,a=(n=this.listeners.get(s))!==null&&n!==void 0?n:[];for(let u of a)try{u(t)}catch{}}enable(){this.isEnabled=!0;for(let t of this.buffer)this.emitSpan(t,"end");this.buffer=[]}forceFlush(){return Promise.resolve()}onEnd(t){this.isEnabled?this.emitSpan(t,"end"):this.buffer.push(t)}onStart(t){this.isEnabled&&this.emitSpan(t,"start")}removeEventListener(t,e){var n;(n=this.listeners.get(t))===null||n===void 0||n.delete(e)}shutdown(){return this.listeners.clear(),Promise.resolve()}constructor(){S(this,"buffer",[]),S(this,"isEnabled",!1),S(this,"listeners",new Map)}};z(2380);var It="__splunk_context",bo=class{active(){return this._currentContext}bind(t,e){return vt(e)?this._bindFunction(e,t):e}disable(){return this._enabled?(this._config.async&&(this._unpatchTimeouts(),this._unpatchPromise(),this._unpatchMutationObserver(),this._unpatchEvents(),this._unpatchMessageChannel()),this._currentContext=dt.l,this._enabled=!1,this):this}
4enable(){return this._enabled||(this._config.async&&(this._patchTimeouts(),this._patchPromise(),this._patchMutationObserver(),this._patchEvents(),this._patchMessageChannel()),this._enabled=!0,this._currentContext=dt.l),this}with(t,e,n){for(var i=arguments.length,o=new Array(i>3?i-3:0),s=3;s<i;s++)o[s-3]=arguments[s];try{var a,u;(a=(u=this._config).onBeforeContextStart)===null||a===void 0||a.call(u)}catch{}let c=this._currentContext;this._currentContext=t||dt.l;let l=location.hash;try{var d,h;let p=e.call(n,...o);return(d=(h=this._config).onBeforeContextEnd)===null||d===void 0||d.call(h),p}finally{this._currentContext=c,l!==location.hash&&(this._hashChangeContext=t,hs(setTimeout)(()=>{this._hashChangeContext===t&&(this._hashChangeContext=null)},33))}}_bindFunction(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt.l,n=this,i=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return n.with(e,()=>t.apply(this,s))};return Object.defineProperty(i,"length",{configurable:!0,enumerable:!1,value:t.length,writable:!1}),i}_getListenersMap(t,e){this._contextResumingListeners.has(t)||this._contextResumingListeners.set(t,new Map);let n=this._contextResumingListeners.get(t);return n?.has(e)||n==null||n.set(e,new WeakMap),n?.get(e)}_getWrappedEventListener(t,e){let n=this;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];let a=e();return a&&n._enabled?n.with(a,t,this,...o):t.apply(this,o)}}_patchEvents(){let t=this;Qe(XMLHttpRequest.prototype,"addEventListener",n=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(vt(o[1])){let a=t._getListenersMap(this,o[0]),u=a?.get(o[1]);u||(u=t.bind(t.active(),o[1]),a?.set(o[1],u)),o[1]=u}return n.apply(this,o)}),Qe(XMLHttpRequest.prototype,"removeEventListener",n=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(vt(o[1])){let a=t._getListenersMap(this,o[0]),u=a?.get(o[1]);u&&(o[1]=u)}return n.apply(this,o)}),["onabort","onerror","onload","onloadend","onloadstart","onprogress","ontimeout"].forEach(n=>{let i=Object.getOwnPropertyDescriptor(XMLHttpRequestEventTarget.prototype,n);i&&(Qe(i,"get",o=>function(){let s=o?.call(this);return vt(s)&&s._orig?s._orig:s}),Qe(i,"set",o=>function(s){if(vt(s)){let a=s,u=t.bind(t.active(),s);u._orig=a,s=u}return o?.call(this,s)}),Object.defineProperty(XMLHttpRequestEventTarget.prototype,n,i))}),Qe(Window.prototype,"addEventListener",n=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(o[0]==="hashchange"&&vt(o[1])){let a=t._getListenersMap(this,o[0]),u=a?.get(o[1]);u||(u=t._getWrappedEventListener(o[1],()=>t._hashChangeContext),a?.set(o[1],u)),o[1]=u}return n.apply(this,o)});let e=Object.getOwnPropertyDescriptor(window,"onhashchange");e&&(Qe(e,"get",n=>function(){let i=n?.call(this);return vt(i)&&i._orig?i._orig:i}),Qe(e,"set",n=>function(i){if(vt(i)){let o=t._getWrappedEventListener(i,()=>t._hashChangeContext);o._orig=i,i=o}return n?.call(this,i)}),Object.defineProperty(window,"onhashchange",e))}_patchMessageChannel(){let t=this;Qe(window,"MessageChannel",n=>class extends n{constructor(...i){super(...i),t._messagePorts.set(this.port1,this.port2),t._messagePorts.set(this.port2,this.port1),Object.defineProperty(this.port1,It,{enumerable:!1,value:null,writable:!0}),Object.defineProperty(this.port2,It,{enumerable:!1,value:null,writable:!0})}}),Qe(MessagePort.prototype,"postMessage",n=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];let a=t.active();if(!t._messagePorts.has(this)||!a)return n.apply(this,o);let u=t._messagePorts.get(this);u[It]=a;let c=n.apply(this,o);return hs(setTimeout)(()=>{u[It]===a&&(u[It]=null)},100),c}),Qe(MessagePort.prototype,"addEventListener",n=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(o[0]==="message"&&vt(o[1])){let a=t._getListenersMap(this,o[0]),u=a?.get(o[1]);u||(u=t._getWrappedEventListener(o[1],()=>this[It]),a?.set(o[1],u)),o[1]=u}return n.apply(this,o)}),Qe(MessagePort.prototype,"removeEventListener",n=>function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];if(o[0]==="message"&&vt(o[1])){let a=t._getListenersMap(this,o[0]),u=a?.get(o[1]);u&&(o[1]=u)}return n.apply(this,o)});let e=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");e&&(Qe(e,"get",n=>function(){let i=n?.call(this);return vt(i)&&i._orig?i._orig:i}),Qe(e,"set",n=>function(i){if(vt(i)){let o=t._getWrappedEventListener(i,()=>this[It]);o._orig=i,i=o}return n?.call(this,i)}),Object.defineProperty(MessagePort.prototype,"onmessage",e))}_patchMutationObserver(){let t=this;Qe(window,"MutationObserver",e=>class extends e{observe(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(i[0]&&i[0]instanceof Text&&!i[0].parentNode&&i[1]&&i[1].characterData){let s=this,a=i[0],u=Object.getOwnPropertyDescriptor(CharacterData.prototype,"data");Object.defineProperty(a,"data",He(ce({},u),{enumerable:!1,set:function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var h;let p=t.active();return p&&(s[It]=p),u==null||(h=u.set)===null||h===void 0?void 0:h.apply(this,l)}}))}return super.observe(...i)}constructor(...n){if(vt(n[0])){let i=n[0];n[0]=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return this[It]&&t._enabled?t.with(this[It],i,this,...s):i.apply(this,s)}}super(...n),Object.defineProperty(this,It,{enumerable:!1,value:null,writable:!0})}})}_patchPromise(){if(!window.Promise)return;let t=this;Qe(Promise.prototype,"then",e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.bindActiveToArgument(i,0),t.bindActiveToArgument(i,1),e.apply(this,i)}),Qe(Promise.prototype,"catch",e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.bindActiveToArgument(i,0),e.apply(this,i)}),Qe(Promise.prototype,"finally",e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.bindActiveToArgument(i,0),e.apply(this,i)})}_patchTimeouts(){let t=this;Qe(window,"setTimeout",e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(!i[1]||i[1]<=34)&&t.bindActiveToArgument(i,0),e.apply(this,i)}),window.setImmediate&&Qe(window,"setImmediate",e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.bindActiveToArgument(i,0),e.apply(this,i)}),window.requestAnimationFrame&&Qe(window,"requestAnimationFrame",e=>function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.bindActiveToArgument(i,0),e.apply(this,i)})}_unpatchEvents(){(0,je.unwrap)(XMLHttpRequest.prototype,"addEventListener"),(0,je.unwrap)(XMLHttpRequest.prototype,"removeEventListener")}_unpatchMessageChannel(){(0,je.unwrap)(window,"MessageChannel"),(0,je.unwrap)(MessagePort.prototype,"postMessage"),(0,je.unwrap)(MessagePort.prototype,"addEventListener"),(0,je.unwrap)(MessagePort.prototype,"removeEventListener");let t=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");t&&((0,je.unwrap)(t,"get"),(0,je.unwrap)(t,"set"),Object.defineProperty(MessagePort.prototype,"onmessage",t))}_unpatchMutationObserver(){(0,je.unwrap)(window,"MutationObserver")}_unpatchPromise(){window.Promise&&((0,je.unwrap)(Promise.prototype,"then"),(0,je.unwrap)(Promise.prototype,"catch"),(0,je.unwrap)(Promise.prototype,"finally"))}_unpatchTimeouts(){(0,je.unwrap)(window,"setTimeout"),window.setImmediate&&(0,je.unwrap)(window,"setImmediate")}bindActiveToArgument(t,e){vt(t[e])&&(t[e]=this.bind(this.active(),t[e]))}constructor(t={}){S(this,"_config",void 0),S(this,"_currentContext",void 0),S(this,"_contextResumingListeners",void 0),S(this,"_enabled",void 0),S(this,"_hashChangeContext",void 0),S(this,"_messagePorts",void 0),this._config=t,this._currentContext=dt.l,this._contextResumingListeners=new WeakMap,this._enabled=!1,this._hashChangeContext=null,this._messagePorts=new WeakMap}},Eo=class{shouldSample(t,e,n,i,o,s){return this.options.decider.shouldSample(t,e,n,i,o,s)}toString(){return"SplunkSampler{decider=".concat(this.options.decider.toString(),"}")}constructor(t){S(this,"options",void 0),this.options=t}},dg=z(9396),hg=z(2559),pg=z(4105),aa=z(9623),Zn=z(4414),_o=function(){return _o=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},_o.apply(this,arguments)},fg=function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ua=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s},gg=function(r,t,e){if(e||arguments.length===2)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return r.concat(n||Array.prototype.slice.call(t))},mg=(function(){function r(t,e,n,i,o,s,a,u,c,l){a===void 0&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:yu.s.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=i,this.parentSpanId=s,this.kind=o,this.links=a;var d=Date.now();this._performanceStartTime=Sn.u.now(),this._performanceOffset=d-(this._performanceStartTime+(0,Ne.uc)()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??d),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,e)}return r.prototype.spanContext=function(){return this._spanContext},r.prototype.setAttribute=function(t,e){return e==null||this._isSpanEnded()?this:t.length===0?(k.s.warn("Invalid attribute key: "+t),this):(0,Zn.m)(e)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this):(k.s.warn("Invalid attribute value set for key: "+t),this)},r.prototype.setAttributes=function(t){var e,n;try{for(var i=fg(Object.entries(t)),o=i.next();!o.done;o=i.next()){var s=ua(o.value,2),a=s[0],u=s[1];this.setAttribute(a,u)}}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return this},r.prototype.addEvent=function(t,e,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return k.s.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&k.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Ne.Ir)(e)&&((0,Ne.Ir)(n)||(n=e),e=void 0);var i=(0,Zn.L)(e);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},r.prototype.addLink=function(t){return this.links.push(t),this},r.prototype.addLinks=function(t){var e;return(e=this.links).push.apply(e,gg([],ua(t),!1)),this},r.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=_o({},t),this.status.message!=null&&typeof t.message!="string"&&(k.s.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message)),this},r.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},r.prototype.end=function(t){this._isSpanEnded()?k.s.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(t),this._duration=(0,Ne.W5)(this.startTime,this.endTime),this._duration[0]<0&&(k.s.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&k.s.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},r.prototype._getTime=function(t){if(typeof t=="number"&&t<=Sn.u.now())return(0,Ne._5)(t+this._performanceOffset);if(typeof t=="number")return(0,Ne.lg)(t);if(t instanceof Date)return(0,Ne.lg)(t.getTime());if((0,Ne.VL)(t))return t;if(this._startTimeProvided)return(0,Ne.lg)(Date.now());var e=Sn.u.now()-this._performanceStartTime;return(0,Ne.mw)(this.startTime,(0,Ne.lg)(e))},r.prototype.isRecording=function(){return this._ended===!1}
4,r.prototype.recordException=function(t,e){var n={};typeof t=="string"?n[di]=t:t&&(t.code?n[li]=t.code.toString():t.name&&(n[li]=t.name),t.message&&(n[di]=t.message),t.stack&&(n[Ad]=t.stack)),n[li]||n[di]?this.addEvent("exception",n,e):k.s.warn("Failed to record an exception "+t)},Object.defineProperty(r.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),r.prototype._isSpanEnded=function(){return this._ended&&k.s.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},r.prototype._truncateToLimitUtil=function(t,e){return t.length<=e?t:t.substring(0,e)},r.prototype._truncateToSize=function(t){var e=this,n=this._attributeValueLengthLimit;return n<=0?(k.s.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?e._truncateToLimitUtil(i,n):i}):t},r})(),En=z(6758),ca=(function(){function r(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return r.prototype.shouldSample=function(t,e){return{decision:(0,Pa.hX)(e)&&this._accumulate(e)<this._upperBound?Un.RECORD_AND_SAMPLED:Un.NOT_RECORD}},r.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},r.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},r.prototype._accumulate=function(t){for(var e=0,n=0;n<t.length/8;n++){var i=8*n;e=(e^parseInt(t.slice(i,i+8),16))>>>0}return e},r})(),vg=En.R.AlwaysOn;function Ou(){var r=(0,In._)();return{sampler:Ru(r),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:r.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:r.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:r.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:r.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:r.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:r.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:r.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:r.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function Ru(r){switch(r===void 0&&(r=(0,In._)()),r.OTEL_TRACES_SAMPLER){case En.R.AlwaysOn:return new en;case En.R.AlwaysOff:return new Bn;case En.R.ParentBasedAlwaysOn:return new Rr({root:new en});case En.R.ParentBasedAlwaysOff:return new Rr({root:new Bn});case En.R.TraceIdRatio:return new ca(la(r));case En.R.ParentBasedTraceIdRatio:return new Rr({root:new ca(la(r))});default:return k.s.error('OTEL_TRACES_SAMPLER value "'+r.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+vg+'".'),new en}}function la(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return k.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var t=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(k.s.error("OTEL_TRACES_SAMPLER_ARG="+r.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):t<0||t>1?(k.s.error("OTEL_TRACES_SAMPLER_ARG="+r.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):t}var da=z(5146),yg=function(){this.generateTraceId=ha(16),this.generateSpanId=ha(8)},fr=Array(32);function ha(r){return function(){for(var t=0;t<2*r;t++)fr[t]=Math.floor(16*Math.random())+48,fr[t]>=58&&(fr[t]+=39);return String.fromCharCode.apply(null,fr.slice(0,2*r))}}var Tn,bg=(function(){function r(t,e,n){this._tracerProvider=n;var i,o,s,a,u=(i=e,o={sampler:Ru()},s=Ou(),(a=Object.assign({},s,o,i)).generalLimits=Object.assign({},s.generalLimits,i.generalLimits||{}),a.spanLimits=Object.assign({},s.spanLimits,i.spanLimits||{}),a);this._sampler=u.sampler,this._generalLimits=u.generalLimits,this._spanLimits=u.spanLimits,this._idGenerator=e.idGenerator||new yg,this.resource=n.resource,this.instrumentationLibrary=t}return r.prototype.startSpan=function(t,e,n){var i,o,s;e===void 0&&(e={}),n===void 0&&(n=me._.active()),e.root&&(n=qe.u.deleteSpan(n));var a=qe.u.getSpan(n);if((0,ln.Zf)(n))return k.s.debug("Instrumentation suppressed, returning Noop Span"),qe.u.wrapSpanContext(pg.dM);var u,c,l,d=a?.spanContext(),h=this._idGenerator.generateSpanId();d&&qe.u.isSpanContextValid(d)?(u=d.traceId,c=d.traceState,l=d.spanId):u=this._idGenerator.generateTraceId();var p=(i=e.kind)!==null&&i!==void 0?i:Zt.v.INTERNAL,f=((o=e.links)!==null&&o!==void 0?o:[]).map(function(b){return{context:b.context,attributes:(0,Zn.L)(b.attributes)}}),g=(0,Zn.L)(e.attributes),m=this._sampler.shouldSample(n,u,t,p,g,f);c=(s=m.traceState)!==null&&s!==void 0?s:c;var y={traceId:u,spanId:h,traceFlags:m.decision===aa.i.RECORD_AND_SAMPLED?jn.X.SAMPLED:jn.X.NONE,traceState:c};if(m.decision===aa.i.NOT_RECORD)return k.s.debug("Recording is off, prop
4agating context in a non-recording span"),qe.u.wrapSpanContext(y);var v=(0,Zn.L)(Object.assign(g,m.attributes));return new mg(this,n,t,y,p,l,f,e.startTime,void 0,v)},r.prototype.startActiveSpan=function(t,e,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=e:arguments.length===3?(o=e,a=n):(o=e,s=n,a=i);var u=s??me._.active(),c=this.startSpan(t,o,u),l=qe.u.setSpan(u,c);return me._.with(l,a,void 0,c)}},r.prototype.getGeneralLimits=function(){return this._generalLimits},r.prototype.getSpanLimits=function(){return this._spanLimits},r.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},r})(),gr=function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pa=(function(){function r(t){this._spanProcessors=t}return r.prototype.forceFlush=function(){var t,e,n=[];try{for(var i=gr(this._spanProcessors),o=i.next();!o.done;o=i.next()){var s=o.value;n.push(s.forceFlush())}}catch(a){t={error:a}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return new Promise(function(a){Promise.all(n).then(function(){a()}).catch(function(u){(0,Qt.s)(u||new Error("MultiSpanProcessor: forceFlush failed")),a()})})},r.prototype.onStart=function(t,e){var n,i;try{for(var o=gr(this._spanProcessors),s=o.next();!s.done;s=o.next())s.value.onStart(t,e)}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},r.prototype.onEnd=function(t){var e,n;try{for(var i=gr(this._spanProcessors),o=i.next();!o.done;o=i.next())o.value.onEnd(t)}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},r.prototype.shutdown=function(){var t,e,n=[];try{for(var i=gr(this._spanProcessors),o=i.next();!o.done;o=i.next()){var s=o.value;n.push(s.shutdown())}}catch(a){t={error:a}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return new Promise(function(a,u){Promise.all(n).then(function(){a()},u)})},r})(),Eg=(function(){function r(){}return r.prototype.onStart=function(t,e){},r.prototype.onEnd=function(t){},r.prototype.shutdown=function(){return Promise.resolve()},r.prototype.forceFlush=function(){return Promise.resolve()},r})(),_g=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s},Tg=function(r,t,e){if(e||arguments.length===2)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return r.concat(n||Array.prototype.slice.call(t))};(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(Tn||(Tn={}));var Sg=(function(){function r(t){var e,n;t===void 0&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var i=(0,dg.h)({},Ou(),(function(a){var u,c,l,d,h,p,f,g,m,y,v,b,T=Object.assign({},a.spanLimits),E=(0,In.w)();return T.attributeCountLimit=(p=(h=(d=(c=(u=a.spanLimits)===null||u===void 0?void 0:u.attributeCountLimit)!==null&&c!==void 0?c:(l=a.generalLimits)===null||l===void 0?void 0:l.attributeCountLimit)!==null&&d!==void 0?d:E.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&h!==void 0?h:E.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&p!==void 0?p:da.fv,T.attributeValueLengthLimit=(b=(v=(y=(g=(f=a.spanLimits)===null||f===void 0?void 0:f.attributeValueLengthLimit)!==null&&g!==void 0?g:(m=a.generalLimits)===null||m===void 0?void 0:m.attributeValueLengthLimit)!==null&&y!==void 0?y:E.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&v!==void 0?v:E.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&b!==void 0?b:da.aE,Object.assign({},a,{spanLimits:T})})(t));if(this.resource=(e=i.resource)!==null&&e!==void 0?e:Ai.empty(),i.mergeResourceWithDefaults&&(this.resource=Ai.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),(n=t.spanProcessors)===null||n===void 0?void 0:n.length)this._registeredSpanProcessors=Tg([],_g(t.spanProcessors),!1),this.activeSpanProcessor=new pa(this._registeredSpanProcessors);else{var o=this._buildExporterFromEnv();if(o!==void 0){var s=new Aa(o);this.activeSpanProcessor=s}else this.activeSpanProcessor=new Eg}}return r.prototype.getTracer=function(t,e,n){var i=t+"@"+(e||"")+":"+(n?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new bg({name:t,ver
4sion:e,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(i)},r.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(e){return k.s.error("Error while trying to shutdown current span processor",e)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new pa(this._registeredSpanProcessors)},r.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},r.prototype.register=function(t){t===void 0&&(t={}),qe.u.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&me._.setGlobalContextManager(t.contextManager),t.propagator&&Ot.$.setGlobalPropagator(t.propagator)},r.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var o,s=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),o=Tn.timeout},t);n.forceFlush().then(function(){clearTimeout(s),o!==Tn.timeout&&(o=Tn.resolved,i(o))}).catch(function(a){clearTimeout(s),o=Tn.error,i(a)})})});return new Promise(function(n,i){Promise.all(e).then(function(o){var s=o.filter(function(a){return a!==Tn.resolved});s.length>0?i(s):n()}).catch(function(o){return i([o])})})},r.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},r.prototype._getPropagator=function(t){var e;return(e=this.constructor._registeredPropagators.get(t))===null||e===void 0?void 0:e()},r.prototype._getSpanExporter=function(t){var e;return(e=this.constructor._registeredExporters.get(t))===null||e===void 0?void 0:e()},r.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set((0,In._)().OTEL_PROPAGATORS)),n=e.map(function(i){var o=t._getPropagator(i);return o||k.s.warn('Propagator "'+i+'" requested through environment variable is unavailable.'),o}).reduce(function(i,o){return o&&i.push(o),i},[]);return n.length===0?void 0:e.length===1?n[0]:new Ra.n({propagators:n})},r.prototype._buildExporterFromEnv=function(){var t=(0,In._)().OTEL_TRACES_EXPORTER;if(t!=="none"&&t!==""){var e=this._getSpanExporter(t);return e||k.s.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},r._registeredPropagators=new Map([["tracecontext",function(){return new Do.lm}],["baggage",function(){return new hg.t}]]),r._registeredExporters=new Map,r})(),wg=function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n,i,o=e.call(r),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s},Og=function(r,t,e){if(e||arguments.length===2)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return r.concat(n||Array.prototype.slice.call(t))},Rg=(function(){function r(){this._enabled=!1,this._currentContext=dt.l}return r.prototype._bindFunction=function(t,e){t===void 0&&(t=dt.l);var n=this,i=function(){for(var o=this,s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return n.with(t,function(){return e.apply(o,s)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),i},r.prototype.active=function(){return this._currentContext},r.prototype.bind=function(t,e){return t===void 0&&(t=this.active()),typeof e=="function"?this._bindFunction(t,e):e},r.prototype.disable=function(){return this._currentContext=dt.l,this._enabled=!1,this},r.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=dt.l),this},r.prototype.with=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=this._currentContext;this._currentContext=t||dt.l;try{return e.call.apply(e,Og([n],wg(i),!1))}finally{this._currentContext=s}},r})(),Lg=(function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}
4r(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Cg=(function(r){function t(e){e===void 0&&(e={});var n=r.call(this,e)||this;if(e.contextManager)throw"contextManager should be defined in register method not in constructor";if(e.propagator)throw"propagator should be defined in register method not in constructor";return n}return Lg(t,r),t.prototype.register=function(e){e===void 0&&(e={}),e.contextManager===void 0&&(e.contextManager=new Rg),e.contextManager&&e.contextManager.enable(),r.prototype.register.call(this,e)},t})(Sg),To=class extends Cg{shutdown(){return new Promise(t=>{Ot.$.disable(),me._.disable(),qe.u.disable(),t()}).then(()=>super.shutdown())}};function Lu(){let r=(t=[" daum[ /]| deusu/| yadirectfetcher|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\b|_)|(?<!(?:lib))http|(?<![hg]m)score|@[a-z][w-]+.|()|.com\b|\btime/|^<|^[w .-(?:):%]+(?:/v?d+(?:.d+)?(?:.d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^d+\b|^w*search\b|^w+/[w()]*$|^active|^ad muncher|^amaya|^avsdevicesdk/|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/5.0s[a-z.-]+$|^mozilla/d.d (compatible;?)$|^mozilla/d.d w*$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/d|^zoom marketplace/|^{{.*}}$|adscanner/|analyzer|archive|ask jeeves/teoma|audit|bit.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|cookiehubscan|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|evc-batch/|exaleadcloudview|feed|firephp|functionize|gomezagent|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|images|infrawatch|insight|inspect|iplabel|ips-agent|java(?!;)|jsjcw_scanner|library|linkcheck|mail.ru/|manager|measure|neustar wpm|node|nutch|offbyone|optimize|pageburst|pagespeed|parser|perl|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]d|reputation|resolver|retriever|rexx;|rigor|rss\b|scanner.|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|tools|torrent|trace|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|zgrab"],(e=[" daum[ /]| deusu/| yadirectfetcher|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<![hg]m)score|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\btime/|^<|^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^active|^ad muncher|^amaya|^avsdevicesdk/|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/5\\.0\\s[a-z\\.-]+$|^mozilla/\\d\\.\\d \\(compatible;?\\)$|^mozilla/\\d\\.\\d \\w*$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|^{{.*}}$|adscanner/|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|cookiehubscan|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|evc-batch/|exaleadcloudview|feed|firephp|functionize|gomezagent|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|images|infrawatch|insight|inspect|iplabel|ips-agent|java(?!;)|jsjcw_scanner|library|linkcheck|mail\\.ru/|manager|measure|neustar wpm|node|nutch|offbyone|optimize|pageburst|pagespeed|parser|perl|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|reputation|resolver|retriever|rexx;|rigor|rss\\b|scanner\\.|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|tools|torrent|trace|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|zgrab"])||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));var t,e;return Lu=function(){return r},r}function Cu(r){if(!r)return!1;try{let t=new RegExp(String.raw(Lu()),"i");return!!r&&t.test(r)}catch{return!1}}var Vt,mr,Gn,xt,So={d:(r,t,e)=>{var n=(i,o)=>{for(var s in i)So.o(i,s)&&!So.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,[o]:i[s]})};n(t,"get"),n(e,"value")},o:(r,t)=>Object.prototype.hasOwnProperty.call(r,t)},zo={};function ct(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}So.d(zo,{$:()=>qg,Fn:()=>Vg,Xe:()=>Hg}),(Vt=xt||(xt={}))[Vt.DEBUG=0]="DEBUG",Vt[Vt.INFO=1]="INFO",Vt[Vt.WARN=2]="WARN",Vt[Vt.ERROR=3]="ERROR",Vt[Vt.CRITICAL=4]="CRITICAL";
4var ti=class r{constructor(){ct(this,"loggingLevel",null),ct(this,"loggingPrefix",""),ct(this,"middlewares",[]),ct(this,"critical",(t,...e)=>{this.processMiddlewares("console","critical",t,...e),this.loggingLevel!==null&&xt.CRITICAL>=this.loggingLevel&&console.error(`${this.loggingPrefix}${t}`,...e)}),ct(this,"debug",(t,...e)=>{this.processMiddlewares("console","debug",t,...e),this.loggingLevel!==null&&xt.DEBUG>=this.loggingLevel&&console.debug(`${this.loggingPrefix}${t}`,...e)}),ct(this,"debugNoConsole",(t,...e)=>{this.processMiddlewares("internal","debug",t,...e)}),ct(this,"error",(t,...e)=>{this.processMiddlewares("console","error",t,...e),this.loggingLevel!==null&&xt.ERROR>=this.loggingLevel&&console.error(`${this.loggingPrefix}${t}`,...e)}),ct(this,"errorNoConsole",(t,...e)=>{this.processMiddlewares("internal","error",t,...e)}),ct(this,"info",(t,...e)=>{this.processMiddlewares("console","info",t,...e),this.loggingLevel!==null&&xt.INFO>=this.loggingLevel&&console.log(`${this.loggingPrefix}${t}`,...e)}),ct(this,"infoNoConsole",(t,...e)=>{this.processMiddlewares("internal","info",t,...e)}),ct(this,"setLoggingLevel",t=>{this.loggingLevel=r.convertLogLevelToNumber(t)}),ct(this,"setLoggingPrefix",t=>{this.loggingPrefix=t}),ct(this,"setMiddleware",t=>{this.middlewares.push(t)}),ct(this,"warn",(t,...e)=>{this.processMiddlewares("console","warn",t,...e),this.loggingLevel!==null&&xt.WARN>=this.loggingLevel&&console.warn(`${this.loggingPrefix}${t}`,...e)}),ct(this,"warnNoConsole",(t,...e)=>{this.processMiddlewares("internal","warn",t,...e)}),ct(this,"processMiddlewares",(t,e,n,...i)=>
4{this.middlewares.forEach(o=>o(t,e,n,...i))})}};ct(ti,"convertLogLevelToNumber",r=>{switch(r){case"debug":return xt.DEBUG;case"info":return xt.INFO;case"warn":return xt.WARN;case"error":default:return xt.ERROR;case"critical":return xt.CRITICAL}});var Gt=new ti,ar="#000",fa="#8f8f8f",hn="#e0e0e0",Go="rgba(0, 0, 0, 0.48)",xu="#e00000",ga="#0264d7",wo="#adcff6",ma="#00336d",Xo="rgba(0, 0, 0, 0.18)",xn="#909090",Dt="#fff",Au="#f7f7f7",va="#dddddd",Oo="#ffffff",Ro="#2C2C2C",pn="#4d4d4d",Fn="#2c2c2c",fn="#6b6b6b",cn="transparent",Lo="#fff",$e={BUTTON_BORDER:`1px solid ${fa}`,BUTTON_HOVER_COLOR:"#f5f5f5",HOVER_COLOR:"#BD410B",PICKER_BORDER_COLOR_OFF:fa,PICKER_BORDER_COLOR_ON:ga,PICKER_Z_INDEX:2147483647,PRIMARY_COLOR:ga,PRIMARY_DISABLED:wo,SKELETON_IMAGE_URL_OFF:"https://cdn.observability.splunkcloud.com/o11y-gdi-rum/session-replay/picker/off.gif",SKELETON_IMAGE_URL_ON:"https://cdn.observability.splunkcloud.com/o11y-gdi-rum/session-replay/picker/on.gif"},wn="splunk-web-element-picker";function ya(r){if(r===null||typeof r!="object"||Array.isArray(r))return!1;let t=Object.getPrototypeOf(r);if(t!==Object.prototype&&t!==null)return!1;for(let[e,n]of Object.entries(r))if(!e.startsWith("data-")||typeof n!="string")return!1;return!0}var Pu="replay-web-picker-confirm",ku="replay-web-picker-connect",Iu="replay-web-picker-get-stats",Mu="replay-web-picker-get-url-group",Nu="replay-web-picker-stats",Du="replay-web-picker-url-group";function ba(r){return typeof r.xpath=="string"&&r.xpath.trim()!==""||typeof r.text=="string"&&r.text.trim()!==""||typeof r.dataAttributes=="object"&&r.dataAttributes!==null&&Object.keys(r.dataAttributes).length>0}var xg=new Set(["all","this-url","url-group"]),Ea=r=>{let t;return!(r.urlGroup!==void 0&&typeof r.urlGroup!="string"||r.urlScope!==void 0&&(typeof(t=r.urlScope)!="string"||!xg.has(t))||(r.urlScope==="url-group"?typeof r.urlGroup!="string"||r.urlGroup.trim()==="":r.urlGroup!==void 0))};function _a(r,t,e,n,i,o,s){try{var a=r[o](s),u=a.value}catch(c){return void e(c)}a.done?t(u):Promise.resolve(u).then(n,i)}function Ta(r){return function(){var t=this,e=arguments;return new Promise(function(n,i){var o=r.apply(t,e);function s(u){_a(o,n,i,s,a,"next",u)}function a(u){_a(o,n,i,s,a,"throw",u)}s(void 0)})}}function Wt(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var Co=class{cancelAll(t){for(let[e,{reject:n,timeoutId:i}]of this.pendingRequests.entries())this.window.clearTimeout(i),n(t),this.pendingRequests.delete(e);this.updateMessageListener()}dispose(){this.cancelAll(Error("PickerRequestManager disposed")),this.messageListener&&(this.window.removeEventListener("message",this.messageListener),this.messageListener=null)}requestStats(t){return Ta(function*(){var e,n,i,o;if(!this.canSendRequest())return this.getEmptyStats();let s=this.nextRequestId();return this.postMessage(this.window,(i=(function(a){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{},l=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(c).filter(function(d){return Object.getOwnPropertyDescriptor(c,d).enumerable}))),l.forEach(function(d){var h;h=c[d],d in a?Object.defineProperty(a,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):a[d]=h})}return a})({},(e=(function(a){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{},l=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(c).filter(function(d){return Object.getOwnPropertyDescriptor(c,d).enumerable}))),l.forEach(function(d){Wt(a,d,c[d])})}return a})({},t),n=n={requestId:s},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(a){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);u.push.apply(u,c)}return u})(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))}),e)),o=o={type:Iu},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(a){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);u.push.apply(u,c)}return u}
4)(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))}),i)),new Promise((a,u)=>{let c=this.window.setTimeout(()=>{var l;this.pendingRequests.delete(s),this.updateMessageListener(),u(Error("Stats request timed out after 20000ms for "+(t.xpath?`xpath: ${t.xpath}`:`dataAttributes: ${Object.keys((l=t.dataAttributes)!=null?l:{}).join(", ")}`)))},2e4);this.pendingRequests.set(s,{kind:"stats",reject:u,resolve:a,timeoutId:c}),this.updateMessageListener()})}).call(this)}requestUrlGroup(t){return Ta(function*(){var e,n;if(!this.canSendRequest())return;let i=this.nextRequestId();return this.postMessage(this.window,(e=(function(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable}))),u.forEach(function(c){var l;l=a[c],c in o?Object.defineProperty(o,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[c]=l})}return o})({},{requestId:i,url:t}),n=n={type:Mu},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(o){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);s.push.apply(s,a)}return s})(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}),e)),new Promise((o,s)=>{let a=this.window.setTimeout(()=>{this.pendingRequests.delete(i),this.updateMessageListener(),s(Error(`URL group request timed out after 20000ms for url: ${t}`))},2e4);this.pendingRequests.set(i,{kind:"url-group",reject:s,resolve:o,timeoutId:a}),this.updateMessageListener()})}).call(this)}canSendRequest(){let t=this.getCommunicationWindow(this.window);return t!==null&&!t.closed}clearRequest(t,e){this.window.clearTimeout(e.timeoutId),this.pendingRequests.delete(t)}getEmptyStats(){return{total:0,unique:0}}getPickerResponse(t){return(e=>{if(e===null||typeof e!="object"||e.type!==Nu||typeof e.stats!="object"||e.xpath!==void 0&&typeof e.xpath!="string")return!1;let n=e.stats;return!(typeof n.total!="number"||n.unique!==void 0&&typeof n.unique!="number"||n.sessions!==void 0&&typeof n.sessions!="number")})(t)&&t.requestId?{kind:"stats",requestId:t.requestId,stats:t.stats}:t===null||typeof t!="object"||t.type!==Du||t.requestId!==void 0&&typeof t.requestId!="string"||t.urlGroup!==void 0&&typeof t.urlGroup!="string"||!t.requestId?void 0:{kind:"url-group",requestId:t.requestId,urlGroup:t.urlGroup}}nextRequestId(){return this.requestIdCounter+=1,`req_${Date.now()}_${this.requestIdCounter}`}updateMessageListener(){let t=this.pendingRequests.size>0,e=this.messageListener!==null;t&&!e?(this.messageListener=this.handleMessage,this.window.addEventListener("message",this.messageListener)):!t&&e&&this.messageListener&&(this.window.removeEventListener("message",this.messageListener),this.messageListener=null)}constructor(t,e,n,i){Wt(this,"window",void 0),Wt(this,"targetOrigin",void 0),Wt(this,"getCommunicationWindow",void 0),Wt(this,"postMessage",void 0),Wt(this,"messageListener",void 0),Wt(this,"pendingRequests",void 0),Wt(this,"requestIdCounter",void 0),Wt(this,"handleMessage",void 0),this.window=t,this.targetOrigin=e,this.getCommunicationWindow=n,this.postMessage=i,this.messageListener=null,this.pendingRequests=new Map,this.requestIdCounter=0,this.handleMessage=o=>{let s=this.getPickerResponse(o.data);if(!s)return;let a=this.getCommunicationWindow(this.window),u=this.targetOrigin==="*"||o.origin===this.targetOrigin;if(a!==null&&o.source!==a||!u)return;let c=this.pendingRequests.get(s.requestId);if(c){if(c.kind==="stats")return s.kind!=="stats"?void 0:(this.clearRequest(s.requestId,c),c.resolve(s.stats),void this.updateMessageListener());s.kind==="url-group"&&(this.clearRequest(s.requestId,c),c.resolve(s.urlGroup),this.updateMessageListener())}}}};function Xn(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var xo=class{dispose(){this.stop()}start(){this.intervalId===null&&(this.intervalId=this.window.setInterval(()=>{let t=this.getCommunicationWindow(this.window);t&&t.closed&&(this.stop(),this.onOpenerClosed(),this.window.close())},this.intervalMs))}stop(){this.intervalId!==null&&(this.window.clearInterval(this.intervalId),this.intervalId=null)}constructor(t,e,n,i=1e3){Xn(this,"window",void 0),Xn(this,"getCommunicationWindow",void 0),Xn(this,"onOpenerClosed",void 0),Xn(this,"intervalMs",void 0),Xn(this,"intervalId",void 0),this.window=t,this.getCommunicationWindow=e,this.onOpenerClosed=n,this.intervalMs=i,this.intervalId=null}};function vr(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var Ao=class{dispose(){this.window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.windowMonitor.dispose(),this.pickerRequestManager.dispose()}getStatsHandler(){return this.handleStatsRequest.bind(this)}getUrlGroupHandler(){return this.handleUrlGroupRequest.bind(this)}handleStatsRequest(t){return this.pickerRequestManager.requestStats(t)}handleUrlGroupRequest(t){return this.pickerRequestManager.requestUrlGroup(t)}constructor(t,e,n,i){vr(this,"window",void 0),vr(this,"beforeUnloadHandler",void 0),vr(this,"pickerRequestManager",void 0),vr(this,"windowMonitor",void 0),this.window=t,this.pickerRequestManager=new Co(t,e,n,i),this.windowMonitor=new xo(t,
4n,()=>{this.pickerRequestManager.cancelAll(Error("Opener window closed"))}),this.beforeUnloadHandler=()=>{this.pickerRequestManager.dispose(),this.windowMonitor.dispose()},this.window.addEventListener("beforeunload",this.beforeUnloadHandler),this.windowMonitor.start()}},Et=(r,...t)=>{let e=[r[0]];return t.forEach(function(n,i){e.push(n,r[i+1])}),e.join("")},Mr={html:Et`<style>.buttons{text-align:center;padding:8px;margin-bottom:12px;}.buttons button{padding:4px 8px;height:28px;border:1px solid ${Go};border-radius:4px;background:${Dt};margin:0 4px;transition:background-color 0.2s ease-in-out,border-color 0.2s ease-in-out;cursor:pointer;color:${ar};font-weight:500;}.buttons button:hover{background-color:${$e.BUTTON_HOVER_COLOR};}.buttons button.primary{background:${$e.PRIMARY_COLOR};border-color:${$e.PRIMARY_COLOR};color:${Lo};}.buttons button.primary:hover{background:${ma};border-color:${ma};}.buttons button:disabled,.buttons button:disabled:hover,.buttons button.primary:disabled,.buttons button.primary:disabled:hover{background:${wo};border-color:${wo};color:${Lo};cursor:not-allowed;}.buttons .confirm{display:none;}.show-content .buttons .confirm{display:inline-block;}.turned-on .buttons .turn-on{display:none;}</style><div class="buttons"><button class="secondary" aria-label="Cancel and close the element picker">Cancel</button><button class="primary turn-on" aria-label="Turn on the element picker to start selecting elements">
5Turn on
6</button><button class="primary confirm" aria-label="Confirm the selected element and its properties">
7Confirm
8</button></div>`,selectors:{cancel:".buttons .secondary",confirm:".buttons .primary.confirm",container:".buttons",turnOn:".buttons .primary.turn-on"}},Ag={html:Et`<div class="handle"></div><style>.handle{padding:13px 0 10px;width:100%;cursor:move;}.handle::before{height:4px;width:60px;background:${$e.PRIMARY_COLOR};border-radius:2px;content:'';display:block;margin:0 auto;}</style>`,selectors:{handle:".handle"}},Pg=({id:r,ariaLabel:t,className:e="",placement:n="right",text:i,tooltipClassName:o="",triggerClassName:s=""})=>Et`<span class="info-tooltip info-tooltip--${n} ${e}"><button
9aria-describedby="${r}"
10aria-label="${t}"
11class="info-tooltip-trigger ${s}"
12type="button"
13>
14ⓘ
15</button><span class="info-tooltip-content ${o}" id="${r}" role="tooltip">${i}</span></span>`,kg=Et`
16		.info-tooltip {
17			align-items: center;
18			display: inline-flex;
19			flex: 0 0 auto;
20			position: relative;
21		}
22
23		.info-tooltip-trigger {
24			align-items: center;
25			background: ${cn};
26			border: 0;
27			color: ${Ro};
28			cursor: help;
29			display: inline-flex;
30			font: inherit;
31			height: 16px;
32			justify-content: center;
33			line-height: 1;
34			padding: 0;
35			width: 16px;
36		}
37
38		.info-tooltip-trigger:focus-visible {
39			outline: 1px solid ${fn};
40			outline-offset: 2px;
41		}
42
43		.info-tooltip-content {
44			background: ${Dt};
45			border: 1px solid ${hn};
46			border-radius: 4px;
47			box-shadow: 0 8px 20px ${Xo};
48			box-sizing: border-box;
49			color: ${pn};
50			font-size: 11px;
51			font-weight: 400;
52			line-height: 1.2;
53			max-width: min(360px, calc(100vw - 32px));
54			opacity: 0;
55			padding: 8px 10px;
56			pointer-events: none;
57			position: absolute;
58			transition:
59				opacity 160ms ease-out,
60				transform 160ms ease-out,
61				visibility 160ms ease-out;
62			visibility: hidden;
63			white-space: nowrap;
64			width: max-content;
65			z-index: 3;
66		}
67
68		.info-tooltip--right .info-tooltip-content {
69			left: calc(100% + 8px);
70			top: 50%;
71			transform: translateY(calc(-50% - 4px));
72		}
73
74		.info-tooltip--right .info-tooltip-content::before {
75			border-bottom: 7px solid ${cn};
76			border-right: 7px solid ${Dt};
77			border-top: 7px solid ${cn};
78			content: '';
79			left: -7px;
80			position: absolute;
81			top: 50%;
82			transform: translateY(-50%);
83		}
84
85		.info-tooltip--top .info-tooltip-content,
86		.info-tooltip--top-end .info-tooltip-content,
87		.info-tooltip--top-start .info-tooltip-content {
88			bottom: calc(100% + 8px);
89			transform: translateY(4px);
90		}
91
92		.info-tooltip--top .info-tooltip-content {
93			left: 50%;
94			transform: translateX(-50%) translateY(4px);
95		}
96
97		.info-tooltip--top-end .info-tooltip-content {
98			right: 0;
99		}
100
101		.info-tooltip--top-start .info-tooltip-content {
102			left: 0;
103		}
104
105		.info-tooltip--top .info-tooltip-content::before,
106		.info-tooltip--top-end .info-tooltip-content::before,
107		.info-tooltip--top-start .info-tooltip-content::before {
108			border-left: 7px solid ${cn};
109			border-right: 7px solid ${cn};
110			border-top: 7px solid ${Dt};
111			bottom: -7px;
112			content: '';
113			position: absolute;
114		}
115
116		.info-tooltip--top .info-tooltip-content::before {
117			left: 50%;
118			transform: translateX(-50%);
119		}
120
121		.info-tooltip--top-end .info-tooltip-content::before {
122			right: 2px;
123		}
124
125		.info-tooltip--top-start .info-tooltip-content::before {
126			left: 2px;
127		}
128
129		.info-tooltip--right:hover .info-tooltip-content,
130		.info-tooltip--right .info-tooltip-trigger:focus-visible + .info-tooltip-content {
131			opacity: 1;
132			transform: translateY(-50%);
133			visibility: visible;
134		}
135
136		.info-tooltip--top:hover .info-tooltip-content,
137		.info-tooltip--top .info-tooltip-trigger:focus-visible + .info-tooltip-content {
138			opacity: 1;
139			transform: translateX(-50%) translateY(0);
140			visibility: visible;
141		}
142
143		.info-tooltip--top-end:hover .info-tooltip-content,
144		.info-tooltip--top-start:hover .info-tooltip-content,
145		.info-tooltip--top-end .info-tooltip-trigger:focus-visible + .info-tooltip-content,
146		.info-tooltip--top-start .info-tooltip-trigger:focus-visible + .info-tooltip-content {
147			opacity: 1;
148			transform: translateY(0);
149			visibility: visible;
150		}
151
152		@media (prefers-reduced-motion: reduce) {
153			.info-tooltip-content {
154				transition: none;
155			}
156		}
157	`,Ig=Et`<?xml version="1.0" encoding="UTF-8"?><div class="splunk-logo"><svg height="20" fill="none" version="1.1" viewBox="0 0 122 36" xmlns="http://www.w3.org/2000/svg"><path
158d="m12.93 21.8c0 0.8019-0.1696 1.547-0.5088 2.236-0.3392 0.6793-0.8198 1.264-1.423 1.736-0.6125 0.4811-1.338 0.849-2.177 1.113-0.8386 0.2641-1.762 0.3962-2.761 0.3962-1.197 0-2.271-0.1604-3.213-0.4905-0.9423-0.3208-1.894-0.868-2.846-1.623l1.574-2.557c0.7538 0.6321 1.432 1.094 2.045 1.387 0.6031 0.2925 1.225 0.434 1.866 0.434 0.7821 0 1.404-0.1982 1.885-0.6038 0.4806-0.4057 0.7067-0.9434 0.7067-1.632 0-0.2924-0.04712-0.566-0.1319-0.8207-0.08481-0.2548-0.245-0.5189-0.4711-0.7925-0.2262-0.2641-0.5465-0.566-0.9517-0.8773-0.3958-0.3114-0.914-0.7076-1.555-1.17-0.4806-0.3396-0.9611-0.6981-1.423-1.057-0.4617-0.3679-0.8763-0.7547-1.263-1.17-0.3769-0.4151-0.6784-0.8773-0.914-1.396-0.2262-0.5094-0.3486-1.104-0.3486-1.755 0-0.7547 0.1602-1.453 0.4711-2.076s0.7444-1.151 1.291-1.594c0.5465-0.4434 1.197-0.783 1.969-1.028 0.7632-0.2453 1.592-0.3679 2.497-0.3679 0.9517 0 1.866 0.1226 2.751 0.3774 0.8857 0.2547 1.706 0.6226 2.469 1.113l-1.423 2.302c-0.9705-0.6793-1.998-1.028-3.072-1.028-0.6502 0-1.197 0.1698-1.621 0.5094s-0.6408 0.7642-0.6408 1.283c0 0.4906 0.1885 0.934 0.5654 1.321 0.3769 0.3962 1.027 0.934 1.951 1.651 0.9329 0.6793 1.706 1.283 2.309 1.792 0.6125 0.5094 1.093 1 1.451 1.453 0.3581 0.4529 0.5937 0.9057 0.735 1.377 0.1413 0.4811 0.2073 0.9905 0.2073 1.557zm16.16-4.311c0 0.7075-0.0754 1.472-0.2261 2.292-0.1414 0.8208-0.3958 1.576-0.7538 2.274-0.3581 0.6981-0.8198 1.274-1.395 1.717-0.5748 0.4528-1.31 0.6792-2.186 0.6792-1.47 0-2.629-0.5849-3.477-1.764-0.848
1581-1.17-1.272-2.783-1.272-4.83 0-2.104 0.424-3.764 1.291-5 0.8575-1.236 2.026-1.849 3.496-1.849 1.395 0 2.497 0.5849 3.307 1.736 0.8104 1.16 1.216 2.745 1.216 4.745zm5.107-0.1793c0-1.368-0.1979-2.613-0.5842-3.726-0.3958-1.123-0.9423-2.085-1.668-2.896-0.7255-0.8113-1.574-1.434-2.563-1.887s-2.082-0.6792-3.279-0.6792c-1.319 0-2.478 0.2547-3.477 0.7453-0.9988 0.5-1.932 1.283-2.78 2.358l-0.0282-2.67h-4.702v27.44h4.693v-11.59c0.4617 0.5377 0.9045 0.9905 1.338 1.358 0.424 0.3679 0.8575 0.6698 1.3 0.8962 0.4428 0.2264 0.9045 0.3962 1.394 0.4906 0.49 0.0943 1.018 0.1415 1.574 0.1415 1.244 0 2.412-0.2548 3.486-0.7453 1.074-0.5 2.007-1.198 2.789-2.104s1.395-1.962 1.838-3.16c0.4523-1.208 0.669-2.538 0.669-3.972zm2.092 9.538h4.824v-26.85h-4.824v26.85zm25.4 0.0094v-18.32h-4.824v9.858c0 0.8774-0.0377 1.557-0.1131 2.038-0.0754 0.4811-0.1979 0.9056-0.3675 1.302-0.6784 1.509-1.932 2.274-3.75 2.274-1.423 0-2.412-0.5094-2.978-1.538-0.2261-0.3868-0.3769-0.8302-0.4617-1.321-0.0848-0.4905-0.1319-1.198-0.1319-2.132v-10.48h-4.824v10.41c0 0.7075 0.0094 1.311 0.0189 1.792 0.0094 0.4811 0.0471 0.9245 0.0942 1.302 0.0471 0.3774 0.1036 0.717 0.1696 1.01 0.0565 0.2924 0.1508 0.5754 0.2733 0.8396 0.4428 1.123 1.15 1.972 2.139 2.547 0.9894 0.5754 2.205 0.8585 3.637 0.8585 1.291 0 2.431-0.2265 3.411-0.6793s1.932-1.189 2.855-2.217l0.0094 2.453 4.843 0.0094zm20.79-0.0094v-10.39c0-0.7076-0.0094-1.311-0.0189-1.811-0.0094-0.5-0.0376-0.9339-0.0942-1.302-0.0471-0.368-0.113-0.6887-0.179-0.9623-0.0754-0.283-0.1602-0.5566-0.2544-0.8208-0.4429-1.094-1.15-1.943-2.139-2.538s-2.205-0.8962-3.647-0.8962c-1.291 0-2.431 0.2264-3.411 0.6792s-1.932 1.198-2.855 2.217l-0.0094-2.453h-4.853v18.28h4.862v-9.868c0-0.8491 0.0283-1.519 0.0942-1.991 0.0565-0.4717 0.1791-0.9151 0.3487-1.34 0.3109-0.7359 0.8009-1.283 1.451-1.66s1.423-0.566 2.327-0.566c1.423 0 2.412 0.5094 2.978 1.538 0.2168 0.3868 0.3675 0.8302 0.4523 1.311 0.0848 0.4812 0.1319 1.198 0.1319 2.123v10.43l4.815 0.0095zm19.96-1.208-7.349-9.142 6.209-6.66-3.656-1.575-6.464 7.5h-0.5088v-15.76h-4.862v26.85h4.862v-9.726l7.274 10.09 4.494-1.576zm18.79-6.566v-2.991l-14.62-7.34v3.292l11.33 5.519-11.33 5.594v3.217l14.62-7.292zm-13.2-15.08c-0.895 0-1.621 0.7358-1.621 1.642 0 0.9245 0.726 1.651 1.621 1.651 0.905 0 1.621-0.7264 1.621-1.651 0-0.9151-0.716-1.642-1.621-1.642zm0.01 0.2547c0.725 0 1.309 0.6226 1.309 1.396 0 0.7736-0.584 1.396-1.309 1.387-0.735 0-1.32-0.6132-1.32-1.396 0-0.7642 0.585-1.387 1.32-1.387zm-0.311 1.557h0.197c0.236 0 0.349 0.08491 0.396 0.3208 0.038 0.2453 0.085 0.4057 0.123 0.4623h0.311c-0.029-0.0566-0.076-0.1698-0.113-0.4528-0.038-0.2736-0.142-0.4151-0.311-0.4434v-0.01888c0.198-0.0566 0.358-0.2075 0.358-0.4434 0-0.1698-0.057-0.3019-0.17-0.3774-0.113-0.0849-0.292-0.1415-0.565-0.1415-0.217 0-0.368 0.01887-0.518 0.04717v1.83h0.292v-0.783zm0-0.8491c0.047-0.00943 0.113-0.01886 0.207-0.01886 0.33 0 0.443 0.1604 0.443 0.3208 0 0.2264-0.208 0.3113-0.443 0.3113h-0.207v-0.6132z"
159fill="${"#0C1724"}"
160/></svg><span>Element picker</span></div><style>.splunk-logo{margin-left:20px;display:flex;align-items:center;gap:8px;height:30px;width:220px;font-size:12pt;font-weight:bold;color:${ar};}</style>`,Mg=Et`<style>.segmented-control{display:flex;border:${$e.BUTTON_BORDER};border-radius:5px;overflow:hidden;}.segmented-control input[type='radio']{display:none;}.segmented-control label{padding:6px 18px;cursor:pointer;background-color:${Oo};color:${Fn};font-weight:500;text-align:center;transition:background-color 0.2s ease-in-out;flex:1;border-right:${$e.BUTTON_BORDER};text-wrap:nowrap;}.segmented-control label:last-of-type{border-right:none;}.segmented-control input[type='radio']:checked + label{background-color:${"#e0e0e0"};}.segmented-control input[type='radio']:not(:checked):not(:disabled) + label:hover{background-color:${$e.BUTTON_HOVER_COLOR};}.segmented-control input[type='radio']:disabled + label{color:${"#8f8f8f"};cursor:not-allowed;}</style><div class="segmented-control"><input type="radio" id="all-urls" name="url-filter" value="all-urls" /><label for="all-urls">All URLs</label><input type="radio" id="url-group" name="url-filter" value="url-group" checked /><label for="url-group">URL Group</label><input type="radio" id="this-url" name="url-filter" value="this-url" /><label for="this-url">Current URL</label></div>`,Ng=Et`<style>.slider-container{display:flex;align-items:center;margin:8px 0;position:relative;}.slider-container button{height:28px;border:1px solid ${Go};border-radius:4px;background:${Dt};padding:5px;transition:background-color 0.2s ease-in-out;cursor:pointer;}.slider-container button:hover{background-color:${$e.BUTTON_HOVER_COLOR};}.slider{flex:1;margin:0 10px;}input[type='range']{-webkit-appearance:none;appearance:none;background:${cn};cursor:pointer;}input[type='range']:focus{outline:none;}input[type='range']::-webkit-slider-runnable-track{background-color:${va};border-radius:6px;height:6px;border:${$e.BUTTON_BORDER};}input[type='range']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;
160margin-top:-7px;background-color:${Oo};border-radius:10px;height:20px;width:20px;outline:2px solid ${fn};}input[type='range']:focus::-webkit-slider-thumb{outline:2px solid ${fn};}input[type='range']::-moz-range-track{background-color:${va};border-radius:6px;height:6px;border:${$e.BUTTON_BORDER};}input[type='range']::-moz-range-thumb{background-color:${Oo};border:none;border-radius:10px;height:20px;width:20px;outline:2px solid ${fn};}input[type='range']:focus::-moz-range-thumb{outline:2px solid ${fn};}.xpath-tooltip{background:${Dt};border-radius:4px;box-shadow:0 8px 20px ${Xo};box-sizing:border-box;color:${pn};font-size:10pt;left:50%;line-height:1.4;max-width:256px;opacity:0;padding:10px 12px;pointer-events:none;position:absolute;top:40px;transform:translateX(-50%) translateY(-8px) scale(0);transform-origin:top center;transition:opacity 220ms ease-out,transform 280ms cubic-bezier(0.2,0.8,0.2,1);visibility:hidden;word-break:break-word;z-index:4;}.xpath-tooltip::before{border-bottom:8px solid ${Dt};border-left:8px solid ${cn};border-right:8px solid ${cn};border-top:0;content:'';height:0;left:50%;position:absolute;top:-8px;transform:translateX(-50%);width:0;}.xpath-tooltip.show{opacity:1;transform:translateX(-50%) translateY(0) scale(1);visibility:visible;}@media (prefers-reduced-motion:reduce){.xpath-tooltip{transition:none;}}</style><div class="slider-container"><button class="slider-prev-button"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path
161fill-rule="evenodd"
162clip-rule="evenodd"
163d="M6.14279 8.00006L10.3429 3.79994C10.6033 3.53959 10.6033 3.11748 10.3429 2.85713C10.0826 2.59678 9.66045 2.59678 9.4001 2.85713L4.96428 7.29295C4.57375 7.68348 4.57376 8.31664 4.96428 8.70717L9.4001 13.143C9.66045 13.4033 10.0826 13.4033 10.3429 13.143C10.6033 12.8826 10.6033 12.4605 10.3429 12.2002L6.14279 8.00006Z"
164fill="${Ro}"
165/></svg></button><input type="range" class="slider" /><div class="xpath-tooltip" role="status"></div><button class="slider-next-button"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path
166fill-rule="evenodd"
167clip-rule="evenodd"
168d="M9.85718 8.00006L5.65705 3.79994C5.3967 3.53959 5.3967 3.11748 5.65705 2.85713C5.9174 2.59678 6.33951 2.59678 6.59986 2.85713L11.0357 7.29296C11.4262 7.68348 11.4262 8.31665 11.0357 8.70717L6.60076 13.1421C6.34041 13.4024 5.9183 13.4024 5.65795 13.1421C5.3976 12.8817 5.3976 12.4596 5.65795 12.1993L9.85718 8.00006Z"
169fill="${Ro}"
170/></svg></button></div>`,yr={nextButton:".slider-container .slider-next-button",prevButton:".slider-container .slider-prev-button",slider:".slider-container .slider",tooltip:".slider-container .xpath-tooltip"},Dg=Et`<section class="stats-section"><h3>Statistics from the last 7 days:</h3><div class="stats-cards"><div class="stats-card total-clicks-card"><strong class="total-clicks">-</strong><span class="stats-card-label"><svg
171aria-hidden="true"
172class="stats-card-icon"
173width="14"
174height="14"
175viewBox="0 0 24 24"
176fill="none"
177xmlns="http://www.w3.org/2000/svg"
178><path
179fill-rule="evenodd"
180clip-rule="evenodd"
181d="M3.02844 4.80765C2.82624 3.76474 3.74237 2.84792 4.78543 3.04934L18.8251 5.76047C20.2263 6.03106 20.4936 7.92087 19.2223 8.56942L15.3709 10.5343L20.0022 15.1768C21.3191 16.4969 21.3234 18.6325 20.0117 19.9579C18.696 21.2874 16.5522 21.3007 15.2201 19.9876L10.5248 15.3594L8.55513 19.2215C7.90695 20.4924 6.01785 20.2261 5.7463 18.8255L3.02844 4.80765ZM5.13272 5.15336L7.4333 17.019L9.9839 12.0179L16.6241 18.5632C17.1707 19.102 18.0503 19.0966 18.5902 18.551C19.1284 18.0072 19.1266 17.131 18.5863 16.5893L12.0143 10.0015L17.0184 7.44855L5.13272 5.15336Z"
182fill="${xn}"
183/></svg>
184Total clicks
185</span></div><div class="stats-card total-sessions-card"><strong class="total-sessions">-</strong><span class="stats-card-label"><svg
186aria-hidden="true"
187class="stats-card-icon"
188width="14"
189height="14"
190viewBox="0 0 24 24"
191fill="none"
192xmlns="http://www.w3.org/2000/svg"
193><path
194fill-rule="evenodd"
195clip-rule="evenodd"
196d="M7 7.31673V16.683L16.3811 11.9999L7 7.31673ZM5 6.50828C5 5.39362 6.17268 4.66835 7.16998 5.16622L18.1705 10.6579C19.2772 11.2103 19.2772 12.7895 18.1705 13.342L7.16997 18.8335C6.17267 19.3314 5 18.6061 5 17.4914V6.50828Z"
197fill="${xn}"
198/></svg>
199Total sessions
200</span></div><div class="stats-card unique-users-card"><strong class="unique-clicks">-</strong><span class="stats-card-label"><svg
201aria-hidden="true"
202class="stats-card-icon"
203width="14"
204height="14"
205viewBox="0 0 24 24"
206fill="none"
207xmlns="http://www.w3.org/2000/svg"
208><path
209d="M16.9341 18C16.9774 18.3139 16.9998 18.6346 16.9998 18.9604C16.9998 19.3292 16.9358 19.6785 16.8193 20H20.9598C2
2091.518 20 21.9998 19.5503 21.9998 18.9604C21.9998 16.2218 19.7797 14.0017 17.0411 14.0017H14.9232C15.5064 14.5759 15.9888 15.2523 16.3413 16.0017H17.0411C18.339 16.0017 19.4417 16.8374 19.8405 18H16.9341Z"
210fill="${xn}"
211/><path
212d="M13.5708 12.5667C14.1554 12.8445 14.8095 13 15.4998 13C17.9851 13 19.9998 10.9853 19.9998 8.5C19.9998 6.01472 17.9851 4 15.4998 4C14.8095 4 14.1554 4.15545 13.5708 4.43327C13.9896 4.95476 14.3295 5.54221 14.5727 6.17757C14.8594 6.06301 15.1722 6 15.4998 6C16.8805 6 17.9998 7.11929 17.9998 8.5C17.9998 9.88071 16.8805 11 15.4998 11C15.1722 11 14.8594 10.937 14.5727 10.8224C14.3295 11.4578 13.9896 12.0452 13.5708 12.5667Z"
213fill="${xn}"
214/><path
215fill-rule="evenodd"
216clip-rule="evenodd"
217d="M2 18.9604C2 16.2218 4.22009 14.0017 6.9587 14.0017H10.0413C12.7799 14.0017 15 16.2218 15 18.9604C15 19.5503 14.5182 20 13.9599 20H3.04007C2.4818 20 2 19.5503 2 18.9604ZM6.9587 16.0017C5.66084 16.0017 4.55815 16.8374 4.15936 18H12.8406C12.4418 16.8374 11.3392 16.0017 10.0413 16.0017H6.9587Z"
218fill="${xn}"
219/><path
220fill-rule="evenodd"
221clip-rule="evenodd"
222d="M8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13ZM11 8.5C11 9.88071 9.88071 11 8.5 11C7.11929 11 6 9.88071 6 8.5C6 7.11929 7.11929 6 8.5 6C9.88071 6 11 7.11929 11 8.5Z"
223fill="${xn}"
224/></svg>
225Unique users
226</span></div></div></section><style>.stats-section{border-top:1px solid ${hn};margin-top:16px;padding-top:14px;}.stats-section h3{color:${Fn};font-size:10pt;margin:0 0 10px;}.stats-cards{background:${Au};border-radius:4px;display:flex;padding:12px 0;}.stats-card{align-items:center;border-right:1px solid ${hn};color:${fn};display:flex;flex:1;flex-direction:column;font-size:12px;gap:6px;min-width:0;text-align:center;}.stats-card:last-child{border-right:none;}.stats-card strong{align-items:center;color:${Fn};display:flex;font-size:11pt;height:18px;justify-content:center;line-height:18px;}.stats-card-label{align-items:center;display:flex;gap:2px;justify-content:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}.stats-card-icon{flex:0 0 14px;height:14px;width:14px;}</style>`,Si={totalClicks:".total-clicks",totalSessions:".total-sessions",uniqueClicks:".unique-clicks"},Ug=Et`<section class="tags-section"><h3 class="tag-section-heading">Select tags that best describe your element:</h3><div class="tag-table-frame"><table class="tag-table"><colgroup><col class="tag-checkbox-column" /><col class="tag-name-column" /><col class="tag-value-column" /></colgroup><thead><tr><th aria-label="Selected"></th><th>Tag</th><th>Value</th></tr></thead><tbody></tbody></table></div><p class="tag-selection-error" role="alert" hidden>Select at least one tag.</p><div class="tag-detail-card" role="dialog" aria-modal="true" hidden><div class="tag-detail-header"><strong class="tag-detail-title"></strong><button class="tag-detail-close" type="button" aria-label="Close detail">×</button></div><div class="tag-detail-value"></div><div class="tag-detail-actions"><span class="detail-copy-status" role="status"></span><button class="tag-detail-copy secondary" type="button"><svg
227aria-hidden="true"
228class="tag-detail-copy-icon"
229width="14"
230height="14"
231viewBox="0 0 24 24"
232fill="none"
233xmlns="http://www.w3.org/2000/svg"
234><path
235fill-rule="evenodd"
236clip-rule="evenodd"
237d="M7.36865 4.00586C7.36865 3.45357 7.81637 3.00586 8.36865 3.00586H19.9942C20.5465 3.00586 20.9942 3.45357 20.9942 4.00586V15.6314C20.9942 16.1837 20.5465 16.6314 19.9942 16.6314H8.36865C7.81637 16.6314 7.36865 16.1837 7.36865 15.6314V4.00586ZM9.36865 14.6314V5.00586H18.9942V14.6314H9.36865Z"
238fill="currentColor"
239/><path
240d="M5 8.58545C5 8.03316 4.55228 7.58545 4 7.58545C3.44772 7.58545 3 8.03316 3 8.58545V19.4999C3 20.3283 3.67157 20.9999 4.5 20.9999H15.4144C15.9667 20.9999 16.4144 20.5522 16.4144 19.9999C16.4144 19.4476 15.9667 18.9999 15.4144 18.9999H5V8.58545Z"
241fill="currentColor"
242/></svg>
243Copy
244</button></div></div></section><style>.tags-section h3{color:${Fn};font-size:13px;margin:12px 0 8px;}.tags-section{position:relative;}.tag-section-heading{align-items:center;display:flex;}.tag-table-frame{border:1px solid ${hn};box-sizing:border-box;max-height:calc(37px * 3.5 + 34px);overflow-y:auto;position:relative;width:100%;}.tag-table{border-collapse:separate;border-spacing:0;font-size:12px;table-layout:fixed;width:100%;}.tag-checkbox-column{width:34px;}.tag-name-column{width:35%;}.tag-table th{position:sticky;top:0;background:${"#eeeeee"};color:${pn};font-weight:700;padding:7px 6px;text-align:left;border-bottom:1px solid ${hn};z-index:1;}.tag-table th:not(:last-child){border-right:1px solid ${hn};}.tag-table td{border-bottom:1px solid ${hn};color:${pn};height:37px;padding:6px;vertical-align:middle;}.tag-table tr:last-child td{border-bottom:0;}.tag-row{cursor:pointer;}.tag-row:hover td{background:${"#eaf4ff"};}.tag-selection-error{color:${xu};font-size:12px;margin:6px 0 0;}.tag-selection-error[hidden]{display:none;}.tag-table th,.tag-table td{box-sizing:border-box;min-width:0;}.tag-name,.tag-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.tags-section input[type='checkbox']{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0;}.tags-section input[type='checkbox'] + label{position:relative;cursor:pointer;display:inline-flex;align-items:center;height:18px;width:18px;}.tags-section input[type='checkbox']:disabled + label{cursor:not-allowed;}.tags-section input[type='checkbox']:disabled:not(:checked) + label{opacity:0.55;}.tags-section input[type='checkbox'] + label::before{content:' ';display:inline-block;width:16px;height:16px;background-color:${Dt};border:1px solid ${"rgb(133, 133, 133)"};border-radius:4px;box-shadow:none;}.tags-section input[type='checkbox']:checked + label::before{background-color:${$e.PRIMARY_COLOR};border-color:${$e.PRIMARY_COLOR};}.tags-section input[type='checkbox']:checked + label::after{content:' ';background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDEyIDEyIj48cGF0aCBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTAgMyA0LjUgOC41IDIgNiIvPjwvc3ZnPg==');background-repeat:no-repeat;background-size:12px 12px;background-position:center center;height:18px;left:0;position:absolute;top:0;width:18px;}.tag-detail-close,.tag-detail-copy{background:${Dt};border:1px solid ${Go};border-radius:4px;color:${Fn};cursor:pointer;font:inherit;}.tag-detail-close:hover,.tag-detail-copy:hover{background:${$e.BUTTON_HOVER_COLOR};}.tag-detail-card{background:${Dt};border-radius:4px;box-shadow:0 8px 20px ${Xo};box-sizing:border-box;color:${pn};display:flex;flex-direction:column;font-size:10pt;
244left:-4px;line-height:1.4;max-height:192px;min-height:120px;opacity:0;overflow:auto;padding:10px 12px;position:absolute;right:-4px;top:20px;transform:translateY(-6px);transition:opacity 140ms ease-out,transform 160ms ease-out;z-index:2;}.tag-detail-card[hidden]{display:none;}.tag-detail-card.open{opacity:1;transform:translateY(0);}.tag-detail-card.closing{opacity:0;transform:translateY(-6px);}.tag-detail-header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:6px;}.tag-detail-title{color:${pn};overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.tag-detail-close{border:0;flex:0 0 auto;font-size:15pt;line-height:1;padding:0 4px;}.tag-detail-value{flex:1;min-height:20px;overflow:auto;overflow-wrap:anywhere;}.tag-detail-actions{align-items:center;display:flex;gap:8px;justify-content:flex-end;margin-top:8px;}.tag-detail-copy{align-items:center;color:${ar};display:inline-flex;font-weight:500;gap:4px;height:28px;padding:4px 8px;transition:background-color 0.2s ease-in-out,border-color 0.2s ease-in-out;}.tag-detail-copy-icon{flex:0 0 14px;height:14px;width:14px;}.detail-copy-status{color:${fn};font-size:9pt;}@media (prefers-reduced-motion:reduce){.tag-detail-card{transition:none;}}</style>`,nn={detailCopyStatus:".detail-copy-status",tagDetailCard:".tag-detail-card",tagDetailClose:".tag-detail-close",tagDetailCopy:".tag-detail-copy",tagDetailTitle:".tag-detail-title",tagDetailValue:".tag-detail-value",tagSelectionError:".tag-selection-error",tagTableBody:".tag-table tbody"},it={html:Et`<div class="skeleton-container"><img id="skeleton-img" src="${$e.SKELETON_IMAGE_URL_OFF}" alt="Skeleton image off" /><div id="skeleton-content"><textarea class="selection-summary" readonly aria-hidden="true" tabindex="-1"></textarea>
245${Ng} ${Ug}
246<div class="skeleton-track-title">
247Track on:
248${Pg({id:"track-on-info-tooltip",ariaLabel:"About URL tracking scope",className:"track-on-info",placement:"top-start",text:"Choose which URLs this event definition should track on",tooltipClassName:"track-on-info-tooltip",triggerClassName:"track-on-info-trigger"})}
249</div>
250${Mg}
251<div class="url-scope-value" role="status"></div>
252${Dg}
253</div><div class="comment"></div></div><style>${kg}.skeleton-container{display:flex;margin:12px 21px;flex-direction:column;color:${Fn};}.skeleton-container img{border:4px solid ${"#eff2f5"};border-radius:8px;margin:0 auto;width:312px;height:194px;box-sizing:border-box;}.skeleton-container textarea.selection-summary{background:${Au};border-radius:4px;border:0;resize:none;flex:1;width:100%;padding:12px 8px;box-sizing:border-box;color:${pn};display:none;}.skeleton-container .comment,.skeleton-container #skeleton-img{display:block;}.skeleton-container #skeleton-content,.show-content .skeleton-container .comment,.show-content .skeleton-container #skeleton-img{display:none;}.show-content .skeleton-container #skeleton-content{display:block;}.skeleton-container .skeleton-track-title{align-items:center;display:flex;gap:4px;margin:20px 0 8px;font-weight:700;}.skeleton-container .url-scope-value{color:${fn};font-size:9pt;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.skeleton-container .url-scope-value.error{color:${xu};}.skeleton-container .comment{color:${pn};text-align:center;margin:12px 0;font-size:10pt;}</style>`,selectors:{comment:".comment",detailCopyStatus:nn.detailCopyStatus,selectedUrlFilter:'input[name="url-filter"]:checked',skeletonContainer:".skeleton-container",skeletonImg:"#skeleton-img",tagDetailCard:nn.tagDetailCard,tagDetailClose:nn.tagDetailClose,tagDetailCopy:nn.tagDetailCopy,tagDetailTitle:nn.tagDetailTitle,tagDetailValue:nn.tagDetailValue,tagSelectionError:nn.tagSelectionError,tagTableBody:nn.tagTableBody,textarea:"textarea",totalClicks:Si.totalClicks,totalSessions:Si.totalSessions,uniqueClicks:Si.uniqueClicks,urlScopeValue:".url-scope-value"}},jg=Et`<div class="toggle-container"><input type="checkbox" id="toggle-switch" class="toggle-input" /><label for="toggle-switch" class="toggle-label"></label><span class="toggle-text" aria-live="polite"><span class="toggle-text-on">ON</span><span class="toggle-text-off">OFF</span></span></div><style>.toggle-container{display:inline-flex;align-items:center;gap:8px;flex-direction:row-reverse;margin:4px 20px 0 0;}.toggle-input{display:none;}.toggle-label{display:block;width:38px;height:18px;border-radius:15px;position:relative;cursor:pointer;transition:background-color 0.3s ease;border:1px solid ${"#858585"};}.toggle-label::before{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;background-color:${ar};border-radius:50%;transition:transform 0.3s ease;}.toggle-input:checked + .toggle-label{background-color:${$e.PRIMARY_COLOR};border:1px solid ${$e.PRIMARY_COLOR};}.toggle-input:checked + .toggle-label::before{background-color:${Lo};transform:translateX(20px);}.toggle-text{color:${ar};min-width:32px;text-align:right;margin-top:2px;}
253.toggle-text-on{display:none;}.toggle-input:checked + .toggle-label + .toggle-text .toggle-text-on{display:inline;}.toggle-input:checked + .toggle-label + .toggle-text .toggle-text-off{display:none;}</style>`,Bg={toggleInput:".toggle-container input"},Po={html:Et`<style>.title-container{display:flex;border-bottom:1px solid ${hn};flex-direction:row;padding-bottom:14px;justify-content:space-between;width:100%;}.logo-container{cursor:move;margin:2px 0 0 1px;}.toggle-container input:focus-visible + .toggle-label{outline:2px solid ${$e.PRIMARY_COLOR};outline-offset:2px;}</style><div class="title-container"><div class="logo-container">${Ig}</div>
254${jg}
255</div>`,selectors:(mr=(function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},n=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.forEach(function(i){var o;o=e[i],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})}return r})({},Bg),Gn=Gn={container:".title-container",logo:".title-container .logo-container"},Object.getOwnPropertyDescriptors?Object.defineProperties(mr,Object.getOwnPropertyDescriptors(Gn)):(function(r){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t.push.apply(t,e)}return t})(Object(Gn)).forEach(function(r){Object.defineProperty(mr,r,Object.getOwnPropertyDescriptor(Gn,r))}),mr)};function br(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var Fg=Et`<style>button,input,textarea{font-family:inherit;}</style><div id="picker-root">${[Ag.html,Po.html,it.html,Mr.html].join(`
256`)}</div>`,ko=class{dispose(){this.cancelButton.removeEventListener("click",this.cancelHandler)}queryElement(t,e){let n=this.shadowRoot.querySelector(t);if(!n)throw Error(e);return n}get cancelButton(){return this.queryElement(Mr.selectors.cancel,"Cancel button not found in shadow DOM")}get confirmButton(){return this.queryElement(Mr.selectors.confirm,"Confirm button not found in shadow DOM")}get document(){return this.params.window.document}get logoContainer(){return this.queryElement(Po.selectors.logo,"Logo container not found in shadow DOM")}get rootElement(){return this.queryElement("#picker-root","Picker root element not found in shadow DOM")}get toggleElement(){return this.queryElement(Po.selectors.toggleInput,"Toggle element not found in shadow DOM")}get turnOnButton(){return this.queryElement(Mr.selectors.turnOn,"Turn on button not found in shadow DOM")}get window(){return this.params.window}setActiveBorder(t){this.hostElement.style.borderColor=t?$e.PICKER_BORDER_COLOR_ON:$e.PICKER_BORDER_COLOR_OFF}setRootStyle(){let t=this.hostElement.style;t.position="fixed",t.top="0",t.left="0",t.width="400px",t.background=Dt,t.boxSizing="border-box",t.border=`3px solid ${$e.PICKER_BORDER_COLOR_OFF}`,t.borderRadius="12px",t.fontSize="13px",t.fontFamily="system-ui, sans-serif",t.zIndex=$e.PICKER_Z_INDEX.toString(),t.transition="border-color 200ms ease-in-out"}constructor(t){br(this,"params",void 0),br(this,"hostElement",void 0),br(this,"shadowRoot",void 0),br(this,"cancelHandler",void 0),this.params=t,this.cancelHandler=()=>this.window.close(),this.hostElement=this.document.createElement("div"),this.setRootStyle(),this.params.rootElement.append(this.hostElement),this.shadowRoot=this.hostElement.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=Fg,this.cancelButton.addEventListener("click",this.cancelHandler)}},wi={html:Et`<div class="loader"><span class="dot"></span><span class="dot"></span><span class="dot"></span></div><style>.loader{display:flex;justify-content:end;align-items:center;}.dot{width:5px;height:5px;margin:0 2px;background-color:${"#b6b6b6"};border-radius:1px;transform:translateY(0);}@keyframes dot-jump-1{0%,33.33%{transform:translateY(0);}16.66%{transform:translateY(-5px);}33.34%,100%{transform:translateY(0);}}@keyframes dot-jump-2{0%,33.33%{transform:translateY(0);}33.34%,66.66%{transform:translateY(0);}50%{transform:translateY(-5px);}66.67%,100%{transform:translateY(0);}}@keyframes dot-jump-3{0%,66.66%{transform:translateY(0);}66.67%,100%{transform:translateY(0);}83.33%{transform:translateY(-5px);}}.dot:nth-child(1){animation:dot-jump-1 2.4s infinite ease-in-out;}.dot:nth-child(2){animation:dot-jump-2 2.4s infinite ease-in-out;}.dot:nth-child(3){animation:dot-jump-3 2.4s infinite ease-in-out;}</style>`};function Sa(r,t,e,n,i,o,s){try{var a=r[o](s),u=a.value}catch(c){return void e(c)}a.done?t(u):Promise.resolve(u).then(n,i)}function Er(r){return function(){var t=this,e=arguments;return new Promise(function(n,i){var o=r.apply(t,e);function s(u){Sa(o,n,i,s,a,"next",u)}function a(u){Sa(o,n,i,s,a,"throw",u)}s(void 0)})}}function Ce(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var Oi="target_xpath",Ri="target_text",wa="error";function _r(r){var t;let{dataAttributes:e,text:n,url:i,urlGroup:o,urlScope:s,xpath:a}=r;return JSON.stringify({dataAttributes:(t=(function(u){let c=Object.entries(u??{});if(c.length!==0)return Object.fromEntries(c.sort(([l],[d])=>l.localeCompare(d)))})(e))!=null?t:null,text:n??null,url:i??null,urlGroup:o??null,urlScope:s??null,xpath:a??null})}var ni=class r extends ko{dispose(){var t;this.skeletonContainer.querySelectorAll('input[name="url-filter"]').forEach(e
256=>e.removeEventListener("change",this.handleUrlFilterChange)),this.sliderRangeElement.removeEventListener("input",this.handleSliderInput),this.sliderPrevButtonElement.removeEventListener("click",this.sliderPrevHandler),this.sliderNextButtonElement.removeEventListener("click",this.sliderNextHandler),this.tagTableBodyElement.removeEventListener("change",this.handleTagTableChange),this.tagTableBodyElement.removeEventListener("click",this.handleTagTableClick),this.tagDetailCloseButton.removeEventListener("click",this.closeTagDetail),this.tagDetailCopyButton.removeEventListener("click",this.copyTagDetailValue),(t=this.cleanupUrlChangeListener)==null||t.call(this),this.statsUpdateDebounceTimer&&clearTimeout(this.statsUpdateDebounceTimer),this.tooltipTimer&&clearTimeout(this.tooltipTimer),this.clearCopyStatusTimer(),this.clearTagDetailCloseTimer(),this.clearTagDetailOpenFrame(),super.dispose()}get commentElement(){return this.queryElement(it.selectors.comment,"Comment element not found in shadow DOM")}get skeletonImgElement(){return this.queryElement(it.selectors.skeletonImg,"Skeleton image element not found in shadow DOM")}get selectedUrlFilter(){return this.queryElement(it.selectors.selectedUrlFilter,"Selected URL filter not found in shadow DOM")}get selectedElement(){if(!this.elementPath.length)throw Error("No element selected");let t=Number.parseInt(this.sliderRangeElement.value),e=Math.min(Math.max(t,0),this.elementPath.length-1);e!==t&&(this.sliderRangeElement.value=e.toString());let n=this.elementPath[e];if(!n)throw Error("No element selected at the specified index");return n}get sliderRangeElement(){return this.queryElement(yr.slider,"Slider range element not found in shadow DOM")}get textareaElement(){return this.queryElement(it.selectors.textarea,"Textarea element not found in shadow DOM")}get totalClicksElement(){return this.queryElement(it.selectors.totalClicks,"Total clicks element not found")}get skeletonContainer(){return this.queryElement(it.selectors.skeletonContainer,"Skeleton container not found in shadow DOM")}get uniqueClicksElement(){return this.queryElement(it.selectors.uniqueClicks,"Unique clicks element not found")}canConfirm(){return this.hasSelectedTag()&&(this.selectedUrlFilter.value!=="url-group"||!!this.urlGroup&&!this.urlGroupPending)}getStatsForSelectedElement(){if(!this.elementPath.length)return;let t=_r(this.buildStatsParams());return this.statsCache.get(t)}hasSelectedTag(){return[...this.tagTableBodyElement.querySelectorAll('input[type="checkbox"]')].some(t=>t.checked)}clearCopyStatusTimer(){this.copyStatusTimer&&(clearTimeout(this.copyStatusTimer),this.copyStatusTimer=void 0)}clearTagDetailCloseTimer(){this.tagDetailCloseTimer&&(clearTimeout(this.tagDetailCloseTimer),this.tagDetailCloseTimer=void 0)}clearTagDetailOpenFrame(){this.tagDetailOpenFrame!==void 0&&(this.window.cancelAnimationFrame(this.tagDetailOpenFrame),this.tagDetailOpenFrame=void 0)}get sliderNextButtonElement(){return this.queryElement(yr.nextButton,"Slider next button not found in shadow DOM")}get sliderPrevButtonElement(){return this.queryElement(yr.prevButton,"Slider prev button not found in shadow DOM")}get tagDetailCopyStatusElement(){return this.queryElement(it.selectors.detailCopyStatus,"Tag detail copy status not found")}get tagDetailCardElement(){return this.queryElement(it.selectors.tagDetailCard,"Tag detail card not found")}get tagDetailCloseButton(){return this.queryElement(it.selectors.tagDetailClose,"Tag detail close button not found")}get tagDetailCopyButton(){return this.queryElement(it.selectors.tagDetailCopy,"Tag detail copy button not found")}get tagDetailTitleElement(){return this.queryElement(it.selectors.tagDetailTitle,"Tag detail title not found")}get tagDetailValueElement(){return this.queryElement(it.selectors.tagDetailValue,"Tag detail value not found")}get tagSelectionErrorElement(){return this.queryElement(it.selectors.tagSelectionError,"Tag selection error not found")}get tagTableBodyElement(){return this.queryElement(it.selectors.tagTableBody,"Tag table body not found")}get totalSessionsElement(){return this.queryElement(it.selectors.totalSessions,"Total sessions element not found")}get urlScopeValueElement(){return this.queryElement(it.selectors.urlScopeValue,"URL scope value element not found")}get xpathTooltipElement(){return this.queryElement(yr.tooltip,"XPath tooltip element not found")}createCheckbox(t){let e=this.document.createElement("td"),n=this.document.createElement("input");n.checked=t.checked,n.id=`picker-${t.id}`,n.type="checkbox";let i=this.document.createElement("label");return i.htmlFor=n.id,i.setAttribute("aria-label",`Select ${t.tag}`),e.append(n,i),e}createTagRows(t,e){var n,i,o;let s=this.selectedElement,a=this.getTagCheckedStates(),u=[{id:Oi,checked:(n=a.get(Oi))==null||n,tag:"target_xpath",value:t}];for(let[c,l]of(e&&u.push({id:Ri,checked:(i=a.get(Ri))==null||i,tag:"target_text",value:e}
256),Object.entries(this.getAllowedElementDataAttributes(s))))u.push({id:c,checked:(o=a.get(c))!=null&&o,tag:`element.dataset.${c.slice(5).replaceAll(/-([a-z])/g,(d,h)=>h.toUpperCase())}`,value:l});return u}evictCacheIfNeeded(){for(;this.statsCache.size>r.MAX_CACHE_SIZE;){let t=this.statsCache.keys().next().value;if(!t)break;this.statsCache.delete(t)}}fetchStatsIfNeeded(){return Er(function*(){let t=this.buildStatsParams();this.showLoadingState();let e=_r(t),n=this.inFlightStats.get(e);if(n)return n;try{let i=this.params.getStats(t).then(o=>{var s;return this.updateStatsCache(e,o),(s=this.getStatsForSelectedElement())!=null?s:{total:0,unique:0}}).catch(o=>(Gt.error("Failed to retrieve stats:",o),{total:0,unique:0})).finally(()=>{this.inFlightStats.delete(e)});return this.inFlightStats.set(e,i),yield i}catch(i){throw this.inFlightStats.delete(e),i}}).call(this)}getAllowedElementDataAttributes(t){if(!this.params.getElementDataAttributes)return{};try{let e=this.params.getElementDataAttributes(t),n={};for(let[i,o]of Object.entries(e))i.startsWith("data-")&&typeof o=="string"&&(n[i]=o);return n}catch(e){return Gt.warn("Picker: failed to get element data attributes:",e),{}}}getConfirmErrorText(){if(!this.hasSelectedTag())return"Select at least one tag."}getCurrentUrl(){let t=new URL(this.window.location.href);return t.searchParams.delete(wn),t.toString()}getSelectedDataAttributes(){let t={};for(let[e,n]of Object.entries(this.getAllowedElementDataAttributes(this.selectedElement)))this.isTagChecked(e)&&(t[e]=n);return t}getTagCheckedStates(){let t=new Map;for(let e of this.tagTableBodyElement.querySelectorAll(".tag-row")){let n=e.dataset.tagId,i=e.querySelector('input[type="checkbox"]');n&&i&&t.set(n,i.checked)}return t}hideTagDetailImmediately(){this.clearTagDetailCloseTimer(),this.clearTagDetailOpenFrame(),this.tagDetailCardElement.classList.remove("open","closing"),this.tagDetailCardElement.hidden=!0,this.tagDetailTitleElement.textContent="",this.tagDetailValueElement.textContent="",this.setCopyStatus("")}isTagChecked(t,e=!1){var n;let i=[...this.tagTableBodyElement.querySelectorAll(".tag-row")].find(s=>s.dataset.tagId===t),o=i?.querySelector('input[type="checkbox"]');return(n=o?.checked)!=null?n:e}openTagDetail(t){this.clearTagDetailCloseTimer(),this.clearTagDetailOpenFrame(),this.tagDetailTitleElement.textContent=t.tag,this.tagDetailValueElement.textContent=t.value,this.setCopyStatus(""),this.tagDetailCardElement.hidden=!1,this.tagDetailCardElement.classList.remove("open","closing"),this.tagDetailOpenFrame=this.window.requestAnimationFrame(()=>{this.tagDetailOpenFrame=void 0,this.tagDetailCardElement.classList.add("open")})}renderTagRows(t){for(let e of(this.currentTagRows=t,this.tagTableBodyElement.textContent="",t)){let n=this.document.createElement("tr");
256n.className="tag-row",n.dataset.tagId=e.id;let i=this.document.createElement("td"),o=this.document.createElement("span");o.className="tag-name",o.textContent=e.tag,i.append(o);let s=this.document.createElement("td"),a=this.document.createElement("span");a.className="tag-value",a.textContent=e.value,s.append(a),n.append(this.createCheckbox(e),i,s),this.tagTableBodyElement.append(n)}this.updateConfirmState(),this.hideTagDetailImmediately()}resetStatsDisplay(){this.totalClicksElement.textContent="-",this.totalSessionsElement.textContent="-",this.uniqueClicksElement.textContent="-"}scheduleCopyStatusClear(){this.copyStatusTimer=setTimeout(()=>{this.copyStatusTimer=void 0,this.setCopyStatus("")},2e3)}scheduleStatsUpdate(){this.statsUpdateDebounceTimer&&clearTimeout(this.statsUpdateDebounceTimer),this.statsUpdateDebounceTimer=setTimeout(()=>{this.statsUpdateDebounceTimer=void 0,this.updateSelectedElementStats()},500)}setCopyStatus(t){this.clearCopyStatusTimer(),this.tagDetailCopyStatusElement.textContent=t}setUrlGroup(t){let e=t?.trim();this.urlGroup=e||void 0,this.updateUrlScopeValue(),this.updateConfirmState()}showLoadingState(){this.totalClicksElement.innerHTML=wi.html,this.totalSessionsElement.innerHTML=wi.html,this.uniqueClicksElement.innerHTML=wi.html}showXPathTooltip(t){this.xpathTooltipElement.textContent=t,this.xpathTooltipElement.classList.add("show"),this.tooltipTimer&&clearTimeout(this.tooltipTimer),this.tooltipTimer=setTimeout(()=>{this.xpathTooltipElement.classList.remove("show"),this.tooltipTimer=void 0},5e3)}updateConfirmState(){let t=this.canConfirm(),e=this.getConfirmErrorText();return this.confirmButton.disabled=!t,this.tagSelectionErrorElement.textContent=e??"",this.tagSelectionErrorElement.hidden=e===void 0,t}updateSelectedElementDisplay({showTooltip:t}){if(!this.elementPath.length)return;let e=this.selectedElement;this.highlightElement(e);let n=this.params.getElementXPath(e),i=this.params.getElementText(e);this.renderTagRows(this.createTagRows(n,i)),this.updateSelectionSummary(),this.updateUrlScopeValue(),t&&this.showXPathTooltip(n)}updateSelectionSummary(){if(!this.elementPath.length)return;let{dataAttributes:t,text:e,xpath:n}=this.buildStatsParams(),i=n??Object.entries(t??{}).map(([o,s])=>`${o}: ${s}`).join(`
257`);e&&(i+=`
258
259${e}`),this.textareaElement.value=i,this.textareaElement.scrollTop=this.textareaElement.scrollHeight}updateStatsCache(t,e){var n;let i=(n=this.statsCache.get(t))!=null?n:{};this.statsCache.set(t,(function(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable}))),u.forEach(function(c){Ce(o,c,a[c])})}return o})({},i,e)),this.evictCacheIfNeeded()}updateStatsDisplay(t){this.totalClicksElement.textContent=t.total.toString(),this.totalSessionsElement.textContent=t.sessions===void 0?"-":t.sessions.toString(),this.uniqueClicksElement.textContent=t.unique===void 0?"-":t.unique.toString()}updateUrlGroup(){return Er(function*(t=this.getCurrentUrl()){this.urlGroupLookupId+=1;let e=this.urlGroupLookupId;if(this.urlGroupPending=!0,this.setUrlGroup(),!this.params.getUrlGroup)return this.urlGroupPending=!1,void this.setUrlGroup();try{let n=yield this.params.getUrlGroup(t);if(e!==this.urlGroupLookupId)return;this.urlGroupPending=!1,this.setUrlGroup(n),this.selectedUrlFilter.value==="url-group"&&this.updateSelectedElementStats()}catch(n){if(e!==this.urlGroupLookupId)return;Gt.warn("Picker: failed to get URL group:",n),this.urlGroupPending=!1,this.setUrlGroup(),this.selectedUrlFilter.value==="url-group"&&this.updateSelectedElementStats()}}).apply(this,arguments)}updateUrlScopeValue(){if(this.urlScopeValueElement.classList.remove(wa),this.selectedUrlFilter.value!=="this-url")return this.selectedUrlFilter.value==="url-group"?this.urlGroupPending?void(this.urlScopeValueElement.textContent="Loading..."):this.urlGroup?void(this.urlScopeValueElement.textContent=this.urlGroup):(this.urlScopeValueElement.textContent="No URL Group available",void this.urlScopeValueElement.classList.add(wa)):void(this.urlScopeValueElement.textContent="");this.urlScopeValueElement.textContent=this.getCurrentUrl()}constructor(t){var e;super(t),e=this,Ce(this,"elementPath",[]),Ce(this,"lastTarget",void 0),Ce(this,"boxShadowBackup",void 0),Ce(this,"cleanupUrlChangeListener",void 0),Ce(this,"copyStatusTimer",void 0),Ce(this,"currentTagRows",[]),Ce(this,"inFlightStats",new Map),Ce(this,"statsCache",new Map),Ce(this,"statsUpdateDebounceTimer",void 0),Ce(this,"tagDetailCloseTimer",void 0),Ce(this,"tagDetailOpenFrame",void 0),Ce(this,"tooltipTimer",void 0),Ce(this,"urlGroup",void 0),Ce(this,"urlGroupLookupId",0),Ce(this,"urlGroupPending",!1),Ce(this,"urlGroupUrl",this.getCurrentUrl()),Ce(this,"buildConfirmParams",()=>this.buildStatsParams()),Ce(this,"buildStatsParams",()=>{let n,i,o;this.selectedUrlFilter.value==="this-url"&&(n=this.getCurrentUrl()),this.selectedUrlFilter.value==="url-group"&&this.urlGroup&&(i=this.urlGroup,o="url-group");let s=this.params.getElementXPath(this.selectedElement),a=this.params.getElementText(this.selectedElement),u=a!=="",c=this.isTagChecked(Ri,u)&&u?a:void 0,l=this.getSelectedDataAttributes(),d={text:c,url:n,urlGroup:i,urlScope:o};
259return this.isTagChecked(Oi,!0)&&(d.xpath=s),Object.keys(l).length>0&&(d.dataAttributes=l),d}),Ce(this,"clearHighlight",()=>{this.lastTarget&&(this.lastTarget.style.boxShadow=this.boxShadowBackup||"",this.lastTarget=void 0,this.boxShadowBackup=void 0)}),Ce(this,"highlightElement",n=>{this.lastTarget&&(this.lastTarget.style.boxShadow=this.boxShadowBackup||""),this.lastTarget=n,this.boxShadowBackup=this.lastTarget.style.boxShadow,this.lastTarget.style.boxShadow=`0 0 8px 3px ${$e.HOVER_COLOR}`}),Ce(this,"updateSelectedElementStats",()=>Er(function*(){if(!e.elementPath.length)return;if(!e.canConfirm())return void e.resetStatsDisplay();let n=_r(e.buildStatsParams()),i=e.statsCache.get(n);i||(i=yield e.fetchStatsIfNeeded()),e.elementPath.length&&(e.canConfirm()?_r(e.buildStatsParams())===n&&e.updateStatsDisplay(i):e.resetStatsDisplay())})()),Ce(this,"updateTextarea",n=>{var i;let o=(i=n?.showTooltip)==null||i;this.updateSelectedElementDisplay({showTooltip:o})}),Ce(this,"closeTagDetail",()=>{this.clearTagDetailCloseTimer(),this.clearTagDetailOpenFrame(),this.tagDetailCardElement.hidden?this.hideTagDetailImmediately():(this.tagDetailCardElement.classList.remove("open"),this.tagDetailCardElement.classList.add("closing"),this.setCopyStatus(""),this.tagDetailCloseTimer=setTimeout(()=>{this.tagDetailCloseTimer=void 0,this.hideTagDetailImmediately()},160))}),Ce(this,"copyTagDetailValue",()=>Er(function*(){var n,i;let o=(n=e.tagDetailValueElement.textContent)!=null?n:"",s=(i=e.window.navigator.clipboard)==null?void 0:i.writeText.bind(e.window.navigator.clipboard);if(s)try{yield s(o),e.setCopyStatus("Copied"),e.scheduleCopyStatusClear()}catch{e.setCopyStatus("Copy failed")}else e.setCopyStatus("Copy failed")})()),Ce(this,"handleSliderInput",()=>{this.elementPath.length&&(this.updateSelectedElementDisplay({showTooltip:!0}),this.scheduleStatsUpdate())}),Ce(this,"handleTagTableChange",n=>{let i=n.target;i instanceof HTMLInputElement&&i.type==="checkbox"&&(this.updateConfirmState(),this.updateSelectionSummary(),this.updateSelectedElementStats())}),Ce(this,"handleTagTableClick",n=>{let i=n.target;if(!(i instanceof Element)||i.closest('input[type="checkbox"], label'))return;let o=i.closest(".tag-row"),s=o?.dataset.tagId;if(!s)return;let a=this.currentTagRows.find(u=>u.id===s);a&&this.openTagDetail(a)}),Ce(this,"handleUrlChange",()=>{let n=this.getCurrentUrl();n!==this.urlGroupUrl&&(this.urlGroupUrl=n,this.updateUrlScopeValue(),this.selectedUrlFilter.value==="this-url"&&this.updateSelectedElementStats(),this.updateUrlGroup(n))}),Ce(this,"handleUrlFilterChange",()=>{this.updateUrlScopeValue(),this.updateConfirmState(),this.updateSelectedElementStats()}),Ce(this,"sliderNextHandler",()=>{let n=Math.min(Number.parseInt(this.sliderRangeElement.max),Number.parseInt(this.sliderRangeElement.value)+1);this.sliderRangeElement.value=n.toString(),this.updateSelectedElementDisplay({showTooltip:!0}),this.updateSelectedElementStats()}),Ce(this,"sliderPrevHandler",()=>{let n=Math.max(0,Number.parseInt(this.sliderRangeElement.value)-1);this.sliderRangeElement.value=n.toString(),this.updateSelectedElementDisplay({showTooltip:!0}),this.updateSelectedElementStats()}),this.skeletonContainer.querySelectorAll('input[name="url-filter"]').forEach(n=>n.addEventListener("change",this.handleUrlFilterChange)),this.sliderRangeElement.addEventListener("input",this.handleSliderInput),this.sliderPrevButtonElement.addEventListener("click",this.sliderPrevHandler),this.sliderNextButtonElement.addEventListener("click",this.sliderNextHandler),this.tagTableBodyElement.addEventListener("change",this.handleTagTableChange),this.tagTableBodyElement.addEventListener("click",this.handleTagTableClick),this.tagDetailCloseButton.addEventListener("click",this.closeTagDetail),this.tagDetailCopyButton.addEventListener("click",this.copyTagDetailValue),this.cleanupUrlChangeListener=(function(n,i){let o=!0,s=n.location.href,{history:a}=n,u=a.pushState,c=a.replaceState,l=()=>{o&&n.location.href!==s&&(s=n.location.href,i())},d=function(...p){u.apply(this,p),l()},h=function(...p){c.apply(this,p),l()};return a.pushState=d,a.replaceState=h,n.addEventListener("popstate",l),n.addEventListener("hashchange",l),()=>
259{o&&(o=!1,a.pushState===d&&(a.pushState=u),a.replaceState===h&&(a.replaceState=c),n.removeEventListener("popstate",l),n.removeEventListener("hashchange",l))}})(this.window,this.handleUrlChange),this.updateUrlGroup()}};function Mt(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}Ce(ni,"MAX_CACHE_SIZE",100);var Io=class extends ni{dispose(){this.stopDragging(),this.handleElement.removeEventListener("pointerdown",this.handlePointerDown),this.logoContainer.removeEventListener("pointerdown",this.handlePointerDown),this.hostElement.removeEventListener("pointermove",this.handlePointerMove),this.hostElement.removeEventListener("pointerup",this.handlePointerEnd),this.hostElement.removeEventListener("pointercancel",this.handlePointerEnd),super.dispose()}attachDragEvents(){this.handleElement.addEventListener("pointerdown",this.handlePointerDown),this.logoContainer.addEventListener("pointerdown",this.handlePointerDown),this.hostElement.addEventListener("pointermove",this.handlePointerMove),this.hostElement.addEventListener("pointerup",this.handlePointerEnd),this.hostElement.addEventListener("pointercancel",this.handlePointerEnd)}stopDragging(){this.dragPointerId!==null&&(this.handleElement.releasePointerCapture(this.dragPointerId),this.logoContainer.releasePointerCapture(this.dragPointerId),this.dragPointerId=null)}updatePosition(t,e){this.top=Math.max(0,this.startTop+(e-this.startClientY)),this.left=Math.max(0,this.startLeft+(t-this.startClientX)),this.top=Math.min(this.window.innerHeight-this.hostElement.offsetHeight,this.top),this.left=Math.min(this.window.innerWidth-this.hostElement.offsetWidth,this.left),this.hostElement.style.top=`${this.top}px`,this.hostElement.style.left=`${this.left}px`}constructor(t){super(t),Mt(this,"dragPointerId",null),Mt(this,"handleElement",void 0),Mt(this,"left",0),Mt(this,"startClientX",0),Mt(this,"startClientY",0),Mt(this,"startLeft",0),Mt(this,"startTop",0),Mt(this,"top",0),Mt(this,"handlePointerDown",e=>{e.isPrimary&&this.dragPointerId===null&&(e.preventDefault(),this.dragPointerId=e.pointerId,this.startClientX=e.clientX,this.startClientY=e.clientY,this.startTop=this.top,this.startLeft=this.left,this.handleElement.setPointerCapture(this.dragPointerId),this.logoContainer.setPointerCapture(this.dragPointerId))}),Mt(this,"handlePointerEnd",e=>{e.pointerId===this.dragPointerId&&this.stopDragging()}),Mt(this,"handlePointerMove",e=>{e.pointerId===this.dragPointerId&&this.updatePosition(e.clientX,e.clientY)}),this.handleElement=this.queryElement(".handle","Handle element not found in shadow DOM"),this.attachDragEvents()}};function rn(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var Mo=class extends Io{dispose(){this.document.removeEventListener("mousemove",this.handleMouseMove,!0),this.document.removeEventListener("click",this.handleClick,!0),this.toggleElement.removeEventListener("change",this.handleToggleChange),this.turnOnButton.removeEventListener("click",this.handleTurnOn),this.confirmButton.removeEventListener("click",this.handleConfirmClick),this.clearHighlight(),super.dispose(),this.hostElement.remove()}composeElementPath(){let t=this.clickedElement;if(!t)return;for(this.elementPath=[],this.elementPath.push(t);t.parentElement;)t=t.parentElement,this.elementPath.push(t);this.elementPath.reverse();let e=(this.elementPath.length-1).toString();this.sliderRangeElement.max=e,this.sliderRangeElement.value=e}handleElementSelection(t){this.clickedElement=t,this.rootElement.classList.add("show-content"),this.composeElementPath(),this.updateTextareaSize(),this.updateTextarea(),this.updateSelectedElementStats()}setCommentText(t){for(let[e,n]of(this.commentElement.textContent="",t.split("<br>").entries()))e>0&&this.commentElement.append(this.document.createElement("br")),this.commentElement.append(this.document.createTextNode(n))}updateTextareaSize(){let{dataAttributes:t,text:e,xpath:n}=this.buildStatsParams(),i=Math.ceil((n??Object.entries(t??{}).map(([o,s])=>`${o}: ${s}`).join(`
260`)).length/38);e&&(i+=1+Math.ceil(e.length/38)),this.textareaElement.rows=Math.min(5,i)}constructor(t){super(t),rn(this,"clickedElement",void 0),rn(this,"hoveringOverPicker",!1),rn(this,"handleClick",e=>{e.target!==this.hostElement&&(e.preventDefault(),e.stopPropagation(),this.handleElementSelection(e.target))}),rn(this,"handleConfirmClick",()=>{if(!this.canConfirm())return;let e=this.buildConfirmParams();this.params.onConfirm(e)}),rn(this,"handleMouseMove",e=>{let n=e.target;if(n&&this.lastTarget!==n){if(n===this.hostElement||this.hostElement.contains(n))return void(!this.hoveringOverPicker&&this.clickedElement&&(this.hoveringOverPicker=!0,this.updateTextarea({showTooltip:!1})));this.hoveringOverPicker=!1,n instanceof HTMLElement&&this.highlightElement(n)}}),rn(this,"handleToggleChange",()=>{this.toggleElement.checked?this.handleTurnOn():this.handleTurnOff()}),rn(this,"handleTurnOff",()=>{this.toggleElement.checked=!1,this.setCommentText("You can interact with your website as normal.<br>Navigate to the element you want to track, then turn on the Element picker."),this.skeletonImg
260Element.src=$e.SKELETON_IMAGE_URL_OFF,this.rootElement.classList.remove("show-content","turned-on"),this.setActiveBorder(!1),this.document.removeEventListener("mousemove",this.handleMouseMove,!0),this.document.removeEventListener("click",this.handleClick,!0),this.clearHighlight()}),rn(this,"handleTurnOn",()=>{this.toggleElement.checked=!0,this.rootElement.classList.add("turned-on"),this.setActiveBorder(!0),this.skeletonImgElement.src=$e.SKELETON_IMAGE_URL_ON,this.setCommentText("The Element picker is now active.<br>Click the element you want to track."),this.document.addEventListener("mousemove",this.handleMouseMove,!0),this.document.addEventListener("click",this.handleClick,!0)}),this.toggleElement.addEventListener("change",this.handleToggleChange),this.params.onConnect(),this.handleToggleChange(),this.turnOnButton.addEventListener("click",this.handleTurnOn),this.confirmButton.addEventListener("click",this.handleConfirmClick)}},Vg=()=>window.name===wn||window.location.search.includes(`${wn}=1`)||window.location.search.includes("smartlook-web-element-picker=1")||(r=>{let t=null;try{t=window.sessionStorage.getItem(r)}catch{}return t})(wn)==="1";function $n(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var No=class{dispose(){this.stopMonitoring(),this.removeMessageListener()}createStatsSetter(t){return e=>{if(!this.pickerWindow.closed)try{var n,i,o;this.pickerWindow.postMessage((n={requestId:t.requestId,stats:e,xpath:t.xpath},i=(function(s){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(l){return Object.getOwnPropertyDescriptor(u,l).enumerable}))),c.forEach(function(l){var d;d=u[l],l in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d})}return s})({},n),o=o={type:Nu},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(s){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);a.push.apply(a,u)}return a})(Object(o)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(o,s))}),i),this.url.origin)}catch(s){Gt.error("Picker: failed to send stats message:",s)}}}createUrlGroupSetter(t){return e=>{if(!this.pickerWindow.closed)try{var n,i,o;this.pickerWindow.postMessage((n={requestId:t.requestId,urlGroup:e},i=(function(s){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(l){return Object.getOwnPropertyDescriptor(u,l).enumerable}))),c.forEach(function(l){var d;d=u[l],l in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d})}return s})({},n),o=o={type:Du},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(s){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);a.push.apply(a,u)}return a})(Object(o)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(o,s))}),i),this.url.origin)}catch(s){Gt.error("Picker: failed to send url group message:",s)}}}handleMessage(t){var e,n,i,o;if((e=t.data)!==null&&typeof e=="object"&&e.type===Pu&&(e.xpath===void 0||typeof e.xpath=="string")&&(e.text===void 0||typeof e.text=="string")&&(e.url===void 0||typeof e.url=="string")&&Ea({urlGroup:e.urlGroup,urlScope:e.urlScope})&&(e.dataAttributes===void 0||ya(e.dataAttributes))&&ba(e)&&this.callbacks.onConfirm(t.data),(n=t.data)!==null&&typeof n=="object"&&n.type===Iu&&(n.xpath===void 0||typeof n.xpath=="string")&&(n.requestId===void 0||typeof n.requestId=="string")&&(n.text===void 0||typeof n.text=="string")&&(n.url===void 0||typeof n.url=="string")&&Ea({urlGroup:n.urlGroup,urlScope:n.urlScope})&&(n.dataAttributes===void 0||ya(n.dataAttributes))&&ba(n)&&this.callbacks.onGetStats(t.data,this.createStatsSetter(t.data)),(i=t.data)!==null&&typeof i=="object"&&i.type===Mu&&typeof i.url=="string"&&(i.requestId===void 0||typeof i.requestId=="string")){let s=this.createUrlGroupSetter(t.data);
260this.callbacks.onGetUrlGroup?this.callbacks.onGetUrlGroup(t.data.url,s):s()}(o=t.data)!==null&&typeof o=="object"&&o.type===ku&&Object.keys(o).length===1&&this.callbacks.onConnect()}isMessageFromPickerWindow(t){return t.source===this.pickerWindow&&t.origin===this.url.origin}removeMessageListener(){this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=null)}setupMessageListener(){this.messageListener=t=>{this.isMessageFromPickerWindow(t)&&this.handleMessage(t)},window.addEventListener("message",this.messageListener)}startMonitoring(){this.intervalId===null&&(this.intervalId=setInterval(()=>{this.pickerWindow.closed&&(this.callbacks.onClose(),this.dispose())},500))}stopMonitoring(){this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null)}constructor(t,e,n){$n(this,"callbacks",void 0),$n(this,"intervalId",void 0),$n(this,"messageListener",void 0),$n(this,"pickerWindow",void 0),$n(this,"url",void 0),this.callbacks=n,this.intervalId=null,this.messageListener=null,this.pickerWindow=t,this.url=e,this.startMonitoring(),this.setupMessageListener()}},Hg=({onClose:r,onConfirm:t,onConnect:e,onGetStats:n,onGetUrlGroup:i,url:o})=>{Gt.setLoggingLevel("warn");let s=new URL(o);s.searchParams.set(wn,"1");let a=window.open(s,wn);if(!a)throw Error("Failed to open picker window");return new No(a,s,{onClose:r,onConfirm:t,onConnect:e,onGetStats:n,onGetUrlGroup:i})},Uu=r=>{var t;return(t=r.opener)!=null?t:null},qg=r=>{var t,e;Gt.setLoggingLevel("warn"),(u=>{try{return window.sessionStorage.setItem(u,"1"),!0}catch{return!1}})(wn);let n=new URL(document.referrer).origin,i=zg(n),o=new Ao(window,n,Uu,i),s=new Mo((t=(function(u){for(var c=1;c<arguments.length;c++){var l=arguments[c]!=null?arguments[c]:{},d=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(l).filter(function(h){return Object.getOwnPropertyDescriptor(l,h).enumerable}))),d.forEach(function(h){var p;p=l[h],h in u?Object.defineProperty(u,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[h]=p})}return u})({},r),e=e={getStats:o.getStatsHandler(),getUrlGroup:o.getUrlGroupHandler(),onConfirm:u=>{var c,l;i(window,(c=(function(d){for(var h=1;h<arguments.length;h++){var p=arguments[h]!=null?arguments[h]:{},f=Object.keys(p);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(p).filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable}))),f.forEach(function(g){var m;m=p[g],g in d?Object.defineProperty(d,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[g]=m})}return d})({},u),l=l={type:Pu},Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(l)):(function(d){var h=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h.push.apply(h,p)}return h}
260)(Object(l)).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(l,d))}),c)),window.setTimeout(()=>window.close())},onConnect:()=>{i(window,{type:ku})},rootElement:window.document.body,window},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(u){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(u);c.push.apply(c,l)}return c})(Object(e)).forEach(function(u){Object.defineProperty(t,u,Object.getOwnPropertyDescriptor(e,u))}),t)),a=s.dispose.bind(s);s.dispose=()=>{o.dispose(),a()}},zg=r=>(t,e)=>{let n=Uu(t);if(n)if(n.closed)Gt.warn("Picker: opener window already closed");else try{n.postMessage(e,r)}catch(i){Gt.error("Picker: failed to send postMessage:",i)}else Gt.warn("Picker: no opener window available for postMessage")},Gg=zo.$,Xg=zo.Fn,$g=["architecture","bitness","fullVersionList","model","platformVersion","uaFullVersion","wow64"];function Xe(r,t,e){let n;try{n=(function(i){return Array.isArray(i)?JSON.stringify(i):i})(e())}catch{return}eu(n)&&(r[t]=n)}function ju(r){return r?.map(t=>{let{brand:e,version:n}=t;return"".concat(e,"/").concat(n)})}function Wg(r){return r.replaceAll(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase()}function Kg(){let r={};return Xe(r,"browser.debug.hardware_concurrency",()=>navigator.hardwareConcurrency),Xe(r,"browser.debug.device_memory_gb",()=>navigator.deviceMemory),Xe(r,"browser.debug.max_touch_points",()=>navigator.maxTouchPoints),Xe(r,"browser.debug.cookie_enabled",()=>
260navigator.cookieEnabled),Xe(r,"browser.debug.do_not_track",()=>navigator.doNotTrack),Xe(r,"browser.debug.languages",()=>navigator.languages?[...navigator.languages]:void 0),Xe(r,"browser.debug.vendor",()=>navigator.vendor),Xe(r,"browser.debug.pdf_viewer_enabled",()=>navigator.pdfViewerEnabled),Xe(r,"browser.debug.online",()=>navigator.onLine),Xe(r,"browser.debug.connection.type",()=>{var t;return(t=navigator.connection)===null||t===void 0?void 0:t.type}),Xe(r,"browser.debug.connection.effective_type",()=>{var t;return(t=navigator.connection)===null||t===void 0?void 0:t.effectiveType}),Xe(r,"browser.debug.connection.downlink",()=>{var t;return(t=navigator.connection)===null||t===void 0?void 0:t.downlink}),Xe(r,"browser.debug.connection.rtt",()=>{var t;return(t=navigator.connection)===null||t===void 0?void 0:t.rtt}),Xe(r,"browser.debug.connection.save_data",()=>{var t;return(t=navigator.connection)===null||t===void 0?void 0:t.saveData}),Xe(r,"browser.debug.ua.brands",()=>{var t;return ju((t=navigator.userAgentData)===null||t===void 0?void 0:t.brands)}),r}function Yg(r){let t={};return Xe(t,"browser.debug.ua.architecture",()=>r?.architecture),Xe(t,"browser.debug.ua.bitness",()=>r?.bitness),Xe(t,"browser.debug.ua.full_version",()=>r?.uaFullVersion),Xe(t,"browser.debug.ua.full_version_list",()=>ju(r?.fullVersionList)),Xe(t,"browser.debug.ua.model",()=>r?.model),Xe(t,"browser.debug.ua.wow64",()=>r?.wow64),t}function Bu(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=navigator.userAgentData,e={"user_agent.is_automated":!!navigator.webdriver,"user_agent.is_bot":Cu(navigator.userAgent),"user_agent.language":navigator.language,"user_agent.mobile":t?.mobile,"user_agent.original":navigator.userAgent,"user_agent.os.name":t?.platform||navigator.platform};return r.includeDebugInfo?ce(ce({},e),Kg()):e}function Zg(){return ut(this,arguments,function*(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t;let e=Bu(r),n=r.includeDebugInfo?yield(function(){return ut(this,null,function*(){let i={};try{var o,s;if(!(!((s=navigator.storage)===null||s===void 0)&&s.estimate))return i;let a=yield navigator.storage.estimate();Xe(i,"browser.debug.storage.quota",()=>a.quota),Xe(i,"browser.debug.storage.usage",()=>a.usage);for(let[u,c]of Object.entries((o=a.usageDetails)!==null&&o!==void 0?o:{}))Xe(i,"browser.debug.storage.usage_details.".concat(Wg(u)),()=>c)}catch(a){console.warn("[Splunk]: Could not get browser storage debug information:",a)}return i})})():{};if(!(!((t=navigator.userAgentData)===null||t===void 0)&&t.getHighEntropyValues))return ce(ce({},e),n);try{let i=yield navigator.userAgentData.getHighEntropyValues(r.includeDebugInfo?$g:["platformVersion"]),o=ce(ce(ce({},e),n),r.includeDebugInfo?Yg(i):{});return i?.platformVersion?He(ce({},o),{"user_agent.os.version":i.platformVersion}):o}catch(i){return console.warn("[Splunk]: Could not get enhanced platform information:",i),ce(ce({},e),n)}})}var Li={adjustSessionStartToTimeOrigin:!0,applicationName:"unknown-browser-app",beaconEndpoint:void 0,bufferSize:50,bufferTimeout:4e3,disableAutomationFrameworks:!1,disableBots:!1,discardDataAfterInactivity:!0,experimental:!1,exporter:{factory:r=>r.otlp?new Mi(r):new Ui(r)},instrumentations:{},persistence:"cookie",rumAccessToken:void 0,sessionMetadata:void 0,spaMetrics:!0,spanProcessor:{factory:(r,t)=>new Aa(r,t)}},Fu=[{confKey:"blockingElement",disable:!1,Instrument:class extends mt{disable(){var r;window.removeEventListener("pagehide",this.handlePagehide,gs),window.removeEventListener("pageshow",this.handlePageshow,ms),(r=this.elementSpanTracker)===null||r===void 0||r.interruptAll(),this.elementSpanTracker=void 0,this.selectors=[],this.activeSelectorsByElement.clear(),this.timedOutElements.clear(),this.elementVisibilityObserver.unwatch(this.consumerId)}enable(){this.elementSpanTracker?k.s.warn("SplunkBlockingElementInstrumentation: Already enabled."):wd(this.otelConfig)&&(this.selectors=(function(r){var t;let e=r.spaMetrics;return typeof e!="object"?[]:(t=$a(e,location.href).blockingSelectors)!==null&&t!==void 0?t:[]})(this.otelConfig),this.selectors.length!==0&&(this.elementSpanTracker=new ji(this.tracer,this.selectors,(function(r){var t;
260let e=(t=r.instrumentations)===null||t===void 0?void 0:t.blockingElement;return typeof e=="object"&&e.maxElementSpanDuration!==void 0?e.maxElementSpanDuration:18e4})(this.otelConfig),r=>this.timedOutElements.add(r)),this.elementVisibilityObserver.watch(this.consumerId,this.selectors,this.handleVisibilityChange),window.addEventListener("pagehide",this.handlePagehide,gs),window.addEventListener("pageshow",this.handlePageshow,ms)))}init(){}matchesSelector(r,t){try{return r.matches(t)}catch{return!1}}constructor(r={},t,e,n,i){if(super(Xa,ot,He(ce({},r),{enabled:!1})),S(this,"otelConfig",void 0),S(this,"activeSelectorsByElement",void 0),S(this,"consumerId",void 0),S(this,"elementSpanTracker",void 0),S(this,"elementVisibilityObserver",void 0),S(this,"selectors",void 0),S(this,"timedOutElements",void 0),S(this,"handlePagehide",void 0),S(this,"handlePageshow",void 0),S(this,"handleVisibilityChange",void 0),this.otelConfig=t,this.activeSelectorsByElement=new Map,this.consumerId=Symbol("splunk-blocking-element"),this.selectors=[],this.timedOutElements=new Set,this.handlePagehide=()=>{var o;(o=this.elementSpanTracker)===null||o===void 0||o.interruptAll(),this.activeSelectorsByElement.clear(),this.timedOutElements.clear()},this.handlePageshow=o=>{if(o.persisted)for(let s of this.selectors)this.elementVisibilityObserver.resync(this.consumerId,s)},this.handleVisibilityChange=o=>{let s=this.elementSpanTracker;if(!s)return;let{element:a,selector:u,visible:c}=o,l=performance.now();if(!c){let h=this.activeSelectorsByElement.get(a);return h?.delete(u),h&&h.size>0?void 0:(this.activeSelectorsByElement.delete(a),this.timedOutElements.delete(a),void s.completeSpan(a,l))}let d=this.selectors.filter(h=>this.matchesSelector(a,h));this.activeSelectorsByElement.set(a,new Set(d)),this.timedOutElements.has(a)||s.startSpan(a,d,l)},!i)throw new Error("SplunkBlockingElementInstrumentation requires elementVisibilityObserver.");this.elementVisibilityObserver=i}}},{confKey:"document",disable:!1,Instrument:class extends Ud{constructor(r={},t,e,n){var i;super(r),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"documentLoadMetricsPromise",void 0),S(this,"navigationStartTimeMillis",void 0),S(this,"pageLoadSpan",void 0),S(this,"spaMetricsManager",void 0),this.otelConfig=t,this.sessionManager=e,this.spaMetricsManager=n,this.documentLoadMetricsPromise=(i=this.spaMetricsManager)===null||i===void 0?void 0:i.waitForPageLoad({startTime:0});let o=this,s=o._startSpan.bind(this),a=o._endSpan.bind(this);o._startSpan=(u,c,l,d)=>{let h=l[Te.FETCH_START];u===bt.DOCUMENT_LOAD&&typeof h=="number"&&(this.navigationStartTimeMillis=(0,Ne.JU)((0,Ne.KJ)(h)),this.documentLoadMetricsPromise&&this.otelConfig.experimental&&(this.pageLoadSpan=this.tracer.startSpan("pageLoad",{startTime:this.navigationStartTimeMillis}),this.pageLoadSpan.setAttribute("component",this.component),this.pageLoadSpan.setAttribute(ys,location.href),this.pageLoadSpan.setAttribute(wt.HTTP_USER_AGENT,navigator.userAgent)));let p=(u===bt.DOCUMENT_LOAD||u===bt.DOCUMENT_FETCH)&&this.navigationStartTimeMillis!==void 0?He(ce({},l),{[Te.FETCH_START]:this.navigationStartTimeMillis}):l,f=s(u,c,p,d);var g,m;return f&&u===bt.DOCUMENT_LOAD&&(f.setAttribute(Hr,Bi),f.setAttribute("component",this.component),Ts(f),(g=this.spaMetricsManager)===null||g===void 0||g.setCurrentNavigationSpan(f,0,Bi),(m=this.otelConfig.spanEmitter)===null||m===void 0||m.emitSpan(f,"start")),f},o._onDocumentLoaded=u=>{u&&!u.isTrusted||window.setTimeout(()=>{o._collectPerformance()})},o._endSpan=(u,c,l)=>{let d=u;if(u&&u.setAttribute("component",this.component),u&&d.name!==bt.DOCUMENT_LOAD){let p=d.name===bt.RESOURCE_FETCH,f=l[Te.FETCH_START];if(typeof f=="number"){let g=p?f:Math.max(f,0);on(u,this.spaMetricsManager,g,p?{monitorTypes:Bo(l.initiatorType),type:"resource",url:l.name}:{type:"document"})}if(d.name===bt.DOCUMENT_FETCH&&performance.getEntriesByType){var h;let g=performance.getEntriesByType("navigation");!l.serverTiming&&(!((h=g[0])===null||h===void 0)&&h.serverTiming)&&(l.serverTiming=g[0].serverTiming),g[0]&&typeof g[0].responseStatus=="number"&&g[0].responseStatus>0&&u.setAttribute(wt.HTTP_STATUS_CODE,g[0].responseStatus)}(function(g,m){if(g.serverTiming)for(let y of g.serverTiming)y.name==="traceparent"&&y.description&&Ka(y.description.match(cf),m)})(l,u),u.setAttribute(wt.HTTP_METHOD,"GET")}return u&&d.name===bt.DOCUMENT_LOAD&&(Ts(u),this.documentLoadMetricsPromise)?void this.documentLoadMetricsPromise.then(p=>{var f,g;if((f=this.spaMetricsManager)===null||f===void 0||f.setPageLoadMetricAttributes(u,p),(g=this.spaMetricsManager)===null||g===void 0||g.completeCurrentNavigationPct(u,p.pct),this.pageLoadSpan&&this.navigationStartTimeMillis!==void 0){var m;(m=this.spaMetricsManager)===null||m===void 0||m.setPageLoadMetricAttributes(this.pageLoadSpan,p);let y=this.pageLoadSpan;y.end((0,Ne.mw)(y.startTime,(0,Ne.lg)(p.pct))),this.navigationStartTimeMillis=void 0,this.pageLoadSpan=void 0}k.s.debug("Sending documentLoad span with PCT result",p),a(u,c,l)}).catch(p=>{var f;(f=this.spaMetricsManager)===null||f===void 0||f.completeCurrentNavigationPct(u),k.s.warn("SplunkDocumentLoadInstrumentation: Failed to resolve page load metrics.",{error:p}),this.pageLoadSpan&&(a(this.pageLoadSpan,c,l),this.navigationStartTimeMillis=void 0,this.pageLoadSpan=void 0),a(u,c,l)}):a(u,c,l)},o._initResourceSpan=(u,c)=>{if(lf.has(u.initiatorType)||(0,gn.K)(u.name,r.ignoreUrls))return;let l=o._startSpan(bt.RESOURCE_FETCH,Te.FETCH_START,u,c);if(l){var d;l.setAttribute(ys,u.name);let h=Ya(u);h!==void 0&&l.setAttribute("http.cache.hit",h),o.getConfig().ignoreNetworkEvents||(Br(l,u),typeof u.responseStatus=="number"&&u.responseStatus>0&&l.setAttribute(wt.HTTP_STATUS_CODE,u.responseStatus)),o._addCustomAttributesOnResourceSpan(l,u,(d=o.getConfig().applyCustomAttributesOnSpan)===null||d===void 0?void 0:d.resourceFetch),o._endSpan(l,Te.RESPONSE_END,u)}}}}},{confKey:"xhr",disable:!1,Instrument:class extends cg{constructor(r={},t,e,n){var i,o;super(r),S(this,"sessionManager",void 0),S(this,"spaMetricsManager",void 0),S(this,"otelConfig",void 0),this.sessionManager=e,this.spaMetricsManager=n,this.otelConfig=t;let s=(i=(o=r.separateTraces)!==null&&o!==void 0?o:t.separateTraces)!==null&&i!==void 0&&i,a=this._createSpan.bind(this),u=this._addResourceObserver.bind(this);this._createSpan=(c,l,d)=>{let h=performance.now(),p;if(s){let g=me._.active(),m=qe.u.getSpan(g),y=m?.spanContext(),v=(0,ln.Zf)(g)?(0,ln.M1)(dt.l):dt.l;p=me._.with(v,()=>a(c,l,d)),p&&y?.traceId&&p.setAttributes({"link.interaction.spanId":y.spanId,"link.interaction.traceId":y.traceId})}else p=a(c,l,d);var f;return p&&(c.addEventListener("readystatechange",()=>{if(c.readyState===c.HEADERS_RECEIVED&&c.getAllResponseHeaders().toLowerCase().includes("server-timing")){let g=c.getResponseHeader("server-timing");g!==null&&_s(g,p)}}),p.setAttribute("component",this.moduleName),on(p,this.spaMetricsManager,h),c.addEventListener("loadend",()=>{on(p,this.spaMetricsManager,h,{monitorTypes:["network"],resourceId:c._splunkMonitorResourceId,type:"resource",url:l})},{once:!0}),(f=this.otelConfig.spanEmitter)===null||f===void 0||f.emitSpan(p,"start"),p.updateName("HTTP ".concat(d.toUpperCase()))),p},this._addResourceObserver=(c,l)=>{typeof PerformanceObserver=="function"&&typeof PerformanceResourceTiming=="function"&&u(c,l)}}}},{confKey:"fetch",disable:!1,Instrument:class extends kf{enable(){window.fetch&&super.enable()}constructor(r={},t,e,n){var i,o,s;let a=(i=(o=r.separateTraces)!==null&&o!==void 0?o:t.separateTraces)!==null&&i!==void 0&&i,u=r.applyCustomAttributesOnSpan,c=new WeakMap;r.applyCustomAttributesOnSpan=function(h,p,f){h.updateName("HTTP ".concat((p.method||"GET").toUpperCase())),h.setAttribute("component","fetch");let g=c.get(h);if(g&&on(h,n,g.startTime,{monitorTypes:["network"],type:"resource",url:g.url}),h&&f instanceof Response&&f.headers){let m=f.headers.get("Server-Timing");m&&_s(m,h)}u&&u(h,p,f)},super(r),S(this,"sessionManager",void 0),S(this,"spaMetricsManager",void 0),S(this,"otelConfig",void 0),this.sessionManager=e,this.spaMetricsManager=n,this.otelConfig=t;let l=(s=this._createSpan)===null||s===void 0?void 0:s.bind(this);this._createSpan=(h,p)=>{let f=performance.now(),g;if(a){let m=me._.active(),y=qe.u.getSpan(m),v=y?.spanContext(),b=(0,ln.Zf)(m)?(0,ln.M1)(dt.l):dt.l;g=me._.with(b,()=>l(h,p)),g&&v?.traceId&&g.setAttributes({"link.interaction.spanId":v.spanId,"link.interaction.traceId":v.traceId})}else g=l(h,p);return g&&(c.set(g,{startTime:f,url:h}),on(g,n,f)),g};let d=this._addHeaders.bind(this);this._addHeaders=(h,p)=>{try{h.headers&&Array.isArray(h.headers)&&(h.headers=new Headers(h.headers))}catch(f){k.s.error("Error fixing headers",f)}return d(h,p)}}}},{confKey:"frustrationSignals",disable:!1,Instrument:class extends mt{disable(){var r,t,e,n;(r=this.deadClickDetector)===null||r===void 0||r.disable(),this.deadClickDetector=void 0,(t=this.rageClickDetector)===null||t===void 0||t.disable(),this.rageClickDetector=void 0,(e=this.thrashedCursorDetector)===null||e===void 0||e.disable(),this.thrashedCursorDetector=void 0,(n=this.errorClickDetector)===null||n===void 0||n.disable(),this.errorClickDetector=void 0}enable(){var r,t,e,n;this.deadClickDetector||(this.deadClickDetector=qi.create(this.tracer,this.otelConfig)),(r=this.deadClickDetector)===null||r===void 0||r.enable(),this.rageClickDetector||(this.rageClickDetector=to.create(this.tracer,this.otelConfig)),(t=this.rageClickDetector)===null||t===void 0||t.enable(),this.thrashedCursorDetector||(this.thrashedCursorDetector=no.create(this.tracer,this.otelConfig)),(e=this.thrashedCursorDetector)===null||e===void 0||e.enable(),this.errorClickDetector||(this.errorClickDetector=zi.create(this.tracer,this.otelConfig)),(n=this.errorClickDetector)===null||n===void 0||n.enable()}init(){}constructor(r={},t,e){super("splunk-frustration-signals",ot,r),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"deadClickDetector",void 0),S(this,"errorClickDetector",void 0),S(this,"rageClickDetector",void 0),S(this,"thrashedCursorDetector",void 0),this.otelConfig=t,this.sessionManager=e}}},{confKey:"webvitals",disable:!1,Instrument:class extends mt{disable(){this.isRecording=!1}enable(){this.isRecording=!0,this.reportedMetricKeys.clear(),this.attributionContext=void 0,this.areCallbackAttached||(this.areCallbackAttached=!0,this._config.cls!==!1&&((r,t={})=>{let e=Pn(t=Object.assign({},t),Yr),n=new WeakMap;e.t=i=>{if(i?.sources?.length){let o=Ks(i.sources),s=o?.node;if(s){let a=t.generateTarget?.(s)??so(s);n.set(o,a)}}},((i,o={})=>{let s=Zr();$s(uo(()=>{let a,u=zt("CLS",0),c=Pn(o,Yr),l=h=>{for(let p of h)c.u(p);c.o>u.value&&(u.value=c.o,u.entries=c.i,a())},d=Dn("layout-shift",l);d&&(a=qt(i,u,Ws,o.reportAllChanges),s.onHidden(()=>{l(d.takeRecords()),a(!0)}),Nn(()=>{c.o=0,u=zt("CLS",0),a=qt(i,u,Ws,o.reportAllChanges),ao(a)}),setTimeout(a))}))})(i=>{r((o=>{let s={};
260if(o.entries.length){let a=o.entries.reduce((u,c)=>u.value>c.value?u:c);if(a?.sources?.length){let u=Ks(a.sources);u&&(s={largestShiftTarget:n.get(u),largestShiftTime:a.startTime,largestShiftValue:a.value,largestShiftSource:u,largestShiftEntry:a,loadState:Ir(a.startTime)})}}return Object.assign(o,{attribution:s})})(i))},t)})(r=>{this.reportMetric({metric:r,name:"cls"})},this.getAttributionOptions(this._config.cls)),this._config.lcp!==!1&&((r,t={})=>{let e=Pn(t=Object.assign({},t),Qr),n=new WeakMap;e.m=i=>{let o=i.element;if(o){let s=t.generateTarget?.(o)??so(o);n.set(i,s)}else i.id&&n.set(i,`#${i.id}`)},((i,o={})=>{ii(()=>{let s=Zr(),a,u=zt("LCP"),c=Pn(o,Qr),l=h=>{o.reportAllChanges||(h=h.slice(-1));for(let p of h)c.u(p),p.startTime<s.firstHiddenTime&&(u.value=Math.max(p.startTime-or(),0),u.entries=[p],a())},d=Dn("largest-contentful-paint",l);if(d){a=qt(i,u,Qs,o.reportAllChanges);let h=uo(()=>{l(d.takeRecords()),d.disconnect(),a(!0)}),p=f=>{f.isTrusted&&(ho(h),removeEventListener(f.type,p,{capture:!0}))};for(let f of["keydown","click","visibilitychange"])addEventListener(f,p,{capture:!0});Nn(f=>{u=zt("LCP"),a=qt(i,u,Qs,o.reportAllChanges),ao(()=>{u.value=performance.now()-f.timeStamp,a(!0)})})}})})(i=>{r((o=>{let s={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:o.value};
260if(o.entries.length){let a=o.entries.at(-1),u=a.url&&performance.getEntriesByType("resource").find(l=>l.name===a.url);s.target=n.get(a),s.lcpEntry=a,a.url&&(s.url=a.url),u&&(s.lcpResourceEntry=u);let c=Mn();if(c){let l=c.activationStart||0,d=Math.max(0,c.responseStart-l),h=Math.max(d,u?(u.requestStart||u.startTime)-l:0),p=Math.min(o.value,Math.max(h,u?u.responseEnd-l:0));s=He(ce({},s),{timeToFirstByte:d,resourceLoadDelay:h-d,resourceLoadDuration:p-h,elementRenderDelay:o.value-p,navigationEntry:c})}}return Object.assign(o,{attribution:s})})(i))},t)})(r=>{this.reportMetric({metric:r,name:"lcp"})},this.getAttributionOptions(this._config.lcp)),this._config.inp!==!1&&Jf(r=>{this.reportMetric({metric:r,name:"inp"})},this.getINPOptions()),this._config._experimental_fcp&&((r,t={})=>{$s(e=>{r((n=>{let i={timeToFirstByte:0,firstByteToFCP:n.value,loadState:Ir(Eu())};if(n.entries.length){let o=Mn(),s=n.entries.at(-1);if(o){let a=o.activationStart||0,u=Math.max(0,o.responseStart-a);i={timeToFirstByte:u,firstByteToFCP:n.value-u,loadState:Ir(n.entries[0].startTime),navigationEntry:o,fcpEntry:s}}}return Object.assign(n,{attribution:i})})(e))},t)})(r=>{this.reportMetric({metric:r,name:"fcp"})},this.getAttributionOptions(this._config._experimental_fcp)),this._config._experimental_ttfb&&((r,t={})=>{((e,n={})=>{let i=zt("TTFB"),o=qt(e,i,ea,n.reportAllChanges);po(()=>{let s=Mn();s&&(i.value=Math.max(s.responseStart-or(),0),i.entries=[s],o(!0),Nn(()=>{i=zt("TTFB",0),o=qt(e,i,ea,n.reportAllChanges),o(!0)}))})})(e=>{r((n=>{let i={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(n.entries.length){let o=n.entries[0],s=o.activationStart||0,a=Math.max((o.workerStart||o.fetchStart)-s,0),u=Math.max(o.domainLookupStart-s,0),c=Math.max(o.connectStart-s,0),l=Math.max(o.connectEnd-s,0);i={waitingDuration:a,cacheDuration:u-a,dnsDuration:c-u,connectionDuration:l-c,requestDuration:n.value-l,navigationEntry:o}}return Object.assign(n,{attribution:i})})(e))},t)})(r=>{this.reportMetric({metric:r,name:"ttfb"})},this.getAttributionOptions(this._config._experimental_ttfb)))}init(){}getAttributionContext(){if(!this.attributionContext){let r=ei(this._config._experimental_attribution);this.attributionContext={getLCPUrl:t=>tg(t,r),getTarget:t=>ag(t,r)}}return this.attributionContext}getAttributionOptions(r){let t=typeof r=="object"?ce({},r):{};if(!ta(this._config._experimental_attribution))return t;let{target:e}=ei(this._config._experimental_attribution);return e==="safe"&&(t.generateTarget=og),t}getINPOptions(){var r;return He(ce({},this.getAttributionOptions(this._config.inp)),{includeProcessedEventEntries:typeof this._config.inp=="object"&&(r=this._config.inp.includeProcessedEventEntries)!==null&&r!==void 0&&r})}reportMetric(r){return ut(this,null,function*(){if(!this.isRecording)return;let{metric:t,name:e}=r,n=t.value;if(!ur(n)||n<0)return;let i=(function(l,d){return[l,d.id,d.value,d.delta,d.navigationType].join("|")})(e,t);if(this.reportedMetricKeys.has(i))return;this.reportedMetricKeys.add(i);let o=Date.now(),s,a=o,u=this.shouldAlignWithDocumentLoad()?yield this.docLoadSpanPromise:void 0;if(u){var c;let l=(0,Ne.mw)(u.startTime,(0,Ne.lg)(1)),d=l;a=d;let h=(c=this.sessionManager)===null||c===void 0?void 0:c.getSessionMetadata();h&&h.sessionStart-(0,Ne.JU)(l)>6e4&&(d=h.sessionStart,a=h.sessionStart),s=this.tracer.startSpan("webvitals",{startTime:d});let p=u.attributes["location.href"];dn(p)&&Ge(s,"location.href",p)}else s=this.tracer.startSpan("webvitals",{startTime:o});Oe(s,e,n),ta(this._config._experimental_attribution)&&(Ge(s,"webvitals.metric_id",t.id),Oe(s,"webvitals.delta",t.delta),Ge(s,"webvitals.navigation_type",t.navigationType),this.setAttributionAttributes(s,r)),s.end(a)})}setAttributionAttributes(r,t){let e=this.getAttributionContext();switch(t.name){case"cls":return void(function(n,i,o){var s,a;let{attribution:u}=i;Ge(n,"cls.largest_shift_target",o.getTarget(u.largestShiftTarget)),Oe(n,"cls.largest_shift_time",u.largestShiftTime),Oe(n,"cls.largest_shift_value",u.largestShiftValue),Ge(n,"cls.load_state",u.loadState),na(n,"cls.largest_shift_source.previous_rect",(s=u.largestShiftSource)===null||s===void 0?void 0:s.previousRect),na(n,"cls.largest_shift_source.current_rect",(a=u.largestShiftSource)===null||a===void 0?void 0:a.currentRect)})(r,t.metric,e);case"fcp":return void(function(n,i){let{attribution:o}=i;Oe(n,"fcp.time_to_first_byte",o.timeToFirstByte),Oe(n,"fcp.first_byte_to_fcp",o.firstByteToFCP),Ge(n,"fcp.load_state",o.loadState)})(r,t.metric);case"inp":return void eg(r,t.metric,e);case"lcp":return void ng(r,t.metric,e);case"ttfb":return void(function(n,i){let{attribution:o}=i;Oe(n,"ttfb.waiting_duration",o.waitingDuration),Oe(n,"ttfb.cache_duration",o.cacheDuration),Oe(n,"ttfb.dns_duration",o.dnsDuration),Oe(n,"ttfb.connection_duration",o.connectionDuration),Oe(n,"ttfb.request_duration",o.requestDuration)})(r,t.metric)}}shouldAlignWithDocumentLoad(){var r;return(r=this._config.alignWebVitalsSpansWithDocumentLoad)===null||r===void 0||r}constructor(r={},t,e){var n,i;super("splunk-webvitals",ot,He(ce({},r),{enabled:!1})),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"areCallbackAttached",void 0),S(this,"attributionContext",void 0),S(this,"docLoadSpanPromise",void 0),S(this,"docLoadSpanResolve",void 0),S(this,"isRecording",void 0),S(this,"reportedMetricKeys",void 0),this.otelConfig=t,this.sessionManager=e,this.areCallbackAttached=!1,this.isRecording=!1,this.reportedMetricKeys=new Set,this.docLoadSpanPromise=new Promise(o=>{this.docLoadSpanResolve=o}),(i=this.otelConfig.spanEmitter)===null||i===void 0||i.addEventListener("document-load:start",o=>{var s;o.name==="documentLoad"&&((s=this.docLoadSpanResolve)===null||s===void 0||s.call(this,o),this.docLoadSpanResolve=void 0)}),this._config.enabled=(n=r.enabled)===null||n===void 0||n,this._config.enabled&&this.enable()}}},{confKey:"interactions",disable:!1,Instrument:class extends oo{_patchHistoryMethod(){let r=this;return t=>function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];let o=location.href,s=t.apply(this,n),a=location.href;return o!==a&&r._emitRouteChangeSpan(o,a),s}}disable(){super.disable(),this.__hashChangeHandler&&window.removeEventListener("hashchange",this.__hashChangeHandler)}enable(){this.__hashChangeHandler=r=>{let t=r;this._emitRouteChangeSpan(t.oldURL,t.newURL,r.timeStamp)},window.addEventListener("hashchange",this.__hashChangeHandler),super.enable()}getZoneWithPrototype(){}setTracerProvider(r){super.setTracerProvider(r),this._routingTracer=r.getTracer(Hs,"1")}_emitRouteChangeSpan(e,n){return ut(this,arguments,function*(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:performance.now(),o=this.getConfig();if((0,gn.K)(t,o.ignoreUrls))return;let s=Date.now(),a=this._routingTracer.startSpan(kr,{attributes:{[Hr]:kr},startTime:s});if(a.setAttribute("component",this.moduleName),a.setAttribute("location.href",t),a.setAttribute("prev.href",r),this.spaMetricsManager){let u=yield this.spaMetricsManager.waitForPageLoad({operation:kr,span:a,startTime:i});k.s.debug("Sending routeChange span with PCT result",u),a.end(s+u.pct),k.s.debug("Route change span ended",{pct:u.pct,span:a})}else a.end(s)})}constructor(r={},t,e,n){if(!r.eventNames){let s=Object.assign({},qo,r.events),a=Object.entries(s).filter(u=>{let[,c]=u;return c}).map(u=>{let[c]=u;return c});r.eventNames=a}super(r,t),S(this,"sessionManager",void 0),S(this,"__hashChangeHandler",void 0),S(this,"_routingTracer",void 0),S(this,"spaMetricsManager",void 0),this.sessionManager=e,this.spaMetricsManager=n,this._routingTracer=qe.u.getTracer(Hs,"1");let i=this._createSpan.bind(this);this._createSpan=(s,a,u)=>(s===document&&(s=document.documentElement),i(s,a,u));let o=this._patchAddEventListener.bind(this);this._patchAddEventListener=()=>{let s=o();return a=>{let u=s(a);return function(c,l,d){return(function(h){return h&&(typeof h=="function"||typeof h=="object"&&typeof h.handleEvent=="function")})(l)?(d===null&&(d=void 0),u.call(this,c,l,d)):a.call(this,c,l,d)}}}}}},{confKey:"postload",disable:!1,Instrument:Kr},{confKey:"websocket",disable:!0,Instrument:class extends mt{disable(){je.unwrap(window,"WebSocket")}enable(){let r=this;je.wrap(window,"WebSocket",function(){class t extends WebSocket{constructor(n,i){let o=typeof n=="string"?n:n.toString();if((0,gn.K)(o,r._config.ignoreUrls))return void super(n,i);let s=r.tracer.startSpan("connect",{attributes:{component:"websocket"},kind:Zt.v.CLIENT});n&&s.setAttribute("http.url",o),i&&(typeof i=="string"?s.setAttribute("protocols",i):s.setAttribute("protocols",JSON.stringify(i)));try{super(n,i)}catch(a){throw ls(a)&&r.endSpanExceptionally(s,a),a}this.addEventListener("open",function(){s.end()}
260),this.addEventListener("error",function(a){if(s.isRecording()){let u="Could not connect.";"error"in a&&typeof a.error=="string"&&a.error?u=a.error:"message"in a&&typeof a.message=="string"&&a.message&&(u=a.message),r.endSpanExceptionally(s,new Error(u))}else r.startSpan(this,"error",Zt.v.CLIENT).end()}),r.patchSend(this),r.patchEventListener(this)}}return t})}init(){}addPatchedListener(r,t,e){let n=this.listener2ws2patched.get(t);return n||(n=new Map,this.listener2ws2patched.set(t,n)),!n.has(r)&&(n.set(r,e),!0)}endSpanExceptionally(r,t){var e;r.setAttribute("error",!0),r.setAttribute("error.message",t.message),r.setAttribute("error.object",t.name||((e=t.constructor)===null||e===void 0?void 0:e.name)||"Error"),r.end()}patchEventListener(r){let t=this,e=r.addEventListener.bind(r);r.addEventListener=function(i,o,s){if(i!=="message")return void e(i,o,s);let a=typeof s=="boolean"||s==null?void 0:s.once,u=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];let h=this,p=l;a&&t.removePatchedListener(r,o);let f=t.startSpan(r,"onmessage",Zt.v.CONSUMER);if(p&&p[0]&&"data"in p[0]){let g=p[0].data;if(qs(g)){let m=zs(g);m!==void 0&&f.setAttribute("http.response_content_length",m)}}me._.with(qe.u.setSpan(me._.active(),f),()=>{let g=typeof o=="function"?o.apply(h,p):o.handleEvent(l[0]);return f.end(),g})};t.addPatchedListener(r,o,u)&&e.apply(r,[i,u,s])};let n=r.removeEventListener;r.removeEventListener=function(i,o,s){if(i!=="message")return n.call(r,i,o,s);let a=t.removePatchedListener(r,o);return a?n.call(r,i,a,s):n.call(r,i,o,s)}}patchSend(r){let t=this,e=r.send;r.send=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];let s=t.startSpan(r,"send",Zt.v.PRODUCER);if(i.length>0&&qs(i[0])){let u=zs(i[0]);u&&s.setAttribute("http.request_content_length",u)}let a;try{a=e.apply(r,i)}catch(u){throw ls(u)&&t.endSpanExceptionally(s,u),u}return a===!1&&t.endSpanExceptionally(s,new Error("Failed to send frame.")),s.end(),a}}removePatchedListener(r,t){let e=this.listener2ws2patched.get(t);if(!e)return;let n=e.get(r);return n&&(e.delete(r),e.size===0&&this.listener2ws2patched.delete(r)),n}startSpan(r,t,e){let n=this.tracer.startSpan(t,{kind:e});return n.setAttribute("component","websocket"),n.setAttribute("protocol",r.protocol),n.setAttribute("http.url",r.url),n}constructor(r,t,e){super("splunk-websocket",ot,r),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"listener2ws2patched",void 0),this.otelConfig=t,this.sessionManager=e,this.listener2ws2patched=new WeakMap,this._config=r}}},{confKey:"loaf",disable:!0,Instrument:class extends mt{disable(){var r;(r=this.loafObserver)===null||r===void 0||r.disconnect(),this.loafObserver=void 0}enable(){if(Ns()){this.loafObserver=new PerformanceObserver(r=>{r.getEntries().forEach(t=>this.createSpanFromEntry(t))});try{this.loafObserver.observe({buffered:!0,type:ro})}catch(r){k.s.warn("[Splunk]: LoAF instrumentation failed to observe long-animation-frame entries.",{error:r}),this.loafObserver.disconnect(),this.loafObserver=void 0}}}init(){}createSpanFromEntry(r){if(!this.spanRateLimiter.shouldEmit(r))return;let t=this.tracer.startSpan(ro,{startTime:r.startTime});(function(e,n){e.setAttribute("component",Ms),Ge(e,"loaf.name",n.name),Ge(e,"loaf.entry_type",n.entryType),yt(e,"loaf.duration",n.duration),yt(e,"loaf.blocking_duration",n.blockingDuration),yt(e,"loaf.paint_time",n.paintTime),yt(e,"loaf.presentation_time",n.presentationTime),yt(e,"loaf.render_start",n.renderStart),yt(e,"loaf.style_and_layout_start",n.styleAndLayoutStart),yt(e,"loaf.first_ui_event_timestamp",n.firstUIEventTimestamp);let i=Array.isArray(n.scripts)?n.scripts:[];yt(e,"loaf.script_count",i.length),(function(o){return o.map((s,a)=>({index:a,script:s})).toSorted((s,a)=>a.script.duration-s.script.duration||s.index-a.index).slice(0,3).map(s=>{let{script:a}=s;return{duration:a.duration,executionStart:a.executionStart,forcedStyleAndLayoutDuration:a.forcedStyleAndLayoutDuration,invoker:a.invoker,invokerType:a.invokerType,pauseDuration:a.pauseDuration,sourceCharPosition:a.sourceCharPosition,sourceFunctionName:a.sourceFunctionName,sourceURL:a.sourceURL,startTime:a.startTime,windowAttribution:a.windowAttribution}})}
260)(i).forEach((o,s)=>{let a="loaf.script[".concat(s,"]");yt(e,"".concat(a,".duration"),o.duration),yt(e,"".concat(a,".execution_start"),o.executionStart),Ge(e,"".concat(a,".invoker"),o.invoker),Ge(e,"".concat(a,".invoker_type"),o.invokerType),yt(e,"".concat(a,".pause_duration"),o.pauseDuration),yt(e,"".concat(a,".source_char_position"),o.sourceCharPosition),Ge(e,"".concat(a,".source_url"),o.sourceURL),Ge(e,"".concat(a,".source_function_name"),o.sourceFunctionName),yt(e,"".concat(a,".forced_style_and_layout_duration"),o.forcedStyleAndLayoutDuration),yt(e,"".concat(a,".start_time"),o.startTime),Ge(e,"".concat(a,".window_attribution"),o.windowAttribution)})})(t,r),on(t,this.spaMetricsManager,r.startTime),t.end(r.startTime+r.duration)}constructor(r={},t,e,n){super(Ms,ot,Object.assign({},r)),S(this,"sessionManager",void 0),S(this,"spaMetricsManager",void 0),S(this,"loafObserver",void 0),S(this,"spanRateLimiter",void 0),this.sessionManager=e,this.spaMetricsManager=n,this.spanRateLimiter=new io}}},{confKey:"longtask",disable:!1,Instrument:class extends mt{disable(){var r;this.isSupported()&&((r=this._longtaskObserver)===null||r===void 0||r.disconnect())}enable(){this.isSupported()&&(this.shouldSuppressForLoaf()||(this._longtaskObserver=new PerformanceObserver(r=>{r.getEntries().forEach(t=>this._createSpanFromEntry(t))}),this._longtaskObserver.observe({buffered:!0,type:bi})))}init(){}_createSpanFromEntry(r){let t=this.tracer.startSpan(bi,{startTime:r.startTime});t.setAttribute("component",Ds),on(t,this.spaMetricsManager,r.startTime),t.setAttribute("longtask.name",r.name),t.setAttribute("longtask.entry_type",r.entryType),t.setAttribute("longtask.duration",r.duration);let e=r.attribution;Array.isArray(e)&&e.forEach((n,i)=>{let o=n>1?"longtask.attribution[".concat(i,"]"):"longtask.attribution";t.setAttribute("".concat(o,".name"),n.name),t.setAttribute("".concat(o,".entry_type"),n.entryType),t.setAttribute("".concat(o,".start_time"),n.startTime),t.setAttribute("".concat(o,".duration"),n.duration),t.setAttribute("".concat(o,".container_type"),n.containerType),t.setAttribute("".concat(o,".container_src"),n.containerSrc),t.setAttribute("".concat(o,".container_id"),n.containerId),t.setAttribute("".concat(o,".container_name"),n.containerName)}),t.end(r.startTime+r.duration)}isSupported(){var r,t;return((r=(t=window.PerformanceObserver)===null||t===void 0?void 0:t.supportedEntryTypes)!==null&&r!==void 0?r:[]).includes(bi)}shouldSuppressForLoaf(){var r,t;return(t=(r=this.initOptions.instrumentations)===null||r===void 0?void 0:r.loaf)!==void 0&&t!==!1&&(typeof t!="object"||t.enabled!==!1)&&Ns()}constructor(r={},t,e,n){super(Ds,ot,Object.assign({},r)),S(this,"sessionManager",void 0),S(this,"spaMetricsManager",void 0),S(this,"_longtaskObserver",void 0),S(this,"initOptions",void 0),this.sessionManager=e,this.spaMetricsManager=n,this.initOptions=t}}},{confKey:Ho,disable:!1,Instrument:qr},{confKey:"visibility",disable:!0,Instrument:class extends mt{disable(){window.removeEventListener("beforeunload",this.unloadListener),window.removeEventListener("visibilitychange",this.visibilityListener)}enable(){document.hidden&&this._createSpan(document.hidden),this.unloadListener=()=>{this.unloading=!0},this.visibilityListener=()=>{this.unloading||this._createSpan(document.hidden)},window.addEventListener("beforeunload",this.unloadListener),window.addEventListener("visibilitychange",this.visibilityListener)}init(){}_createSpan(r){let t=Date.now(),e=this.tracer.startSpan("visibility",{startTime:t});e.setAttribute("hidden",r),e.end(t)}constructor(r={},t,e){super("splunk-visibility",ot,Object.assign({},r)),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"unloadListener",void 0),S(this,"unloading",void 0),S(this,"visibilityListener",void 0),this.otelConfig=t,this.sessionManager=e,this.unloading=!1}}},{confKey:"connectivity",disable:!0,Instrument:class extends mt{disable(){window.removeEventListener("offline",this.offlineListener),window.removeEventListener("online",this.onlineListener)}enable(){this.offlineListener=()=>{this.offlineStart=Date.now()},this.onlineListener=()=>{this.offlineStart&&(this._createSpan(!1,this.offlineStart),this._createSpan(!0,Date.now()))},window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}init(){}_createSpan(r,t){let e=this.tracer.startSpan("connectivity",{startTime:t});e.setAttribute("online",r),e.end(t)}constructor(r={},t,e){super("splunk-connectivity",ot,Object.assign({},r)),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"offlineListener",void 0),S(this,"offlineStart",void 0),S(this,"onlineListener",void 0),this.otelConfig=t,this.sessionManager=e,this.offlineStart=navigator.onLine?null:Date.now()}}},{confKey:"socketio",disable:!0,Instrument:class extends mt{disable(){this._onDisable&&(this._onDisable(),this._onDisable=void 0)}enable(){let r=this.getConfig();r.target&&(typeof r.target=="string"?this._onDisable=(function(t,e){let n=window;if(n[t])return e(n[t]),()=>{};let i=n[t],o=!1;return Object.defineProperty(window,t,{configurable:!0,enumerable:!1,get:()=>i,set(s){delete n[t],o=!0,n[t]=s,e(s)}}),()=>{o||n[t]!==i||(delete window[t],i!==void 0&&(n[t]=i))}})(r.target,t=>this.patchSocketIo(t)):this.patchSocketIo(r.target))}getConfig(){return this._config}init(){}patchSocketIo(r){if(!(function(e){return typeof e=="function"&&typeof e.Socket=="function"})(r))return void this._diag.debug("Doesn't seem like socket.io-client",r);let t=this;this._wrap(r.Socket.prototype,"emit",e=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=t.tracer.startSpan("".concat(n," send"),{attributes:{[wt.MESSAGING_DESTINATION]:this.nsp,[wt.MESSAGING_DESTINATION_KIND]:bs.TOPIC,[wt.MESSAGING_SYSTEM]:"socket.io",[js]:n,[Bs]:this.nsp},kind:Zt.v.PRODUCER});try{return me._.with(qe.u.setSpan(me._.active(),a),()=>Reflect.apply(e,this,[n,...o]))}catch(u){let c;throw u instanceof Error&&(a.recordException(u),c=u.message),a.setStatus({code:yu.s.ERROR,message:c}),u}finally{a.end()}}),this._wrap(r.Socket.prototype,"on",e=>
260function(n,i){if(Fs.has(n)||typeof i!="function")return e.call(this,n,i);let o=t.listeners.get(i);return o||(o=function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];let c=t.tracer.startSpan("".concat(n," ").concat(Es.RECEIVE),{attributes:{[wt.MESSAGING_DESTINATION]:this.nsp,[wt.MESSAGING_DESTINATION_KIND]:bs.TOPIC,[wt.MESSAGING_OPERATION]:Es.RECEIVE,[wt.MESSAGING_SYSTEM]:"socket.io",[js]:n,[Bs]:this.nsp},kind:Zt.v.CONSUMER});try{i.apply(this,a)}catch(l){throw l instanceof Error&&c.recordException(l),l}finally{c.end()}},t.listeners.set(i,o)),e.call(this,n,o)}),r.Socket.prototype.addEventListener=r.Socket.prototype.on,this._wrap(r.Socket.prototype,"off",e=>function(n,i){return!n||Fs.has(n)||typeof i!="function"?e.call(this,n,i):t.listeners.has(i)?e.call(this,n,t.listeners.get(i)):e.call(this,n,i)}),r.Socket.prototype.removeListener=r.Socket.prototype.off,r.Socket.prototype.removeEventListener=r.Socket.prototype.off,r.Socket.prototype.removeAllListeners=r.Socket.prototype.off,this._onDisable=()=>{this._unwrap(r.Socket.prototype,"emit"),this._unwrap(r.Socket.prototype,"on"),r.Socket.prototype.addEventListener=r.Socket.prototype.on,this._unwrap(r.Socket.prototype,"off"),r.Socket.prototype.removeListener=r.Socket.prototype.off,r.Socket.prototype.removeEventListener=r.Socket.prototype.off,r.Socket.prototype.removeAllListeners=r.Socket.prototype.off}}constructor(r={},t,e){super("splunk-socket.io-client",ot,Object.assign({target:"io"},r)),S(this,"otelConfig",void 0),S(this,"sessionManager",void 0),S(this,"_onDisable",void 0),S(this,"listeners",void 0),this.otelConfig=t,this.sessionManager=e,this.listeners=new WeakMap}}}],Qg=Fu.map(r=>r.confKey).reduce((r,t)=>(r[t]=!1,r),{webvitals:!1}),Tr,Ci,Sr,Wn,wr,Lt,xi,Nt=!1,Oa=(()=>{let r=!1;try{if(document.currentScript&&Ni(document.currentScript)){let t=document.currentScript.src;r=/\/o11y-gdi-rum\/latest\//i.test(t)}}catch{}return r})(),Jg=(()=>{let r=!1;try{if(document.currentScript&&Ni(document.currentScript)){let t=document.currentScript.src;r=/\/o11y-gdi-rum\/next\//i.test(t)}}catch{}return r})()||(()=>{let r=!1;try{if(document.currentScript&&Ni(document.currentScript)){let t=document.currentScript.src;r=hf.test(t)}}catch{}return r})(),Vu={_internalInit:function(r){Vu.init(ce(ce({},Li),r))},_processedOptions:null,addEventListener(r,t){Lt?.addEventListener(r,t)},AlwaysOffSampler:Bn,AlwaysOnSampler:en,DEFAULT_AUTO_INSTRUMENTED_EVENT_NAMES:Kf,DEFAULT_AUTO_INSTRUMENTED_EVENTS:qo,deinit(){if(Nt||arguments.length>0&&arguments[0]!==void 0&&arguments[0])try{var r,t,e,n;Tr?.(),Tr=void 0,wr?.stop(),wr=void 0,Ci?.(),Ci=void 0,xi?.(),(r=this.sessionManager)===null||r===void 0||r.stop(),(t=this.provider)===null||t===void 0||t.shutdown(),delete this.provider,(e=this._spanEmitter)===null||e===void 0||e.shutdown(),delete this._spanEmitter,Lt=void 0,(function(){let i=Pr[Ar];i?(i[tn]&&i[tn]!==ot&&k.s.warn("SplunkRum version in OTel API ref (".concat(i[tn],") didn't match our version (").concat(ot,").")),delete i[_n],delete i[tn]):k.s.warn("OTel API ref was missing while trying to unregister ".concat(_n," or ").concat(tn))})(),(n=this.userManager)===null||n===void 0||n.forgetAnonymousId()}catch(i){k.s.warn("[Splunk]: SplunkRum.deinit() encountered an error during cleanup.",{error:i})}finally{Nt=!1,k.s.disable()}},getAnonymousId(){var r;return(r=this.userManager)===null||r===void 0?void 0:r.getAnonymousIdIfEnabled()},getGlobalAttributes(){var r;return((r=this.attributesProcessor)===null||r===void 0?void 0:r.getGlobalAttributes())||{}},getSessionId(){if(Nt)try{var r;return(r=this.sessionManager)===null||r===void 0?void 0:r.getSessionId()}catch(t){k.s.warn("[Splunk]: SplunkRum.getSessionId() encountered an error while trying to get session ID.",{error:t})}},getSessionMetadata(){if(!Nt||!this.sessionManager)return null;let r=this.sessionManager.getSessionMetadata();if(!r)return null;let t=ce({},r),e=this.getAnonymousId();return e&&(t.anonymousUserId=e),t},getSessionState(){if(Nt)try{var r;return(r=this.sessionManager)===null||r===void 0?void 0:r.getSessionState()}catch(t){k.s.warn("[Splunk]: SplunkRum.getSessionState() encountered an error while trying to get session state.",{error:t})}},init:function(r){var t,e;let n=(t=(e=r.user)===null||e===void 0?void 0:e.trackingMode)!==null&&t!==void 0?t:"anonymousTracking";var i,o,s;
260if(typeof window=="object")if("OTEL_TRACES_EXPORTER"in es.X||(es.X.OTEL_TRACES_EXPORTER="none"),Nt)k.s.warn("[Splunk]: SplunkRum.init() - already initialized.");else try{var a,u,c,l,d;if(k.s.setLogger(new qu.F,((a=r?.debug)!==null&&a!==void 0?a:$r.safelyGetValue("splunk_otel_web_debug_mode")==="true")?Ht.u.DEBUG:Ht.u.WARN),Oa){let{majorVersion:V}=(function(F){let B=F.split("-")[0],W=B.split(".");return{exactVersion:"v".concat(B),majorVersion:"v".concat(W[0]),minorVersion:"v".concat(W[0],".").concat(W[1])}})(ot);k.s.warn(`[Splunk]: The "latest" CDN tag is deprecated and will remain pinned to v2.5.x \u2014 it will not receive new features or major updates. Please migrate to a versioned URL on the new CDN domain:
261`+"  - Major version lock (recommended): ".concat("https://cdn.observability.splunkcloud.com/o11y-gdi-rum","/").concat(V,`/splunk-otel-web.js
262
263`)+`The CDN domain is also changing from cdn.signalfx.com to cdn.observability.splunkcloud.com. If your application uses a Content Security Policy (CSP), update your script-src directive to allow the new domain.
264
265See: https://quickdraw.splunk.com/redirect/?location=rum.browser.cdn&product=Observability&version=current`)}if(!(function(V){let U=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!Pr[Ar])return k.s.error("SplunkRum: Tried to access global before otel setup"),!1;let F=Pr[Ar];return F[tn]||(F[tn]=ot),F[tn]!==ot?(k.s.error("SplunkRum: Global: Multiple versions detected (".concat(ot," already registered)")),!1):!U&&F[_n]?(k.s.error("SplunkRum: Attempted duplicate registration of otel API ".concat(_n)),!1):(F[_n]=V,!0)})(this))return;if(typeof Symbol!="function")return void k.s.warn("[Splunk]: SplunkRum.init() - browser not supported, disabling instrumentation.");if(r.disableBots&&Cu(navigator.userAgent))return this.disabledByBotDetection=!0,void k.s.warn("[Splunk]: SplunkRum.init() - will not be initialized, bots are not allowed.");if(r.disableAutomationFrameworks&&navigator.webdriver)return this.disabledByAutomationFrameworkDetection=!0,void k.s.warn("[Splunk]: SplunkRum.init() - will not be initialized, automation frameworks are not allowed.");Lt=new Pi;try{Di(r)}catch(V){k.s.error('Could not update config to process "ignoreUrls"',V)}let p=Object.assign({},Li,r,{exporter:Object.assign({},Li.exporter,r.exporter)});if(((c=r.exporter)===null||c===void 0?void 0:c.otlp)===void 0&&r.beaconEndpoint===void 0&&(p.exporter.otlp=!0),r.beaconEndpoint!==void 0&&p.exporter.otlp!==!0&&k.s.warn('[Splunk]: SplunkRum.init() - Zipkin will be removed in the next major version in favor of OTLP. Set "exporter.otlp: true" and use an OTLP beacon endpoint or use "realm" option.'),!p.persistence||p.persistence&&(s=p.persistence,!["cookie","localStorage"].includes(s)))return void k.s.error('[Splunk]: SplunkRum.init() - Invalid persistence flag: The value for "persistence" must be either "cookie", "localStorage", or omitted entirely, but was: '.concat(p.persistence));if(this._processedOptions=p,Xg()){let V=()=>{try{Gg({getElementDataAttributes:U=>tu(U,Fo(p)),getElementText:U=>Vo(U,F=>!mn.shouldMaskTextNode(F,p.privacy)),getElementXPath:U=>Vn(U,!0)})}catch(U){k.s.error("[Splunk]: SplunkSessionRecorder.init() - Failed to initialize picker.",{error:U})}};return void(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",V,{once:!0}):V())}if(p.realm&&(p.beaconEndpoint?k.s.warn("[Splunk]: SplunkRum.init() - Realm value ignored (beaconEndpoint has been specified)"):p.beaconEndpoint=!((o=(i=p).exporter)===null||o===void 0)&&o.otlp?"https://rum-ingest.".concat(i.realm,".observability.splunkcloud.com/v1/rumotlp"):"https://rum-ingest.".concat(i.realm,".observability.splunkcloud.com/v1/rum")),!p.debug){if(!p.beaconEndpoint)return void k.s.error("[Splunk]: SplunkRum.init() - beaconEndpoint is required. SplunkRum will not be initialized.");if(!p.beaconEndpoint.startsWith("https")&&!p.allowInsecureBeacon)return void k.s.error("[Splunk]: SplunkRum.init() - beaconEndpoint not using https is unsafe, if you want to force it use allowInsecureBeacon option. SplunkRum will not be initialized.");p.rumAccessToken||k.s.warn("[Splunk]: SplunkRum.init() - rumAccessToken will be required in the future")}let f=cr(64),{applicationName:g,deploymentEnvironment:m,ignoreUrls:y,version:v}=p,b={enabled:!1,ignoreUrls:y},T=He(ce({},Or.q),{app:g,[rs.TELEMETRY_SDK_NAME]:"@splunk/otel-web",[rs.TELEMETRY_SDK_VERSION]:ot,"splunk.rumVersion":ot,"splunk.scriptInstance":f});sr.id&&(T["browser.instance.id"]=sr.id);let E=window.syntheticsRunId;E&&(T["Synthetics-RunId"]=E);let _=window.syntheticsTestId;_&&(T["Synthetics-TestId"]=_),Jg&&typeof __COMMIT_HASH__=="string"&&__COMMIT_HASH__&&(T["splunk.rumVersionFull"]=__COMMIT_HASH__);let O=new eo({domain:p.cookieDomain,persistence:p.persistence}),w;this.resource=new Ai(T),p.sessionMetadata&&vu(p.sessionMetadata)&&(w=p.sessionMetadata),this.sessionManager=new Xi(O,w,p.adjustSessionStartToTimeOrigin),this.userManager=new ir(n,O,w?.anonymousUserId),xi=this.sessionManager.subscribe(V=>{let{currentState:U,previousState:F}=V;U.isNew&&U.source!=="external"&&M.getTracer("splunk-sessions").startSpan("session.start",{startTime:U.startTime}).end(U.startTime),F?F.id!==U.id&&Lt?.emit("session-changed",{sessionId:U.id}):Lt?.emit("session-changed",{sessionId:U.id})});let R={includeDebugInfo:p._experimental_captureBrowserDebugAttributes},C=Bu(R),A=new Xr,D=p.spaMetrics===!1?void 0:new Ji(He(ce({beaconEndpoint:p.beaconEndpoint},p.spaMetrics===!0?{}:p.spaMetrics),{elementVisibilityObserver:A,emitNavigationAttributes:p.experimental}));wr=D,this.attributesProcessor=new vo(this.sessionManager,this.userManager,ce(ce(ce(ce(ce({},m?{"deployment.environment":m,environment:m}:{}),v?{"app.version":v}:{}
265),Oa?{"splunk.rum.is_latest_tag":!0}:{}),p.globalAttributes),C),p.discardDataAfterInactivity,p.adjustSessionStartToTimeOrigin,D),this._spanEmitter=new yo,p.spanEmitter=this._spanEmitter;let j=[this.attributesProcessor,this._spanEmitter];if(p.beaconEndpoint){let V=(function(F){let B=F.beaconEndpoint+(F.rumAccessToken?"?auth="+F.rumAccessToken:"");return F.exporter.factory({onAttributesSerializing:F.exporter.onAttributesSerializing,otlp:F.exporter.otlp,url:B})})(p),U=p.spanProcessor.factory(V,{maxExportBatchSize:p.bufferSize,scheduledDelayMillis:p.bufferTimeout});j.push(U),this._processor=U}p.debug&&j.push(new tc(new rc)),r.spanProcessors&&j.push(...r.spanProcessors);let M=new To(He(ce({},p.tracer),{resource:this.resource,sampler:new Eo({decider:(u=(l=p.tracer)===null||l===void 0?void 0:l.sampler)!==null&&u!==void 0?u:new en}),spanProcessors:j}));this.sessionManager.start();let G=Fu.map(V=>{let{confKey:U,disable:F,Instrument:B}=V,W=(function(J,se,Q){return J===!1?J:(J!==void 0||!Q)&&Object.assign({},se,J)})(p.instrumentations[U],b,F);if(W){let J=new B(W,p,this.sessionManager,D,A);return U===Ho&&J instanceof qr&&(Sr=J),U==="postload"&&J instanceof Kr&&(Wn=J),J}return null}).filter(V=>!!V);window.addEventListener("visibilitychange",()=>{var V;document.visibilityState==="hidden"&&((V=this._processor)===null||V===void 0||V.forceFlush())}),M.register({contextManager:new bo(He(ce({},p.context),{onBeforeContextEnd:()=>Wn?.onBeforeContextChange(),onBeforeContextStart:()=>Wn?.onBeforeContextChange()})),propagator:new Ra.n({propagators:[new Do.lm,new go]})}),Tr=(function(V){var U,F,B=V.tracerProvider||qe.u.getTracerProvider(),W=V.meterProvider||La.q.getMeterProvider(),J=V.loggerProvider||Ca.getLoggerProvider(),se=(F=(U=V.instrumentations)===null||U===void 0?void 0:U.flat())!==null&&F!==void 0?F:[];return(function(Q,ae,te,Y){for(var ne=0,ie=Q.length;ne<ie;ne++){var de=Q[ne];ae&&de.setTracerProvider(ae),te&&de.setMeterProvider(te),Y&&de.setLoggerProvider&&de.setLoggerProvider(Y),de.getConfig().enabled||de.enable()}})(se,B,W,J),function(){(function(Q){Q.forEach(function(ae){return ae.disable()})})(se)}})({instrumentations:G,tracerProvider:M}),D?.start(),(d=this._spanEmitter)===null||d===void 0||d.enable(),this.provider=M,Nt=!0,k.s.info("SplunkRum.init() complete"),Zg(R).then(V=>{this.setGlobalAttributes(V),k.s.debug("[Splunk]: Enhanced platform attributes updated")})}catch(h){k.s.warn("[Splunk]: SplunkRum.init() - Failed to initialize due to internal exception.",{error:h})}else console.warn("[Splunk]: SplunkRum.init() - Error: This library is intended to run in a browser environment. Please ensure the code is evaluated within a browser context.")},get inited(){return Nt},ParentBasedSampler:Rr,removeEventListener(r,t){try{Lt?.removeEventListener(r,t)}catch(e){k.s.warn("[Splunk]: SplunkRum.removeEventListener() encountered an error while trying to remove event listener.",{error:e})}},reportError(t){return ut(this,arguments,function*(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Nt)if(Sr)if(r)if(Sr.isValidErrorArg(r))try{let n=Ja(e);yield Sr.report("SplunkRum.reportError",r,n)}catch(n){k.s.warn("[Splunk]: SplunkRum.reportError() - Failed to report error due to internal exception.",{error:n})}else k.s.warn("[Splunk]: SplunkRum.reportError() - Invalid error argument type. Expected string, Error, ErrorEvent, or Event object. Error will not be reported.");else k.s.warn("[Splunk]: SplunkRum.reportError() - Called with empty or null error argument. Provide a valid error to report.");else k.s.warn("[Splunk]: SplunkRum.reportError() - Error instrumentation is disabled. Enable it in configuration to report errors.");else k.s.warn("[Splunk]: SplunkRum.reportError() - Splunk RUM agent is not initialized. Call SplunkRum.init() first. Error will not be reported.")})},SessionBasedSampler:mo,setGlobalAttributes(r){try{var t,e;(t=this.attributesProcessor)===null||t===void 0||t.setGlobalAttributes(r),Lt?.emit("global-attributes-changed",{attributes:((e=this.attributesProcessor)===null||e===void 0?void 0:e.getGlobalAttributes())||{}})}catch(n){k.s.warn("[Splunk]: SplunkRum.setGlobalAttributes() - Failed to set global attributes due to internal error. Check attribute format and values.",{error:n})}},setUserTrackingMode(r){Nt&&this.userManager?ir.isUserTrackingMode(r)?this.userManager.userTrackingMode=r:k.s.warn("[Splunk]: SplunkRum.setUserTrackingMode() - Invalid user tracking mode: ".concat(r,". Valid modes are 'noTracking' and 'anonymousTracking'. User tracking mode will not be set.")):k.s.warn("[Splunk]: SplunkRum.setUserTrackingMode() - Splunk RUM agent is not initialized. Call SplunkRum.init() first. User tracking mode will not be set.")},get userTrackingMode(){return Nt&&this.userManager?this.userManager.userTrackingMode:(k.s.warn("[Splunk]: SplunkRum.userTrackingMode - Splunk RUM agent is not initialized. Call SplunkRum.init() first."),"anonymousTracking")}},em=Vu;export{Qg as INSTRUMENTATIONS_ALL_DISABLED,mo as SessionBasedSampler,Vu as SplunkRum,To as SplunkWebTracerProvider,Ui as SplunkZipkinExporter,em as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.