/*! License information is available at valve.licenses.txt */ /*! 445c578 released at 2023/12/1 5:38:04 UTC */(()=>{var __webpack_modules__={3370:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DiagConsoleLogger:()=>T,DiagLogLevel:()=>f,INVALID_SPANID:()=>B,INVALID_SPAN_CONTEXT:()=>U,INVALID_TRACEID:()=>M,ProxyTracer:()=>ie,ProxyTracerProvider:()=>ae,ROOT_CONTEXT:()=>C,SamplingDecision:()=>ee,SpanKind:()=>te,SpanStatusCode:()=>re,TraceFlags:()=>O,baggageEntryMetadataFromString:()=>E,context:()=>me,createContextKey:()=>I,default:()=>Ee,defaultTextMapGetter:()=>w,defaultTextMapSetter:()=>A,diag:()=>_e,isSpanContextValid:()=>J,isValidSpanId:()=>Y,isValidTraceId:()=>W,propagation:()=>be,trace:()=>ye});var n="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},i="1.0.4",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var a=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],s=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var d=+n[1],l=+n[2],p=+n[3];return null!=n[4]||i!==d?c(e):0===i?a===l&&s<=p?u(e):c(e):a<=l?u(e):c(e)}}(i),s=i.split(".")[0],c=Symbol.for("opentelemetry.js.api."+s),u=n;function d(e,t,r,n){var o;void 0===n&&(n=!1);var a=u[c]=null!==(o=u[c])&&void 0!==o?o:{version:i};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(a.version!==i){s=new Error("@opentelemetry/api: All API registration versions must match");return r.error(s.stack||s.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+"1.0.4."),!0}function l(e){var t,r,n=null===(t=u[c])||void 0===t?void 0:t.version;if(n&&a(n))return null===(r=u[c])||void 0===r?void 0:r[e]}function p(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+"1.0.4.");var r=u[c];r&&delete r[e]}var f,g=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t=n?i.bind(t):function(){}}return ef.ALL&&(e=f.ALL),t=t||{},{error:r("error",f.ERROR),warn:r("warn",f.WARN),info:r("info",f.INFO),debug:r("debug",f.DEBUG),verbose:r("verbose",f.VERBOSE)}}(r,e);if(a){var c=null!==(i=(new Error).stack)&&void 0!==i?i:"";a.warn("Current logger will be overwritten from "+c),s.warn("Current logger will overwrite one already registered from "+c)}return d("diag",s,t,!0)},t.disable=function(){p("diag",t)},t.createComponentLogger=function(e){return new g(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),m=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){return[e[0],e[1]]}))},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t=[],r=0;r{"use strict";r.r(t),r.d(t,{AlwaysOffSampler:()=>Te,AlwaysOnSampler:()=>we,CompositePropagator:()=>ae,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>P,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>O,DEFAULT_ENVIRONMENT:()=>C,ExportResultCode:()=>V,ParentBasedSampler:()=>Ae,RPCType:()=>he,RandomIdGenerator:()=>U,SDK_INFO:()=>G,TRACE_PARENT_HEADER:()=>le,TRACE_STATE_HEADER:()=>pe,TraceIdRatioBasedSampler:()=>Ie,TraceState:()=>de,TracesSamplerValues:()=>b,VERSION:()=>Z,W3CBaggagePropagator:()=>g,W3CTraceContextPropagator:()=>ve,_globalThis:()=>j,baggageUtils:()=>n,deleteRPCMetadata:()=>be,getEnv:()=>B,getRPCMetadata:()=>_e,globalErrorHandler:()=>S,hexToBase64:()=>M,hrTime:()=>X,hrTimeDuration:()=>Q,hrTimeToMicroseconds:()=>ne,hrTimeToMilliseconds:()=>re,hrTimeToNanoseconds:()=>te,hrTimeToTimeStamp:()=>ee,isAttributeValue:()=>v,isTimeInput:()=>oe,isTimeInputHrTime:()=>ie,isTracingSuppressed:()=>c,isUrlIgnored:()=>Ke,isWrapped:()=>Ve,loggingErrorHandler:()=>y,merge:()=>Me,otperformance:()=>z,parseEnvironment:()=>x,parseTraceParent:()=>ge,sanitizeAttributes:()=>h,setGlobalErrorHandler:()=>E,setRPCMetadata:()=>ye,suppressTracing:()=>a,timeInputToHrTime:()=>$,unrefTimer:()=>K,unsuppressTracing:()=>s,urlMatches:()=>Ge});var n={};r.r(n),r.d(n,{getKeyPairs:()=>l,parseKeyPairsIntoRecord:()=>f,parsePairKeyValue:()=>p,serializeKeyPairs:()=>d});var i=r(3370),o=(0,i.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function a(e){return e.setValue(o,!0)}function s(e){return e.deleteValue(o)}function c(e){return!0===e.getValue(o)}var u="baggage";function d(e){return e.reduce((function(e,t){var r=e+(""!==e?",":"")+t;return r.length>8192?e:r}),"")}function l(e){return e.getAllEntries().map((function(e){var t=e[0],r=e[1];return encodeURIComponent(t)+"="+encodeURIComponent(r.value)}))}function p(e){var t=e.split(";");if(!(t.length<=0)){var r=t.shift();if(r){var n=r.split("=");if(2===n.length){var o,a=decodeURIComponent(n[0].trim()),s=decodeURIComponent(n[1].trim());return t.length>0&&(o=(0,i.baggageEntryMetadataFromString)(t.join(";"))),{key:a,value:s,metadata:o}}}}}function f(e){return"string"!=typeof e||0===e.length?{}:e.split(",").map((function(e){return p(e)})).filter((function(e){return void 0!==e&&e.value.length>0})).reduce((function(e,t){return e[t.key]=t.value,e}),{})}var g=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=i.propagation.getBaggage(e);if(n&&!c(e)){var o=d(l(n).filter((function(e){return e.length<=4096})).slice(0,180));o.length>0&&r.set(t,u,o)}},e.prototype.extract=function(e,t,r){var n=r.get(t,u);if(!n)return e;var o={};return 0===n.length?e:(n.split(",").forEach((function(e){var t=p(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),o[t.key]=r}})),0===Object.entries(o).length?e:i.propagation.setBaggage(e,i.propagation.createBaggage(o)))},e.prototype.fields=function(){return[u]},e}();function h(e){var t={};if(null==e||"object"!=typeof e)return t;for(var r=0,n=Object.entries(e);r-1}var A=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function I(e){return A.indexOf(e)>-1}var O=1/0,P=128,C={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_EXPORTER_JAEGER_AGENT_HOST:"",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_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:i.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:O,OTEL_ATTRIBUTE_COUNT_LIMIT:P,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:O,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:P,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:b.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};function R(e,t,r,n,i){if(void 0===n&&(n=-1/0),void 0===i&&(i=1/0),void 0!==r[e]){var o=Number(r[e]);isNaN(o)||(t[e]=oi?i:o)}}function D(e,t,r,n){void 0===n&&(n=",");var i=r[e];"string"==typeof i&&(t[e]=i.split(n).map((function(e){return e.trim()})))}var N={ALL:i.DiagLogLevel.ALL,VERBOSE:i.DiagLogLevel.VERBOSE,DEBUG:i.DiagLogLevel.DEBUG,INFO:i.DiagLogLevel.INFO,WARN:i.DiagLogLevel.WARN,ERROR:i.DiagLogLevel.ERROR,NONE:i.DiagLogLevel.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var i=N[n.toUpperCase()];null!=i&&(t[e]=i)}}function x(e){var t={};for(var r in C){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))R(n,t,e);else if(I(n))D(n,t,e);else{var i=e[n];null!=i&&(t[n]=String(i))}}return t}var j="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function B(){var e=x(j);return Object.assign({},C,e)}function M(e){for(var t=e.length,r="",n=0;n=58&&(L[t]+=39);return String.fromCharCode.apply(null,L.slice(0,2*e))}}var q,z=performance,Z="1.0.1",H=r(1871),G=((q={})[H.R9.TELEMETRY_SDK_NAME]="opentelemetry",q[H.R9.PROCESS_RUNTIME_NAME]="browser",q[H.R9.TELEMETRY_SDK_LANGUAGE]=H.Te.WEBJS,q[H.R9.TELEMETRY_SDK_VERSION]=Z,q);function K(e){}var V,W=Math.pow(10,9);function Y(e){var t=e/1e3,r=Math.trunc(t);return[r,Number((t-r).toFixed(9))*W]}function J(){var e=z.timeOrigin;if("number"!=typeof e){var t=z;e=t.timing&&t.timing.fetchStart}return e}function X(e){var t=Y(J()),r=Y("number"==typeof e?e:z.now()),n=t[0]+r[0],i=t[1]+r[1];return i>W&&(i-=W,n+=1),[n,i]}function $(e){if(ie(e))return e;if("number"==typeof e)return e512||(this._internalState=e.split(",").reverse().reduce((function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var i=r.slice(0,n),o=r.slice(n+1,t.length);(function(e){return se.test(e)})(i)&&function(e){return ce.test(e)&&!ue.test(e)}(o)&&e.set(i,o)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),le="traceparent",pe="tracestate",fe=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function ge(e){var t=fe.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}var he,ve=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=i.trace.getSpanContext(e);if(n&&!c(e)&&(0,i.isSpanContextValid)(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||i.TraceFlags.NONE).toString(16);r.set(t,le,o),n.traceState&&r.set(t,pe,n.traceState.serialize())}},e.prototype.extract=function(e,t,r){var n=r.get(t,le);if(!n)return e;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return e;var a=ge(o);if(!a)return e;a.isRemote=!0;var s=r.get(t,pe);if(s){var c=Array.isArray(s)?s.join(","):s;a.traceState=new de("string"==typeof c?c:void 0)}return i.trace.setSpanContext(e,a)},e.prototype.fields=function(){return[le,pe]},e}(),me=(0,i.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");function ye(e,t){return e.setValue(me,t)}function be(e){return e.deleteValue(me)}function _e(e){return e.getValue(me)}!function(e){e.HTTP="http"}(he||(he={}));var Ee,Se,Te=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:i.SamplingDecision.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),we=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:i.SamplingDecision.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),Ae=function(){function e(e){var t,r,n,i;this._root=e.root,this._root||(S(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new we),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new we,this._remoteParentNotSampled=null!==(r=e.remoteParentNotSampled)&&void 0!==r?r:new Te,this._localParentSampled=null!==(n=e.localParentSampled)&&void 0!==n?n:new we,this._localParentNotSampled=null!==(i=e.localParentNotSampled)&&void 0!==i?i:new Te}return e.prototype.shouldSample=function(e,t,r,n,o,a){var s=i.trace.getSpanContext(e);return s&&(0,i.isSpanContextValid)(s)?s.isRemote?s.traceFlags&i.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,o,a):this._remoteParentNotSampled.shouldSample(e,t,r,n,o,a):s.traceFlags&i.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,o,a):this._localParentNotSampled.shouldSample(e,t,r,n,o,a):this._root.shouldSample(e,t,r,n,o,a)},e.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()+"}"},e}(),Ie=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:(0,i.isValidTraceId)(t)&&this._accumulate(t)=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r>>0}return t},e}(),Oe="[object Null]",Pe="[object Undefined]",Ce=Function.prototype.toString,Re=Ce.call(Object),De=(Ee=Object.getPrototypeOf,Se=Object,function(e){return Ee(Se(e))}),Ne=Object.prototype,ke=Ne.hasOwnProperty,xe=Symbol?Symbol.toStringTag:void 0,je=Ne.toString;function Be(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||"[object Object]"!==function(e){if(null==e)return void 0===e?Pe:Oe;return xe&&xe in Object(e)?function(e){var t=ke.call(e,xe),r=e[xe],n=!1;try{e[xe]=void 0,n=!0}catch(e){}var i=je.call(e);n&&(t?e[xe]=r:delete e[xe]);return i}(e):function(e){return je.call(e)}(e)}(e))return!1;var t=De(e);if(null===t)return!0;var r=ke.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ce.call(r)===Re}function Me(){for(var e=[],t=0;t0;)r=Le(r,e.shift(),0,n);return r}function Ue(e){return qe(e)?e.slice():e}function Le(e,t,r,n){var i;if(void 0===r&&(r=0),!(r>20)){if(r++,He(e)||He(t)||ze(t))i=Ue(t);else if(qe(e)){if(i=e.slice(),qe(t))for(var o=0,a=t.length;o{"use strict";r.r(t),r.d(t,{BasicTracerProvider:()=>E,BatchSpanProcessor:()=>_,ConsoleSpanExporter:()=>S,ForceFlushState:()=>g,InMemorySpanExporter:()=>T,NoopSpanProcessor:()=>m,SimpleSpanProcessor:()=>w,Span:()=>a,Tracer:()=>p});var n=r(3370),i=r(6001),o=r(1871),a=function(){function e(e,t,r,o,a,s,c,u){void 0===c&&(c=[]),void 0===u&&(u=(0,i.hrTime)()),this.attributes={},this.links=[],this.events=[],this.status={code:n.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=o,this.parentSpanId=s,this.kind=a,this.links=c,this.startTime=(0,i.timeInputToHrTime)(u),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()?this:0===e.length?(n.diag.warn("Invalid attribute key: "+e),this):(0,i.isAttributeValue)(t)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)||(this.attributes[e]=this._truncateToSize(t)),this):(n.diag.warn("Invalid attribute value set for key: "+e),this)},e.prototype.setAttributes=function(e){for(var t=0,r=Object.entries(e);t=this._spanLimits.eventCountLimit&&(n.diag.warn("Dropping extra events."),this.events.shift()),(0,i.isTimeInput)(t)&&(void 0===r&&(r=t),t=void 0),void 0===r&&(r=(0,i.hrTime)()),this.events.push({name:e,attributes:t,time:(0,i.timeInputToHrTime)(r)})),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){void 0===e&&(e=(0,i.hrTime)()),this._isSpanEnded()?n.diag.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=(0,i.timeInputToHrTime)(e),this._duration=(0,i.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&n.diag.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))},e.prototype.isRecording=function(){return!1===this._ended},e.prototype.recordException=function(e,t){void 0===t&&(t=(0,i.hrTime)());var r={};"string"==typeof e?r[o.og.EXCEPTION_MESSAGE]=e:e&&(e.code?r[o.og.EXCEPTION_TYPE]=e.code.toString():e.name&&(r[o.og.EXCEPTION_TYPE]=e.name),e.message&&(r[o.og.EXCEPTION_MESSAGE]=e.message),e.stack&&(r[o.og.EXCEPTION_STACKTRACE]=e.stack)),r[o.og.EXCEPTION_TYPE]||r[o.og.EXCEPTION_MESSAGE]?this.addEvent("exception",r,t):n.diag.warn("Failed to record an exception "+e)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&n.diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(e,t){return e.length<=t?e:e.substr(0,t)},e.prototype._truncateToSize=function(e){var t=this,r=this._attributeValueLengthLimit;return r<=0?(n.diag.warn("Attribute value limit must be positive, got "+r),e):"string"==typeof e?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map((function(e){return"string"==typeof e?t._truncateToLimitUtil(e,r):e})):e},e}(),s=(0,i.getEnv)(),c=i.TracesSamplerValues.AlwaysOn,u={sampler:d(s),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,i.getEnv)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,i.getEnv)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,i.getEnv)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,i.getEnv)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,i.getEnv)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,i.getEnv)().OTEL_SPAN_EVENT_COUNT_LIMIT}};function d(e){switch(void 0===e&&(e=(0,i.getEnv)()),e.OTEL_TRACES_SAMPLER){case i.TracesSamplerValues.AlwaysOn:return new i.AlwaysOnSampler;case i.TracesSamplerValues.AlwaysOff:return new i.AlwaysOffSampler;case i.TracesSamplerValues.ParentBasedAlwaysOn:return new i.ParentBasedSampler({root:new i.AlwaysOnSampler});case i.TracesSamplerValues.ParentBasedAlwaysOff:return new i.ParentBasedSampler({root:new i.AlwaysOffSampler});case i.TracesSamplerValues.TraceIdRatio:return new i.TraceIdRatioBasedSampler(l(e));case i.TracesSamplerValues.ParentBasedTraceIdRatio:return new i.ParentBasedSampler({root:new i.TraceIdRatioBasedSampler(l(e))});default:return n.diag.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+c+'".'),new i.AlwaysOnSampler}}function l(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return n.diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(n.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):t<0||t>1?(n.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):t}var p=function(){function e(e,t,r){this._tracerProvider=r;var n,o,a,s=(n=t,o={sampler:d()},(a=Object.assign({},u,o,n)).generalLimits=Object.assign({},u.generalLimits,n.generalLimits||{}),a.spanLimits=Object.assign({},u.spanLimits,n.spanLimits||{}),a.spanLimits.attributeCountLimit===i.DEFAULT_ATTRIBUTE_COUNT_LIMIT&&a.generalLimits.attributeCountLimit!==i.DEFAULT_ATTRIBUTE_COUNT_LIMIT&&(a.spanLimits.attributeCountLimit=a.generalLimits.attributeCountLimit),a.spanLimits.attributeValueLengthLimit===i.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT&&a.generalLimits.attributeValueLengthLimit!==i.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT&&(a.spanLimits.attributeValueLengthLimit=a.generalLimits.attributeValueLengthLimit),a);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new i.RandomIdGenerator,this.resource=r.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,r){var o,s;if(void 0===t&&(t={}),void 0===r&&(r=n.context.active()),(0,i.isTracingSuppressed)(r))return n.diag.debug("Instrumentation suppressed, returning Noop Span"),n.trace.wrapSpanContext(n.INVALID_SPAN_CONTEXT);var c,u,d,l=function(e,t){return e.root?void 0:n.trace.getSpanContext(t)}(t,r),p=this._idGenerator.generateSpanId();l&&n.trace.isSpanContextValid(l)?(c=l.traceId,u=l.traceState,d=l.spanId):c=this._idGenerator.generateTraceId();var f=null!==(o=t.kind)&&void 0!==o?o:n.SpanKind.INTERNAL,g=null!==(s=t.links)&&void 0!==s?s:[],h=(0,i.sanitizeAttributes)(t.attributes),v=this._sampler.shouldSample(t.root?n.trace.setSpanContext(r,n.INVALID_SPAN_CONTEXT):r,c,e,f,h,g),m={traceId:c,spanId:p,traceFlags:v.decision===n.SamplingDecision.RECORD_AND_SAMPLED?n.TraceFlags.SAMPLED:n.TraceFlags.NONE,traceState:u};if(v.decision===n.SamplingDecision.NOT_RECORD)return n.diag.debug("Recording is off, propagating context in a non-recording span"),n.trace.wrapSpanContext(m);var y=new a(this,r,e,m,f,d,g,t.startTime);return y.setAttributes(Object.assign(h,v.attributes)),y},e.prototype.startActiveSpan=function(e,t,r,i){var o,a,s;if(!(arguments.length<2)){2===arguments.length?s=t:3===arguments.length?(o=t,s=r):(o=t,a=r,s=i);var c=null!=a?a:n.context.active(),u=this.startSpan(e,o,c),d=n.trace.setSpan(c,u);return n.context.with(d,s,void 0,u)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}();var f,g,h=function(){function e(e){this.attributes=e}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[o.R9.SERVICE_NAME]="unknown_service",t[o.R9.TELEMETRY_SDK_LANGUAGE]=i.SDK_INFO[o.R9.TELEMETRY_SDK_LANGUAGE],t[o.R9.TELEMETRY_SDK_NAME]=i.SDK_INFO[o.R9.TELEMETRY_SDK_NAME],t[o.R9.TELEMETRY_SDK_VERSION]=i.SDK_INFO[o.R9.TELEMETRY_SDK_VERSION],t))},e.prototype.merge=function(t){return t&&Object.keys(t.attributes).length?new e(Object.assign({},this.attributes,t.attributes)):this},e.EMPTY=new e({}),e}(),v=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){for(var e=[],t=0,r=this._spanProcessors;t=this._maxQueueSize||(this._finishedSpans.push(e),this._maybeStartTimer())},e.prototype._flushAll=function(){var e=this;return new Promise((function(t,r){for(var n=[],i=0,o=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);i0&&(e._clearTimer(),e._maybeStartTimer())})).catch((function(e){(0,i.globalErrorHandler)(e)}))}),this._scheduledDelayMillis),(0,i.unrefTimer)(this._timer))},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),b=(f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},f(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),_=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.onInit(r),n}return b(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&null!=document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush()},this._pageHideListener=function(){t.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener)},t}(y);!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(g||(g={}));var E=function(){function e(e){var t;void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var r=(0,i.merge)({},u,e);this.resource=null!==(t=r.resource)&&void 0!==t?t:h.empty(),this.resource=h.default().merge(this.resource),this._config=Object.assign({},r,{resource:this.resource});var n=this._buildExporterFromEnv();if(void 0!==n){var o=new _(n);this.activeSpanProcessor=o}else this.activeSpanProcessor=new m}return e.prototype.getTracer=function(e,t){var r=e+"@"+(t||"");return this._tracers.has(r)||this._tracers.set(r,new p({name:e,version:t},this._config,this)),this._tracers.get(r)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(e){return n.diag.error("Error while trying to shutdown current span processor",e)})),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new v(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),n.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&n.context.setGlobalContextManager(e.contextManager),e.propagator&&n.propagation.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map((function(t){return new Promise((function(r){var n,i=setTimeout((function(){r(new Error("Span processor did not completed within timeout period of "+e+" ms")),n=g.timeout}),e);t.forceFlush().then((function(){clearTimeout(i),n!==g.timeout&&(n=g.resolved,r(n))})).catch((function(e){clearTimeout(i),n=g.error,r(e)}))}))}));return new Promise((function(e,r){Promise.all(t).then((function(t){var n=t.filter((function(e){return e!==g.resolved}));n.length>0?r(n):e()})).catch((function(e){return r([e])}))}))},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return null===(r=e._registeredPropagators.get(t))||void 0===r?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return null===(r=e._registeredExporters.get(t))||void 0===r?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set((0,i.getEnv)().OTEL_PROPAGATORS)),r=t.map((function(t){var r=e._getPropagator(t);return r||n.diag.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),r})).reduce((function(e,t){return t&&e.push(t),e}),[]);return 0===r.length?void 0:1===t.length?r[0]:new i.CompositePropagator({propagators:r})},e.prototype._buildExporterFromEnv=function(){var e=(0,i.getEnv)().OTEL_TRACES_EXPORTER;if("none"!==e){var t=this._getSpanExporter(e);return t||n.diag.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new i.W3CTraceContextPropagator}],["baggage",function(){return new i.W3CBaggagePropagator}]]),e._registeredExporters=new Map,e}(),S=function(){function e(){}return e.prototype.export=function(e,t){return this._sendSpans(e,t)},e.prototype.shutdown=function(){return this._sendSpans([]),Promise.resolve()},e.prototype._exportInfo=function(e){return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,i.hrTimeToMicroseconds)(e.startTime),duration:(0,i.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events}},e.prototype._sendSpans=function(e,t){for(var r=0,n=e;r{"use strict";r.d(t,{og:()=>n,R9:()=>i,Te:()=>o});var n={AWS_LAMBDA_INVOKED_ARN:"aws.lambda.invoked_arn",DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",NET_HOST_CONNECTION_TYPE:"net.host.connection.type",NET_HOST_CONNECTION_SUBTYPE:"net.host.connection.subtype",NET_HOST_CARRIER_NAME:"net.host.carrier.name",NET_HOST_CARRIER_MCC:"net.host.carrier.mcc",NET_HOST_CARRIER_MNC:"net.host.carrier.mnc",NET_HOST_CARRIER_ICC:"net.host.carrier.icc",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_CONSUMER_ID:"messaging.consumer_id",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message",MESSAGE_TYPE:"message.type",MESSAGE_ID:"message.id",MESSAGE_COMPRESSED_SIZE:"message.compressed_size",MESSAGE_UNCOMPRESSED_SIZE:"message.uncompressed_size"},i={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},o={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}},9974:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ENDPOINT:()=>O,GlobalExchange:()=>k,ORTB_VIDEO_PARAMS:()=>N,RENDERER_URL:()=>D,adagioScriptFromLocalStorageCb:()=>x,getAdagioScript:()=>j,internal:()=>F,setExtraParam:()=>H,spec:()=>$,storage:()=>R});var n=r(4942),i=r(2450),o=r(3488),a=r(265),s=r(3395),c=r(7229),u=r(5821),d=r(1582),l=r(125),p=r(9386),f={growthCodeId:{getValue:function(e){return e.gc_id},source:"growthcode.io",atype:1,getUidExt:function(e){var t=(0,o.ei)(e,["h1","h2","h3"]);if(Object.keys(t).length)return t}},trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){var t="";return e.DeviceID&&(t=e.DeviceID.join(",")),t},getUidExt:function(e){return"DeviceID"}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,o.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{atype:3,getSource:function(e){var t;return null!=e&&null!==(t=e.ext)&&void 0!==t&&t.ssp?"".concat(e.ext.ssp,".merkleinc.com"):"merkleinc.com"},getValue:function(e){return e.id},getUidExt:function(e){return e.keyID?{keyID:e.keyID}:e.ext?e.ext:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imppid:{source:"ppid.intimatemerger.com",atype:1},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},tncid:{source:"thenewco.it",atype:3},gravitompId:{source:"gravito.net",atype:1},cpexId:{source:"czechadid.cz",atype:1},oneKeyData:{getValue:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0])return e.identifiers[0].value},source:"paf",atype:1,getEidExt:function(e){if(e&&e.preferences)return{preferences:e.preferences}},getUidExt:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0]){var t=e.identifiers[0];return{version:t.version,type:t.type,source:t.source}}}}};function g(e,t){var r=f[t];if(r&&e){var n={};n.source=(0,o.LQ)(r.getSource)?r.getSource(e):r.source;var i=(0,o.LQ)(r.getValue)?r.getValue(e):e;if((0,o.d8)(i)){var a={id:i,atype:r.atype};if((0,o.LQ)(r.getUidExt)){var s=r.getUidExt(e);s&&(a.ext=s)}if(n.uids=[a],(0,o.LQ)(r.getEidExt)){var c=r.getEidExt(e);c&&(n.ext=c)}return n}}return null}var h=r(7777),v=r(7517),m=r(9756),y=r(8272),b=r(4487);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t0&&e.every((function(e){return"string"==typeof e}))},minduration:function(e){return(0,o.U)(e)},maxduration:function(e){return(0,o.U)(e)},protocols:function(e){return Array.isArray(e)&&e.every((function(e){return-1!==[1,2,3,4,5,6,7,8,9,10].indexOf(e)}))},w:function(e){return(0,o.U)(e)},h:function(e){return(0,o.U)(e)},startdelay:function(e){return(0,o.U)(e)},placement:function(e){return Array.isArray(e)&&e.every((function(e){return-1!==[1,2,3,4,5].indexOf(e)}))},linearity:function(e){return-1!==[1,2].indexOf(e)},skip:function(e){return-1!==[0,1].indexOf(e)},skipmin:function(e){return(0,o.U)(e)},skipafter:function(e){return(0,o.U)(e)},sequence:function(e){return(0,o.U)(e)},battr:function(e){return Array.isArray(e)&&e.every((function(e){return-1!==Array.from({length:17},(function(e,t){return t+1})).indexOf(e)}))},maxextended:function(e){return(0,o.U)(e)},minbitrate:function(e){return(0,o.U)(e)},maxbitrate:function(e){return(0,o.U)(e)},boxingallowed:function(e){return-1!==[0,1].indexOf(e)},playbackmethod:function(e){return Array.isArray(e)&&e.every((function(e){return-1!==[1,2,3,4,5,6].indexOf(e)}))},playbackend:function(e){return-1!==[1,2,3].indexOf(e)},delivery:function(e){return-1!==[1,2,3].indexOf(e)},pos:function(e){return-1!==[0,1,2,3,4,5,6,7].indexOf(e)},api:function(e){return Array.isArray(e)&&e.every((function(e){return-1!==[1,2,3,4,5,6].indexOf(e)}))}},k=(w={},{clearFeatures:function(){T=void 0},clearExchangeData:function(){w={}},getOrSetGlobalFeatures:function(){return T||(T={page_dimensions:K().toString(),viewport_dimensions:V().toString(),user_timestamp:(Math.floor((new Date).getTime()/1e3)-60*(new Date).getTimezoneOffset()).toString(),dom_loading:J().toString()}),T},prepareExchangeData:function(e){var t=JSON.parse(e,(function(e,t){if("_"!==e.charAt(0)||""===e)return t})),r=(0,a.Z)(t,"session.rnd"),n=!1;F.isNewSession(t)&&(n=!0,r=Math.random());var i={session:{new:n,rnd:r}};(0,o.Ee)(w,t,i),F.enqueue({action:"session",ts:Date.now(),data:w})},getExchangeData:function(){return w}});function x(e){try{if(!e)return void(0,o.yN)("".concat(I," script not found."));var t=/^(\/\/ hash: (.+)\n)(.+\n)$/;if(t.test(e)){var r=e.match(t),n=r[2],i=r[3];(0,d.T)(i,n,"AL16XT44Sfp+8SHVF1UdC7hydPSMVLMhsYknKDdwqq+0ToDSJrP0+Qh0ki9JJI2uYm/6VEYo8TJED9WfMkiJ4vf02CW3RvSWwc35bif2SK1L8Nn/GfFYr/2/GG/Rm0vUsv+vBHky6nuuYls20Og0HDhMgaOlXoQ/cxMuiy5QSktp",65537)?((0,o.PN)("".concat(I," start script.")),Function(e)()):((0,o.yN)("".concat(I," invalid script found.")),R.removeDataFromLocalStorage(C))}else(0,o.yN)("".concat(I," no hash found.")),R.removeDataFromLocalStorage(C)}catch(e){(0,o.H)(I,e)}}function j(){R.getDataFromLocalStorage(C,(function(e){F.adagioScriptFromLocalStorageCb(e)})),R.localStorageIsEnabled((function(e){if(e)(0,u.B)("https://script.4dex.io/localstore.js",A);else try{window.localStorage.removeItem(C),window.localStorage.removeItem("adagio")}catch(e){(0,o.PN)("".concat(I," unable to clear Adagio scripts from localstorage."))}}))}function B(){try{if((0,o.Zy)().location.href)return!0}catch(e){return!1}}function M(){return S||(0,o.e7)()}function U(){var e=(0,o.e7)();return!(!e.$sf||!e.$sf.ext)}function L(e){var t=F.isRendererPreferredFromPublisher(e)?"other":"adagio";return"other"===t&&(0,o.yN)("".concat(I," renderer.backupOnly has not been set. Adagio recommends to use its own player to get expected behavior.")),t}var F={enqueue:function(e){var t=F.getCurrentWindow();t.ADAGIO=t.ADAGIO||{},t.ADAGIO.queue=t.ADAGIO.queue||[],t.ADAGIO.queue.push(e)},getPageviewId:function(){var e=F.getCurrentWindow();return e.ADAGIO=e.ADAGIO||{},e.ADAGIO.pageviewId=e.ADAGIO.pageviewId||(0,o.DO)(),e.ADAGIO.pageviewId},getDevice:function(){var e=navigator.language?"language":"userLanguage";return{userAgent:navigator.userAgent,language:navigator[e],dnt:(0,o.oV)()?1:0,geo:{},js:1}},getSite:function(e){var t=e.refererInfo;return{domain:(0,p.hh)(t.topmostLocation)||"",page:t.topmostLocation||"",referrer:t.ref||(0,o.e7)().document.referrer||"",top:t.reachedTop}},getElementFromTopWindow:function e(t,r){try{if((0,o.Zy)()===r)return t.getAttribute("id")||t.setAttribute("id","adg-".concat((0,o._d)())),t;var n=r.frameElement,i=n.getBoundingClientRect(),a=t.getBoundingClientRect();return i.width===a.width&&i.height===a.height&&e(n,r.parent)}catch(e){return(0,o.yN)("".concat(I),e),!1}},getRefererInfo:p.nH,adagioScriptFromLocalStorageCb:x,getCurrentWindow:M,canAccessTopWindow:B,isRendererPreferredFromPublisher:function(e){var t=(0,a.Z)(e,"renderer"),r=!!(t&&t.url&&t.render),n=(0,a.Z)(e,"mediaTypes.video.renderer"),i=!!(n&&n.url&&n.render);return!!(r&&!0!==t.backupOnly||i&&!0!==n.backupOnly)},isNewSession:function(e){var t=Date.now(),r=(0,a.Z)(e,"session",{}),n=r.lastActivityTime,i=r.vwSmplg;return!(0,o.hj)(n)||!(0,o.hj)(i)||t-n>18e5}};function q(e){if((0,a.Z)(e,"userId"))return function(e){var t=[],r=function(r){if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else if("ftrackId"===r){var n={atype:1,id:(e.ftrackId.DeviceID||[]).join("|"),ext:{}};for(var i in e.ftrackId)n.ext[i]=(e.ftrackId[i]||[]).join("|");t.push(n)}else if(Array.isArray(e[r]))e[r].forEach((function(e,n,i){var o=g(e,r);o&&t.push(o)}));else{var o=g(e[r],r);o&&t.push(o)}};for(var n in e)r(n);return t}(e.userId)}function z(e){e.renderer.push((function(){"function"==typeof window.ADAGIO.outstreamPlayer?window.ADAGIO.outstreamPlayer(e):(0,o.H)("".concat(I," Adagio outstream player is not defined"))}))}function Z(e){if(e.admNative&&Array.isArray(e.admNative.assets)){var t={};e.admNative.assets.forEach((function(e){if(e.title)t.title=e.title.text;else if(e.data)r=e.data,(n={1:"sponsoredBy",2:"body",3:"rating",4:"likes",5:"downloads",6:"price",7:"salePrice",8:"phone",9:"address",10:"body2",11:"displayUrl",12:"cta"}).hasOwnProperty(r.type)&&"string"==typeof r.value&&(t[n[r.type]]=r.value);else if(e.img)if(1===e.img.type)t.icon={url:e.img.url,width:e.img.w,height:e.img.h};else t.image={url:e.img.url,width:e.img.w,height:e.img.h};var r,n})),e.admNative.link&&(e.admNative.link.url&&(t.clickUrl=e.admNative.link.url),Array.isArray(e.admNative.link.clicktrackers)&&(t.clickTrackers=e.admNative.link.clicktrackers)),Array.isArray(e.admNative.eventtrackers)?(t.impressionTrackers=[],e.admNative.eventtrackers.forEach((function(e){if(1===e.event)switch(e.method){case 1:t.impressionTrackers.push(e.url);break;case 2:var r='