@vkontakte/videoplayer-shared 1.0.49-dev.ed1df4eb.0 → 1.0.50-dev.1326de93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/evergreen.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.49-dev.ed1df4eb.0
3
- * Thu, 14 Nov 2024 06:32:37 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-49/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.50-dev.1326de93.0
3
+ * Wed, 20 Nov 2024 09:05:47 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-50/doc/
5
5
  */
6
- var Ws=Object.defineProperty;var js=(e,t)=>{for(var r in t)Ws(e,r,{get:t[r],enumerable:!0})};var ks="1.0.49-dev.ed1df4eb.0";var h=class{constructor(){this.subscriptions=[]}unsubscribe(){let t=this.subscriptions;this.subscriptions=[],t.forEach(r=>typeof r=="function"?r():r.unsubscribe())}add(t){return this.subscriptions.push(t),this}};var G=e=>{throw new Error(`${e} is value of unexpected type`)},Qs=e=>{};var K=()=>{};var A=class{constructor(t){t&&(this._subscribe=t)}subscribe(t,r){let n;r?typeof r=="function"?n={next:r,error:K}:n={next:o=>r.next(o),error:o=>r.error?.(o)}:n={next:K,error:K};let a=typeof t=="function"?{next:o=>{try{t(o)}catch(E){n.next(E)}},error:o=>n.next(o)}:{next:o=>t.next(o),error:o=>t.error?t.error(o):n.next(o)},i;try{i=this._subscribe(a)}catch(o){a.error?.(o)}return new h().add(()=>{switch(a.next=K,a.error=K,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return G(i)}})}pipe(...t){return t.reduce((r,n)=>n(r),this)}_subscribe(t){}};var Y=class extends A{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(r){this.subscribers.forEach(n=>n.next(r))}error(r){this.subscribers.forEach(n=>n.error?.(r))}_subscribe(r){let n=this.keyCounter++;return this.subscribers.set(n,r),new h().add(()=>this.subscribers.delete(n))}};var vt=class{constructor(){this.log$=new Y;this.logs=[];this.log=t=>{let r={...t,timestamp:Date.now()};this.logs.push(r),this.log$.next(r)};this.getAllLogs=()=>this.logs}createCustomLog(t){return(...r)=>{let n;try{n=t(...r)}catch{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(t){return this.createCustomLog(r=>({component:t,...r}))}};import{trace as hM,context as mM}from"@opentelemetry/api";var $s=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},$="1.8.0",Fr=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function zs(e){var t=new Set([e]),r=new Set,n=e.match(Fr);if(!n)return function(){return!1};var a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(a.prerelease!=null)return function(T){return T===e};function i(E){return r.add(E),!1}function o(E){return t.add(E),!0}return function(T){if(t.has(T))return!0;if(r.has(T))return!1;var _=T.match(Fr);if(!_)return i(T);var s={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return s.prerelease!=null||a.major!==s.major?i(T):a.major===0?a.minor===s.minor&&a.patch<=s.patch?o(T):i(T):a.minor<=s.minor?o(T):i(T)}}var Zs=zs($),Js=$.split(".")[0],Ne=Symbol.for("opentelemetry.js.api."+Js),Me=$s;function Ce(e,t,r,n){var a;n===void 0&&(n=!1);var i=Me[Ne]=(a=Me[Ne])!==null&&a!==void 0?a:{version:$};if(!n&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(o.stack||o.message),!1}if(i.version!==$){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+$);return r.error(o.stack||o.message),!1}return i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+$+"."),!0}function Z(e){var t,r,n=(t=Me[Ne])===null||t===void 0?void 0:t.version;if(!(!n||!Zs(n)))return(r=Me[Ne])===null||r===void 0?void 0:r[e]}function he(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+$+".");var r=Me[Ne];r&&delete r[e]}var qs=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},eA=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},tA=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ce("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ce("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ce("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ce("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ce("verbose",this._namespace,t)},e}();function ce(e,t,r){var n=Z("diag");if(n)return r.unshift(t),n[e].apply(n,eA([],qs(r),!1))}var v;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(v||(v={}));function rA(e,t){e<v.NONE?e=v.NONE:e>v.ALL&&(e=v.ALL),t=t||{};function r(n,a){var i=t[n];return typeof i=="function"&&e>=a?i.bind(t):function(){}}return{error:r("error",v.ERROR),warn:r("warn",v.WARN),info:r("info",v.INFO),debug:r("debug",v.DEBUG),verbose:r("verbose",v.VERBOSE)}}var nA=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},aA=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},iA="diag",V=function(){function e(){function t(a){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var E=Z("diag");if(E)return E[a].apply(E,aA([],nA(i),!1))}}var r=this,n=function(a,i){var o,E,T;if(i===void 0&&(i={logLevel:v.INFO}),a===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((o=_.stack)!==null&&o!==void 0?o:_.message),!1}typeof i=="number"&&(i={logLevel:i});var s=Z("diag"),S=rA((E=i.logLevel)!==null&&E!==void 0?E:v.INFO,a);if(s&&!i.suppressOverrideMessage){var R=(T=new Error().stack)!==null&&T!==void 0?T:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+R),S.warn("Current logger will overwrite one already registered from "+R)}return Ce("diag",S,r,!0)};r.setLogger=n,r.disable=function(){he(iA,r)},r.createComponentLogger=function(a){return new tA(a)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),oA=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},EA=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TA=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=oA(t,2),n=r[0],a=r[1];return[n,a]})},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,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=new e(this._entries);try{for(var o=EA(n),E=o.next();!E.done;E=o.next()){var T=E.value;i._entries.delete(T)}}catch(_){t={error:_}}finally{try{E&&!E.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}(),_A=Symbol("BaggageEntryMetadata"),SA=V.instance();function sA(e){return e===void 0&&(e={}),new TA(new Map(Object.entries(e)))}function Sn(e){return typeof e!="string"&&(SA.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:_A,toString:function(){return e}}}function me(e){return Symbol.for(e)}var AA=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,a){var i=new e(r._currentContext);return i._currentContext.set(n,a),i},r.deleteValue=function(n){var a=new e(r._currentContext);return a._currentContext.delete(n),a}}return e}(),j=new AA,dt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],uA=function(){function e(){function t(n){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(console){var o=console[n];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,a)}}}for(var r=0;r<dt.length;r++)this[dt[r].n]=t(dt[r].c)}return e}(),_e=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),cA=function(){function e(){}return e.prototype.createHistogram=function(t,r){return NA},e.prototype.createCounter=function(t,r){return dA},e.prototype.createUpDownCounter=function(t,r){return MA},e.prototype.createObservableGauge=function(t,r){return PA},e.prototype.createObservableCounter=function(t,r){return LA},e.prototype.createObservableUpDownCounter=function(t,r){return IA},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),$t=function(){function e(){}return e}(),lA=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}($t),OA=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}($t),RA=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}($t),zt=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),pA=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(zt),fA=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(zt),vA=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(zt),sn=new cA,dA=new lA,NA=new RA,MA=new OA,LA=new pA,PA=new fA,IA=new vA;function CA(){return sn}var gt;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(gt||(gt={}));var An={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},un={set:function(e,t,r){e!=null&&(e[t]=r)}},hA=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},mA=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},DA=function(){function e(){}return e.prototype.active=function(){return j},e.prototype.with=function(t,r,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];return r.call.apply(r,mA([n],hA(a),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),UA=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},gA=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},Nt="context",bA=new DA,nt=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Ce(Nt,t,V.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var a,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(a=this._getContextManager()).with.apply(a,gA([t,r,n],UA(i),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return Z(Nt)||bA},e.prototype.disable=function(){this._getContextManager().disable(),he(Nt,V.instance())},e}(),m;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(m||(m={}));var Zt="0000000000000000",Jt="00000000000000000000000000000000",qt={traceId:Jt,spanId:Zt,traceFlags:m.NONE},pe=function(){function e(t){t===void 0&&(t=qt),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e}(),er=me("OpenTelemetry Context Key SPAN");function tr(e){return e.getValue(er)||void 0}function yA(){return tr(nt.getInstance().active())}function rr(e,t){return e.setValue(er,t)}function VA(e){return e.deleteValue(er)}function BA(e,t){return rr(e,new pe(t))}function cn(e){var t;return(t=tr(e))===null||t===void 0?void 0:t.spanContext()}var GA=/^([0-9a-f]{32})$/i,wA=/^[0-9a-f]{16}$/i;function at(e){return GA.test(e)&&e!==Jt}function ln(e){return wA.test(e)&&e!==Zt}function Se(e){return at(e.traceId)&&ln(e.spanId)}function xA(e){return new pe(e)}var Mt=nt.getInstance(),On=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=Mt.active());var a=!!r?.root;if(a)return new pe;var i=n&&cn(n);return YA(i)&&Se(i)?new pe(i):new pe},e.prototype.startActiveSpan=function(t,r,n,a){var i,o,E;if(!(arguments.length<2)){arguments.length===2?E=r:arguments.length===3?(i=r,E=n):(i=r,o=n,E=a);var T=o??Mt.active(),_=this.startSpan(t,i,T),s=rr(T,_);return Mt.with(s,E,void 0,_)}},e}();function YA(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var HA=new On,Rn=function(){function e(t,r,n,a){this._provider=t,this.name=r,this.version=n,this.options=a}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,a){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):HA},e}(),FA=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new On},e}(),KA=new FA,bt=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var a;return(a=this.getDelegateTracer(t,r,n))!==null&&a!==void 0?a:new Rn(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:KA},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(t,r,n)},e}(),x;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(x||(x={}));var We;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(We||(We={}));var je;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(je||(je={}));var yt="[_0-9a-z-*/]",XA="[a-z]"+yt+"{0,255}",WA="[a-z0-9]"+yt+"{0,240}@[a-z]"+yt+"{0,13}",jA=new RegExp("^(?:"+XA+"|"+WA+")$"),kA=/^[ -~]{0,255}[!-~]$/,QA=/,|=/;function $A(e){return jA.test(e)}function zA(e){return kA.test(e)&&!QA.test(e)}var Kr=32,ZA=512,Xr=",",Wr="=",JA=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+Wr+t.get(n)),r},[]).join(Xr)},e.prototype._parse=function(t){t.length>ZA||(this._internalState=t.split(Xr).reverse().reduce(function(r,n){var a=n.trim(),i=a.indexOf(Wr);if(i!==-1){var o=a.slice(0,i),E=a.slice(i+1,n.length);$A(o)&&zA(E)&&r.set(o,E)}return r},new Map),this._internalState.size>Kr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Kr))))},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}();function qA(e){return new JA(e)}var y=nt.getInstance(),c=V.instance(),eu=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return sn},e}(),tu=new eu,Lt="metrics",ru=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Ce(Lt,t,V.instance())},e.prototype.getMeterProvider=function(){return Z(Lt)||tu},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){he(Lt,V.instance())},e}(),nr=ru.getInstance(),nu=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),ar=me("OpenTelemetry Baggage Key");function pn(e){return e.getValue(ar)||void 0}function au(){return pn(nt.getInstance().active())}function iu(e,t){return e.setValue(ar,t)}function ou(e){return e.deleteValue(ar)}var Pt="propagation",Eu=new nu,Tu=function(){function e(){this.createBaggage=sA,this.getBaggage=pn,this.getActiveBaggage=au,this.setBaggage=iu,this.deleteBaggage=ou}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Ce(Pt,t,V.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=un),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=An),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){he(Pt,V.instance())},e.prototype._getGlobalPropagator=function(){return Z(Pt)||Eu},e}(),ne=Tu.getInstance(),It="trace",_u=function(){function e(){this._proxyTracerProvider=new bt,this.wrapSpanContext=xA,this.isSpanContextValid=Se,this.deleteSpan=VA,this.getSpan=tr,this.getActiveSpan=yA,this.getSpanContext=cn,this.setSpan=rr,this.setSpanContext=BA}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=Ce(It,this._proxyTracerProvider,V.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return Z(It)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){he(It,V.instance()),this._proxyTracerProvider=new bt},e}(),I=_u.getInstance(),Su={context:y,diag:c,metrics:nr,propagation:ne,trace:I},su=Object.freeze({__proto__:null,DiagConsoleLogger:uA,get DiagLogLevel(){return v},INVALID_SPANID:Zt,INVALID_SPAN_CONTEXT:qt,INVALID_TRACEID:Jt,ProxyTracer:Rn,ProxyTracerProvider:bt,ROOT_CONTEXT:j,get SamplingDecision(){return x},get SpanKind(){return We},get SpanStatusCode(){return je},get TraceFlags(){return m},get ValueType(){return gt},baggageEntryMetadataFromString:Sn,context:y,createContextKey:me,createNoopMeter:CA,createTraceState:qA,default:Su,defaultTextMapGetter:An,defaultTextMapSetter:un,diag:c,isSpanContextValid:Se,isValidSpanId:ln,isValidTraceId:at,metrics:nr,propagation:ne,trace:I}),ir=me("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function or(e){return e.setValue(ir,!0)}function Au(e){return e.deleteValue(ir)}function it(e){return e.getValue(ir)===!0}var uu="=",Vt=";",ke=",",Ct="baggage",cu=180,lu=4096,Ou=8192,Ru=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i};function fn(e){return e.reduce(function(t,r){var n=""+t+(t!==""?ke:"")+r;return n.length>Ou?t:n},"")}function vn(e){return e.getAllEntries().map(function(t){var r=Ru(t,2),n=r[0],a=r[1],i=encodeURIComponent(n)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(i+=Vt+a.metadata.toString()),i})}function Er(e){var t=e.split(Vt);if(!(t.length<=0)){var r=t.shift();if(r){var n=r.indexOf(uu);if(!(n<=0)){var a=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),o;return t.length>0&&(o=Sn(t.join(Vt))),{key:a,value:i,metadata:o}}}}}function pu(e){return typeof e!="string"||e.length===0?{}:e.split(ke).map(function(t){return Er(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var fu=Object.freeze({__proto__:null,getKeyPairs:vn,parseKeyPairsIntoRecord:pu,parsePairKeyValue:Er,serializeKeyPairs:fn}),dn=function(){function e(){}return e.prototype.inject=function(t,r,n){var a=ne.getBaggage(t);if(!(!a||it(t))){var i=vn(a).filter(function(E){return E.length<=lu}).slice(0,cu),o=fn(i);o.length>0&&n.set(r,Ct,o)}},e.prototype.extract=function(t,r,n){var a=n.get(r,Ct),i=Array.isArray(a)?a.join(ke):a;if(!i)return t;var o={};if(i.length===0)return t;var E=i.split(ke);return E.forEach(function(T){var _=Er(T);if(_){var s={value:_.value};_.metadata&&(s.metadata=_.metadata),o[_.key]=s}}),Object.entries(o).length===0?t:ne.setBaggage(t,ne.createBaggage(o))},e.prototype.fields=function(){return[Ct]},e}(),vu=function(){function e(t,r){this._monotonicClock=r,this._epochMillis=t.now(),this._performanceMillis=r.now()}return e.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},e}(),Nn=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},du=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i};function fe(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var a=Nn(Object.entries(e)),i=a.next();!i.done;i=a.next()){var o=du(i.value,2),E=o[0],T=o[1];if(!Mn(E)){c.warn("Invalid attribute key: "+E);continue}if(!Tr(T)){c.warn("Invalid attribute value set for key: "+E);continue}Array.isArray(T)?n[E]=T.slice():n[E]=T}}catch(_){t={error:_}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n}function Mn(e){return typeof e=="string"&&e.length>0}function Tr(e){return e==null?!0:Array.isArray(e)?Nu(e):Ln(e)}function Nu(e){var t,r,n;try{for(var a=Nn(e),i=a.next();!i.done;i=a.next()){var o=i.value;if(o!=null){if(!n){if(Ln(o)){n=typeof o;continue}return!1}if(typeof o!==n)return!1}}}catch(E){t={error:E}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0}function Ln(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function Pn(){return function(e){c.error(Mu(e))}}function Mu(e){return typeof e=="string"?e:JSON.stringify(Lu(e))}function Lu(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var a=r[n];a&&(t[n]=String(a))}}),r=Object.getPrototypeOf(r);return t}var In=Pn();function Pu(e){In=e}function ie(e){try{In(e)}catch{}}var b;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(b||(b={}));var Iu=",",Cu=["OTEL_SDK_DISABLED"];function hu(e){return Cu.indexOf(e)>-1}var mu=["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 Du(e){return mu.indexOf(e)>-1}var Uu=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function gu(e){return Uu.indexOf(e)>-1}var ve=1/0,de=128,Cn=128,hn=128,_r={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:v.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve,OTEL_ATTRIBUTE_COUNT_LIMIT:de,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:de,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:de,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Cn,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:hn,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:b.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 bu(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function yu(e,t,r,n,a){if(n===void 0&&(n=-1/0),a===void 0&&(a=1/0),typeof r[e]<"u"){var i=Number(r[e]);isNaN(i)||(i<n?t[e]=n:i>a?t[e]=a:t[e]=i)}}function Vu(e,t,r,n){n===void 0&&(n=Iu);var a=r[e];typeof a=="string"&&(t[e]=a.split(n).map(function(i){return i.trim()}))}var Bu={ALL:v.ALL,VERBOSE:v.VERBOSE,DEBUG:v.DEBUG,INFO:v.INFO,WARN:v.WARN,ERROR:v.ERROR,NONE:v.NONE};function Gu(e,t,r){var n=r[e];if(typeof n=="string"){var a=Bu[n.toUpperCase()];a!=null&&(t[e]=a)}}function Sr(e){var t={};for(var r in _r){var n=r;switch(n){case"OTEL_LOG_LEVEL":Gu(n,t,e);break;default:if(hu(n))bu(n,t,e);else if(Du(n))yu(n,t,e);else if(gu(n))Vu(n,t,e);else{var a=e[n];typeof a<"u"&&a!==null&&(t[n]=String(a))}}}return t}var sr=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function P(){var e=Sr(sr);return Object.assign({},_r,e)}function mn(){return Sr(sr)}function jr(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Dn(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var a=jr(e.charCodeAt(n)),i=jr(e.charCodeAt(n+1));t[r++]=a<<4|i}return t}var wu=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},xu=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))};function Yu(e){return btoa(String.fromCharCode.apply(String,xu([],wu(Dn(e)),!1)))}var Hu=8,Fu=16,Ku=function(){function e(){this.generateTraceId=kr(Fu),this.generateSpanId=kr(Hu)}return e}(),be=Array(32);function kr(e){return function(){for(var r=0;r<e*2;r++)be[r]=Math.floor(Math.random()*16)+48,be[r]>=58&&(be[r]+=39);return String.fromCharCode.apply(null,be.slice(0,e*2))}}var z=performance,Un="1.25.1";function N(e){for(var t={},r=e.length,n=0;n<r;n++){var a=e[n];a&&(t[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return t}var gn="aws.lambda.invoked_arn",bn="db.system",yn="db.connection_string",Vn="db.user",Bn="db.jdbc.driver_classname",Gn="db.name",wn="db.statement",xn="db.operation",Yn="db.mssql.instance_name",Hn="db.cassandra.keyspace",Fn="db.cassandra.page_size",Kn="db.cassandra.consistency_level",Xn="db.cassandra.table",Wn="db.cassandra.idempotence",jn="db.cassandra.speculative_execution_count",kn="db.cassandra.coordinator.id",Qn="db.cassandra.coordinator.dc",$n="db.hbase.namespace",zn="db.redis.database_index",Zn="db.mongodb.collection",Jn="db.sql.table",qn="exception.type",ea="exception.message",ta="exception.stacktrace",ra="exception.escaped",na="faas.trigger",aa="faas.execution",ia="faas.document.collection",oa="faas.document.operation",Ea="faas.document.time",Ta="faas.document.name",_a="faas.time",Sa="faas.cron",sa="faas.coldstart",Aa="faas.invoked_name",ua="faas.invoked_provider",ca="faas.invoked_region",la="net.transport",Oa="net.peer.ip",Ra="net.peer.port",pa="net.peer.name",fa="net.host.ip",va="net.host.port",da="net.host.name",Na="net.host.connection.type",Ma="net.host.connection.subtype",La="net.host.carrier.name",Pa="net.host.carrier.mcc",Ia="net.host.carrier.mnc",Ca="net.host.carrier.icc",ha="peer.service",ma="enduser.id",Da="enduser.role",Ua="enduser.scope",ga="thread.id",ba="thread.name",ya="code.function",Va="code.namespace",Ba="code.filepath",Ga="code.lineno",wa="http.method",xa="http.url",Ya="http.target",Ha="http.host",Fa="http.scheme",Ka="http.status_code",Xa="http.flavor",Wa="http.user_agent",ja="http.request_content_length",ka="http.request_content_length_uncompressed",Qa="http.response_content_length",$a="http.response_content_length_uncompressed",za="http.server_name",Za="http.route",Ja="http.client_ip",qa="aws.dynamodb.table_names",ei="aws.dynamodb.consumed_capacity",ti="aws.dynamodb.item_collection_metrics",ri="aws.dynamodb.provisioned_read_capacity",ni="aws.dynamodb.provisioned_write_capacity",ai="aws.dynamodb.consistent_read",ii="aws.dynamodb.projection",oi="aws.dynamodb.limit",Ei="aws.dynamodb.attributes_to_get",Ti="aws.dynamodb.index_name",_i="aws.dynamodb.select",Si="aws.dynamodb.global_secondary_indexes",si="aws.dynamodb.local_secondary_indexes",Ai="aws.dynamodb.exclusive_start_table",ui="aws.dynamodb.table_count",ci="aws.dynamodb.scan_forward",li="aws.dynamodb.segment",Oi="aws.dynamodb.total_segments",Ri="aws.dynamodb.count",pi="aws.dynamodb.scanned_count",fi="aws.dynamodb.attribute_definitions",vi="aws.dynamodb.global_secondary_index_updates",di="messaging.system",Ni="messaging.destination",Mi="messaging.destination_kind",Li="messaging.temp_destination",Pi="messaging.protocol",Ii="messaging.protocol_version",Ci="messaging.url",hi="messaging.message_id",mi="messaging.conversation_id",Di="messaging.message_payload_size_bytes",Ui="messaging.message_payload_compressed_size_bytes",gi="messaging.operation",bi="messaging.consumer_id",yi="messaging.rabbitmq.routing_key",Vi="messaging.kafka.message_key",Bi="messaging.kafka.consumer_group",Gi="messaging.kafka.client_id",wi="messaging.kafka.partition",xi="messaging.kafka.tombstone",Yi="rpc.system",Hi="rpc.service",Fi="rpc.method",Ki="rpc.grpc.status_code",Xi="rpc.jsonrpc.version",Wi="rpc.jsonrpc.request_id",ji="rpc.jsonrpc.error_code",ki="rpc.jsonrpc.error_message",Qi="message.type",$i="message.id",zi="message.compressed_size",Zi="message.uncompressed_size",Xu=gn,Wu=bn,ju=yn,ku=Vn,Qu=Bn,$u=Gn,zu=wn,Zu=xn,Ju=Yn,qu=Hn,ec=Fn,tc=Kn,rc=Xn,nc=Wn,ac=jn,ic=kn,oc=Qn,Ec=$n,Tc=zn,_c=Zn,Sc=Jn,we=qn,xe=ea,Ji=ta,sc=ra,Ac=na,uc=aa,cc=ia,lc=oa,Oc=Ea,Rc=Ta,pc=_a,fc=Sa,vc=sa,dc=Aa,Nc=ua,Mc=ca,Lc=la,Pc=Oa,Ic=Ra,Cc=pa,hc=fa,mc=va,Dc=da,Uc=Na,gc=Ma,bc=La,yc=Pa,Vc=Ia,Bc=Ca,Gc=ha,wc=ma,xc=Da,Yc=Ua,Hc=ga,Fc=ba,Kc=ya,Xc=Va,Wc=Ba,jc=Ga,kc=wa,Qc=xa,$c=Ya,zc=Ha,Zc=Fa,Jc=Ka,qc=Xa,el=Wa,tl=ja,rl=ka,nl=Qa,al=$a,il=za,ol=Za,El=Ja,Tl=qa,_l=ei,Sl=ti,sl=ri,Al=ni,ul=ai,cl=ii,ll=oi,Ol=Ei,Rl=Ti,pl=_i,fl=Si,vl=si,dl=Ai,Nl=ui,Ml=ci,Ll=li,Pl=Oi,Il=Ri,Cl=pi,hl=fi,ml=vi,Dl=di,Ul=Ni,gl=Mi,bl=Li,yl=Pi,Vl=Ii,Bl=Ci,Gl=hi,wl=mi,xl=Di,Yl=Ui,Hl=gi,Fl=bi,Kl=yi,Xl=Vi,Wl=Bi,jl=Gi,kl=wi,Ql=xi,$l=Yi,zl=Hi,Zl=Fi,Jl=Ki,ql=Xi,eO=Wi,tO=ji,rO=ki,nO=Qi,aO=$i,iO=zi,oO=Zi,EO=N([gn,bn,yn,Vn,Bn,Gn,wn,xn,Yn,Hn,Fn,Kn,Xn,Wn,jn,kn,Qn,$n,zn,Zn,Jn,qn,ea,ta,ra,na,aa,ia,oa,Ea,Ta,_a,Sa,sa,Aa,ua,ca,la,Oa,Ra,pa,fa,va,da,Na,Ma,La,Pa,Ia,Ca,ha,ma,Da,Ua,ga,ba,ya,Va,Ba,Ga,wa,xa,Ya,Ha,Fa,Ka,Xa,Wa,ja,ka,Qa,$a,za,Za,Ja,qa,ei,ti,ri,ni,ai,ii,oi,Ei,Ti,_i,Si,si,Ai,ui,ci,li,Oi,Ri,pi,fi,vi,di,Ni,Mi,Li,Pi,Ii,Ci,hi,mi,Di,Ui,gi,bi,yi,Vi,Bi,Gi,wi,xi,Yi,Hi,Fi,Ki,Xi,Wi,ji,ki,Qi,$i,zi,Zi]),qi="other_sql",eo="mssql",to="mysql",ro="oracle",no="db2",ao="postgresql",io="redshift",oo="hive",Eo="cloudscape",To="hsqldb",_o="progress",So="maxdb",so="hanadb",Ao="ingres",uo="firstsql",co="edb",lo="cache",Oo="adabas",Ro="firebird",po="derby",fo="filemaker",vo="informix",No="instantdb",Mo="interbase",Lo="mariadb",Po="netezza",Io="pervasive",Co="pointbase",ho="sqlite",mo="sybase",Do="teradata",Uo="vertica",go="h2",bo="coldfusion",yo="cassandra",Vo="hbase",Bo="mongodb",Go="redis",wo="couchbase",xo="couchdb",Yo="cosmosdb",Ho="dynamodb",Fo="neo4j",Ko="geode",Xo="elasticsearch",Wo="memcached",jo="cockroachdb",TO=qi,_O=eo,SO=to,sO=ro,AO=no,uO=ao,cO=io,lO=oo,OO=Eo,RO=To,pO=_o,fO=So,vO=so,dO=Ao,NO=uo,MO=co,LO=lo,PO=Oo,IO=Ro,CO=po,hO=fo,mO=vo,DO=No,UO=Mo,gO=Lo,bO=Po,yO=Io,VO=Co,BO=ho,GO=mo,wO=Do,xO=Uo,YO=go,HO=bo,FO=yo,KO=Vo,XO=Bo,WO=Go,jO=wo,kO=xo,QO=Yo,$O=Ho,zO=Fo,ZO=Ko,JO=Xo,qO=Wo,eR=jo,tR=N([qi,eo,to,ro,no,ao,io,oo,Eo,To,_o,So,so,Ao,uo,co,lo,Oo,Ro,po,fo,vo,No,Mo,Lo,Po,Io,Co,ho,mo,Do,Uo,go,bo,yo,Vo,Bo,Go,wo,xo,Yo,Ho,Fo,Ko,Xo,Wo,jo]),ko="all",Qo="each_quorum",$o="quorum",zo="local_quorum",Zo="one",Jo="two",qo="three",eE="local_one",tE="any",rE="serial",nE="local_serial",rR=ko,nR=Qo,aR=$o,iR=zo,oR=Zo,ER=Jo,TR=qo,_R=eE,SR=tE,sR=rE,AR=nE,uR=N([ko,Qo,$o,zo,Zo,Jo,qo,eE,tE,rE,nE]),aE="datasource",iE="http",oE="pubsub",EE="timer",TE="other",cR=aE,lR=iE,OR=oE,RR=EE,pR=TE,fR=N([aE,iE,oE,EE,TE]),_E="insert",SE="edit",sE="delete",vR=_E,dR=SE,NR=sE,MR=N([_E,SE,sE]),AE="alibaba_cloud",uE="aws",cE="azure",lE="gcp",LR=AE,PR=uE,IR=cE,CR=lE,hR=N([AE,uE,cE,lE]),OE="ip_tcp",RE="ip_udp",pE="ip",fE="unix",vE="pipe",dE="inproc",NE="other",mR=OE,DR=RE,UR=pE,gR=fE,bR=vE,yR=dE,VR=NE,BR=N([OE,RE,pE,fE,vE,dE,NE]),ME="wifi",LE="wired",PE="cell",IE="unavailable",CE="unknown",GR=ME,wR=LE,xR=PE,YR=IE,HR=CE,FR=N([ME,LE,PE,IE,CE]),hE="gprs",mE="edge",DE="umts",UE="cdma",gE="evdo_0",bE="evdo_a",yE="cdma2000_1xrtt",VE="hsdpa",BE="hsupa",GE="hspa",wE="iden",xE="evdo_b",YE="lte",HE="ehrpd",FE="hspap",KE="gsm",XE="td_scdma",WE="iwlan",jE="nr",kE="nrnsa",QE="lte_ca",KR=hE,XR=mE,WR=DE,jR=UE,kR=gE,QR=bE,$R=yE,zR=VE,ZR=BE,JR=GE,qR=wE,ep=xE,tp=YE,rp=HE,np=FE,ap=KE,ip=XE,op=WE,Ep=jE,Tp=kE,_p=QE,Sp=N([hE,mE,DE,UE,gE,bE,yE,VE,BE,GE,wE,xE,YE,HE,FE,KE,XE,WE,jE,kE,QE]),$E="1.0",zE="1.1",ZE="2.0",JE="SPDY",qE="QUIC",sp=$E,Ap=zE,up=ZE,cp=JE,lp=qE,Op={HTTP_1_0:$E,HTTP_1_1:zE,HTTP_2_0:ZE,SPDY:JE,QUIC:qE},eT="queue",tT="topic",Rp=eT,pp=tT,fp=N([eT,tT]),rT="receive",nT="process",vp=rT,dp=nT,Np=N([rT,nT]),aT=0,iT=1,oT=2,ET=3,TT=4,_T=5,ST=6,sT=7,AT=8,uT=9,cT=10,lT=11,OT=12,RT=13,pT=14,fT=15,vT=16,Mp=aT,Lp=iT,Pp=oT,Ip=ET,Cp=TT,hp=_T,mp=ST,Dp=sT,Up=AT,gp=uT,bp=cT,yp=lT,Vp=OT,Bp=RT,Gp=pT,wp=fT,xp=vT,Yp={OK:aT,CANCELLED:iT,UNKNOWN:oT,INVALID_ARGUMENT:ET,DEADLINE_EXCEEDED:TT,NOT_FOUND:_T,ALREADY_EXISTS:ST,PERMISSION_DENIED:sT,RESOURCE_EXHAUSTED:AT,FAILED_PRECONDITION:uT,ABORTED:cT,OUT_OF_RANGE:lT,UNIMPLEMENTED:OT,INTERNAL:RT,UNAVAILABLE:pT,DATA_LOSS:fT,UNAUTHENTICATED:vT},dT="SENT",NT="RECEIVED",Hp=dT,Fp=NT,Kp=N([dT,NT]),MT="cloud.provider",LT="cloud.account.id",PT="cloud.region",IT="cloud.availability_zone",CT="cloud.platform",hT="aws.ecs.container.arn",mT="aws.ecs.cluster.arn",DT="aws.ecs.launchtype",UT="aws.ecs.task.arn",gT="aws.ecs.task.family",bT="aws.ecs.task.revision",yT="aws.eks.cluster.arn",VT="aws.log.group.names",BT="aws.log.group.arns",GT="aws.log.stream.names",wT="aws.log.stream.arns",xT="container.name",YT="container.id",HT="container.runtime",FT="container.image.name",KT="container.image.tag",XT="deployment.environment",WT="device.id",jT="device.model.identifier",kT="device.model.name",QT="faas.name",$T="faas.id",zT="faas.version",ZT="faas.instance",JT="faas.max_memory",qT="host.id",e_="host.name",t_="host.type",r_="host.arch",n_="host.image.name",a_="host.image.id",i_="host.image.version",o_="k8s.cluster.name",E_="k8s.node.name",T_="k8s.node.uid",__="k8s.namespace.name",S_="k8s.pod.uid",s_="k8s.pod.name",A_="k8s.container.name",u_="k8s.replicaset.uid",c_="k8s.replicaset.name",l_="k8s.deployment.uid",O_="k8s.deployment.name",R_="k8s.statefulset.uid",p_="k8s.statefulset.name",f_="k8s.daemonset.uid",v_="k8s.daemonset.name",d_="k8s.job.uid",N_="k8s.job.name",M_="k8s.cronjob.uid",L_="k8s.cronjob.name",P_="os.type",I_="os.description",C_="os.name",h_="os.version",m_="process.pid",D_="process.executable.name",U_="process.executable.path",g_="process.command",b_="process.command_line",y_="process.command_args",V_="process.owner",B_="process.runtime.name",G_="process.runtime.version",w_="process.runtime.description",x_="service.name",Y_="service.namespace",H_="service.instance.id",F_="service.version",K_="telemetry.sdk.name",X_="telemetry.sdk.language",W_="telemetry.sdk.version",j_="telemetry.auto.version",k_="webengine.name",Q_="webengine.version",$_="webengine.description",Xp=MT,Wp=LT,jp=PT,kp=IT,Qp=CT,$p=hT,zp=mT,Zp=DT,Jp=UT,qp=gT,ef=bT,tf=yT,rf=VT,nf=BT,af=GT,of=wT,Ef=xT,Tf=YT,_f=HT,Sf=FT,sf=KT,Af=XT,uf=WT,cf=jT,lf=kT,Of=QT,Rf=$T,pf=zT,ff=ZT,vf=JT,df=qT,Nf=e_,Mf=t_,Lf=r_,Pf=n_,If=a_,Cf=i_,hf=o_,mf=E_,Df=T_,Uf=__,gf=S_,bf=s_,yf=A_,Vf=u_,Bf=c_,Gf=l_,wf=O_,xf=R_,Yf=p_,Hf=f_,Ff=v_,Kf=d_,Xf=N_,Wf=M_,jf=L_,kf=P_,Qf=I_,$f=C_,zf=h_,Zf=m_,Jf=D_,qf=U_,ev=g_,tv=b_,rv=y_,nv=V_,z_=B_,av=G_,iv=w_,Ar=x_,ov=Y_,Ev=H_,Tv=F_,Qe=K_,$e=X_,ze=W_,_v=j_,Sv=k_,sv=Q_,Av=$_,uv=N([MT,LT,PT,IT,CT,hT,mT,DT,UT,gT,bT,yT,VT,BT,GT,wT,xT,YT,HT,FT,KT,XT,WT,jT,kT,QT,$T,zT,ZT,JT,qT,e_,t_,r_,n_,a_,i_,o_,E_,T_,__,S_,s_,A_,u_,c_,l_,O_,R_,p_,f_,v_,d_,N_,M_,L_,P_,I_,C_,h_,m_,D_,U_,g_,b_,y_,V_,B_,G_,w_,x_,Y_,H_,F_,K_,X_,W_,j_,k_,Q_,$_]),Z_="alibaba_cloud",J_="aws",q_="azure",eS="gcp",cv=Z_,lv=J_,Ov=q_,Rv=eS,pv=N([Z_,J_,q_,eS]),tS="alibaba_cloud_ecs",rS="alibaba_cloud_fc",nS="aws_ec2",aS="aws_ecs",iS="aws_eks",oS="aws_lambda",ES="aws_elastic_beanstalk",TS="azure_vm",_S="azure_container_instances",SS="azure_aks",sS="azure_functions",AS="azure_app_service",uS="gcp_compute_engine",cS="gcp_cloud_run",lS="gcp_kubernetes_engine",OS="gcp_cloud_functions",RS="gcp_app_engine",fv=tS,vv=rS,dv=nS,Nv=aS,Mv=iS,Lv=oS,Pv=ES,Iv=TS,Cv=_S,hv=SS,mv=sS,Dv=AS,Uv=uS,gv=cS,bv=lS,yv=OS,Vv=RS,Bv=N([tS,rS,nS,aS,iS,oS,ES,TS,_S,SS,sS,AS,uS,cS,lS,OS,RS]),pS="ec2",fS="fargate",Gv=pS,wv=fS,xv=N([pS,fS]),vS="amd64",dS="arm32",NS="arm64",MS="ia64",LS="ppc32",PS="ppc64",IS="x86",Yv=vS,Hv=dS,Fv=NS,Kv=MS,Xv=LS,Wv=PS,jv=IS,kv=N([vS,dS,NS,MS,LS,PS,IS]),CS="windows",hS="linux",mS="darwin",DS="freebsd",US="netbsd",gS="openbsd",bS="dragonflybsd",yS="hpux",VS="aix",BS="solaris",GS="z_os",Qv=CS,$v=hS,zv=mS,Zv=DS,Jv=US,qv=gS,ed=bS,td=yS,rd=VS,nd=BS,ad=GS,id=N([CS,hS,mS,DS,US,gS,bS,yS,VS,BS,GS]),wS="cpp",xS="dotnet",YS="erlang",HS="go",FS="java",KS="nodejs",XS="php",WS="python",jS="ruby",kS="webjs",od=wS,Ed=xS,Td=YS,_d=HS,Sd=FS,sd=KS,Ad=XS,ud=WS,cd=jS,QS=kS,ld=N([wS,xS,YS,HS,FS,KS,XS,WS,jS,kS]),Od=Object.freeze({__proto__:null,AWSECSLAUNCHTYPEVALUES_EC2:Gv,AWSECSLAUNCHTYPEVALUES_FARGATE:wv,AwsEcsLaunchtypeValues:xv,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:fv,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:vv,CLOUDPLATFORMVALUES_AWS_EC2:dv,CLOUDPLATFORMVALUES_AWS_ECS:Nv,CLOUDPLATFORMVALUES_AWS_EKS:Mv,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:Pv,CLOUDPLATFORMVALUES_AWS_LAMBDA:Lv,CLOUDPLATFORMVALUES_AZURE_AKS:hv,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:Dv,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:Cv,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:mv,CLOUDPLATFORMVALUES_AZURE_VM:Iv,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:Vv,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:yv,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:gv,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:Uv,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:bv,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:cv,CLOUDPROVIDERVALUES_AWS:lv,CLOUDPROVIDERVALUES_AZURE:Ov,CLOUDPROVIDERVALUES_GCP:Rv,CloudPlatformValues:Bv,CloudProviderValues:pv,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:rR,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:SR,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:nR,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:_R,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:iR,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:AR,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:oR,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:aR,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:sR,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:TR,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:ER,DBSYSTEMVALUES_ADABAS:PO,DBSYSTEMVALUES_CACHE:LO,DBSYSTEMVALUES_CASSANDRA:FO,DBSYSTEMVALUES_CLOUDSCAPE:OO,DBSYSTEMVALUES_COCKROACHDB:eR,DBSYSTEMVALUES_COLDFUSION:HO,DBSYSTEMVALUES_COSMOSDB:QO,DBSYSTEMVALUES_COUCHBASE:jO,DBSYSTEMVALUES_COUCHDB:kO,DBSYSTEMVALUES_DB2:AO,DBSYSTEMVALUES_DERBY:CO,DBSYSTEMVALUES_DYNAMODB:$O,DBSYSTEMVALUES_EDB:MO,DBSYSTEMVALUES_ELASTICSEARCH:JO,DBSYSTEMVALUES_FILEMAKER:hO,DBSYSTEMVALUES_FIREBIRD:IO,DBSYSTEMVALUES_FIRSTSQL:NO,DBSYSTEMVALUES_GEODE:ZO,DBSYSTEMVALUES_H2:YO,DBSYSTEMVALUES_HANADB:vO,DBSYSTEMVALUES_HBASE:KO,DBSYSTEMVALUES_HIVE:lO,DBSYSTEMVALUES_HSQLDB:RO,DBSYSTEMVALUES_INFORMIX:mO,DBSYSTEMVALUES_INGRES:dO,DBSYSTEMVALUES_INSTANTDB:DO,DBSYSTEMVALUES_INTERBASE:UO,DBSYSTEMVALUES_MARIADB:gO,DBSYSTEMVALUES_MAXDB:fO,DBSYSTEMVALUES_MEMCACHED:qO,DBSYSTEMVALUES_MONGODB:XO,DBSYSTEMVALUES_MSSQL:_O,DBSYSTEMVALUES_MYSQL:SO,DBSYSTEMVALUES_NEO4J:zO,DBSYSTEMVALUES_NETEZZA:bO,DBSYSTEMVALUES_ORACLE:sO,DBSYSTEMVALUES_OTHER_SQL:TO,DBSYSTEMVALUES_PERVASIVE:yO,DBSYSTEMVALUES_POINTBASE:VO,DBSYSTEMVALUES_POSTGRESQL:uO,DBSYSTEMVALUES_PROGRESS:pO,DBSYSTEMVALUES_REDIS:WO,DBSYSTEMVALUES_REDSHIFT:cO,DBSYSTEMVALUES_SQLITE:BO,DBSYSTEMVALUES_SYBASE:GO,DBSYSTEMVALUES_TERADATA:wO,DBSYSTEMVALUES_VERTICA:xO,DbCassandraConsistencyLevelValues:uR,DbSystemValues:tR,FAASDOCUMENTOPERATIONVALUES_DELETE:NR,FAASDOCUMENTOPERATIONVALUES_EDIT:dR,FAASDOCUMENTOPERATIONVALUES_INSERT:vR,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:LR,FAASINVOKEDPROVIDERVALUES_AWS:PR,FAASINVOKEDPROVIDERVALUES_AZURE:IR,FAASINVOKEDPROVIDERVALUES_GCP:CR,FAASTRIGGERVALUES_DATASOURCE:cR,FAASTRIGGERVALUES_HTTP:lR,FAASTRIGGERVALUES_OTHER:pR,FAASTRIGGERVALUES_PUBSUB:OR,FAASTRIGGERVALUES_TIMER:RR,FaasDocumentOperationValues:MR,FaasInvokedProviderValues:hR,FaasTriggerValues:fR,HOSTARCHVALUES_AMD64:Yv,HOSTARCHVALUES_ARM32:Hv,HOSTARCHVALUES_ARM64:Fv,HOSTARCHVALUES_IA64:Kv,HOSTARCHVALUES_PPC32:Xv,HOSTARCHVALUES_PPC64:Wv,HOSTARCHVALUES_X86:jv,HTTPFLAVORVALUES_HTTP_1_0:sp,HTTPFLAVORVALUES_HTTP_1_1:Ap,HTTPFLAVORVALUES_HTTP_2_0:up,HTTPFLAVORVALUES_QUIC:lp,HTTPFLAVORVALUES_SPDY:cp,HostArchValues:kv,HttpFlavorValues:Op,MESSAGETYPEVALUES_RECEIVED:Fp,MESSAGETYPEVALUES_SENT:Hp,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Rp,MESSAGINGDESTINATIONKINDVALUES_TOPIC:pp,MESSAGINGOPERATIONVALUES_PROCESS:dp,MESSAGINGOPERATIONVALUES_RECEIVE:vp,MessageTypeValues:Kp,MessagingDestinationKindValues:fp,MessagingOperationValues:Np,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:jR,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:$R,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:XR,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:rp,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:kR,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:QR,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:ep,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:KR,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:ap,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:zR,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:JR,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:np,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:ZR,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:qR,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:op,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:tp,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:_p,NETHOSTCONNECTIONSUBTYPEVALUES_NR:Ep,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:Tp,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:ip,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:WR,NETHOSTCONNECTIONTYPEVALUES_CELL:xR,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:YR,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:HR,NETHOSTCONNECTIONTYPEVALUES_WIFI:GR,NETHOSTCONNECTIONTYPEVALUES_WIRED:wR,NETTRANSPORTVALUES_INPROC:yR,NETTRANSPORTVALUES_IP:UR,NETTRANSPORTVALUES_IP_TCP:mR,NETTRANSPORTVALUES_IP_UDP:DR,NETTRANSPORTVALUES_OTHER:VR,NETTRANSPORTVALUES_PIPE:bR,NETTRANSPORTVALUES_UNIX:gR,NetHostConnectionSubtypeValues:Sp,NetHostConnectionTypeValues:FR,NetTransportValues:BR,OSTYPEVALUES_AIX:rd,OSTYPEVALUES_DARWIN:zv,OSTYPEVALUES_DRAGONFLYBSD:ed,OSTYPEVALUES_FREEBSD:Zv,OSTYPEVALUES_HPUX:td,OSTYPEVALUES_LINUX:$v,OSTYPEVALUES_NETBSD:Jv,OSTYPEVALUES_OPENBSD:qv,OSTYPEVALUES_SOLARIS:nd,OSTYPEVALUES_WINDOWS:Qv,OSTYPEVALUES_Z_OS:ad,OsTypeValues:id,RPCGRPCSTATUSCODEVALUES_ABORTED:bp,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:mp,RPCGRPCSTATUSCODEVALUES_CANCELLED:Lp,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:wp,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:Cp,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:gp,RPCGRPCSTATUSCODEVALUES_INTERNAL:Bp,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:Ip,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:hp,RPCGRPCSTATUSCODEVALUES_OK:Mp,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:yp,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:Dp,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:Up,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:xp,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:Gp,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:Vp,RPCGRPCSTATUSCODEVALUES_UNKNOWN:Pp,RpcGrpcStatusCodeValues:Yp,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:Ol,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:hl,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:ul,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:_l,SEMATTRS_AWS_DYNAMODB_COUNT:Il,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:dl,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:fl,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:ml,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Rl,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:Sl,SEMATTRS_AWS_DYNAMODB_LIMIT:ll,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:vl,SEMATTRS_AWS_DYNAMODB_PROJECTION:cl,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:sl,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:Al,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:Cl,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:Ml,SEMATTRS_AWS_DYNAMODB_SEGMENT:Ll,SEMATTRS_AWS_DYNAMODB_SELECT:pl,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:Nl,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:Tl,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:Pl,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:Xu,SEMATTRS_CODE_FILEPATH:Wc,SEMATTRS_CODE_FUNCTION:Kc,SEMATTRS_CODE_LINENO:jc,SEMATTRS_CODE_NAMESPACE:Xc,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:tc,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:oc,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:ic,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:nc,SEMATTRS_DB_CASSANDRA_KEYSPACE:qu,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:ec,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:ac,SEMATTRS_DB_CASSANDRA_TABLE:rc,SEMATTRS_DB_CONNECTION_STRING:ju,SEMATTRS_DB_HBASE_NAMESPACE:Ec,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:Qu,SEMATTRS_DB_MONGODB_COLLECTION:_c,SEMATTRS_DB_MSSQL_INSTANCE_NAME:Ju,SEMATTRS_DB_NAME:$u,SEMATTRS_DB_OPERATION:Zu,SEMATTRS_DB_REDIS_DATABASE_INDEX:Tc,SEMATTRS_DB_SQL_TABLE:Sc,SEMATTRS_DB_STATEMENT:zu,SEMATTRS_DB_SYSTEM:Wu,SEMATTRS_DB_USER:ku,SEMATTRS_ENDUSER_ID:wc,SEMATTRS_ENDUSER_ROLE:xc,SEMATTRS_ENDUSER_SCOPE:Yc,SEMATTRS_EXCEPTION_ESCAPED:sc,SEMATTRS_EXCEPTION_MESSAGE:xe,SEMATTRS_EXCEPTION_STACKTRACE:Ji,SEMATTRS_EXCEPTION_TYPE:we,SEMATTRS_FAAS_COLDSTART:vc,SEMATTRS_FAAS_CRON:fc,SEMATTRS_FAAS_DOCUMENT_COLLECTION:cc,SEMATTRS_FAAS_DOCUMENT_NAME:Rc,SEMATTRS_FAAS_DOCUMENT_OPERATION:lc,SEMATTRS_FAAS_DOCUMENT_TIME:Oc,SEMATTRS_FAAS_EXECUTION:uc,SEMATTRS_FAAS_INVOKED_NAME:dc,SEMATTRS_FAAS_INVOKED_PROVIDER:Nc,SEMATTRS_FAAS_INVOKED_REGION:Mc,SEMATTRS_FAAS_TIME:pc,SEMATTRS_FAAS_TRIGGER:Ac,SEMATTRS_HTTP_CLIENT_IP:El,SEMATTRS_HTTP_FLAVOR:qc,SEMATTRS_HTTP_HOST:zc,SEMATTRS_HTTP_METHOD:kc,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:tl,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:rl,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:nl,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:al,SEMATTRS_HTTP_ROUTE:ol,SEMATTRS_HTTP_SCHEME:Zc,SEMATTRS_HTTP_SERVER_NAME:il,SEMATTRS_HTTP_STATUS_CODE:Jc,SEMATTRS_HTTP_TARGET:$c,SEMATTRS_HTTP_URL:Qc,SEMATTRS_HTTP_USER_AGENT:el,SEMATTRS_MESSAGE_COMPRESSED_SIZE:iO,SEMATTRS_MESSAGE_ID:aO,SEMATTRS_MESSAGE_TYPE:nO,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:oO,SEMATTRS_MESSAGING_CONSUMER_ID:Fl,SEMATTRS_MESSAGING_CONVERSATION_ID:wl,SEMATTRS_MESSAGING_DESTINATION:Ul,SEMATTRS_MESSAGING_DESTINATION_KIND:gl,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:jl,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:Wl,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:Xl,SEMATTRS_MESSAGING_KAFKA_PARTITION:kl,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:Ql,SEMATTRS_MESSAGING_MESSAGE_ID:Gl,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:Yl,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:xl,SEMATTRS_MESSAGING_OPERATION:Hl,SEMATTRS_MESSAGING_PROTOCOL:yl,SEMATTRS_MESSAGING_PROTOCOL_VERSION:Vl,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:Kl,SEMATTRS_MESSAGING_SYSTEM:Dl,SEMATTRS_MESSAGING_TEMP_DESTINATION:bl,SEMATTRS_MESSAGING_URL:Bl,SEMATTRS_NET_HOST_CARRIER_ICC:Bc,SEMATTRS_NET_HOST_CARRIER_MCC:yc,SEMATTRS_NET_HOST_CARRIER_MNC:Vc,SEMATTRS_NET_HOST_CARRIER_NAME:bc,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:gc,SEMATTRS_NET_HOST_CONNECTION_TYPE:Uc,SEMATTRS_NET_HOST_IP:hc,SEMATTRS_NET_HOST_NAME:Dc,SEMATTRS_NET_HOST_PORT:mc,SEMATTRS_NET_PEER_IP:Pc,SEMATTRS_NET_PEER_NAME:Cc,SEMATTRS_NET_PEER_PORT:Ic,SEMATTRS_NET_TRANSPORT:Lc,SEMATTRS_PEER_SERVICE:Gc,SEMATTRS_RPC_GRPC_STATUS_CODE:Jl,SEMATTRS_RPC_JSONRPC_ERROR_CODE:tO,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:rO,SEMATTRS_RPC_JSONRPC_REQUEST_ID:eO,SEMATTRS_RPC_JSONRPC_VERSION:ql,SEMATTRS_RPC_METHOD:Zl,SEMATTRS_RPC_SERVICE:zl,SEMATTRS_RPC_SYSTEM:$l,SEMATTRS_THREAD_ID:Hc,SEMATTRS_THREAD_NAME:Fc,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:zp,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:$p,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:Zp,SEMRESATTRS_AWS_ECS_TASK_ARN:Jp,SEMRESATTRS_AWS_ECS_TASK_FAMILY:qp,SEMRESATTRS_AWS_ECS_TASK_REVISION:ef,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:tf,SEMRESATTRS_AWS_LOG_GROUP_ARNS:nf,SEMRESATTRS_AWS_LOG_GROUP_NAMES:rf,SEMRESATTRS_AWS_LOG_STREAM_ARNS:of,SEMRESATTRS_AWS_LOG_STREAM_NAMES:af,SEMRESATTRS_CLOUD_ACCOUNT_ID:Wp,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:kp,SEMRESATTRS_CLOUD_PLATFORM:Qp,SEMRESATTRS_CLOUD_PROVIDER:Xp,SEMRESATTRS_CLOUD_REGION:jp,SEMRESATTRS_CONTAINER_ID:Tf,SEMRESATTRS_CONTAINER_IMAGE_NAME:Sf,SEMRESATTRS_CONTAINER_IMAGE_TAG:sf,SEMRESATTRS_CONTAINER_NAME:Ef,SEMRESATTRS_CONTAINER_RUNTIME:_f,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:Af,SEMRESATTRS_DEVICE_ID:uf,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:cf,SEMRESATTRS_DEVICE_MODEL_NAME:lf,SEMRESATTRS_FAAS_ID:Rf,SEMRESATTRS_FAAS_INSTANCE:ff,SEMRESATTRS_FAAS_MAX_MEMORY:vf,SEMRESATTRS_FAAS_NAME:Of,SEMRESATTRS_FAAS_VERSION:pf,SEMRESATTRS_HOST_ARCH:Lf,SEMRESATTRS_HOST_ID:df,SEMRESATTRS_HOST_IMAGE_ID:If,SEMRESATTRS_HOST_IMAGE_NAME:Pf,SEMRESATTRS_HOST_IMAGE_VERSION:Cf,SEMRESATTRS_HOST_NAME:Nf,SEMRESATTRS_HOST_TYPE:Mf,SEMRESATTRS_K8S_CLUSTER_NAME:hf,SEMRESATTRS_K8S_CONTAINER_NAME:yf,SEMRESATTRS_K8S_CRONJOB_NAME:jf,SEMRESATTRS_K8S_CRONJOB_UID:Wf,SEMRESATTRS_K8S_DAEMONSET_NAME:Ff,SEMRESATTRS_K8S_DAEMONSET_UID:Hf,SEMRESATTRS_K8S_DEPLOYMENT_NAME:wf,SEMRESATTRS_K8S_DEPLOYMENT_UID:Gf,SEMRESATTRS_K8S_JOB_NAME:Xf,SEMRESATTRS_K8S_JOB_UID:Kf,SEMRESATTRS_K8S_NAMESPACE_NAME:Uf,SEMRESATTRS_K8S_NODE_NAME:mf,SEMRESATTRS_K8S_NODE_UID:Df,SEMRESATTRS_K8S_POD_NAME:bf,SEMRESATTRS_K8S_POD_UID:gf,SEMRESATTRS_K8S_REPLICASET_NAME:Bf,SEMRESATTRS_K8S_REPLICASET_UID:Vf,SEMRESATTRS_K8S_STATEFULSET_NAME:Yf,SEMRESATTRS_K8S_STATEFULSET_UID:xf,SEMRESATTRS_OS_DESCRIPTION:Qf,SEMRESATTRS_OS_NAME:$f,SEMRESATTRS_OS_TYPE:kf,SEMRESATTRS_OS_VERSION:zf,SEMRESATTRS_PROCESS_COMMAND:ev,SEMRESATTRS_PROCESS_COMMAND_ARGS:rv,SEMRESATTRS_PROCESS_COMMAND_LINE:tv,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:Jf,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:qf,SEMRESATTRS_PROCESS_OWNER:nv,SEMRESATTRS_PROCESS_PID:Zf,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:iv,SEMRESATTRS_PROCESS_RUNTIME_NAME:z_,SEMRESATTRS_PROCESS_RUNTIME_VERSION:av,SEMRESATTRS_SERVICE_INSTANCE_ID:Ev,SEMRESATTRS_SERVICE_NAME:Ar,SEMRESATTRS_SERVICE_NAMESPACE:ov,SEMRESATTRS_SERVICE_VERSION:Tv,SEMRESATTRS_TELEMETRY_AUTO_VERSION:_v,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:$e,SEMRESATTRS_TELEMETRY_SDK_NAME:Qe,SEMRESATTRS_TELEMETRY_SDK_VERSION:ze,SEMRESATTRS_WEBENGINE_DESCRIPTION:Av,SEMRESATTRS_WEBENGINE_NAME:Sv,SEMRESATTRS_WEBENGINE_VERSION:sv,SemanticAttributes:EO,SemanticResourceAttributes:uv,TELEMETRYSDKLANGUAGEVALUES_CPP:od,TELEMETRYSDKLANGUAGEVALUES_DOTNET:Ed,TELEMETRYSDKLANGUAGEVALUES_ERLANG:Td,TELEMETRYSDKLANGUAGEVALUES_GO:_d,TELEMETRYSDKLANGUAGEVALUES_JAVA:Sd,TELEMETRYSDKLANGUAGEVALUES_NODEJS:sd,TELEMETRYSDKLANGUAGEVALUES_PHP:Ad,TELEMETRYSDKLANGUAGEVALUES_PYTHON:ud,TELEMETRYSDKLANGUAGEVALUES_RUBY:cd,TELEMETRYSDKLANGUAGEVALUES_WEBJS:QS,TelemetrySdkLanguageValues:ld}),q,Ye=(q={},q[Qe]="opentelemetry",q[z_]="browser",q[$e]=QS,q[ze]=Un,q);function Rd(e){}var $S=9,pd=6,fd=Math.pow(10,pd),Ze=Math.pow(10,$S);function w(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*fd);return[r,n]}function ot(){var e=z.timeOrigin;if(typeof e!="number"){var t=z;e=t.timing&&t.timing.fetchStart}return e}function ur(e){var t=w(ot()),r=w(typeof e=="number"?e:z.now());return cr(t,r)}function vd(e){if(Et(e))return e;if(typeof e=="number")return e<ot()?ur(e):w(e);if(e instanceof Date)return w(e.getTime());throw TypeError("Invalid input type")}function zS(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=Ze),[r,n]}function dd(e){var t=$S,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),a=new Date(e[0]*1e3).toISOString();return a.replace("000Z",n)}function Nd(e){return e[0]*Ze+e[1]}function Md(e){return e[0]*1e3+e[1]/1e6}function Ld(e){return e[0]*1e6+e[1]/1e3}function Et(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Bt(e){return Et(e)||typeof e=="number"||e instanceof Date}function cr(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=Ze&&(r[1]-=Ze,r[0]+=1),r}var oe;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(oe||(oe={}));var Pd=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ZS=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,a){return n.concat(a)},[])))}return e.prototype.inject=function(t,r,n){var a,i;try{for(var o=Pd(this._propagators),E=o.next();!E.done;E=o.next()){var T=E.value;try{T.inject(t,r,n)}catch(_){c.warn("Failed to inject with "+T.constructor.name+". Err: "+_.message)}}}catch(_){a={error:_}}finally{try{E&&!E.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(a,i){try{return i.extract(a,r,n)}catch(o){c.warn("Failed to inject with "+i.constructor.name+". Err: "+o.message)}return a},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),Gt="[_0-9a-z-*/]",Id="[a-z]"+Gt+"{0,255}",Cd="[a-z0-9]"+Gt+"{0,240}@[a-z]"+Gt+"{0,13}",hd=new RegExp("^(?:"+Id+"|"+Cd+")$"),md=/^[ -~]{0,255}[!-~]$/,Dd=/,|=/;function Ud(e){return hd.test(e)}function gd(e){return md.test(e)&&!Dd.test(e)}var Qr=32,bd=512,$r=",",zr="=",JS=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+zr+t.get(n)),r},[]).join($r)},e.prototype._parse=function(t){t.length>bd||(this._internalState=t.split($r).reverse().reduce(function(r,n){var a=n.trim(),i=a.indexOf(zr);if(i!==-1){var o=a.slice(0,i),E=a.slice(i+1,n.length);Ud(o)&&gd(E)&&r.set(o,E)}return r},new Map),this._internalState.size>Qr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Qr))))},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}(),He="traceparent",Fe="tracestate",yd="00",Vd="(?!ff)[\\da-f]{2}",Bd="(?![0]{32})[\\da-f]{32}",Gd="(?![0]{16})[\\da-f]{16}",wd="[\\da-f]{2}",xd=new RegExp("^\\s?("+Vd+")-("+Bd+")-("+Gd+")-("+wd+")(-.*)?\\s?$");function qS(e){var t=xd.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var es=function(){function e(){}return e.prototype.inject=function(t,r,n){var a=I.getSpanContext(t);if(!(!a||it(t)||!Se(a))){var i=yd+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||m.NONE).toString(16);n.set(r,He,i),a.traceState&&n.set(r,Fe,a.traceState.serialize())}},e.prototype.extract=function(t,r,n){var a=n.get(r,He);if(!a)return t;var i=Array.isArray(a)?a[0]:a;if(typeof i!="string")return t;var o=qS(i);if(!o)return t;o.isRemote=!0;var E=n.get(r,Fe);if(E){var T=Array.isArray(E)?E.join(","):E;o.traceState=new JS(typeof T=="string"?T:void 0)}return I.setSpanContext(t,o)},e.prototype.fields=function(){return[He,Fe]},e}(),lr=me("OpenTelemetry SDK Context Key RPC_METADATA"),wt;(function(e){e.HTTP="http"})(wt||(wt={}));function Yd(e,t){return e.setValue(lr,t)}function Hd(e){return e.deleteValue(lr)}function Fd(e){return e.getValue(lr)}var xt=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:x.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Ke=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:x.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),Kd=function(){function e(t){var r,n,a,i;this._root=t.root,this._root||(ie(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ke),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new Ke,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new xt,this._localParentSampled=(a=t.localParentSampled)!==null&&a!==void 0?a:new Ke,this._localParentNotSampled=(i=t.localParentNotSampled)!==null&&i!==void 0?i:new xt}return e.prototype.shouldSample=function(t,r,n,a,i,o){var E=I.getSpanContext(t);return!E||!Se(E)?this._root.shouldSample(t,r,n,a,i,o):E.isRemote?E.traceFlags&m.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,a,i,o):this._remoteParentNotSampled.shouldSample(t,r,n,a,i,o):E.traceFlags&m.SAMPLED?this._localParentSampled.shouldSample(t,r,n,a,i,o):this._localParentNotSampled.shouldSample(t,r,n,a,i,o)},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}(),Xd=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:at(r)&&this._accumulate(r)<this._upperBound?x.RECORD_AND_SAMPLED:x.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var a=n*8,i=parseInt(t.slice(a,a+8),16);r=(r^i)>>>0}return r},e}(),Wd="[object Object]",jd="[object Null]",kd="[object Undefined]",Qd=Function.prototype,ts=Qd.toString,$d=ts.call(Object),zd=Zd(Object.getPrototypeOf,Object),rs=Object.prototype,ns=rs.hasOwnProperty,k=Symbol?Symbol.toStringTag:void 0,as=rs.toString;function Zd(e,t){return function(r){return e(t(r))}}function Zr(e){if(!Jd(e)||qd(e)!==Wd)return!1;var t=zd(e);if(t===null)return!0;var r=ns.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ts.call(r)===$d}function Jd(e){return e!=null&&typeof e=="object"}function qd(e){return e==null?e===void 0?kd:jd:k&&k in Object(e)?eN(e):tN(e)}function eN(e){var t=ns.call(e,k),r=e[k],n=!1;try{e[k]=void 0,n=!0}catch{}var a=as.call(e);return n&&(t?e[k]=r:delete e[k]),a}function tN(e){return as.call(e)}var rN=20;function is(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=os(r,e.shift(),0,n);return r}function ht(e){return Je(e)?e.slice():e}function os(e,t,r,n){r===void 0&&(r=0);var a;if(!(r>rN)){if(r++,Xe(e)||Xe(t)||Es(t))a=ht(t);else if(Je(e)){if(a=e.slice(),Je(t))for(var i=0,o=t.length;i<o;i++)a.push(ht(t[i]));else if(le(t))for(var E=Object.keys(t),i=0,o=E.length;i<o;i++){var T=E[i];a[T]=ht(t[T])}}else if(le(e))if(le(t)){if(!nN(e,t))return t;a=Object.assign({},e);for(var E=Object.keys(t),i=0,o=E.length;i<o;i++){var T=E[i],_=t[T];if(Xe(_))typeof _>"u"?delete a[T]:a[T]=_;else{var s=a[T],S=_;if(Jr(e,T,n)||Jr(t,T,n))delete a[T];else{if(le(s)&&le(S)){var R=n.get(s)||[],L=n.get(S)||[];R.push({obj:e,key:T}),L.push({obj:t,key:T}),n.set(s,R),n.set(S,L)}a[T]=os(a[T],_,r,n)}}}}else a=t;return a}}function Jr(e,t,r){for(var n=r.get(e[t])||[],a=0,i=n.length;a<i;a++){var o=n[a];if(o.key===t&&o.obj===e)return!0}return!1}function Je(e){return Array.isArray(e)}function Es(e){return typeof e=="function"}function le(e){return!Xe(e)&&!Je(e)&&!Es(e)&&typeof e=="object"}function Xe(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function nN(e,t){return!(!Zr(e)||!Zr(t))}var aN=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ts=function(e){aN(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);function iN(e,t){var r,n=new Promise(function(i,o){r=setTimeout(function(){o(new Ts("Operation timed out."))},t)});return Promise.race([e,n]).then(function(a){return clearTimeout(r),a},function(a){throw clearTimeout(r),a})}var oN=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function _s(e,t){return typeof t=="string"?e===t:!!e.match(t)}function EN(e,t){var r,n;if(!t)return!1;try{for(var a=oN(t),i=a.next();!i.done;i=a.next()){var o=i.value;if(_s(e,o))return!0}}catch(E){r={error:E}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1}function TN(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var _N=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),SN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},sN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},Ss=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new _N}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,sN([this._that],SN(n),!1))).then(function(i){return r._deferred.resolve(i)},function(i){return r._deferred.reject(i)})}catch(i){this._deferred.reject(i)}}return this._deferred.promise},e}();function AN(e,t){return new Promise(function(r){y.with(or(y.active()),function(){e.export(t,function(n){r(n)})})})}var uN={_export:AN},cN=Object.freeze({__proto__:null,AlwaysOffSampler:xt,AlwaysOnSampler:Ke,AnchoredClock:vu,BindOnceFuture:Ss,CompositePropagator:ZS,DEFAULT_ATTRIBUTE_COUNT_LIMIT:de,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:ve,DEFAULT_ENVIRONMENT:_r,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Cn,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:hn,get ExportResultCode(){return oe},ParentBasedSampler:Kd,get RPCType(){return wt},RandomIdGenerator:Ku,SDK_INFO:Ye,TRACE_PARENT_HEADER:He,TRACE_STATE_HEADER:Fe,TimeoutError:Ts,TraceIdRatioBasedSampler:Xd,TraceState:JS,get TracesSamplerValues(){return b},VERSION:Un,W3CBaggagePropagator:dn,W3CTraceContextPropagator:es,_globalThis:sr,addHrTimes:cr,baggageUtils:fu,callWithTimeout:iN,deleteRPCMetadata:Hd,getEnv:P,getEnvWithoutDefaults:mn,getRPCMetadata:Fd,getTimeOrigin:ot,globalErrorHandler:ie,hexToBase64:Yu,hexToBinary:Dn,hrTime:ur,hrTimeDuration:zS,hrTimeToMicroseconds:Ld,hrTimeToMilliseconds:Md,hrTimeToNanoseconds:Nd,hrTimeToTimeStamp:dd,internal:uN,isAttributeKey:Mn,isAttributeValue:Tr,isTimeInput:Bt,isTimeInputHrTime:Et,isTracingSuppressed:it,isUrlIgnored:EN,isWrapped:TN,loggingErrorHandler:Pn,merge:is,millisToHrTime:w,otperformance:z,parseEnvironment:Sr,parseTraceParent:qS,sanitizeAttributes:fe,setGlobalErrorHandler:Pu,setRPCMetadata:Yd,suppressTracing:or,timeInputToHrTime:vd,unrefTimer:Rd,unsuppressTracing:Au,urlMatches:_s}),lN="exception",ON=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qr=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},RN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},pN=function(){function e(t,r,n,a,i,o,E,T,_,s){E===void 0&&(E=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:je.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=a,this.parentSpanId=o,this.kind=i,this.links=E;var S=Date.now();this._performanceStartTime=z.now(),this._performanceOffset=S-(this._performanceStartTime+ot()),this._startTimeProvided=T!=null,this.startTime=this._getTime(T??S),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,s!=null&&this.setAttributes(s),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(c.warn("Invalid attribute key: "+t),this):Tr(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(c.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var a=ON(Object.entries(t)),i=a.next();!i.done;i=a.next()){var o=qr(i.value,2),E=o[0],T=o[1];this.setAttribute(E,T)}}catch(_){r={error:_}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return c.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&c.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Bt(r)&&(Bt(n)||(n=r),r=void 0);var a=fe(r);return this.events.push({name:t,attributes:a,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return(r=this.links).push.apply(r,RN([],qr(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=t,this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){c.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=zS(this.startTime,this.endTime),this._duration[0]<0&&(c.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&&c.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<z.now())return ur(t+this._performanceOffset);if(typeof t=="number")return w(t);if(t instanceof Date)return w(t.getTime());if(Et(t))return t;if(this._startTimeProvided)return w(Date.now());var r=z.now()-this._performanceStartTime;return cr(this.startTime,w(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[xe]=t:t&&(t.code?n[we]=t.code.toString():t.name&&(n[we]=t.name),t.message&&(n[xe]=t.message),t.stack&&(n[Ji]=t.stack)),n[we]||n[xe]?this.addEvent(lN,n,r):c.warn("Failed to record an exception "+t)},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}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&c.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substr(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(c.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(a){return typeof a=="string"?r._truncateToLimitUtil(a,n):a}):t},e}(),Ee;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ee||(Ee={}));var qe=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Ee.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),ae=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Ee.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),mt=function(){function e(t){var r,n,a,i;this._root=t.root,this._root||(ie(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ae),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new ae,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new qe,this._localParentSampled=(a=t.localParentSampled)!==null&&a!==void 0?a:new ae,this._localParentNotSampled=(i=t.localParentNotSampled)!==null&&i!==void 0?i:new qe}return e.prototype.shouldSample=function(t,r,n,a,i,o){var E=I.getSpanContext(t);return!E||!Se(E)?this._root.shouldSample(t,r,n,a,i,o):E.isRemote?E.traceFlags&m.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,a,i,o):this._remoteParentNotSampled.shouldSample(t,r,n,a,i,o):E.traceFlags&m.SAMPLED?this._localParentSampled.shouldSample(t,r,n,a,i,o):this._localParentNotSampled.shouldSample(t,r,n,a,i,o)},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}(),en=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:at(r)&&this._accumulate(r)<this._upperBound?Ee.RECORD_AND_SAMPLED:Ee.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var a=n*8,i=parseInt(t.slice(a,a+8),16);r=(r^i)>>>0}return r},e}(),fN=P(),vN=b.AlwaysOn,ee=1;function ss(){return{sampler:As(fN),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:P().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:P().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:P().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:P().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:P().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:P().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:P().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:P().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function As(e){switch(e===void 0&&(e=P()),e.OTEL_TRACES_SAMPLER){case b.AlwaysOn:return new ae;case b.AlwaysOff:return new qe;case b.ParentBasedAlwaysOn:return new mt({root:new ae});case b.ParentBasedAlwaysOff:return new mt({root:new qe});case b.TraceIdRatio:return new en(tn(e));case b.ParentBasedTraceIdRatio:return new mt({root:new en(tn(e))});default:return c.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+vN+'".'),new ae}}function tn(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return c.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+ee+"."),ee;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(c.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+ee+"."),ee):t<0||t>1?(c.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+ee+"."),ee):t}function dN(e){var t={sampler:As()},r=ss(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function NN(e){var t,r,n,a,i,o,E,T,_,s,S,R,L=Object.assign({},e.spanLimits),C=mn();return L.attributeCountLimit=(o=(i=(a=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&a!==void 0?a:C.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:C.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:de,L.attributeValueLengthLimit=(R=(S=(s=(T=(E=e.spanLimits)===null||E===void 0?void 0:E.attributeValueLengthLimit)!==null&&T!==void 0?T:(_=e.generalLimits)===null||_===void 0?void 0:_.attributeValueLengthLimit)!==null&&s!==void 0?s:C.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&S!==void 0?S:C.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&R!==void 0?R:ve,Object.assign({},e,{spanLimits:L})}var MN=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=P();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Ss(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(c.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&m.SAMPLED&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.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()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&c.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(c.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var a=[],i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),o=0,E=i;o<E;o++)a.push(t._flushOneBatch());Promise.all(a).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var a=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);y.with(or(y.active()),function(){var i;t._finishedSpans.length<=t._maxExportBatchSize?(i=t._finishedSpans,t._finishedSpans=[]):i=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var o=function(){return t._exporter.export(i,function(S){var R;clearTimeout(a),S.code===oe.SUCCESS?r():n((R=S.error)!==null&&R!==void 0?R:new Error("BatchSpanProcessor: span export failed"))})},E=null,T=0,_=i.length;T<_;T++){var s=i[T];s.resource.asyncAttributesPending&&s.resource.waitForAsyncAttributes&&(E??(E=[]),E.push(s.resource.waitForAsyncAttributes()))}E===null?o():Promise.all(E).then(o,function(S){ie(S),n(S)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=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,ie(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis))}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),LN=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),PN=function(e){LN(t,e);function t(r,n){var a=e.call(this,r,n)||this;return a.onInit(n),a}return t.prototype.onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},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}(MN),IN=8,CN=16,hN=function(){function e(){this.generateTraceId=rn(CN),this.generateSpanId=rn(IN)}return e}(),ye=Array(32);function rn(e){return function(){for(var r=0;r<e*2;r++)ye[r]=Math.floor(Math.random()*16)+48,ye[r]>=58&&(ye[r]+=39);return String.fromCharCode.apply(null,ye.slice(0,e*2))}}var mN=function(){function e(t,r,n){this._tracerProvider=n;var a=dN(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new hN,this.resource=n.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,r,n){var a,i,o;r===void 0&&(r={}),n===void 0&&(n=y.active()),r.root&&(n=I.deleteSpan(n));var E=I.getSpan(n);if(it(n)){c.debug("Instrumentation suppressed, returning Noop Span");var T=I.wrapSpanContext(qt);return T}var _=E?.spanContext(),s=this._idGenerator.generateSpanId(),S,R,L;!_||!I.isSpanContextValid(_)?S=this._idGenerator.generateTraceId():(S=_.traceId,R=_.traceState,L=_.spanId);var C=(a=r.kind)!==null&&a!==void 0?a:We.INTERNAL,B=((i=r.links)!==null&&i!==void 0?i:[]).map(function(Ue){return{context:Ue.context,attributes:fe(Ue.attributes)}}),u=fe(r.attributes),f=this._sampler.shouldSample(n,S,t,C,u,B);R=(o=f.traceState)!==null&&o!==void 0?o:R;var M=f.decision===x.RECORD_AND_SAMPLED?m.SAMPLED:m.NONE,l={traceId:S,spanId:s,traceFlags:M,traceState:R};if(f.decision===x.NOT_RECORD){c.debug("Recording is off, propagating context in a non-recording span");var T=I.wrapSpanContext(l);return T}var d=fe(Object.assign(u,f.attributes)),U=new pN(this,n,t,l,C,L,B,r.startTime,void 0,d);return U},e.prototype.startActiveSpan=function(t,r,n,a){var i,o,E;if(!(arguments.length<2)){arguments.length===2?E=r:arguments.length===3?(i=r,E=n):(i=r,o=n,E=a);var T=o??y.active(),_=this.startSpan(t,i,T),s=I.setSpan(T,_);return y.with(s,E,void 0,_)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}();function DN(){return"unknown_service"}var H=function(){return H=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},H.apply(this,arguments)},UN=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function E(s){try{_(n.next(s))}catch(S){o(S)}}function T(s){try{_(n.throw(s))}catch(S){o(S)}}function _(s){s.done?i(s.value):a(s.value).then(E,T)}_((n=n.apply(e,t||[])).next())})},gN=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function E(_){return function(s){return T([_,s])}}function T(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=_[0]&2?a.return:_[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,_[1])).done)return i;switch(a=0,i&&(_=[_[0]&2,i.value]),_[0]){case 0:case 1:i=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,a=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!i||_[1]>i[0]&&_[1]<i[3])){r.label=_[1];break}if(_[0]===6&&r.label<i[1]){r.label=i[1],i=_;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(_);break}i[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(s){_=[6,s],a=0}finally{n=i=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},bN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},nn=function(){function e(t,r){var n=this,a;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=r?.then(function(i){return n._attributes=Object.assign({},n._attributes,i),n.asyncAttributesPending=!1,i},function(i){return c.debug("a resource's async attributes promise rejected: %s",i),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[Ar]=DN(),t[$e]=Ye[$e],t[Qe]=Ye[Qe],t[ze]=Ye[ze],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&c.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return UN(this,void 0,void 0,function(){return gN(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]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var a=H(H({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(a);var i=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(o){var E,T=bN(o,2),_=T[0],s=T[1];return H(H(H(H({},r._syncAttributes),_),(E=t._syncAttributes)!==null&&E!==void 0?E:t.attributes),s)});return new e(a,i)},e.EMPTY=new e({}),e}(),Ve=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},yN=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var a=Ve(this._spanProcessors),i=a.next();!i.done;i=a.next()){var o=i.value;n.push(o.forceFlush())}}catch(E){t={error:E}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return new Promise(function(E){Promise.all(n).then(function(){E()}).catch(function(T){ie(T||new Error("MultiSpanProcessor: forceFlush failed")),E()})})},e.prototype.onStart=function(t,r){var n,a;try{for(var i=Ve(this._spanProcessors),o=i.next();!o.done;o=i.next()){var E=o.value;E.onStart(t,r)}}catch(T){n={error:T}}finally{try{o&&!o.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var a=Ve(this._spanProcessors),i=a.next();!i.done;i=a.next()){var o=i.value;o.onEnd(t)}}catch(E){r={error:E}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var a=Ve(this._spanProcessors),i=a.next();!i.done;i=a.next()){var o=i.value;n.push(o.shutdown())}}catch(E){t={error:E}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return new Promise(function(E,T){Promise.all(n).then(function(){E()},T)})},e}(),VN=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),Q;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Q||(Q={}));var BN=function(){function e(t){t===void 0&&(t={});var r;this._registeredSpanProcessors=[],this._tracers=new Map;var n=is({},ss(),NN(t));this.resource=(r=n.resource)!==null&&r!==void 0?r:nn.empty(),this.resource=nn.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var i=new PN(a);this.activeSpanProcessor=i}else this.activeSpanProcessor=new VN}return e.prototype.getTracer=function(t,r,n){var a=t+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new mN({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(a)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return c.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new yN(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),I.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&y.setGlobalContextManager(t.contextManager),t.propagator&&ne.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(a){var i,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+t+" ms")),i=Q.timeout},t);n.forceFlush().then(function(){clearTimeout(o),i!==Q.timeout&&(i=Q.resolved,a(i))}).catch(function(E){clearTimeout(o),i=Q.error,a(E)})})});return new Promise(function(n,a){Promise.all(r).then(function(i){var o=i.filter(function(E){return E!==Q.resolved});o.length>0?a(o):n()}).catch(function(i){return a([i])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return(r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return(r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(P().OTEL_PROPAGATORS)),n=r.map(function(i){var o=t._getPropagator(i);return o||c.warn('Propagator "'+i+'" requested through environment variable is unavailable.'),o}),a=n.reduce(function(i,o){return o&&i.push(o),i},[]);if(a.length!==0)return r.length===1?a[0]:new ZS({propagators:a})},e.prototype._buildExporterFromEnv=function(){var t=P().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||c.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new es}],["baggage",function(){return new dn}]]),e._registeredExporters=new Map,e}(),GN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},wN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},xN=function(){function e(){this._enabled=!1,this._currentContext=j}return e.prototype._bindFunction=function(t,r){t===void 0&&(t=j);var n=this,a=function(){for(var i=this,o=[],E=0;E<arguments.length;E++)o[E]=arguments[E];return n.with(t,function(){return r.apply(i,o)})};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),a},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r},e.prototype.disable=function(){return this._currentContext=j,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=j,this)},e.prototype.with=function(t,r,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];var o=this._currentContext;this._currentContext=t||j;try{return r.call.apply(r,wN([n],GN(a),!1))}finally{this._currentContext=o}},e}(),YN=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),HN=function(e){YN(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,r)||this;if(r.contextManager)throw"contextManager should be defined in register method not in constructor";if(r.propagator)throw"propagator should be defined in register method not in constructor";return n}return t.prototype.register=function(r){r===void 0&&(r={}),r.contextManager===void 0&&(r.contextManager=new xN),r.contextManager&&r.contextManager.enable(),e.prototype.register.call(this,r)},t}(BN),FN=function(){function e(){}return e.prototype.emit=function(t){},e}(),KN=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new FN},e}(),an=new KN,XN=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Be=Symbol.for("io.opentelemetry.js.api.logs"),Oe=XN;function WN(e,t,r){return function(n){return n===e?t:r}}var on=1,jN=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return Oe[Be]?this.getLoggerProvider():(Oe[Be]=WN(on,t,an),t)},e.prototype.getLoggerProvider=function(){var t,r;return(r=(t=Oe[Be])===null||t===void 0?void 0:t.call(Oe,on))!==null&&r!==void 0?r:an},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete Oe[Be]},e}(),kN=jN.getInstance();function QN(e,t,r,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];t&&o.setTracerProvider(t),r&&o.setMeterProvider(r),n&&o.setLoggerProvider&&o.setLoggerProvider(n),o.getConfig().enabled||o.enable()}}function $N(e){e.forEach(function(t){return t.disable()})}function zN(e){var t,r,n=e.tracerProvider||I.getTracerProvider(),a=e.meterProvider||nr.getMeterProvider(),i=e.loggerProvider||kN.getLoggerProvider(),o=(r=(t=e.instrumentations)===null||t===void 0?void 0:t.flat())!==null&&r!==void 0?r:[];return QN(o,n,a,i),function(){$N(o)}}var re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Rr={},pr=Or(su),us=Or(Od),cs=Or(cN),ls={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.defaultServiceName=void 0;function ZN(){return"unknown_service"}Tt.defaultServiceName=ZN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultServiceName=void 0;var t=Tt;Object.defineProperty(e,"defaultServiceName",{enumerable:!0,get:function(){return t.defaultServiceName}})})(ls);Object.defineProperty(Rr,"__esModule",{value:!0});var Os=Rr.Resource=void 0,En=pr,X=us,Dt=cs,JN=ls,Le=class e{constructor(t,r){var n;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(n=this._attributes)!==null&&n!==void 0?n:{},this._asyncAttributesPromise=r?.then(a=>(this._attributes=Object.assign({},this._attributes,a),this.asyncAttributesPending=!1,a),a=>(En.diag.debug("a resource's async attributes promise rejected: %s",a),this.asyncAttributesPending=!1,{}))}static empty(){return e.EMPTY}static default(){return new e({[X.SEMRESATTRS_SERVICE_NAME]:(0,JN.defaultServiceName)(),[X.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Dt.SDK_INFO[X.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[X.SEMRESATTRS_TELEMETRY_SDK_NAME]:Dt.SDK_INFO[X.SEMRESATTRS_TELEMETRY_SDK_NAME],[X.SEMRESATTRS_TELEMETRY_SDK_VERSION]:Dt.SDK_INFO[X.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var t;return this.asyncAttributesPending&&En.diag.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(t){var r;if(!t)return this;let n=Object.assign(Object.assign({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(n);let a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(([i,o])=>{var E;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),i),(E=t._syncAttributes)!==null&&E!==void 0?E:t.attributes),o)});return new e(n,a)}};Os=Rr.Resource=Le;Le.EMPTY=new Le({});var qN=typeof performance<"u";function eM(){let e;return!qN||!performance.now?e=Date.now():performance.timeOrigin?e=performance.timeOrigin+performance.now():performance.timing&&performance.timing.navigationStart?e=performance.timing.navigationStart+performance.now():e=Date.now()+performance.now(),e}function tM(e){return Math.round(e*1e6)}function rM(){return tM(eM())}var Ut;function nM(){return Ut===void 0&&(Ut="keepalive"in new Request("")),Ut}var Yt=class{constructor(t){this.maxRetryInterval=1e3*60*5,this.headers={},this.retryInterval=1e4,this.retryCount=5,this.onBeforeUnload=this.onBeforeUnload.bind(this),this.xhrHandler=this.xhrHandler.bind(this),this.retry=this.retry.bind(this),this.dataType=t.dataType,this.data=this.initData(t),this.url=(t.apiHost||"https://api-hprof.odkl.ru")+t.apiUrl+this.initQueryParams(t),this.dataType==="json"?this.headers["Content-Type"]="application/json;charset=utf-8":this.dataType==="blob"&&(this.headers["Content-Type"]="application/octet-stream"),t.beforeUnload?this.onBeforeUnload():(typeof window<"u"&&window.addEventListener("beforeunload",this.onBeforeUnload),this.onRequestEnd=t.onRequestEnd,this.xhr=this.doRequest())}initData(t){if(t.dataType==="form"){let r=new FormData;for(let n in t.data)if(Object.prototype.hasOwnProperty.call(t.data,n)){let a=t.data[n];typeof a=="object"&&!(a instanceof Blob)&&(a=JSON.stringify(a)),r.append(n,a)}return r}else return t.dataType==="blob"?t.data:JSON.stringify(t.data)}initQueryParams(t){let r=t.queryParams||{},n=[];t.sdkVersion&&(r.sdkVersion=t.sdkVersion);for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&n.push(a+"="+r[a]);return n.length?"?"+n.join("&"):""}doRequest(){let t=new XMLHttpRequest;t.open("POST",this.url);for(let r in this.headers)Object.prototype.hasOwnProperty.call(this.headers,r)&&t.setRequestHeader(r,this.headers[r]);return t.responseType="json",t.onload=this.xhrHandler,t.onerror=this.xhrHandler,t.onabort=this.xhrHandler,t.ontimeout=this.xhrHandler,t.send(this.data),t}retry(){this.retryInterval=Math.min(this.retryInterval*2,this.maxRetryInterval),this.retryCount--,this.xhr=this.doRequest()}xhrHandler(t){let r=this.xhr;if(!r)return;if((t.type==="timeout"||t.type==="error"&&r.readyState===XMLHttpRequest.DONE&&r.status===0)&&this.retryCount>0){setTimeout(this.retry,this.retryInterval);return}typeof window<"u"&&window.removeEventListener("beforeunload",this.onBeforeUnload),this.onRequestEnd&&this.onRequestEnd()}onBeforeUnload(){nM()&&(this.xhr&&this.xhr.abort(),fetch(this.url,{headers:this.headers,method:"POST",body:this.data,keepalive:!0}))}};function aM(e){typeof window<"u"&&new Yt(e)}var O={},Rs={},Te={},ps={},fs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TracesSamplerValues=void 0,function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(e.TracesSamplerValues||(e.TracesSamplerValues={}))})(fs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseEnvironment=e.DEFAULT_ENVIRONMENT=e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=e.DEFAULT_ATTRIBUTE_COUNT_LIMIT=e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;let t=pr,r=fs,n=",",a=["OTEL_SDK_DISABLED"];function i(u){return a.indexOf(u)>-1}let o=["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 E(u){return o.indexOf(u)>-1}let T=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function _(u){return T.indexOf(u)>-1}e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,e.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,e.DEFAULT_ENVIRONMENT={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:t.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:e.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:e.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:e.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:r.TracesSamplerValues.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 s(u,f,M){if(typeof M[u]>"u")return;let l=String(M[u]);f[u]=l.toLowerCase()==="true"}function S(u,f,M,l=-1/0,d=1/0){if(typeof M[u]<"u"){let U=Number(M[u]);isNaN(U)||(U<l?f[u]=l:U>d?f[u]=d:f[u]=U)}}function R(u,f,M,l=n){let d=M[u];typeof d=="string"&&(f[u]=d.split(l).map(U=>U.trim()))}let L={ALL:t.DiagLogLevel.ALL,VERBOSE:t.DiagLogLevel.VERBOSE,DEBUG:t.DiagLogLevel.DEBUG,INFO:t.DiagLogLevel.INFO,WARN:t.DiagLogLevel.WARN,ERROR:t.DiagLogLevel.ERROR,NONE:t.DiagLogLevel.NONE};function C(u,f,M){let l=M[u];if(typeof l=="string"){let d=L[l.toUpperCase()];d!=null&&(f[u]=d)}}function B(u){let f={};for(let M in e.DEFAULT_ENVIRONMENT){let l=M;switch(l){case"OTEL_LOG_LEVEL":C(l,f,u);break;default:if(i(l))s(l,f,u);else if(E(l))S(l,f,u);else if(_(l))R(l,f,u);else{let d=u[l];typeof d<"u"&&d!==null&&(f[l]=String(d))}}}return f}e.parseEnvironment=B})(ps);var De={};Object.defineProperty(De,"__esModule",{value:!0});De._globalThis=void 0;De._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof re=="object"?re:{};Object.defineProperty(Te,"__esModule",{value:!0});Te.getEnvWithoutDefaults=Te.getEnv=void 0;var Ht=ps,vs=De;function iM(){let e=(0,Ht.parseEnvironment)(vs._globalThis);return Object.assign({},Ht.DEFAULT_ENVIRONMENT,e)}Te.getEnv=iM;function oM(){return(0,Ht.parseEnvironment)(vs._globalThis)}Te.getEnvWithoutDefaults=oM;var _t={},St={};Object.defineProperty(St,"__esModule",{value:!0});St.hexToBinary=void 0;function Tn(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function EM(e){let t=new Uint8Array(e.length/2),r=0;for(let n=0;n<e.length;n+=2){let a=Tn(e.charCodeAt(n)),i=Tn(e.charCodeAt(n+1));t[r++]=a<<4|i}return t}St.hexToBinary=EM;Object.defineProperty(_t,"__esModule",{value:!0});_t.hexToBase64=void 0;var TM=St;function _M(e){return btoa(String.fromCharCode(...(0,TM.hexToBinary)(e)))}_t.hexToBase64=_M;var st={};Object.defineProperty(st,"__esModule",{value:!0});st.RandomIdGenerator=void 0;var SM=8,sM=16,Ft=class{constructor(){this.generateTraceId=_n(sM),this.generateSpanId=_n(SM)}};st.RandomIdGenerator=Ft;var Ge=Array(32);function _n(e){return function(){for(let r=0;r<e*2;r++)Ge[r]=Math.floor(Math.random()*16)+48,Ge[r]>=58&&(Ge[r]+=39);return String.fromCharCode.apply(null,Ge.slice(0,e*2))}}var At={};Object.defineProperty(At,"__esModule",{value:!0});At.otperformance=void 0;At.otperformance=performance;var ut={},ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.VERSION=void 0;ct.VERSION="1.25.1";Object.defineProperty(ut,"__esModule",{value:!0});ut.SDK_INFO=void 0;var AM=ct,Re=us;ut.SDK_INFO={[Re.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Re.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Re.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Re.TELEMETRYSDKLANGUAGEVALUES_WEBJS,[Re.SEMRESATTRS_TELEMETRY_SDK_VERSION]:AM.VERSION};var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.unrefTimer=void 0;function uM(e){}lt.unrefTimer=uM;(function(e){var t=re&&re.__createBinding||(Object.create?function(a,i,o,E){E===void 0&&(E=o),Object.defineProperty(a,E,{enumerable:!0,get:function(){return i[o]}})}:function(a,i,o,E){E===void 0&&(E=o),a[E]=i[o]}),r=re&&re.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=e.getEnvWithoutDefaults=void 0;var n=Te;Object.defineProperty(e,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return n.getEnvWithoutDefaults}}),Object.defineProperty(e,"getEnv",{enumerable:!0,get:function(){return n.getEnv}}),r(De,e),r(_t,e),r(st,e),r(At,e),r(ut,e),r(lt,e)})(Rs);Object.defineProperty(O,"__esModule",{value:!0});O.addHrTimes=O.isTimeInput=O.isTimeInputHrTime=O.hrTimeToMicroseconds=O.hrTimeToMilliseconds=tt=O.hrTimeToNanoseconds=O.hrTimeToTimeStamp=O.hrTimeDuration=O.timeInputToHrTime=O.hrTime=O.getTimeOrigin=O.millisToHrTime=void 0;var Kt=Rs,ds=9,cM=6,lM=Math.pow(10,cM),et=Math.pow(10,ds);function Pe(e){let t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*lM);return[r,n]}O.millisToHrTime=Pe;function fr(){let e=Kt.otperformance.timeOrigin;if(typeof e!="number"){let t=Kt.otperformance;e=t.timing&&t.timing.fetchStart}return e}O.getTimeOrigin=fr;function Ns(e){let t=Pe(fr()),r=Pe(typeof e=="number"?e:Kt.otperformance.now());return Ms(t,r)}O.hrTime=Ns;function OM(e){if(vr(e))return e;if(typeof e=="number")return e<fr()?Ns(e):Pe(e);if(e instanceof Date)return Pe(e.getTime());throw TypeError("Invalid input type")}O.timeInputToHrTime=OM;function RM(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=et),[r,n]}O.hrTimeDuration=RM;function pM(e){let t=ds,r=`${"0".repeat(t)}${e[1]}Z`,n=r.substr(r.length-t-1);return new Date(e[0]*1e3).toISOString().replace("000Z",n)}O.hrTimeToTimeStamp=pM;function fM(e){return e[0]*et+e[1]}var tt=O.hrTimeToNanoseconds=fM;function vM(e){return e[0]*1e3+e[1]/1e6}O.hrTimeToMilliseconds=vM;function dM(e){return e[0]*1e6+e[1]/1e3}O.hrTimeToMicroseconds=dM;function vr(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}O.isTimeInputHrTime=vr;function NM(e){return vr(e)||typeof e=="number"||e instanceof Date}O.isTimeInput=NM;function Ms(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=et&&(r[1]-=et,r[0]+=1),r}O.addHrTimes=Ms;var Xt=class{constructor(t){this.data={resourceSpans:[]},this.scopeSpansByResource=new Map,this.spansByResourceAndInstrumentation=new Map,t&&this.addSpans(t)}clear(){this.data={resourceSpans:[]},this.scopeSpansByResource.clear(),this.spansByResourceAndInstrumentation.forEach(function(t){t.clear()}),this.spansByResourceAndInstrumentation.clear()}getData(){return this.data}addSpan(t){this.getSpansFromMap(t).push(MM(t))}addSpans(t){for(let r=0,n=t.length;r<n;r++)this.addSpan(t[r])}getSpansFromMap(t){let r=this.spansByResourceAndInstrumentation.get(t.resource);r||(r=new Map,this.spansByResourceAndInstrumentation.set(t.resource,r));let n=r.get(t.instrumentationLibrary);return n||(n=[],r.set(t.instrumentationLibrary,n),this.getScopeSpansFormMap(t).push({scope:Object.assign({},t.instrumentationLibrary),spans:n})),n}getScopeSpansFormMap(t){let r=this.scopeSpansByResource.get(t.resource);if(!r){let n=dr(t.resource.attributes),a={};n&&n.length&&(a.attributes=n),r=[],this.scopeSpansByResource.set(t.resource,r),this.data.resourceSpans.push({resource:a,scopeSpans:r})}return r}};function dr(e){if(!e)return;let t=[];for(let r in e){let n=e[r];t.push({key:r,value:Ls(n)})}return t}function Ls(e){return e==null?{anyValue:e}:typeof e=="string"?{stringValue:e}:typeof e=="number"?{doubleValue:e}:typeof e=="boolean"?{booleanValue:e}:{arrayValue:{values:e.map(Ls)}}}function MM(e){return{traceId:e.spanContext().traceId,spanId:e.spanContext().spanId,parentSpanId:e.parentSpanId,name:e.name,startTimeUnixNano:String(tt(e.startTime)),endTimeUnixNano:e.ended?String(tt(e.endTime)):void 0,ended:e.ended,kind:e.kind,events:e.events.map(LM),links:e.links,status:e.status,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,attributes:dr(e.attributes)}}function LM(e){return{timeUnixNano:tt(e.time),name:e.name,attributes:dr(e.attributes),droppedAttributesCount:e.droppedAttributesCount}}function Ps(e){let t=new Xt(e),r=t.getData();return t.clear(),r}var Wt=class{constructor(t){this.apiHost=t.apiHost,this.appToken=t.appToken}export(t,r){aM({apiHost:this.apiHost,apiUrl:"/api/otel/trace",queryParams:{crashToken:this.appToken,clientTimeUnixNano:rM()},dataType:"json",data:Ps(t)}),r({code:oe.SUCCESS})}shutdown(){return this.forceFlush()}forceFlush(){return Promise.resolve()}},Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});var Is=Nr.BatchSpanProcessorBase=void 0,te=pr,W=cs,jt=class{constructor(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,W.getEnv)();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new W.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(te.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,r){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&te.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&te.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(te.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,r)=>{let n=[],a=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=a;i<o;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,r)=>{let n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);te.context.with((0,W.suppressTracing)(te.context.active()),()=>{let a;this._finishedSpans.length<=this._maxExportBatchSize?(a=this._finishedSpans,this._finishedSpans=[]):a=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(a,E=>{var T;clearTimeout(n),E.code===W.ExportResultCode.SUCCESS?t():r((T=E.error)!==null&&T!==void 0?T:new Error("BatchSpanProcessor: span export failed"))}),o=null;for(let E=0,T=a.length;E<T;E++){let _=a[E];_.resource.asyncAttributesPending&&_.resource.waitForAsyncAttributes&&(o??(o=[]),o.push(_.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,E=>{(0,W.globalErrorHandler)(E),r(E)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,(0,W.globalErrorHandler)(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),(0,W.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};Is=Nr.BatchSpanProcessorBase=jt;var kt=class extends Is{onShutdown(){}},Qt=class{constructor(t){this.serviceName=t.serviceName||"tracer-js-sdk";let r=new HN({resource:new Os({[Ar]:this.serviceName}),spanLimits:t.spanLimits});r.addSpanProcessor(new kt(new Wt(t),{scheduledDelayMillis:5e3,exportTimeoutMillis:3e4,maxQueueSize:2048,maxExportBatchSize:512})),r.register({}),zN({instrumentations:t.instrumentations}),this.provider=r}getProvider(){return this.provider}getTracer(){return this.provider.getTracer(this.serviceName)}destroy(){this.provider.forceFlush(),this.provider.shutdown()}};function PM(){if(typeof window>"u")return{data:{},modules:{},version:"1.1.4"};let e="TracerSDK";return window[e]||(window[e]={data:{},modules:{},version:"1.1.4"}),window[e]}function IM(e){let t=PM().data;return t[e]||(t[e]={}),t[e]}function CM(e,t,r){let n=IM(e);return n[t]||(n[t]=r()),n[t]}function Cs(e){return CM(e.appToken,8,function(){return new Qt(e)})}var Ie=class{constructor(){this.spans=[]}getJsonData(){return Ps(this.spans)}clear(){this.spans=[]}export(t,r){this.spans=this.spans.concat(t),r({code:oe.SUCCESS})}shutdown(){return this.forceFlush()}forceFlush(){return Promise.resolve()}},rt=class{constructor(t={}){this.disabled=!1,this.endedSpansExporter=t.endedSpansExporter,this.startedSpansExporter=t.startedSpansExporter}onStart(t,r){this.disabled||!this.startedSpansExporter||this.startedSpansExporter.export([t],this.onExport)}onEnd(t){this.disabled||!this.endedSpansExporter||this.endedSpansExporter.export([t],this.onExport)}onExport(t){}forceFlush(){return Promise.resolve()}shutdown(){return this.disabled=!0,Promise.resolve()}};var Mr=class e{constructor({name:t}){}log(t,r){}error(t,r){}critical(t,r){}createComponentTracer(t){return new e({name:t})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Lr=class e{constructor({name:t,parentContext:r,tracer:n}){this.childTracers=[];let a=!n;if(a){let o=Cs({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),E=new Ie,T=new Ie;this.spanExporter=E,o.addSpanProcessor(new rt({startedSpansExporter:E,endedSpansExporter:T})),this.tracer=o.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(t,{root:a},r),this.context=hM.setSpan(mM.active(),this.span)}log(t,r){this.span.addEvent(t,{...r,type:"log"})}error(t,r){this.span.addEvent(t,{...r,type:"error"})}critical(t,r){this.span.addEvent(t,{...r,type:"critical"})}static createRootTracer(t=!1){return t?new e({name:"Root"}):new Mr({name:"Root"})}createComponentTracer(t){let r=new e({name:t,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(r),r}end(){this.childTracers.forEach(t=>t.end()),this.span.end()}getFinishedSpans(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function DM(e,t='Assertion "value is not nullable" failed'){if(e==null)throw new Error(t)}function UM(e,t='Assertion "value is nullable" failed'){if(e!=null)throw new Error(t)}function se(e){return typeof e<"u"&&e!==null}function Pr(e){return e==null}function gM(e,t){if(!e?.length)throw new Error(t)}function bM(e,t){if(e?.length)throw new Error(t)}var yM=(e,t,r)=>new Promise((n,a)=>{t.addEventListener("abort",()=>{E(),_.remove()});let i=()=>{E(),a()},o=()=>{E(),n()},E=()=>{T&&clearTimeout(T),_.removeEventListener("load",o),_.removeEventListener("error",i)},T;r&&(T=window.setTimeout(i,r));let _=document.createElement("script");_.addEventListener("load",o),_.addEventListener("error",i),_.src=e,document.head.appendChild(_)});var VM=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var BM=(e,t)=>async(...r)=>{let n=t(...r),a=e.aborted,i;for(;!a&&!e.aborted;)try{let o=await n.next(i);a=o.done??!1,i=o.value}catch(o){await n.throw(o)}return i};var hs=()=>/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion??navigator.userAgent)||navigator?.userAgentData?.mobile,Ir=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let t=this.device==="iPad"||window?.screen.width>700,r=this._iosVersion;return!t||t&&!!r&&r<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){let{userAgent:t,maxTouchPoints:r}=navigator;try{this._maxTouchPoints=r,this._isHdr=!!matchMedia("(dynamic-range: high)")?.matches}catch(n){console.error(n)}try{this._isMobile=hs()}catch(n){console.error(n)}this.detectBrowser(t),this.detectDevice(t),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(t){try{let r=/yabrowser/i.test(t)?"Yandex":void 0,n=/samsungbrowser/i.test(t)?"SamsungBrowser":void 0,a=/chrome|crios/i.test(t)?"Chrome":void 0,i=/chromium/i.test(t)?"Chromium":void 0,o=/firefox|fxios/i.test(t)?"Firefox":void 0,E=/webkit|safari|khtml/i.test(t)?"Safari":void 0,T=/opr\//i.test(t)?"Opera":void 0,_=/edg/i.test(t)?"Edge":void 0;this._currentBrowser=r||n||o||T||_||a||i||E||"Rest"}catch(r){console.error(r)}}detectDevice(t){try{let r=/android/i.test(t)?"Android":void 0,n=/iphone/i.test(t)?"iPhone":void 0,a=/ipad/i.test(t)?"iPad":void 0,i=/ipod/i.test(t)?"iPod":void 0,o=/mac/i.test(t)?"Mac":void 0,E=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(t)?"RestMobile":void 0;this._currentDevice=r||n||a||i||E||o||"Desktop"}catch(r){console.error(r)}}detectIOSVersion(){try{let{userAgent:t}=window.navigator,r=t.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return;let n=r[1],a=parseFloat(n);if(isNaN(a))return;this._iosVersion=a}catch(t){console.error(t)}}detectMacVersion(){try{let{userAgent:t}=window.navigator,r=t.match(/Version\/(\d+)/);if(!r)return;let n=r[1],a=parseInt(n,10);if(isNaN(a))return;this._macVersion=a}catch(t){console.error(t)}}},GM=new Ir;var wM=(e,{start:t=0,factor:r=2,max:n=1/0,min:a=t,random:i=0}={})=>{let o=t;return o*=r**e,o*=1+(Math.random()*i*2-i),o=Math.round(o),o=Math.min(o,n),o=Math.max(o,a),o};var ms={};js(ms,{clear:()=>XM,get:()=>YM,has:()=>FM,isPersistent:()=>xM,remove:()=>KM,set:()=>HM});var Ae,J,Cr=`vk-videoplayer-dummy-key-${Math.random()}`,ue=()=>{if(J!==void 0)return J;try{localStorage.setItem(Cr,"test"),localStorage.removeItem(Cr),J=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Cr),J=1}catch(t){if(t instanceof DOMException||t instanceof TypeError)J=2;else throw t}else throw e}return J===2&&(Ae=new Map),J},xM=()=>ue()===0,YM=e=>{let t=ue();switch(t){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return Ae?.get(e);default:G(t)}},HM=(e,t)=>{let r=ue();switch(r){case 0:try{localStorage.setItem(e,t)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,t)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void Ae?.set(e,t);default:G(r)}},FM=e=>{let t=ue();switch(t){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return Ae?.has(e)??!1;default:return G(t),!1}},KM=e=>{let t=ue();switch(t){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void Ae?.delete(e);default:G(t)}},XM=()=>{let e=ue();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return Ae?.clear();default:G(e)}};var WM=()=>{let e,t;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(t=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!t&&document.referrer&&(t=document.referrer)}catch(n){console.error(n)}let r=t?new URL(t).hostname:void 0;return{isEmbed:e,host:r}};var hr=(S=>(S.INVARIANT="Invariant quality",S.Q_144P="144p",S.Q_240P="240p",S.Q_360P="360p",S.Q_480P="480p",S.Q_576P="576p",S.Q_720P="720p",S.Q_1080P="1080p",S.Q_1440P="1440p",S.Q_2160P="2160p",S.Q_4320P="4320p",S))(hr||{});var D={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},jM=(e,t)=>D[e].height>D[t].height,kM=(e,t)=>D[e].height>=D[t].height,mr=(e,t)=>D[e].height<D[t].height,QM=(e,t)=>D[e].height<=D[t].height,$M=e=>e.sort((t,r)=>t===r?0:t==="Invariant quality"?1:r==="Invariant quality"?-1:mr(t,r)?1:-1)[0],Ds=Object.keys(D).sort((e,t)=>mr(e,t)?-1:1),zM=(e,t=.02)=>[...Ds].find(n=>D[n].height*(1+t)>=e),ZM=({width:e,height:t})=>{let r=Math.min(e,t),n=Math.max(e,t);return Ds.find(a=>{let i=D[a];return i.width>=n&&i.height>=r})},JM=e=>D[e].height,Dr=e=>e==="Invariant quality",qM=e=>e.every(t=>!Dr(t));function eL(e){if(Dr(e))throw new Error("Expected exact quality")}var tL=(e,t)=>{let r={};for(let n of Object.keys(t)){let a=t[n],i=e[n];Array.isArray(a)&&Array.isArray(i)?r[n]=i:typeof a=="object"&&typeof i=="object"?r[n]=tL(i,a):r[n]=n in e?i:a}return r};var oP=e=>{let t="";return e>=3600&&(t+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(t+=Math.floor(e/60)+"m",e=e%60),e>0&&(t+=Math.floor(e)+"s"),t};function Ur(e,t=0,r){let n,a,i,o,E,T,_=0,s=!1,S=!1,R=!0,L=!t&&t!==0&&typeof window.requestAnimationFrame=="function";r&&(s=!!r.leading,S="maxWait"in r,i=r?.maxWait?Math.max(+r?.maxWait||0,t):i,R="trailing"in r?!!r.trailing:R);function C(p){let g=n,F=a;return n=a=void 0,_=p,o=e.apply(F,g),o}function B(p,g){return L?(E&&window.cancelAnimationFrame(E),window.requestAnimationFrame(p)):setTimeout(p,g)}function u(p){if(L){window.cancelAnimationFrame(p);return}clearTimeout(p)}function f(p){return _=p,E=B(d,t),s?C(p):o}function M(p){let g=p-T,F=p-_,Hr=t-g;return S?Math.min(Hr,i-F):Hr}function l(p){let g=p-T,F=p-_;return T===void 0||g>=t||g<0||S&&F>=i}function d(){let p=Date.now();if(l(p))return U(p);E=B(d,M(p))}function U(p){return E=void 0,R&&n?C(p):(n=a=void 0,o)}function Ue(){E!==void 0&&u(E),_=0,n=T=a=E=void 0}function Ks(){return E===void 0?o:U(Date.now())}function Xs(){return E!==void 0}function ge(...p){let g=Date.now(),F=l(g);if(n=p,a=this,T=g,F){if(E===void 0)return f(T);if(S)return E=B(d,t),C(T)}return E===void 0&&(E=B(d,t)),o}return ge.cancel=Ue,ge.flush=Ks,ge.pending=Xs,ge}var gr=(e,t=0,r)=>Ur(e,t,{...{leading:!0,trailing:!0},...r,maxWait:t});var Ot=(e,t)=>{if(e===null||typeof e!="object")return e;let r=Array.isArray(e)?[]:{};for(let n in e){if(typeof t=="function"){let a=t(e[n],n,e,r);if(a!==void 0){r[n]=a;continue}}typeof e[n]=="object"?r[n]=Ot(e[n],t):r[n]=e[n]}return r};var rL=e=>Ot(e);var nL=300,aL=(e,t=nL)=>new A(r=>{let{width:n,height:a}=e.getBoundingClientRect();if(r.next({width:n,height:a}),!window.ResizeObserver)return;let i=new ResizeObserver(gr(o=>{let E=o[0];if(!E)return;let T,_;E.contentBoxSize&&E.contentBoxSize[0]?(_=E.contentBoxSize[0].blockSize,T=E.contentBoxSize[0].inlineSize):E.contentRect&&(T=E.contentRect.width,_=E.contentRect.height),se(T)&&se(_)&&r.next({width:T,height:_})},t));return i.observe(e),()=>i.disconnect()});var Rt=(e,t=6,r=".")=>{let n={};for(let a in e)if(!(!e.hasOwnProperty(a)||e[a]instanceof HTMLElement||!t))if(typeof e[a]=="object"&&e[a]!==null){let i=Rt(e[a],t-1);for(let o in i)i.hasOwnProperty(o)&&(n[a+r+o]=i[o])}else n[a]=e[a];return n};var iL=e=>{e.removeAttribute("src"),e.load()};var fP=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="https:"};var dP=e=>{try{return new URL(e)}catch{return null}};var oL=e=>t=>r=>{let n=typeof r=="object";r==null||n&&!Object.keys(r).length||e(t,n?Rt(r):{value:r})};var pt=class extends Y{constructor(t){super(),this.value=t}next(t){super.next(this.value=t)}error(t){super.error(this.value=t)}getValue(){return this.value}_subscribe(t){let r=super._subscribe(t);return t.next(this.value),r}};function Us(e){return new A(t=>{let r={},n=Object.keys(e).length,a=i=>o=>{i in r||n--,r[i]=o,n===0&&t.next(r)};return Object.entries(e).reduce((i,[o,E])=>i.add(E.subscribe(a(o))),new h)})}function gs(...e){return new A(t=>e.reduce((r,n)=>r.add(n.subscribe(t)),new h))}var EL=e=>new A(t=>{let r=window.setTimeout(()=>{try{t.next()}catch(n){if(t.error)t.error(n);else throw n}},e);return()=>window.clearTimeout(r)});var TL=e=>new A(t=>{let r=window.setInterval(()=>t.next(),e);return()=>{r&&(window.clearInterval(r),r=void 0)}});var _L=e=>new A(t=>{e.forEach(r=>t.next(r))});var SL=(e,t)=>new A(r=>{let n=a=>r.next(a);return e.addEventListener(t,n),()=>e.removeEventListener(t,n)});function bs(e){return t=>new A(r=>t.subscribe(new br(r,e)))}var br=class{constructor(t,r){this.destination=t;this.size=r;this.lastValues=[]}next(t){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(t),this.destination.next(this.lastValues)}error(t){this.destination.error?.(t)}};var sL={leading:!1,trailing:!0};function ys(e,t=sL){return r=>new A(n=>r.subscribe(new yr(n,e,t)))}var yr=class{constructor(t,r,n){this.destination=t;this.time=r;this.config=n}next(t){this.lastValue=t,se(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(t),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(r){if(this.destination.error)this.destination.error(r);else throw r}this.timeout=void 0},this.time)}error(t){this.destination.error?.(t)}};var AL={leading:!0,trailing:!1};function Vs(e,t=AL){return r=>new A(n=>r.subscribe(new Vr(n,e,t)))}var Vr=class{constructor(t,r,n){this.destination=t;this.time=r;this.config=n}next(t){this.lastValue=t,Pr(this.timeout)&&(this.config.leading&&this.destination.next(t),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(t){this.destination.error?.(t)}};function Bs(e){return t=>new A(r=>t.subscribe(new Br(r,e)))}var Br=class{constructor(t,r){this.destination=t;this.predicate=r}next(t){let r;try{r=this.predicate(t)}catch(n){throw this.error(n),n}r&&this.destination.next(t)}error(t){this.destination.error?.(t)}};function ws(e=(t,r)=>t===r){return t=>new A(r=>t.subscribe(new Gr(r,e)))}var Gs={},Gr=class{constructor(t,r){this.destination=t;this.predicate=r;this.lastValue=Gs}next(t){let r;try{r=this.lastValue===Gs||!this.predicate(this.lastValue,t),this.lastValue=t}catch(n){throw this.error(n),n}r&&this.destination.next(t)}error(t){this.destination.error?.(t)}};function ft(e){return t=>new A(r=>t.subscribe(new wr(r,e)))}var wr=class{constructor(t,r){this.destination=t;this.mapper=r}next(t){let r;try{r=this.mapper(t)}catch(n){throw this.error(n),n}this.destination.next(r)}error(t){this.destination.error?.(t)}};function xs(e){return ft(()=>e)}function Ys(){return e=>new A(t=>{let r=!1,n=!1,a=e.subscribe(i=>{r||(r=!0,t.next(i)),n&&a.unsubscribe()},i=>{r=!0,t.error?.(i),n&&a.unsubscribe()});return n=!0,r&&a.unsubscribe(),a})}function Hs(){return e=>new A(t=>e.subscribe(new xr(t)))}var xr=class{constructor(t){this.destination=t;this.hasLast=!1}next(t){let r=this.last;if(this.last=t,!this.hasLast){this.hasLast=!0;return}this.destination.next([r,t])}error(t){this.destination.error?.(t)}};function Fs(e){return t=>new A(r=>t.subscribe(new Yr(r,e)))}var Yr=class{constructor(t,r){this.destination=t;this.effect=r}next(t){try{this.effect(t)}catch(r){throw this.error(r),r}this.destination.next(t)}error(t){this.destination.error?.(t)}};var uL=(E=>(E.NETWORK="network",E.VIDEO_PIPELINE="video_pipeline",E.EXTERNAL_API="external_api",E.PARSER="parser",E.DOM="dom",E.WTF="wtf",E.FATAL="fatal",E))(uL||{});var cL=(S=>(S.Armenian="58",S.Azerbaijani="57",S.Belarusian="114",S.English="3",S.Kazakh="97",S.Portuguese="73",S.Russian="0",S.Spanish="4",S.Ukrainian="1",S.Uzbek="65",S.Vietnamese="75",S))(cL||{}),lL="vk.com",sC=async(e,t,r)=>{let n=new URL(`https://${lL}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",t),e!==void 0&&n.searchParams.set("lang",e);let i=await(await fetch(n.toString())).json();return OL(i,r)},OL=(e,t)=>Object.fromEntries(Object.entries(e.keys).map(([r,n])=>[r.substring(`${t}_`.length),RL(n)])),RL=e=>Array.isArray(e)?e[0]:e;var pL=(r=>(r.RU="ru",r.EN="en",r))(pL||{});export{uL as ErrorCategory,pL as InterfaceLanguage,vt as Logger,A as Observable,Y as Subject,h as Subscription,Lr as Tracer,ks as VERSION,cL as VKNumericLanguage,pt as ValueSubject,hr as VideoQuality,BM as abortable,yM as addScript,qM as areQualitiesExact,bM as assertEmptyArray,G as assertNever,DM as assertNonNullable,gM as assertNotEmptyArray,UM as assertNullable,eL as assertQualityIsExact,bs as buffer,Qs as checkNever,iL as clearVideoElement,GM as clientChecker,rL as cloneDeep,Ot as cloneDeepWith,Us as combine,dP as createURL,ys as debounce,Ur as debounceFn,WM as detectEmbed,tL as fillWithDefault,Bs as filter,ws as filterChanged,Rt as flattenObject,SL as fromEvent,wM as getExponentialDelay,$M as getHighestQuality,oL as getTraceSubscriptionMethod,TL as interval,jM as isHigher,kM as isHigherOrEqual,Dr as isInvariantQuality,mr as isLower,QM as isLowerOrEqual,hs as isMobile,se as isNonNullable,Pr as isNullable,fP as isValidURL,sC as loadVKLangPack,ft as map,xs as mapTo,gs as merge,K as noop,VM as now,_L as observableFrom,aL as observeElementSize,Ys as once,Hs as pairwise,ms as safeStorage,Fs as tap,Vs as throttle,gr as throttleFn,oP as timeCodeToString,EL as timeout,zM as videoHeightToQuality,JM as videoQualityToHeight,ZM as videoSizeToQuality};
6
+ var Ee=Object.defineProperty;var Se=(t,e)=>{for(var r in e)Ee(t,r,{get:e[r],enumerable:!0})};var Re="1.0.50-dev.1326de93.0";var d=class{constructor(){this.subscriptions=[]}unsubscribe(){let e=this.subscriptions;this.subscriptions=[],e.forEach(r=>typeof r=="function"?r():r.unsubscribe())}add(e){return this.subscriptions.push(e),this}};var T=t=>{throw new Error(`${t} is value of unexpected type`)},Ae=t=>{};var g=()=>{};var c=class{constructor(e){e&&(this._subscribe=e)}subscribe(e,r){let n;r?typeof r=="function"?n={next:r,error:g}:n={next:o=>r.next(o),error:o=>r.error?.(o)}:n={next:g,error:g};let i=typeof e=="function"?{next:o=>{try{e(o)}catch(a){n.next(a)}},error:o=>n.next(o)}:{next:o=>e.next(o),error:o=>e.error?e.error(o):n.next(o)},s;try{s=this._subscribe(i)}catch(o){i.error?.(o)}return new d().add(()=>{switch(i.next=g,i.error=g,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return T(s)}})}pipe(...e){return e.reduce((r,n)=>n(r),this)}_subscribe(e){}};var v=class extends c{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(r){this.subscribers.forEach(n=>n.next(r))}error(r){this.subscribers.forEach(n=>n.error?.(r))}_subscribe(r){let n=this.keyCounter++;return this.subscribers.set(n,r),new d().add(()=>this.subscribers.delete(n))}};var M=class{constructor(){this.log$=new v;this.logs=[];this.log=e=>{let r={...e,timestamp:Date.now()};this.logs.push(r),this.log$.next(r)};this.getAllLogs=()=>this.logs}createCustomLog(e){return(...r)=>{let n;try{n=e(...r)}catch{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(e){return this.createCustomLog(r=>({component:e,...r}))}};import{trace as Pe,context as Ce}from"@opentelemetry/api";import{TracerAllSpansProcessor as Le,TracerMemorySpanExporter as ne,initTracerOpenTelemetry as ke}from"@tracer/opentelemetry";var V=class t{constructor({name:e}){}log(e,r){}error(e,r){}critical(e,r){}createComponentTracer(e){return new t({name:e})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},N=class t{constructor({name:e,parentContext:r,tracer:n}){this.childTracers=[];let i=!n;if(i){let o=ke({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),a=new ne,p=new ne;this.spanExporter=a,o.addSpanProcessor(new Le({startedSpansExporter:a,endedSpansExporter:p})),this.tracer=o.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(e,{root:i},r),this.context=Pe.setSpan(Ce.active(),this.span)}log(e,r){this.span.addEvent(e,{...r,type:"log"})}error(e,r){this.span.addEvent(e,{...r,type:"error"})}critical(e,r){this.span.addEvent(e,{...r,type:"critical"})}static createRootTracer(e=!1){return e?new t({name:"Root"}):new V({name:"Root"})}createComponentTracer(e){let r=new t({name:e,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(r),r}end(){this.childTracers.forEach(e=>e.end()),this.span.end()}getFinishedSpans(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Me(t,e='Assertion "value is not nullable" failed'){if(t==null)throw new Error(e)}function Ve(t,e='Assertion "value is nullable" failed'){if(t!=null)throw new Error(e)}function x(t){return typeof t<"u"&&t!==null}function _(t){return t==null}function Ne(t,e){if(!t?.length)throw new Error(e)}function _e(t,e){if(t?.length)throw new Error(e)}var Qe=(t,e,r)=>new Promise((n,i)=>{e.addEventListener("abort",()=>{a(),b.remove()});let s=()=>{a(),i()},o=()=>{a(),n()},a=()=>{p&&clearTimeout(p),b.removeEventListener("load",o),b.removeEventListener("error",s)},p;r&&(p=window.setTimeout(s,r));let b=document.createElement("script");b.addEventListener("load",o),b.addEventListener("error",s),b.src=t,document.head.appendChild(b)});var De=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var Ue=(t,e)=>async(...r)=>{let n=e(...r),i=t.aborted,s;for(;!i&&!t.aborted;)try{let o=await n.next(s);i=o.done??!1,s=o.value}catch(o){await n.throw(o)}return s};var ie=()=>/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion??navigator.userAgent)||navigator?.userAgentData?.mobile,Q=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let e=this.device==="iPad"||window?.screen.width>700,r=this._iosVersion;return!e||e&&!!r&&r<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){let{userAgent:e,maxTouchPoints:r}=navigator;try{this._maxTouchPoints=r,this._isHdr=!!matchMedia("(dynamic-range: high)")?.matches}catch(n){console.error(n)}try{this._isMobile=ie()}catch(n){console.error(n)}this.detectBrowser(e),this.detectDevice(e),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(e){try{let r=/yabrowser/i.test(e)?"Yandex":void 0,n=/samsungbrowser/i.test(e)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(e)?"Chrome":void 0,s=/chromium/i.test(e)?"Chromium":void 0,o=/firefox|fxios/i.test(e)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(e)?"Safari":void 0,p=/opr\//i.test(e)?"Opera":void 0,b=/edg/i.test(e)?"Edge":void 0;this._currentBrowser=r||n||o||p||b||i||s||a||"Rest"}catch(r){console.error(r)}}detectDevice(e){try{let r=/android/i.test(e)?"Android":void 0,n=/iphone/i.test(e)?"iPhone":void 0,i=/ipad/i.test(e)?"iPad":void 0,s=/ipod/i.test(e)?"iPod":void 0,o=/mac/i.test(e)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?"RestMobile":void 0;this._currentDevice=r||n||i||s||a||o||"Desktop"}catch(r){console.error(r)}}detectIOSVersion(){try{let{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return;let n=r[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(e){console.error(e)}}detectMacVersion(){try{let{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+)/);if(!r)return;let n=r[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(e){console.error(e)}}},Be=new Q;var je=(t,{start:e=0,factor:r=2,max:n=1/0,min:i=e,random:s=0}={})=>{let o=e;return o*=r**t,o*=1+(Math.random()*s*2-s),o=Math.round(o),o=Math.min(o,n),o=Math.max(o,i),o};var oe={};Se(oe,{clear:()=>qe,get:()=>ze,has:()=>Ge,isPersistent:()=>Fe,remove:()=>He,set:()=>We});var y,I,D=`vk-videoplayer-dummy-key-${Math.random()}`,O=()=>{if(I!==void 0)return I;try{localStorage.setItem(D,"test"),localStorage.removeItem(D),I=0}catch(t){if(t instanceof DOMException||t instanceof TypeError)try{sessionStorage.getItem(D),I=1}catch(e){if(e instanceof DOMException||e instanceof TypeError)I=2;else throw e}else throw t}return I===2&&(y=new Map),I},Fe=()=>O()===0,ze=t=>{let e=O();switch(e){case 0:return localStorage.getItem(t)??void 0;case 1:return sessionStorage.getItem(t)??void 0;case 2:return y?.get(t);default:T(e)}},We=(t,e)=>{let r=O();switch(r){case 0:try{localStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(t,e)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void y?.set(t,e);default:T(r)}},Ge=t=>{let e=O();switch(e){case 0:return t in localStorage;case 1:return t in sessionStorage;case 2:return y?.has(t)??!1;default:return T(e),!1}},He=t=>{let e=O();switch(e){case 0:return localStorage.removeItem(t);case 1:return sessionStorage.removeItem(t);case 2:return void y?.delete(t);default:T(e)}},qe=()=>{let t=O();switch(t){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return y?.clear();default:T(t)}};var Ke=()=>{let t,e;try{t=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?t=!0:(t=!1,console.error(n))}try{window.location.ancestorOrigins&&(e=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!e&&document.referrer&&(e=document.referrer)}catch(n){console.error(n)}let r=e?new URL(e).hostname:void 0;return{isEmbed:t,host:r}};var U=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_576P="576p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(U||{});var m={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Ye=(t,e)=>m[t].height>m[e].height,$e=(t,e)=>m[t].height>=m[e].height,B=(t,e)=>m[t].height<m[e].height,Je=(t,e)=>m[t].height<=m[e].height,Xe=t=>t.sort((e,r)=>e===r?0:e==="Invariant quality"?1:r==="Invariant quality"?-1:B(e,r)?1:-1)[0],se=Object.keys(m).sort((t,e)=>B(t,e)?-1:1),Ze=(t,e=.02)=>[...se].find(n=>m[n].height*(1+e)>=t),et=({width:t,height:e})=>{let r=Math.min(t,e),n=Math.max(t,e);return se.find(i=>{let s=m[i];return s.width>=n&&s.height>=r})},tt=t=>m[t].height,j=t=>t==="Invariant quality",rt=t=>t.every(e=>!j(e));function nt(t){if(j(t))throw new Error("Expected exact quality")}var it=(t,e)=>{let r={};for(let n of Object.keys(e)){let i=e[n],s=t[n];Array.isArray(i)&&Array.isArray(s)?r[n]=s:typeof i=="object"&&typeof s=="object"?r[n]=it(s,i):r[n]=n in t?s:i}return r};var cr=t=>{let e="";return t>=3600&&(e+=Math.floor(t/3600)+"h",t=t%3600),t>=60&&(e+=Math.floor(t/60)+"m",t=t%60),t>0&&(e+=Math.floor(t)+"s"),e};function F(t,e=0,r){let n,i,s,o,a,p,b=0,X=!1,l=!1,L=!0,Z=!e&&e!==0&&typeof window.requestAnimationFrame=="function";r&&(X=!!r.leading,l="maxWait"in r,s=r?.maxWait?Math.max(+r?.maxWait||0,e):s,L="trailing"in r?!!r.trailing:L);function k(u){let f=n,h=i;return n=i=void 0,b=u,o=t.apply(h,f),o}function w(u,f){return Z?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(u)):setTimeout(u,f)}function ge(u){if(Z){window.cancelAnimationFrame(u);return}clearTimeout(u)}function Ie(u){return b=u,a=w(E,e),X?k(u):o}function xe(u){let f=u-p,h=u-b,re=e-f;return l?Math.min(re,s-h):re}function ee(u){let f=u-p,h=u-b;return p===void 0||f>=e||f<0||l&&h>=s}function E(){let u=Date.now();if(ee(u))return te(u);a=w(E,xe(u))}function te(u){return a=void 0,L&&n?k(u):(n=i=void 0,o)}function ye(){a!==void 0&&ge(a),b=0,n=p=i=a=void 0}function Oe(){return a===void 0?o:te(Date.now())}function we(){return a!==void 0}function S(...u){let f=Date.now(),h=ee(f);if(n=u,i=this,p=f,h){if(a===void 0)return Ie(p);if(l)return a=w(E,e),k(p)}return a===void 0&&(a=w(E,e)),o}return S.cancel=ye,S.flush=Oe,S.pending=we,S}var z=(t,e=0,r)=>F(t,e,{...{leading:!0,trailing:!0},...r,maxWait:e});var R=(t,e)=>{if(t===null||typeof t!="object")return t;let r=Array.isArray(t)?[]:{};for(let n in t){if(typeof e=="function"){let i=e(t[n],n,t,r);if(i!==void 0){r[n]=i;continue}}typeof t[n]=="object"?r[n]=R(t[n],e):r[n]=t[n]}return r};var ot=t=>R(t);var st=300,at=(t,e=st)=>new c(r=>{let{width:n,height:i}=t.getBoundingClientRect();if(r.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(z(o=>{let a=o[0];if(!a)return;let p,b;a.contentBoxSize&&a.contentBoxSize[0]?(b=a.contentBoxSize[0].blockSize,p=a.contentBoxSize[0].inlineSize):a.contentRect&&(p=a.contentRect.width,b=a.contentRect.height),x(p)&&x(b)&&r.next({width:p,height:b})},e));return s.observe(t),()=>s.disconnect()});var A=(t,e=6,r=".")=>{let n={};for(let i in t)if(!(!t.hasOwnProperty(i)||t[i]instanceof HTMLElement||!e))if(typeof t[i]=="object"&&t[i]!==null){let s=A(t[i],e-1);for(let o in s)s.hasOwnProperty(o)&&(n[i+r+o]=s[o])}else n[i]=t[i];return n};var ct=t=>{t.removeAttribute("src"),t.load()};var xr=t=>{let e;try{e=new URL(t)}catch{return!1}return e.protocol==="https:"};var Or=t=>{try{return new URL(t)}catch{return null}};var lt=t=>e=>r=>{let n=typeof r=="object";r==null||n&&!Object.keys(r).length||t(e,n?A(r):{value:r})};var P=class extends v{constructor(e){super(),this.value=e}next(e){super.next(this.value=e)}error(e){super.error(this.value=e)}getValue(){return this.value}_subscribe(e){let r=super._subscribe(e);return e.next(this.value),r}};function ae(t){return new c(e=>{let r={},n=Object.keys(t).length,i=s=>o=>{s in r||n--,r[s]=o,n===0&&e.next(r)};return Object.entries(t).reduce((s,[o,a])=>s.add(a.subscribe(i(o))),new d)})}function ce(...t){return new c(e=>t.reduce((r,n)=>r.add(n.subscribe(e)),new d))}var ut=t=>new c(e=>{let r=window.setTimeout(()=>{try{e.next()}catch(n){if(e.error)e.error(n);else throw n}},t);return()=>window.clearTimeout(r)});var pt=t=>new c(e=>{let r=window.setInterval(()=>e.next(),t);return()=>{r&&(window.clearInterval(r),r=void 0)}});var bt=t=>new c(e=>{t.forEach(r=>e.next(r))});var dt=(t,e)=>new c(r=>{let n=i=>r.next(i);return t.addEventListener(e,n),()=>t.removeEventListener(e,n)});function le(t){return e=>new c(r=>e.subscribe(new W(r,t)))}var W=class{constructor(e,r){this.destination=e;this.size=r;this.lastValues=[]}next(e){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(e),this.destination.next(this.lastValues)}error(e){this.destination.error?.(e)}};var mt={leading:!1,trailing:!0};function ue(t,e=mt){return r=>new c(n=>r.subscribe(new G(n,t,e)))}var G=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,x(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(r){if(this.destination.error)this.destination.error(r);else throw r}this.timeout=void 0},this.time)}error(e){this.destination.error?.(e)}};var ft={leading:!0,trailing:!1};function pe(t,e=ft){return r=>new c(n=>r.subscribe(new H(n,t,e)))}var H=class{constructor(e,r,n){this.destination=e;this.time=r;this.config=n}next(e){this.lastValue=e,_(this.timeout)&&(this.config.leading&&this.destination.next(e),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(e){this.destination.error?.(e)}};function be(t){return e=>new c(r=>e.subscribe(new q(r,t)))}var q=class{constructor(e,r){this.destination=e;this.predicate=r}next(e){let r;try{r=this.predicate(e)}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){this.destination.error?.(e)}};function me(t=(e,r)=>e===r){return e=>new c(r=>e.subscribe(new K(r,t)))}var de={},K=class{constructor(e,r){this.destination=e;this.predicate=r;this.lastValue=de}next(e){let r;try{r=this.lastValue===de||!this.predicate(this.lastValue,e),this.lastValue=e}catch(n){throw this.error(n),n}r&&this.destination.next(e)}error(e){this.destination.error?.(e)}};function C(t){return e=>new c(r=>e.subscribe(new Y(r,t)))}var Y=class{constructor(e,r){this.destination=e;this.mapper=r}next(e){let r;try{r=this.mapper(e)}catch(n){throw this.error(n),n}this.destination.next(r)}error(e){this.destination.error?.(e)}};function fe(t){return C(()=>t)}function Te(){return t=>new c(e=>{let r=!1,n=!1,i=t.subscribe(s=>{r||(r=!0,e.next(s)),n&&i.unsubscribe()},s=>{r=!0,e.error?.(s),n&&i.unsubscribe()});return n=!0,r&&i.unsubscribe(),i})}function ve(){return t=>new c(e=>t.subscribe(new $(e)))}var $=class{constructor(e){this.destination=e;this.hasLast=!1}next(e){let r=this.last;if(this.last=e,!this.hasLast){this.hasLast=!0;return}this.destination.next([r,e])}error(e){this.destination.error?.(e)}};function he(t){return e=>new c(r=>e.subscribe(new J(r,t)))}var J=class{constructor(e,r){this.destination=e;this.effect=r}next(e){try{this.effect(e)}catch(r){throw this.error(r),r}this.destination.next(e)}error(e){this.destination.error?.(e)}};var Tt=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Tt||{});var vt=(l=>(l.Armenian="58",l.Azerbaijani="57",l.Belarusian="114",l.English="3",l.Kazakh="97",l.Portuguese="73",l.Russian="0",l.Spanish="4",l.Ukrainian="1",l.Uzbek="65",l.Vietnamese="75",l))(vt||{}),ht="vk.com",mi=async(t,e,r)=>{let n=new URL(`https://${ht}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",e),t!==void 0&&n.searchParams.set("lang",t);let s=await(await fetch(n.toString())).json();return gt(s,r)},gt=(t,e)=>Object.fromEntries(Object.entries(t.keys).map(([r,n])=>[r.substring(`${e}_`.length),It(n)])),It=t=>Array.isArray(t)?t[0]:t;var xt=(r=>(r.RU="ru",r.EN="en",r))(xt||{});export{Tt as ErrorCategory,xt as InterfaceLanguage,M as Logger,c as Observable,v as Subject,d as Subscription,N as Tracer,Re as VERSION,vt as VKNumericLanguage,P as ValueSubject,U as VideoQuality,Ue as abortable,Qe as addScript,rt as areQualitiesExact,_e as assertEmptyArray,T as assertNever,Me as assertNonNullable,Ne as assertNotEmptyArray,Ve as assertNullable,nt as assertQualityIsExact,le as buffer,Ae as checkNever,ct as clearVideoElement,Be as clientChecker,ot as cloneDeep,R as cloneDeepWith,ae as combine,Or as createURL,ue as debounce,F as debounceFn,Ke as detectEmbed,it as fillWithDefault,be as filter,me as filterChanged,A as flattenObject,dt as fromEvent,je as getExponentialDelay,Xe as getHighestQuality,lt as getTraceSubscriptionMethod,pt as interval,Ye as isHigher,$e as isHigherOrEqual,j as isInvariantQuality,B as isLower,Je as isLowerOrEqual,ie as isMobile,x as isNonNullable,_ as isNullable,xr as isValidURL,mi as loadVKLangPack,C as map,fe as mapTo,ce as merge,g as noop,De as now,bt as observableFrom,at as observeElementSize,Te as once,ve as pairwise,oe as safeStorage,he as tap,pe as throttle,z as throttleFn,cr as timeCodeToString,ut as timeout,Ze as videoHeightToQuality,tt as videoQualityToHeight,et as videoSizeToQuality};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-shared",
3
- "version": "1.0.49-dev.ed1df4eb.0",
3
+ "version": "1.0.50-dev.1326de93.0",
4
4
  "author": "vk.com",
5
5
  "description": "Shared code for vk.com videoplayer",
6
6
  "homepage": "https://vk.com",
@@ -49,6 +49,7 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
+ "@tracer/opentelemetry": "^1.1.5",
52
53
  "@opentelemetry/api": "^1.8.0",
53
54
  "@opentelemetry/core": "^1.25.0",
54
55
  "@opentelemetry/instrumentation": "^0.52.0",