blink 0.1.51 → 0.1.52

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.
@@ -0,0 +1 @@
1
+ import{__esmMin as e,__export as t}from"./chunk-ByIbJXPc.js";var n,r=e((()=>{n=typeof globalThis==`object`?globalThis:global})),i=e((()=>{r()})),a=e((()=>{i()})),o,s=e((()=>{o=`1.9.0`}));function c(e){var t=new Set([e]),n=new Set,r=e.match(l);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(l);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var l,ee,te=e((()=>{s(),l=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,ee=c(o)}));function u(e,t,n,r){var i;r===void 0&&(r=!1);var a=m[p]=(i=m[p])??{version:o};if(!r&&a[e]){var s=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(s.stack||s.message),!1}if(a.version!==o){var s=Error(`@opentelemetry/api: Registration of version v`+a.version+` for `+e+` does not match previously registered API v`+o);return n.error(s.stack||s.message),!1}return a[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+o+`.`),!0}function d(e){var t,n,r=(t=m[p])?.version;if(!(!r||!ee(r)))return(n=m[p])?.[e]}function f(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+o+`.`);var n=m[p];n&&delete n[e]}var ne,p,m,h=e((()=>{a(),s(),te(),ne=o.split(`.`)[0],p=Symbol.for(`opentelemetry.js.api.`+ne),m=n}));function g(e,t,n){var r=d(`diag`);if(r)return n.unshift(t),r[e].apply(r,ie([],re(n),!1))}var re,ie,ae,oe=e((()=>{h(),re=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ie=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ae=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){var e=[...arguments];return g(`debug`,this._namespace,e)},e.prototype.error=function(){var e=[...arguments];return g(`error`,this._namespace,e)},e.prototype.info=function(){var e=[...arguments];return g(`info`,this._namespace,e)},e.prototype.warn=function(){var e=[...arguments];return g(`warn`,this._namespace,e)},e.prototype.verbose=function(){var e=[...arguments];return g(`verbose`,this._namespace,e)},e}()})),_,v=e((()=>{(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`})(_||={})}));function se(e,t){e<_.NONE?e=_.NONE:e>_.ALL&&(e=_.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,_.ERROR),warn:n(`warn`,_.WARN),info:n(`info`,_.INFO),debug:n(`debug`,_.DEBUG),verbose:n(`verbose`,_.VERBOSE)}}var ce=e((()=>{v()})),le,ue,de,y,b=e((()=>{oe(),ce(),v(),h(),le=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ue=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},de=`diag`,y=function(){function e(){function e(e){return function(){var t=[...arguments],n=d(`diag`);if(n)return n[e].apply(n,ue([],le(t),!1))}}var t=this,n=function(e,n){var r,i,a;if(n===void 0&&(n={logLevel:_.INFO}),e===t){var o=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error((r=o.stack)??o.message),!1}typeof n==`number`&&(n={logLevel:n});var s=d(`diag`),c=se((i=n.logLevel)??_.INFO,e);if(s&&!n.suppressOverrideMessage){var l=(a=Error().stack)??`<failed to generate stacktrace>`;s.warn(`Current logger will be overwritten from `+l),c.warn(`Current logger will overwrite one already registered from `+l)}return u(`diag`,c,t,!0)};t.setLogger=n,t.disable=function(){f(de,t)},t.createComponentLogger=function(e){return new ae(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}()})),fe,pe,me,he=e((()=>{fe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},pe=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},me=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=fe(e,2),n=t[0],r=t[1];return[n,r]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=pe(r),s=o.next();!s.done;s=o.next()){var c=s.value;a._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}()})),ge,_e=e((()=>{ge=Symbol(`BaggageEntryMetadata`)}));function ve(e){return e===void 0&&(e={}),new me(new Map(Object.entries(e)))}function ye(e){return typeof e!=`string`&&(be.error(`Cannot create baggage metadata from unknown type: `+typeof e),e=``),{__TYPE__:ge,toString:function(){return e}}}var be,xe=e((()=>{b(),he(),_e(),be=y.instance()}));function x(e){return Symbol.for(e)}var Se,Ce,S=e((()=>{Se=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}(),Ce=new Se})),C,w,we=e((()=>{C=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],w=function(){function e(){function e(e){return function(){var t=[...arguments];if(console){var n=console[e];if(typeof n!=`function`&&(n=console.log),typeof n==`function`)return n.apply(console,t)}}}for(var t=0;t<C.length;t++)this[C[t].n]=e(C[t].c)}return e}()}));function Te(){return Pe}var T,Ee,E,De,Oe,ke,Ae,D,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He=e((()=>{T=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Ee=function(){function e(){}return e.prototype.createGauge=function(e,t){return Ie},e.prototype.createHistogram=function(e,t){return Le},e.prototype.createCounter=function(e,t){return Fe},e.prototype.createUpDownCounter=function(e,t){return Re},e.prototype.createObservableGauge=function(e,t){return Be},e.prototype.createObservableCounter=function(e,t){return ze},e.prototype.createObservableUpDownCounter=function(e,t){return Ve},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),E=function(){function e(){}return e}(),De=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(E),Oe=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(E),ke=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(E),Ae=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(E),D=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),je=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(D),Me=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(D),Ne=function(e){T(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(D),Pe=new Ee,Fe=new De,Ie=new ke,Le=new Ae,Re=new Oe,ze=new je,Be=new Me,Ve=new Ne})),Ue,We=e((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(Ue||={})})),O,k,Ge=e((()=>{O={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},k={set:function(e,t,n){e!=null&&(e[t]=n)}}})),Ke,qe,Je,Ye=e((()=>{S(),Ke=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},qe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Je=function(){function e(){}return e.prototype.active=function(){return Ce},e.prototype.with=function(e,t,n){var r=[...arguments].slice(3);return t.call.apply(t,qe([n],Ke(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()})),Xe,Ze,A,Qe,j,M=e((()=>{Ye(),h(),b(),Xe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Ze=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},A=`context`,Qe=new Je,j=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return u(A,e,y.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,Ze([e,t,n],Xe(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return d(A)||Qe},e.prototype.disable=function(){this._getContextManager().disable(),f(A,y.instance())},e}()})),$e,et=e((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})($e||={})})),N,P,tt,nt=e((()=>{et(),N=`0000000000000000`,P=`00000000000000000000000000000000`,tt={traceId:P,spanId:N,traceFlags:$e.NONE}})),F,I=e((()=>{nt(),F=function(){function e(e){e===void 0&&(e=tt),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()}));function L(e){return e.getValue(z)||void 0}function rt(){return L(j.getInstance().active())}function R(e,t){return e.setValue(z,t)}function it(e){return e.deleteValue(z)}function at(e,t){return R(e,new F(t))}function ot(e){var t;return(t=L(e))?.spanContext()}var z,st=e((()=>{S(),I(),M(),z=x(`OpenTelemetry Context Key SPAN`)}));function ct(e){return dt.test(e)&&e!==P}function lt(e){return ft.test(e)&&e!==N}function B(e){return ct(e.traceId)&&lt(e.spanId)}function ut(e){return new F(e)}var dt,ft,V=e((()=>{nt(),I(),dt=/^([0-9a-f]{32})$/i,ft=/^[0-9a-f]{16}$/i}));function pt(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var H,U,mt=e((()=>{M(),st(),I(),V(),H=j.getInstance(),U=function(){function e(){}return e.prototype.startSpan=function(e,t,n){n===void 0&&(n=H.active());var r=!!t?.root;if(r)return new F;var i=n&&ot(n);return pt(i)&&B(i)?new F(i):new F},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??H.active(),c=this.startSpan(e,i,s),l=R(s,c);return H.with(l,o,void 0,c)}},e}()})),ht,W,gt=e((()=>{mt(),ht=new U,W=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ht},e}()})),_t,vt=e((()=>{mt(),_t=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new U},e}()})),yt,G,bt=e((()=>{gt(),vt(),yt=new _t,G=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return(r=this.getDelegateTracer(e,t,n))??new W(this,e,t,n)},e.prototype.getDelegate=function(){var e;return(e=this._delegate)??yt},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return(r=this._delegate)?.getTracer(e,t,n)},e}()})),xt,St=e((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(xt||={})})),Ct,wt=e((()=>{(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`})(Ct||={})})),Tt,Et=e((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(Tt||={})}));function Dt(e){return jt.test(e)}function Ot(e){return Mt.test(e)&&!Nt.test(e)}var K,kt,At,jt,Mt,Nt,Pt=e((()=>{K=`[_0-9a-z-*/]`,kt=`[a-z]`+K+`{0,255}`,At=`[a-z0-9]`+K+`{0,240}@[a-z]`+K+`{0,13}`,jt=RegExp(`^(?:`+kt+`|`+At+`)$`),Mt=/^[ -~]{0,255}[!-~]$/,Nt=/,|=/})),Ft,It,Lt,Rt,zt,Bt=e((()=>{Pt(),Ft=32,It=512,Lt=`,`,Rt=`=`,zt=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+Rt+e.get(n)),t},[]).join(Lt)},e.prototype._parse=function(e){e.length>It||(this._internalState=e.split(Lt).reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf(Rt);if(r!==-1){var i=n.slice(0,r),a=n.slice(r+1,t.length);Dt(i)&&Ot(a)&&e.set(i,a)}return e},new Map),this._internalState.size>Ft&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Ft))))},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 Vt(e){return new zt(e)}var Ht=e((()=>{Bt()})),Ut,Wt=e((()=>{M(),Ut=j.getInstance()})),q,Gt=e((()=>{b(),q=y.instance()})),Kt,qt,Jt=e((()=>{He(),Kt=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return Pe},e}(),qt=new Kt})),J,Yt,Xt=e((()=>{Jt(),h(),b(),J=`metrics`,Yt=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalMeterProvider=function(e){return u(J,e,y.instance())},e.prototype.getMeterProvider=function(){return d(J)||qt},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){f(J,y.instance())},e}()})),Y,Zt=e((()=>{Xt(),Y=Yt.getInstance()})),Qt,$t=e((()=>{Qt=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()}));function en(e){return e.getValue(X)||void 0}function tn(){return en(j.getInstance().active())}function nn(e,t){return e.setValue(X,t)}function rn(e){return e.deleteValue(X)}var X,an=e((()=>{M(),S(),X=x(`OpenTelemetry Baggage Key`)})),Z,on,sn,cn=e((()=>{h(),$t(),Ge(),an(),xe(),b(),Z=`propagation`,on=new Qt,sn=function(){function e(){this.createBaggage=ve,this.getBaggage=en,this.getActiveBaggage=tn,this.setBaggage=nn,this.deleteBaggage=rn}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalPropagator=function(e){return u(Z,e,y.instance())},e.prototype.inject=function(e,t,n){return n===void 0&&(n=k),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return n===void 0&&(n=O),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){f(Z,y.instance())},e.prototype._getGlobalPropagator=function(){return d(Z)||on},e}()})),ln,un=e((()=>{cn(),ln=sn.getInstance()})),Q,dn,fn=e((()=>{h(),bt(),V(),st(),b(),Q=`trace`,dn=function(){function e(){this._proxyTracerProvider=new G,this.wrapSpanContext=ut,this.isSpanContextValid=B,this.deleteSpan=it,this.getSpan=L,this.getActiveSpan=rt,this.getSpanContext=ot,this.setSpan=R,this.setSpanContext=at}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=u(Q,this._proxyTracerProvider,y.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return d(Q)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){f(Q,y.instance()),this._proxyTracerProvider=new G},e}()})),$,pn=e((()=>{fn(),$=dn.getInstance()})),mn={};t(mn,{DiagConsoleLogger:()=>w,DiagLogLevel:()=>_,INVALID_SPANID:()=>N,INVALID_SPAN_CONTEXT:()=>tt,INVALID_TRACEID:()=>P,ProxyTracer:()=>W,ProxyTracerProvider:()=>G,ROOT_CONTEXT:()=>Ce,SamplingDecision:()=>xt,SpanKind:()=>Ct,SpanStatusCode:()=>Tt,TraceFlags:()=>$e,ValueType:()=>Ue,baggageEntryMetadataFromString:()=>ye,context:()=>Ut,createContextKey:()=>x,createNoopMeter:()=>Te,createTraceState:()=>Vt,default:()=>hn,defaultTextMapGetter:()=>O,defaultTextMapSetter:()=>k,diag:()=>q,isSpanContextValid:()=>B,isValidSpanId:()=>lt,isValidTraceId:()=>ct,metrics:()=>Y,propagation:()=>ln,trace:()=>$});var hn,gn=e((()=>{xe(),S(),we(),v(),He(),We(),Ge(),gt(),bt(),St(),wt(),Et(),et(),Ht(),V(),nt(),Wt(),Gt(),Zt(),un(),pn(),hn={context:Ut,diag:q,metrics:Y,propagation:ln,trace:$}}));export{w as DiagConsoleLogger,_ as DiagLogLevel,Tt as SpanStatusCode,Ue as ValueType,q as diag,mn as esm_exports,gn as init_esm,Y as metrics,$ as trace};
@@ -0,0 +1 @@
1
+ import{__commonJSMin as e,__require as t}from"./chunk-ByIbJXPc.js";var n=e((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.execAsync=void 0;let n=t(`child_process`),r=t(`util`);exports.execAsync=r.promisify(n.exec)}));export{n as require_execAsync};
@@ -0,0 +1 @@
1
+ import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-ByIbJXPc.js";import{esm_exports as r,init_esm as i}from"./esm-DiE8Xvft.js";import{require_execAsync as a}from"./execAsync-Cr3GNTA4.js";var o=e((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.getMachineId=void 0;let o=t(`fs`),s=a(),c=(i(),n(r));async function l(){try{let e=await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`});return e.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{let e=await(0,s.execAsync)(`kenv -q smbios.system.uuid`);return e.stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}exports.getMachineId=l}));export default o();export{};
@@ -0,0 +1,2 @@
1
+ import{__commonJSMin as e,__toCommonJS as t}from"./chunk-ByIbJXPc.js";import{esm_exports as n,init_esm as r}from"./esm-DiE8Xvft.js";import{require_execAsync as i}from"./execAsync-Cr3GNTA4.js";var a=e((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.getMachineId=void 0;let a=i(),o=(r(),t(n));async function s(){try{let e=await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`),t=e.stdout.split(`
2
+ `).find(e=>e.includes(`IOPlatformUUID`));if(!t)return;let n=t.split(`" = "`);if(n.length===2)return n[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}exports.getMachineId=s}));export default a();export{};
@@ -0,0 +1 @@
1
+ import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-ByIbJXPc.js";import{esm_exports as r,init_esm as i}from"./esm-DiE8Xvft.js";var a=e((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.getMachineId=void 0;let a=t(`fs`),o=(i(),n(r));async function s(){let e=[`/etc/machine-id`,`/var/lib/dbus/machine-id`];for(let t of e)try{let e=await a.promises.readFile(t,{encoding:`utf8`});return e.trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}exports.getMachineId=s}));export default a();export{};
@@ -0,0 +1 @@
1
+ import{__commonJSMin as e,__toCommonJS as t}from"./chunk-ByIbJXPc.js";import{esm_exports as n,init_esm as r}from"./esm-DiE8Xvft.js";var i=e((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.getMachineId=void 0;let i=(r(),t(n));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}exports.getMachineId=a}));export default i();export{};
@@ -0,0 +1 @@
1
+ import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-ByIbJXPc.js";import{esm_exports as r,init_esm as i}from"./esm-DiE8Xvft.js";import{require_execAsync as a}from"./execAsync-Cr3GNTA4.js";var o=e((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.getMachineId=void 0;let o=t(`process`),s=a(),c=(i(),n(r));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`),n=t.stdout.split(`REG_SZ`);if(n.length===2)return n[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}exports.getMachineId=l}));export default o();export{};